pluto_tv_scraper icon indicating copy to clipboard operation
pluto_tv_scraper copied to clipboard

Feature: Unique `sid` (session ID) for each stream URL entry so that multiple streams can be watched simultaneously

Open dogganon opened this issue 11 months ago • 2 comments

When all streams share the same sid only the last loaded stream is available, the rest becomes empty.

@4v3ngR

Steps to reproduce

  • Generate a shared sid using a UUID generator.
  • Construct stream URLs:
https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/62ba60f059624e000781c436/master.m3u8?appName=web&appVersion=unknown&clientTime=0&deviceDNT=0&deviceId=6c25e430-30d3-11ef-9cf5-e9ddff8fe497&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=false&sessionID={SID}&sid={SID}
https://cfd-v4-service-channel-stitcher-use1-1.prd.pluto.tv/stitch/hls/channel/65775e07dfed030008cb3f47/master.m3u8?appName=web&appVersion=unknown&clientTime=0&deviceDNT=0&deviceId=6c263251-30d3-11ef-9cf5-e9ddff8fe497&deviceMake=Chrome&deviceModel=web&deviceType=web&deviceVersion=unknown&includeExtendedEvents=false&serverSideAds=false&sessionID={SID}&sid={SID}

where {SID} is the generated UUID.

  • Play both streams in separate tabs at https://hlsjs.video-dev.org/demo.
  • Open DevTools on both tabs; Watch for "Fatal error"s.

Expected results

  • DevTools Console: The stream that loads last will be the one that plays without the "Fatal error: levelEmptyError".
  • DevTools Network: The one that fails keeps loading empty M3U8 playlists.
Image Image
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Notes

I have also tried different deviceIds for each stream but that didn't seem to do anything.

Hypotheses

  • sid controls the streaming session, regardless of the deviceId.
  • Only one stream may be active for an sid at any given time; new streams opened with the same sid will "steal" the session from the old ones.

dogganon avatar Jan 18 '25 04:01 dogganon

Can you provide some information on how you're playing the streams?

Multiple streams with the same ID work for me. If you're playing streams on multiple devices, each device should have a unique ID, otherwise you will have issues.

Image

4v3ngR avatar Jan 18 '25 22:01 4v3ngR

@4v3ngR

Can you provide some information on how you're playing the streams?

See the update.

dogganon avatar Jan 19 '25 06:01 dogganon