Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Can not play direct link


I setup JWPlayerView in Android SDK but I couldn't play direct link like this one:

http://zmp3-mp3-mv1-te-media-backup-qt-1.zadn.vn/a448377c0939e067b928/6990353049544235529?key=2MF-8NXYeP_3CdlnBY3CsQ&expires=1495004044

Is this possible to use JW to play this kind of link?

Thank for your answers.

5 Community Answers

t...

Best Answer 

Hi George,

Thank you for your answer,

I made it work with the following configure:

MediaSource source = new MediaSource(sourceLinkEntity.getLink(), sourceLinkEntity.getQ(), false, MediaType.MP4, null);

This isn't mentioned in the Android developer's guide so I posted it here for others who have the same problem.

Thanks.

View in conversation

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

I implemented your video in our stream tester and it returned an error. I therefore would not expect this video file to work on any of our platforms. Have you considered storing your content on our platform: https://www.jwplayer.com/pricing/

Would you like to chat with one of my colleagues in sales?

t...

User  
0 rated :

Hi Daniel,

Thank for your quick reply,

I can paste and play this link directly on Web Browser (Ex: Google Chrome). Moreover, this link can also play with another Android video player view here: https://github.com/jeancsanchez/JcPlayer

For more information, I load the video link with snippet below:

PlaylistItem item = new PlaylistItem.Builder()
.file("http://zmp3-mp3-mv1-te-media-backup-qt-1.zadn.vn/a448377c0939e067b928/6990353049544235529?key=2MF-8NXYeP_3CdlnBY3CsQ&expires=1495004044")
.build();
jwPlayerView.load(item);

I provide more links which also cannot play for better troubleshooting problem:

1. https://redirector.googlevideo.com/videoplayback?id=afdb030d76a7f164&itag=18&source=webdrive&requiressl=yes&ttl=transient&mm=30&mn=sn-n4v7kne7&ms=nxu&mv=u&pl=33&sc=yes&ei=4b8bWZovku6pBZnAjfgO&driveid=0B2GhOizgeAmtM0x1clFXME5qelU&mime=video/mp4&lmt=1480238881122584&mt=1494990556&ip=2600:3c01::f03c:91ff:feac:b21&ipbits=0&expire=1495005217&sparams=ip,ipbits,expire,id,itag,source,requiressl,ttl,mm,mn,ms,mv,pl,sc,ei,driveid,mime,lmt&signature=0EDE94AAEAE3A7F3A758FA288013756EC97983B0.92C86ACCC58408C7CE19931811F178577146958E&key=ck2

2. https://r2---sn-8qj-i5oll.googlevideo.com/videoplayback?id=afdb030d76a7f164&itag=18&source=webdrive&requiressl=yes&ttl=transient&pl=24&sc=yes&ei=4b8bWZovku6pBZnAjfgO&driveid=0B2GhOizgeAmtM0x1clFXME5qelU&mime=video/mp4&lmt=1480238881122584&ip=113.190.253.18&ipbits=0&expire=1495005217&sparams=driveid,ei,expire,id,ip,ipbits,itag,lmt,mime,mm,mn,ms,mv,pl,requiressl,sc,source,ttl&signature=2AB0F9A19B069FC1378DE9C9405B4D365EBC92C5.15160EDE868CC078B5C3EFC1325E43BC4026BC24&key=cms1&cms_redirect=yes&mm=31&mn=sn-8qj-i5oll&ms=au&mt=1494990743&mv=m

Please give me some explanation.
Thanks.

George

JW Player Support Agent  
0 rated :

Hi,

I tried playing this file on Safari that natively supports HLS but I was unable to get playback to begin.

http://zmp3-mp3-mv1-te-media-backup-qt-1.zadn.vn/a448377c0939e067b928/6990353049544235529?key=2MF-8NXYeP_3CdlnBY3CsQ&expires=1495004044

What’s the valid url? also, what you’ll probably have to do is configure a list of MediaSource objects and specify MediaType.HLS.
https://developer.jwplayer.com/sdk/android/reference/com/longtailvideo/jwplayer/media/playlists/MediaSource.html
https://developer.jwplayer.com/sdk/android/reference/com/longtailvideo/jwplayer/media/playlists/MediaType.html#HLS

t...

Best Answer  User  
0 rated :

Hi George,

Thank you for your answer,

I made it work with the following configure:

MediaSource source = new MediaSource(sourceLinkEntity.getLink(), sourceLinkEntity.getQ(), false, MediaType.MP4, null);

This isn't mentioned in the Android developer's guide so I posted it here for others who have the same problem.

Thanks.

George

JW Player Support Agent  
0 rated :

sounds good

This question has received the maximum number of answers.