youku
How to play sliced video from youku site in one video from concat ? ffconcat version 1.0 file 1 duration 395.0 file 2 duration 386.0 file 3 duration 391.0 file 4 duration 271.0
use ex_so,set cache false
Link = http://pl-ali.youku.com/playlist/m3u8?type=mp4&ts=1490185963&keyframe=0&vid=XMjYxOTQ1Mzg2MA==&ep=ciadGkiFU8cF4SvajD8bYyuwJiYHXJZ3rHbN%2FrYDAcZuH%2BrC6DPcqJ21TPs%3D&sid=04901859548541247bba8&token=0524&ctype=12&ev=1&oip=976319194
I used this link and compiled ex_so and set cache to false but it wont load i checked url m3u8 file from youku and the duration is ( - 1 ) ??
it does the same in the sample app in (DetailPlayer) activity
so i used a parsing concat which return a link like this
(data/user/0/com.bloomer.videoScreenShot/cache/http://v.youku.com/v_show/id_XMzI5MjcxNDk1Mg==.html?spm=a2hcm.20010061.m_100892.5~5~5~5!2~A/http://v.youku.com/v_show/id_XMzI5MjcxNDk1Mg==.html?spm=a2hcm.20010061.m_100892.5~5~5~5!2~A_2 }
using concat
ParsingTask parsingTask = new ParsingTask(this);
parsingTask.setOnUrlRead(new ParsingTask.OnUrlRead() {
@Override
public void onRead(Boolean isValid, String videoLink) {
GSYVideoOptionBuilder gsyVideoOptionBuilder = new GSYVideoOptionBuilder()
.setIsTouchWiget(true)
.setRotateViewAuto(false)
.setLockLand(false)
.setShowFullAnimation(false)
.setNeedLockFull(true)
.setSeekRatio(1)
.setUrl(videoLink)
.setCacheWithPlay(false)
.setVideoTitle(videoLink);
gsyVideoOptionBuilder.build(((videoView) player));
player.getFullscreenButton().setVisibility(View.INVISIBLE);
player.startPlayLogic();
GSYVideoManager.instance().setLogLevel(IjkMediaPlayer.IJK_LOG_SILENT);
}
});
parsingTask.execute("http://v.youku.com/v_show/id_XMzI5MjcxNDk1Mg==.html");
this code is from this library ParsingPlayer
it uses IJKplayer and it works there
but doesnt work in GSYVideoPlayer
do you know why ?