// Path: app/src/main/java/com/xm/vbrowser/app/entity/VideoFormat.java
// public class VideoFormat {
//     private String name;
//     private List<String> mimeList;
// 
//     public VideoFormat(String name, List<String> mimeList) {
//         this.name = name;
//         this.mimeList = mimeList;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public List<String> getMimeList() {
//         return mimeList;
//     }
// 
//     public void setMimeList(List<String> mimeList) {
//         this.mimeList = mimeList;
//     }
// }
// 
// Path: app/src/main/java/com/xm/vbrowser/app/event/NewVideoItemDetectedEvent.java
// public class NewVideoItemDetectedEvent{
// }


import android.text.TextUtils;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import com.xm.vbrowser.app.entity.VideoFormat;
import com.xm.vbrowser.app.event.NewVideoItemDetectedEvent;
import org.greenrobot.eventbus.EventBus;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
package com.xm.vbrowser.app.util;





/**
 * Created by xm on 17-8-16.
 */
public class VideoFormatUtil {

    private static final List<String> videoExtensionList = Arrays.asList(
            "m3u8", "mp4", "flv", "mpeg"
    );

    private static final List<VideoFormat> videoFormatList = Arrays.asList(
            new VideoFormat("m3u8", Arrays.asList("application/octet-stream", "application/vnd.apple.mpegurl", "application/mpegurl", "application/x-mpegurl", "audio/mpegurl", "audio/x-mpegurl")),
// Path: app/src/main/java/com/xm/vbrowser/app/entity/VideoFormat.java
// public class VideoFormat {
//     private String name;
//     private List<String> mimeList;
// 
//     public VideoFormat(String name, List<String> mimeList) {
//         this.name = name;
//         this.mimeList = mimeList;
//     }
// 
//     public String getName() {
//         return name;
//     }
// 
//     public void setName(String name) {
//         this.name = name;
//     }
// 
//     public List<String> getMimeList() {
//         return mimeList;
//     }
// 
//     public void setMimeList(List<String> mimeList) {
//         this.mimeList = mimeList;
//     }
// }
// 
// Path: app/src/main/java/com/xm/vbrowser/app/event/NewVideoItemDetectedEvent.java
// public class NewVideoItemDetectedEvent{
// }


// Path: app/src/main/java/com/xm/vbrowser/app/util/VideoFormatUtil.java
import android.text.TextUtils;
import android.util.Log;
import com.alibaba.fastjson.JSON;
import com.xm.vbrowser.app.entity.VideoFormat;
import com.xm.vbrowser.app.event.NewVideoItemDetectedEvent;
import org.greenrobot.eventbus.EventBus;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

package com.xm.vbrowser.app.util;





/**
 * Created by xm on 17-8-16.
 */
public class VideoFormatUtil {

    private static final List<String> videoExtensionList = Arrays.asList(
            "m3u8", "mp4", "flv", "mpeg"
    );

    private static final List<VideoFormat> videoFormatList = Arrays.asList(
            new VideoFormat("m3u8", Arrays.asList("application/octet-stream", "application/vnd.apple.mpegurl", "application/mpegurl", "application/x-mpegurl", "audio/mpegurl", "audio/x-mpegurl")),
            new VideoFormat("mp4", Arrays.asList("video/mp4","application/mp4","video/h264")),