denivip / osmf-hls-plugin

OSMF HLS Plugin
ISC License
180 stars 93 forks source link

manifest url issue #91

Open FabioFDC opened 10 years ago

FabioFDC commented 10 years ago

Hi! First of all congratulation to this plugin, well working and easy-to-use.

I think i've found an issue on the manifest/fragment url loading. I have an manifest url coming from Azure Media Services, via Dynamic Packaging. My url is like: http:// { DOMAIN } /8418b960-942d-4f46-836b-007f2a92d0ff/27.ism/Manifest(format=m3u8-aapl)

The issue is that when the plugin load the first fragment it append the fragment to the url like this: http:// { DOMAIN } /8418b960-942d-4f46-836b-007f2a92d0ff/27.ism/Manifest(format=m3u8-aapl)/Fragments(video=0,format=m3u8-aapl) when he must substring all the manifest part until the last "/" taking http error "400 - bad request" from the server.

With normal url (without bracers) it works well, so i think maybe there's some issue with "(" or ")" characters.

Is this an issue you know?

I've tried to change the source code but I don't know where to look for :(

Thank you in advance to any suggestion!

Regards, Fabio

D3adKnight commented 10 years ago

Hi,

With normal url (without bracers) it works well, so i think maybe there's some issue with "(" or ")" characters.

Maybe something wrong with bracers parsing. You can see what happens in org.denivip.osmf.elements.m3u8Classes.M3U8PlaylistParser.as and org.denivip.osmf.net.httpstreaming.hls.HTTPStreamingHLSIndexHandler.as

files.

Or give me working example, I'll try fix this trouble how fast as I can.

FabioFDC commented 10 years ago

Hi D3adKnight,

thanks for yuor quick response. This is the url i try to play: http://edidomus.origin.mediaservices.windows.net/8418b960-942d-4f46-836b-007f2a92d0ff/27.ism/Manifest(format=m3u8-aapl)

I'll search for the code line, I'll be grateful if you send me the compiled solution :)

Thanks in advance, Fabio