-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Browser Freezes When Using P2P with Shaka Player on Long Live Streams #448
Comments
Hello @DimaDemchenko , Thank you for your prompt response and for taking the time to investigate the issue. It appears that the previous live HLS stream link I provided may have expired. Here is a new link to a live stream that demonstrates the problem:
To address your questions:
Thank you again for your assistance. Any guidance or recommendations you can provide would be greatly appreciated. Best regards |
@OrionCodeDev Thank you for your response! Shortly after posting my additional questions, I managed to reproduce the bug and removed the post since the answers were no longer necessary. I appreciate you pointing that out, and I’ll look into the issue further. I’ll follow up if I have any updates or need more clarification. |
Hello friends, I have a P2P structure based on Novage, but the app is completely out of date. If I send files to us, can you help me with this structure? I have a panel that gets the contents of Xtream. |
Obtém conteúdos do xtream ui passa pelo fluxonic e os filmes baixa direto pra dentro do servidor ele funciona tudo na real porém tem bugs no app em questão do player que e o clappr e o pior dele e o SDK tá todo desatualizado Android Studio novo né funciona ele e dispositivos Android novos nem vai instalar |
Hello,
I'm experiencing a severe issue with the P2P Media Loader when integrated with Shaka Player for live streaming. When streaming a live HLS stream that has been running for a very long time (e.g., several hours, resulting in a very long playlist), the browser freezes entirely every time I refresh the page. This happens consistently and only when the bindShakaPlayer method is invoked, indicating that the problem is likely within the P2P integration.
Problem Details:
• When the live stream has been active for a long duration, the HLS playlist (.m3u8 file) becomes very large, containing references to all segments since the stream started.
• With P2P Media Loader integrated and bindShakaPlayer executed, loading the page causes the entire browser to freeze and become unresponsive.
• This issue does not occur when:
- The live stream has a shorter duration (shorter playlist).
- P2P Media Loader is not integrated (i.e., when bindShakaPlayer is not called).
• Adjusting Shaka Player's buffering and streaming configurations does not resolve the issue.
• Adjusting P2P Media Loader's configurations such as highDemandTimeWindow, p2pDownloadTimeWindow, httpDownloadTimeWindow, and cachedSegmentsCount does not prevent the freeze.
Steps to Reproduce:
o Use a live stream that has been running for several hours to ensure the playlist is very long.
o The playlist should include references to all segments from the beginning of the stream.
Additional Observations:
• Removing the engine.bindShakaPlayer(player); line allows the stream to play normally without freezing, but without P2P functionality.
• The issue appears to be related to the P2P engine's handling of the long playlist, possibly trying to process or cache all historical segments.
• Adjusting P2P configurations does not seem to limit the engine's processing to only recent segments near the live edge.
• The browser's CPU usage spikes significantly when the freeze occurs, indicating a potential infinite loop or heavy processing task.
Questions:
Attachments:
• index.html and script.js as provided above.
Thank you for your assistance. Any guidance or recommendations would be greatly appreciated.
shaka-lag.zip
The text was updated successfully, but these errors were encountered: