[vlc] serve content via http to vlc

Manuel informmanuel at gmail.com
Wed Oct 29 01:29:08 CET 2014


Hi,

I tried to serve content via http to vlc but failed.

bellow the first headers vlc send. The Line with content-range is the
header I set.
I send vlc 64KiByte blocks of data.

What I dont understand is:
why vlc queries for the last few bytes of the file (1:)

And then (2:) ask for 8096-
I send the Range 8096-73631
but then (3:) vlc then asks for 107524-

What I am doing wrong?

I also tried with Chrome (Version 40.0.2199.0 canary (64-bit)) this
actually works. Requests are attached.

Thanks for your help.

0:
{ host: '127.0.0.1:12202',
  'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',
  range: 'bytes=0-',
  connection: 'close',
  'icy-metadata': '1' }
Content-Range bytes 0-65535/337974513

1:
{ host: '127.0.0.1:12202',
  'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',
  range: 'bytes=337968724-',
  connection: 'close',
  'icy-metadata': '1' }
Content-Range bytes 337968724-337974512/337974513

2:
{ host: '127.0.0.1:12202',
  'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',
  range: 'bytes=8096-',
  connection: 'close',
  'icy-metadata': '1' }
Content-Range bytes 8096-73631/337974513

3:
{ host: '127.0.0.1:12202',
  'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',
  range: 'bytes=107524-',
  connection: 'close',
  'icy-metadata': '1' }
Content-Range bytes 107524-173059/337974513




// http request with chrome

{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  pragma: 'no-cache',
  'cache-control': 'no-cache',
  accept:
'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
  dnt: '1',
  'accept-encoding': 'gzip, deflate, sdch',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4' }
Content-Range bytes 0-65535/337974513


{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  pragma: 'no-cache',
  'cache-control': 'no-cache',
  'accept-encoding': 'identity;q=1, *;q=0',
  accept: '*/*',
  dnt: '1',
  referer: 'http://127.0.0.1:12202/',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
  range: 'bytes=0-' }
Content-Range bytes 0-65535/337974513


{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  accept: '*/*',
  dnt: '1',
  'accept-encoding': 'gzip, deflate, sdch',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4' }
Content-Range bytes 0-65535/337974513


{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  pragma: 'no-cache',
  'cache-control': 'no-cache',
  'accept-encoding': 'identity;q=1, *;q=0',
  accept: '*/*',
  dnt: '1',
  referer: 'http://127.0.0.1:12202/',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
  range: 'bytes=65535-' }
Content-Range bytes 65535-131070/337974513


{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  pragma: 'no-cache',
  'cache-control': 'no-cache',
  'accept-encoding': 'identity;q=1, *;q=0',
  accept: '*/*',
  dnt: '1',
  referer: 'http://127.0.0.1:12202/',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
  range: 'bytes=131070-' }
Content-Range bytes 131070-196605/337974513


{ host: '127.0.0.1:12202',
  connection: 'keep-alive',
  pragma: 'no-cache',
  'cache-control': 'no-cache',
  'accept-encoding': 'identity;q=1, *;q=0',
  accept: '*/*',
  dnt: '1',
  referer: 'http://127.0.0.1:12202/',
  'accept-language': 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4',
  range: 'bytes=196605-' }
Content-Range bytes 196605-262140/337974513
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc/attachments/20141029/fc77a3f1/attachment.html>


More information about the vlc mailing list