this post was submitted on 20 May 2025
33 points (94.6% liked)

Programming

20929 readers
151 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

I'm trying to wrap my head around how media player websites work.

This might not be fully programming, but idk where else to post this question

Some video sharing sites uses blob objects to send the video in chunks, instead of letting the browser download in full. Usually there's mpd or m3u8 files that we can use to download the whole video

But some sites don't use those files. They send mp4 chunks, but those mp4s can't be played and seem encrypted.

How is the webpage's video player able to play the video? Is there a decrypter or something in the webpage/video player? Am i able to download all mp4 chunks and run them through some decrypter in the webpage served to me and create the whole video from it?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] stsquad@lemmy.ml 3 points 3 weeks ago (1 children)

Basically you need to hook into decryption engine being used and copy the unencrypted data before it gets sent to the hardware to play. I assume something like Widevine sends the data directly to the system codec for playback so you could look at the syscalls it makes for that.

[โ€“] JiminaMann@lemmy.world 1 points 3 weeks ago

Woah, how do i check and filter for that