Skip to content

m3u8 file string update issue #7

@hyobbb

Description

@hyobbb

Hi. I'd like to ask you about playlistUrl update.

image

As you can see the file type of 'm3u8' extensions is recognized as stream file not audo_mpegUrl.
I am appending 'video%2F$videoName%2F' in front because I save those folders in subfolder of 'video' folder.
The updated contents is like below(videoName is different because screenshot is from other trial but it resulted the same)

I/flutter ( 4151): #EXTM3U
I/flutter ( 4151): #EXT-X-VERSION:3
I/flutter ( 4151): #EXT-X-STREAM-INF:BANDWIDTH=683098,RESOLUTION=640x360,CODECS="avc1.42c01e,mp4a.40.2"
I/flutter ( 4151): video%2F1605666932022%2F0_playlistVariant.m3u8?alt=media
I/flutter ( 4151): 
I/flutter ( 4151): #EXT-X-STREAM-INF:BANDWIDTH=2481598,RESOLUTION=1280x720,CODECS="avc1.42c01f,mp4a.40.2"
I/flutter ( 4151): video%2F1605666932022%2F1_playlistVariant.m3u8?alt=media
I/flutter ( 4151): 
I/flutter ( 4151): #EXT-X-STREAM-INF:BANDWIDTH=5781598,RESOLUTION=1920x1080,CODECS="avc1.42c028,mp4a.40.2"
I/flutter ( 4151): video%2F1605666932022%2F2_playlistVariant.m3u8?alt=media

appending logic is like:

if (line.contains('.ts') || line.contains('.m3u8')) {
           updatedLine = '$video%2F$videoName%2F$line?alt=media';
         }

where $video refers 'video'.

Do you have any idea how to fix this issue?
Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions