You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way on removing a #EXT-X-MAP from the segment m3u8?
I tried to use del playlist.segments[1].init_section but I get a AttributeError
When I try to run playlist.dump("OUT_normal_sub_v8.m3u8")
EXT-X-MAP is a tag designed to be placed before every segment, so, yes, I think we can have many of them and we must know which ones we want to update before hand. Do you think a helper method to update all of them at once would help?
But the problem is that you need to edit for every segment
and if you don't do it you will get the old #EXT-X-MAP on the next segment
It happens because EXT-X-MAP is a tag designed for segments so, if you don't change it for every segment, the next one you forgot to updated will have the old value
Is there a way on removing a #EXT-X-MAP from the segment m3u8?
Sorry, but could you give me an example of how this could be useful?
Great to see that you are still working and adding new stuff to the lib.
I bypassed the the issue with a hacky string replace. It worked but I would be nice to get the lib to do it.
The reason I wanting the change it is that we serve the m3u8 from a central origin place with relative path m3u8 and we then change it to point to a specific edge node with absolut path for the clients. The init.mp4 is still the same to not break the player. We just have a diffrent url for it.
Like my exemple before I don't want it just move the init to the next segment I just want to change the the 0-index url init.mp4
Editing value in
playlist.segment_map["uri"]
is ignored by parserm3u8-lib version: 0.7.1
There is no diff between
normal_sub_v8.m3u8
andoutput.m3u8
To edit the init #EXT-X-MAP I have found that I need to use the
playlist.segments[0].init_section.uri = "NEW-INIT-MAP.mp4"
to make it work
But the problem is that you need to edit for every segment
and if you don't do it you will get the old #EXT-X-MAP on the next segment
Also;
Is there a way on removing a #EXT-X-MAP from the segment m3u8?
I tried to use
del playlist.segments[1].init_section
but I get a AttributeErrorWhen I try to run
playlist.dump("OUT_normal_sub_v8.m3u8")
The text was updated successfully, but these errors were encountered: