Bug #2667

HLS player can't properly construct base url on some streams

Added by Leonid Protasov over 5 years ago. Updated over 5 years ago.

Status:FixedStart date:06/02/2015
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:HLS
Target version:4.10
Found in version:4.9.498 Platform:Linux

Description

I have following url (extracted from http://tv3.spr.spbtv.com/v1/channels/12/stream?protocol=hds&):

http://spbtv.cdn.spbtv.com/eyJzZXNzaW9uX2lkIjoiODUzYmUyYTUtYjQ3Ny00YTYzLTlmYzctYmVmOWI0MDQ3MDA0IiwiZG9tYWluX25hbWUiOiJzcGJ0di5jZG4uc3BidHYuY29tIiwiaXBfYWRkcmVzcyI6IjQ2LjE2NC4xNzYuMjIxIiwiZXhwaXJhdGlvbl9kYXRlIjoiMjAxNS0wNi0wM1QxMjo1Nzo1OFoiLCJzdHJlYW1fbmFtZSI6IjEyIiwic3RyZWFtX3BhdGgiOiIvaXBfdjUiLCJkYXRhY2VudGVyIjoibXNrIn0=/MCwCFHjtRFMxPCj75g6r4OI3XzTYI6bAAhRS8MpRPWlqx2w9LKwYisp9WsqM0g==/ip_v5/12.m3u8?b_app_channel_id=12\u0026b_app_id=spbtv\u0026b_device_platform=desktop\u0026b_device_uid=46.164.176.221\u0026b_stream_sid=853be2a5-b477-4a63-9fc7-bef9b4047004\u0026b_stream_type=stream_channel\u0026b_strmr_channel_id=12

Via VLC it play ok. But when I play it via Movian it fails. It's beacause of incorrect extraction of base url for varian links.

Movian uses http://spbtv.cdn.spbtv.com as the base url, while base url should be the past to the lastIndexOf('/') ie:

http://spbtv.cdn.spbtv.com/eyJzZXNzaW9uX2lkIjoiODUzYmUyYTUtYjQ3Ny00YTYzLTlmYzctYmVmOWI0MDQ3MDA0IiwiZG9tYWluX25hbWUiOiJzcGJ0di5jZG4uc3BidHYuY29tIiwiaXBfYWRkcmVzcyI6IjQ2LjE2NC4xNzYuMjIxIiwiZXhwaXJhdGlvbl9kYXRlIjoiMjAxNS0wNi0wM1QxMjo1Nzo1OFoiLCJzdHJlYW1fbmFtZSI6IjEyIiwic3RyZWFtX3BhdGgiOiIvaXBfdjUiLCJkYXRhY2VudGVyIjoibXNrIn0=/MCwCFHjtRFMxPCj75g6r4OI3XzTYI6bAAhRS8MpRPWlqx2w9LKwYisp9WsqM0g==/ip_v5/

Associated revisions

Revision 1249785e
Added by Andreas Smas over 5 years ago

Increase buffersize for path component in URL

refs #2667

Change included in version 4.9.502

History

#1 Updated by Leonid Protasov over 5 years ago

In fact in Wireshark I see that VLC requests:

GET /eyJzZXNzaW9uX2lkIjoiODUzYmUyYTUtYjQ3Ny00YTYzLTlmYzctYmVmOWI0MDQ3MDA0IiwiZG9tYWluX25hbWUiOiJzcGJ0di5jZG4uc3BidHYuY29tIiwiaXBfYWRkcmVzcyI6IjQ2LjE2NC4xNzYuMjIxIiwiZXhwaXJhdGlvbl9kYXRlIjoiMjAxNS0wNi0wM1QxMjo1Nzo1OFoiLCJzdHJlYW1fbmFtZSI6IjEyIiwic3RyZWFtX3BhdGgiOiIvaXBfdjUiLCJkYXRhY2VudGVyIjoibXNrIn0=/MCwCFHjtRFMxPCj75g6r4OI3XzTYI6bAAhRS8MpRPWlqx2w9LKwYisp9WsqM0g==/ip_v5/12-138k.m3u8

#2 Updated by Andreas Smas over 5 years ago

  • Status changed from New to Need feedback

Returns: HTTP/1.1 401 Unauthorized

#3 Updated by Leonid Protasov over 5 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

Fixed in 4.9.501.

Also available in: Atom PDF