-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player keep on trying to download HLS live stream playlist when server goes down #5849
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Looks like this is similar to #5435, if the live stream goes down without an end list tag, we need to continue retrying because it's possible that the stream will return. There's a Hope this helps. |
hi @gkatsev Is this a best practice? player.on('error', () => {
player.createModal('Retrying connection');
if (player.error().code === 4) {
this.player.retryLock = setTimeout(() => {
player.src({
src: data.url
});
player.load();
}, 5000);
}
}); |
Seems good to me :) |
The thing is that, this, keeps on going: 24video.min.js:12 VIDEOJS: ERROR: DOMException: Failed to set the 'duration' property on 'MediaSource': The 'updating' attribute is true on one or more of this MediaSource's SourceBuffers. |
Well i just duplicated the source...
And disable/enable the wifi connection, twice in a roll, and its now connecting fine (livestreaming) I will test it without the on.error(), and post back. |
humm, It seems that this small move did it. (doubling the sources) at least for me, for now, and using live streaming from wowza media server. Hope its something that could help. |
I was wrong.. that didnt work at the end. |
Any update on this? I would like to detect the HTTP code being given and decide if I want the player to retry or stop. |
@Snowbell92 |
@kslr can you please give me an example? I thought |
You can use a separate request |
Hi , Here is my code .. import React, { useEffect, useRef, useState } from 'react'; // eslint-disable-next-line import/prefer-default-export useEffect(() => {
}, []); return videoRef; const VideoPlayer = ({ src, controls, autoplay }) => { return ( ); }; VideoPlayer.propTypes = { VideoPlayer.defaultProps = { export default VideoPlayer; and this is my dashboard code . import React , {Component} from "react"; class Dashboard extends Component{
} export default Dashboard when i am adding my m3u8 URL as streming URL for playing i am receiving this error .. VIDEOJS: WARN: Problem encountered with the current HLS playlist. Trying again since it is the only playlist. would ou please asist which part i am making mistake exactly . |
Any update on this? It would be helpful to have the error response and its status code to decide what to do. |
Hi !
I been waiting for the same solution, and no matter how the increasing
versions goes, it doesnt seems been takeing care of..
Dont know what to say or think.
…On Sat, 23 May 2020 at 06:47, David Serrano Canales < ***@***.***> wrote:
Any update on this? It would be helpful to have the error response and its
status code to decide what to do.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5849 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABMFGW2KB33KYRFLZWK64L3RS6LTLANCNFSM4G44XIZA>
.
|
In an Angular 9 app, I use something like this to detect (and count) when the tech When a specified retry limit has been hit, I switch the source to an 'offline' looping local video.
I also use a separate service ( |
Description
While serving HLS live stream with
video.js
, if the media server goes down or disconnected, the player will keep trying to load the playlist indefinitely.Steps to reproduce
Results
Expected
If after several seconds the playlist can't be downloaded, stop trying and trigger error event (e.g
hls-playlist-404
) which can be handled by error listener.Actual
The video player keep on trying to download the HLS playlist without end.
Error output
The console keep spewing this warning :
Additional Information
Please include any additional information necessary here. Including the following:
Video.js versions
Video.js 7.4.1
Browsers / OS
Plugins
No additional plugins used, since
videojs-http-streaming
now included in Video.js.Related issues
The text was updated successfully, but these errors were encountered: