Auto retry on Video.js? - video.js

So, I am facing some issue with my Video.js player. I am using it to play HLS, but when the page loads, the .m3u8 is not available yet (another external service is starting it), and since I use autoplay, it fails to load because the request to m3u8 returns a 404.
Is there a way to tell video.js to keep trying? Video.js has a function called onPlayerReady() but it don't do what I need.
Thanks.

Solved it by setting a fixed sleep time, so if the m3u8 isn't ready in 10sec I assume it will not load because of some issue with the source and then I stop the connection.

Related

Safari won't play video from s3 despite 206 response

I am displaying a video with the html5 video element. The source is a pre-signed url from Wasabi s3. It works well on Chrome but it won't play on Safari. I did some research and it seems like this is usually due to the server not being configured to return a 206 code. However, I did check the server and it seems to support byte-range requests.
Here is the network tab. Any help would be greatly appreciated.
Ok, it seems like I usually get stuck on those minuscule problems. Turns out that Safari, unlike Chrome, doesn't like to play files without file extension. Adding ".mp4" to my files solved the problem...

HTML5 video streaming very slow

On my homepage there is a video file. While single user click on site(www.rollcall.co.in) that video running very well. But When Multiple user come at my site and that time video streaming getting very slow. I dont know how to resolve this issue.

iTunesconnect App Preview Error

I'm trying to upload an app preview video to my itunesconnect account, but i'm receiving the following error...
"This video has audio that is not two-channel, no-surround stereo"
As far as I can tell, there is not specific documentation discussing how to deal with this is issue, so any extra insight on this would be very helpful.
In my case I had created the video in iMovie and (intentionally) did not include any audio. To resolve the issue, I imported a silent audio track, added it to the timeline, decreased its volume to 0% just to be sure, then I shared the App Preview again. Uploading this file worked just fine. Seems the videos have to have audio included.
I have use this tool making the video https://handbrake.fr/ and uploaded the video in iTune . Work perfectly.

webcam recording with red5

We have a red5 recorder/red5 server setup. This is working correctly and videos are getting created in the server. We are having a problem with the recording and playback etc not working in a streamlined way. ie after you record and play the recorded one, it may not always play. The player sort of gets stuck.
Are there any free or paid alternatives to red5 recorder that does the job really well?
The reason why the videos don't play can vary and it is not sure if another streaming server will resolve your issue. For example if you have network issues no matter what streaming server you use, it will fail.
However, alternatives might be Wowza or Adobe FMS.
Sebastian
Maybe you are suffering from the same problem I have, see:
WARN o.r.s.net.rtmpt.BaseRTMPTConnection - Response buffer was null after encoding
Are there any warnings in your log file after the stream did fail? This log file may reveal your problem, see /usr/local/red5/log/red5.log

Why can I not access bitmap data of FLV video coming from Amazon S3?

I have a video player that loads progressive flv video from a server and applies a reflection to it. I do this by creating a bitmapData object and then drawing the video to it. This worked absolutely fine until we moved our content from testing server to Amazon S3. Now there is no reflection.
Can anyone explain why this is happening and even suggest a solution?
p.s. i am using Flash 8 AS2.
thanks
This most likely has to do with Flash player's security restrictions and domains. If you aren't getting any errors, try installing the debug version of the player and see what comes up.
Also take a look to Handling Crossdomain.xml and 302 Redirects Using NetStream for background info.
HTH
Juan