Android Open Source - MCCDash M3u8 Resolver






From Project

Back to project page MCCDash.

License

The source code is released under:

Apache License

If you think the Android project MCCDash listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package edu.bupt.mccdash.m3u8;
//from  w  w  w.j av  a2s  .c o m
import java.util.ArrayList;

import android.util.Log;

public class M3u8Resolver {
    private static final String TAG = "M3u8Resolver";

    private ArrayList<String> tsList;

    public M3u8Resolver(String m3u8String) {
        Log.v(TAG, m3u8String);
        tsList = new ArrayList<String>();
        String[] lines = m3u8String.split("\n");
        Log.v(TAG, lines.toString());
        for (String s : lines) {
            Log.v(TAG, s);
            if (s.startsWith("http")) {
                tsList.add(s);
                
            }
        }
    }

    public String getAt(int index) {
        if (index >= 0 && index < tsList.size()) {
            return tsList.get(index);
        }
        return null;
    }

    public int getCount() {
        return tsList.size();
    }
}




Java Source Code List

edu.bupt.mccdash.HttpDownloader.java
edu.bupt.mccdash.MainActivity.java
edu.bupt.mccdash.MediaPlayerDemo_Video.java
edu.bupt.mccdash.OnBluetoothRecvCompleteListener.java
edu.bupt.mccdash.OnHttpDownloadCompleteListener.java
edu.bupt.mccdash.bluetooth.BluetoothConnectionService.java
edu.bupt.mccdash.bluetooth.DeviceListActivity.java
edu.bupt.mccdash.bluetooth.FileInfo.java
edu.bupt.mccdash.bluetooth.WirelessConnectionService.java
edu.bupt.mccdash.cpuutils.CpuManager.java
edu.bupt.mccdash.io.FileFactory.java
edu.bupt.mccdash.io.Logger.java
edu.bupt.mccdash.m3u8.FakeStreamPlayer.java
edu.bupt.mccdash.m3u8.M3u8Resolver.java