|
|
|
|
@ -502,8 +502,13 @@ public class PlayActivity extends BaseActivity { |
|
|
|
|
url="http://home.jundie.top:666/unBom.php?m3u8="+url;//尝试去bom头再次播放
|
|
|
|
|
} |
|
|
|
|
if (url.startsWith("data:application/dash+xml;base64,")) { |
|
|
|
|
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg, 2); |
|
|
|
|
App.getInstance().setDashData(url.split("base64,")[1]); |
|
|
|
|
url = ControlManager.get().getAddress(true) + "dash/proxy.mpd"; |
|
|
|
|
} else if (url.contains(".mpd") || url.contains("type=mpd")) { |
|
|
|
|
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg, 2); |
|
|
|
|
} else { |
|
|
|
|
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg); |
|
|
|
|
} |
|
|
|
|
String finalUrl = url; |
|
|
|
|
runOnUiThread(new Runnable() { |
|
|
|
|
@ -512,7 +517,6 @@ public class PlayActivity extends BaseActivity { |
|
|
|
|
stopParse(); |
|
|
|
|
if (mVideoView != null) { |
|
|
|
|
mVideoView.release(); |
|
|
|
|
|
|
|
|
|
if (finalUrl != null) { |
|
|
|
|
try { |
|
|
|
|
int playerType = mVodPlayerCfg.getInt("pl"); |
|
|
|
|
@ -530,7 +534,6 @@ public class PlayActivity extends BaseActivity { |
|
|
|
|
e.printStackTrace(); |
|
|
|
|
} |
|
|
|
|
hideTip(); |
|
|
|
|
PlayerHelper.updateCfg(mVideoView, mVodPlayerCfg); |
|
|
|
|
mVideoView.setProgressKey(progressKey); |
|
|
|
|
if (headers != null) { |
|
|
|
|
mVideoView.setUrl(finalUrl, headers); |
|
|
|
|
|