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

JWPlayer Android SDK


Hi,
I encountered a problem using JWPlayer SDK on android for HLS streaming, whenever I click play the player would return unable to connect to the address. I did test the address on the tester site: https://developer.jwplayer.com/tools/stream-tester/ and it seems to be working fine. It's an audio only stream if that matters.
Just wondering if anyone have encountered the same problem and found a fix?

23 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

Hi,

Can you please reproduce your issue in our open source Android project?: https://github.com/jwplayer/jwplayer-sdk-android-demo

Sam

User  
0 rated :

Hi,

Sorry for the late reply, I've been away this week, I'll try it out and let you know.

Thanks,

Sam

User  
0 rated :

Hi,

So I tried the open source Android project and got the exact same error.

George

JW Player Support Agent  
0 rated :

For me to reproduce this issue reliably I will need this information about your application:

Android API Build level (16,17… 22):
JW Player SDK for Android version number:
Device make and model where you are experiencing this issue:
Provide step by step instructions on how to reproduce your issue:
JW Player Demo Application Source Code that is also experiencing the issue:

As the last field suggests, please replicate this issue using the JW Player Demo Application and send us a link to a zipped version of the entire Android Studio Project for testing which can be found here:
https://github.com/jwplayer/jwplayer-sdk-android-demo

z...

User  
0 rated :

Hi George,

Min SDK Version is 21 and Target SDK Version is 24, the device that I used to test was running API Build Level 23.
As for JW Player SDK, I imported using Maven so I'm guessing that's the latest version.
I experienced this issue on the Samsung Note 4.
I pretty much followed the instructions under adding JWPlayerFragment to Activity's layout in this page: https://developer.jwplayer.com/sdk/android/docs/developer-guide/usage/jwplayer-fragment/
I have also tried this demo: https://github.com/jwplayer/jwplayer-sdk-android-demo and still experienced the same issue.
I used Wowza Streaming Cloud if that's relevant.

Thanks,

George

JW Player Support Agent  
0 rated :

Where’s your demo project’s source code?

z...

User  
0 rated :

Hi George,

Not sure if this is what you wanted but this the demo project: https://github.com/Raizelb/jwplayer-sdk-android-demo I used to test it.

Thanks,

George

JW Player Support Agent  
0 rated :

Hi,

I’m unable to connect to the stream:
https://6825b7.entrypoint.cloud.wowza.com/app-9374/ngrp:77aaeb60_all/playlist.m3u8

Is the stream GeoBlocked? If the stream cannot play in Safari natively, it’s a good chance it’s a streaming issue.

z...

User  
0 rated :

Hi George,

I'm actually on trial on Wowza so I only stream when I test it (An Android device pushing the stream while another can listen), but no it should not be geoblocked, I can play it natively on Chrome on desktop but got CORS on Android Chrome using their hosted site, the m3u8 is also confirmed to be working because I've tested it on this site https://developer.jwplayer.com/tools/stream-tester/.

Thanks,

George

JW Player Support Agent  
0 rated :

Well I need to be able to test the stream for me to see why Android is throwing a CORS error.

z...

User  
0 rated :

Hi George,

Would you be around this time around tomorrow? I would make a new account since I've also ran out of trial.

Thanks,

George

JW Player Support Agent  
0 rated :

Not tomorrow, this time on Monday

z...

User  
0 rated :

Great I'll post the new URLs here when I stream.

Thanks,

George

JW Player Support Agent  
0 rated :

Sure, see you then

z...

User  
0 rated :

Hi George,

I'm currently live, this is the hosted site: https://player.cloud.wowza.com/hosted/4858xvgp/player.html
Apple HLS URL: https://e37d8e.entrypoint.cloud.wowza.com/app-98a7/ngrp:6d701aac_all/playlist.m3u8

George

JW Player Support Agent  
0 rated :

I’m unable to play:
https://e37d8e.entrypoint.cloud.wowza.com/app-98a7/ngrp:6d701aac_all/playlist.m3u8

On Safari

z...

User  
0 rated :

That's quite weird, it works via this site for me: https://developer.jwplayer.com/tools/stream-tester/

George

JW Player Support Agent  
0 rated :

Is it geoblocked? Should I VPN into the UK?

z...

User  
0 rated :

Possibly, please do, I'll check in the meanwhile

z...

User  
0 rated :

I checked it, but it is available world-wide by default, could you try the m3u8 link again?, another person couldn't play it at first but it's working for him now.

George

JW Player Support Agent  
0 rated :

I was able to get the stream to play on safari. However Android Chrome says there’s an issue related to your SSL cert.
http://qa.jwplayer.com.s3.amazonaws.com/~george/cert.png

z...

User  
0 rated :

I doubt there's anything I can do about it, is there any chance this is related to the original problem I'm having?
Btw, I have also stopped streaming.

Thanks,

George

JW Player Support Agent  
0 rated :

There’s a good chance the certificate issue is related to your playback issues.

This question has received the maximum number of answers.