Skip to content
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

POC - Origin Failover scenario #6311

Open
lastpeony opened this issue May 3, 2024 · 3 comments
Open

POC - Origin Failover scenario #6311

lastpeony opened this issue May 3, 2024 · 3 comments
Assignees

Comments

@lastpeony
Copy link
Contributor

lastpeony commented May 3, 2024

Cluster setup with 2 origin, 1 edge, 1 nginx
stream is on origin1
origin1 crashes
stream moves to origin2
user watches through nginx ip(connected to edge)

web embedded player stalls.
it should continue to play stream. looks like a bug related to videojs(?). It only continues to play if user refreshes the page or m3u8 indice catches up with previous success ts indice

@lastpeony
Copy link
Contributor Author

lastpeony commented May 3, 2024

This is a strange issue.
I'm attempting to resolve it by monitoring any changes in the origin of the broadcast through periodic REST requests in embedded player side.

In the event that the origin address of the broadcast changes while the stream is ongoing, I reload the video player. However, this approach leads to unexpected behavior on the videojs player and isn't working. I'm currently investigating this further.

@lastpeony
Copy link
Contributor Author

We abandoned the previous workaround solution and instead, I've raised an issue on the Video.js repository, and now I'm actively following up on it.
videojs/http-streaming#1511

@lastpeony
Copy link
Contributor Author

lastpeony commented May 16, 2024

According to an answer from videojs maintainer, when indices reset to 0, the stream is considered invalid.
videojs/http-streaming#1511 (comment)

I will revisit detecting origin failover and reloading player work around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

No branches or pull requests

2 participants