unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 240 forks source link

Question: Edit the segments from m3u8 at runtime #524

Closed nr2info closed 3 years ago

nr2info commented 3 years ago

Edit segments(.ts) details on runtime

In the mediaelement , I can play the simple m3u8 file from the URL , but I have the URL which have encrypted videos, there are some keys that need to be provided for segments on runtime to decrypt and play. So , I want to know the detail how the m3u8 file is played and if I want to edit/append some keys in the segments list how can I do that, any help is is greatly appreciated

nr2info commented 3 years ago

Still waiting for any help from the community. I am new to ffmpeg based system, so please help me

mariodivece commented 3 years ago

Hi @nr2info m3u8 streams are handled internally by FFmpeg. There is no way to change this at runtime. I suggest you write a small web server that constantly reads the m3u8 file from the target URL, modify that file your needs, and finally serve that modified version in your local http server to be played back by ffme. You can easily write a simple web server by using EmbedIO, another one of our libs :)