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

IOS Live streaming auto reconnect


I'm making a stream using Wowza and I tried to implement an auto reconnect for IOS JWPlayerController.
I tried using JWPlayerDelegate methods, onBuffer and onMeta, but they aren't consistent. They are called when the stream stops, but right now they aren't called everytime the stream resumes on Wowza. And even if i try to force reload the stream file, the video is stuck on loading.
Is it even possible to handle this on client side or must it be done on backend side?

2 Community Answers

Daniel Berger

JW Player Support Agent  
0 rated :

I am not sure I completely understand what you mean by “I tried to implement an auto reconnect”. Have you explored our onError delegate method to handle if an error occurs:
https://developer.jwplayer.com/sdk/ios/reference/Protocols/JWPlayerDelegate.html#//api/name/onError:

Can you please clarify what behavior you are trying to achieve?

Alex

User  
0 rated :

onError is never called if stream is closed.

Basically, if the stream is closed, but it's resumed a few minutes later, i want JWPlayerController to reconnect to the stream without the user having to leave the view. I was using onBuffer to check for stream status, but it doesn't seem reliable. And loading the video URL again, does not show anything, it gets stuck in loading.

Post Your Public Answer