serve content via http to vlc

Manuel <[email protected]> Wed, 29 Oct 2014 00:29:08 +0000
Newsgroups gmane.comp.video.videolan.vlc.general
Message-ID <CAEgLyh9Dr2tKM_L1qucnZ80pRC+og6HnpGYEXN=nbT12im2D9g@mail.gmail.com>
--===============8761419845736193767==
Content-Type: multipart/alternative; boundary=001a113e3b24256879050684daeb

--001a113e3b24256879050684daeb
Content-Type: text/plain; charset=UTF-8

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

--001a113e3b24256879050684daeb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I tried to serve content via http t=
o vlc but failed.</div><div><br></div><div>bellow the first headers vlc sen=
d. The Line with content-range is the header I set.</div><div>I send vlc 64=
KiByte blocks of data.</div><div><br></div><div>What I dont understand is:<=
/div><div>why vlc queries for the last few bytes of the file (1:)</div><div=
><br></div><div>And then (2:) ask for 8096-</div><div>I send the Range 8096=
-73631</div><div>but then (3:) vlc then asks for 107524-</div><div><br></di=
v><div>What I am doing wrong?</div><div><br></div><div>I also tried with Ch=
rome (<span style=3D"color:rgb(48,57,66);font-family:&#39;Lucida Grande&#39=
;,sans-serif;font-size:12px">Version 40.0.2199.0 canary (64-bit))=C2=A0</sp=
an>this actually works. Requests are attached.</div><div><br></div><div>Tha=
nks for your help.</div><div><br></div><div>0:</div><div><div>{ host: &#39;=
<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>&#39;,</div><div>=C2=
=A0 &#39;user-agent&#39;: &#39;VLC/3.0.0-git LibVLC/3.0.0-git&#39;,</div><d=
iv>=C2=A0 range: &#39;bytes=3D0-&#39;,</div><div>=C2=A0 connection: &#39;cl=
ose&#39;,</div><div>=C2=A0 &#39;icy-metadata&#39;: &#39;1&#39; }</div><div>=
Content-Range bytes 0-65535/337974513</div><div><br></div><div>1:</div><div=
>{ host: &#39;<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>&#39;,<=
/div><div>=C2=A0 &#39;user-agent&#39;: &#39;VLC/3.0.0-git LibVLC/3.0.0-git&=
#39;,</div><div>=C2=A0 range: &#39;bytes=3D337968724-&#39;,</div><div>=C2=
=A0 connection: &#39;close&#39;,</div><div>=C2=A0 &#39;icy-metadata&#39;: &=
#39;1&#39; }</div><div>Content-Range bytes 337968724-337974512/337974513</d=
iv><div><br></div><div>2:</div><div>{ host: &#39;<a href=3D"http://127.0.0.=
1:12202">127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 &#39;user-agent&#39;: &=
#39;VLC/3.0.0-git LibVLC/3.0.0-git&#39;,</div><div>=C2=A0 range: &#39;bytes=
=3D8096-&#39;,</div><div>=C2=A0 connection: &#39;close&#39;,</div><div>=C2=
=A0 &#39;icy-metadata&#39;: &#39;1&#39; }</div><div>Content-Range bytes 809=
6-73631/337974513</div><div><br></div><div>3:</div><div>{ host: &#39;<a hre=
f=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 &#3=
9;user-agent&#39;: &#39;VLC/3.0.0-git LibVLC/3.0.0-git&#39;,</div><div>=C2=
=A0 range: &#39;bytes=3D107524-&#39;,</div><div>=C2=A0 connection: &#39;clo=
se&#39;,</div><div>=C2=A0 &#39;icy-metadata&#39;: &#39;1&#39; }</div><div>C=
ontent-Range bytes 107524-173059/337974513</div><div><br></div></div><div><=
br></div><div><br></div><div><br></div><div>// http request with chrome</di=
v><div><br></div><div><div>{ host: &#39;<a href=3D"http://127.0.0.1:12202">=
127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 connection: &#39;keep-alive&#39;=
,</div><div>=C2=A0 pragma: &#39;no-cache&#39;,</div><div>=C2=A0 &#39;cache-=
control&#39;: &#39;no-cache&#39;,</div><div>=C2=A0 accept: &#39;text/html,a=
pplication/xhtml+xml,application/xml;q=3D0.9,image/webp,*/*;q=3D0.8&#39;,</=
div><div>=C2=A0 dnt: &#39;1&#39;,</div><div>=C2=A0 &#39;accept-encoding&#39=
;: &#39;gzip, deflate, sdch&#39;,</div><div>=C2=A0 &#39;accept-language&#39=
;: &#39;de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4&#39; }</div><div>Content-=
Range bytes 0-65535/337974513</div><div><br></div><div><br></div><div>{ hos=
t: &#39;<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>&#39;,</div><=
div>=C2=A0 connection: &#39;keep-alive&#39;,</div><div>=C2=A0 pragma: &#39;=
no-cache&#39;,</div><div>=C2=A0 &#39;cache-control&#39;: &#39;no-cache&#39;=
,</div><div>=C2=A0 &#39;accept-encoding&#39;: &#39;identity;q=3D1, *;q=3D0&=
#39;,</div><div>=C2=A0 accept: &#39;*/*&#39;,</div><div>=C2=A0 dnt: &#39;1&=
#39;,</div><div>=C2=A0 referer: &#39;<a href=3D"http://127.0.0.1:12202/">ht=
tp://127.0.0.1:12202/</a>&#39;,</div><div>=C2=A0 &#39;accept-language&#39;:=
 &#39;de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4&#39;,</div><div>=C2=A0 rang=
e: &#39;bytes=3D0-&#39; }</div><div>Content-Range bytes 0-65535/337974513</=
div><div><br></div><div><br></div><div>{ host: &#39;<a href=3D"http://127.0=
.0.1:12202">127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 connection: &#39;kee=
p-alive&#39;,</div><div>=C2=A0 accept: &#39;*/*&#39;,</div><div>=C2=A0 dnt:=
 &#39;1&#39;,</div><div>=C2=A0 &#39;accept-encoding&#39;: &#39;gzip, deflat=
e, sdch&#39;,</div><div>=C2=A0 &#39;accept-language&#39;: &#39;de-DE,de;q=
=3D0.8,en-US;q=3D0.6,en;q=3D0.4&#39; }</div><div>Content-Range bytes 0-6553=
5/337974513</div><div><br></div><div><br></div><div>{ host: &#39;<a href=3D=
"http://127.0.0.1:12202">127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 connect=
ion: &#39;keep-alive&#39;,</div><div>=C2=A0 pragma: &#39;no-cache&#39;,</di=
v><div>=C2=A0 &#39;cache-control&#39;: &#39;no-cache&#39;,</div><div>=C2=A0=
 &#39;accept-encoding&#39;: &#39;identity;q=3D1, *;q=3D0&#39;,</div><div>=
=C2=A0 accept: &#39;*/*&#39;,</div><div>=C2=A0 dnt: &#39;1&#39;,</div><div>=
=C2=A0 referer: &#39;<a href=3D"http://127.0.0.1:12202/">http://127.0.0.1:1=
2202/</a>&#39;,</div><div>=C2=A0 &#39;accept-language&#39;: &#39;de-DE,de;q=
=3D0.8,en-US;q=3D0.6,en;q=3D0.4&#39;,</div><div>=C2=A0 range: &#39;bytes=3D=
65535-&#39; }</div><div>Content-Range bytes 65535-131070/337974513</div><di=
v><br></div><div><br></div><div>{ host: &#39;<a href=3D"http://127.0.0.1:12=
202">127.0.0.1:12202</a>&#39;,</div><div>=C2=A0 connection: &#39;keep-alive=
&#39;,</div><div>=C2=A0 pragma: &#39;no-cache&#39;,</div><div>=C2=A0 &#39;c=
ache-control&#39;: &#39;no-cache&#39;,</div><div>=C2=A0 &#39;accept-encodin=
g&#39;: &#39;identity;q=3D1, *;q=3D0&#39;,</div><div>=C2=A0 accept: &#39;*/=
*&#39;,</div><div>=C2=A0 dnt: &#39;1&#39;,</div><div>=C2=A0 referer: &#39;<=
a href=3D"http://127.0.0.1:12202/">http://127.0.0.1:12202/</a>&#39;,</div><=
div>=C2=A0 &#39;accept-language&#39;: &#39;de-DE,de;q=3D0.8,en-US;q=3D0.6,e=
n;q=3D0.4&#39;,</div><div>=C2=A0 range: &#39;bytes=3D131070-&#39; }</div><d=
iv>Content-Range bytes 131070-196605/337974513</div><div><br></div><div><br=
></div><div>{ host: &#39;<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202=
</a>&#39;,</div><div>=C2=A0 connection: &#39;keep-alive&#39;,</div><div>=C2=
=A0 pragma: &#39;no-cache&#39;,</div><div>=C2=A0 &#39;cache-control&#39;: &=
#39;no-cache&#39;,</div><div>=C2=A0 &#39;accept-encoding&#39;: &#39;identit=
y;q=3D1, *;q=3D0&#39;,</div><div>=C2=A0 accept: &#39;*/*&#39;,</div><div>=
=C2=A0 dnt: &#39;1&#39;,</div><div>=C2=A0 referer: &#39;<a href=3D"http://1=
27.0.0.1:12202/">http://127.0.0.1:12202/</a>&#39;,</div><div>=C2=A0 &#39;ac=
cept-language&#39;: &#39;de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4&#39;,</d=
iv><div>=C2=A0 range: &#39;bytes=3D196605-&#39; }</div><div>Content-Range b=
ytes 196605-262140/337974513</div></div><div><br></div></div>

--001a113e3b24256879050684daeb--

--===============8761419845736193767==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

______________________________________________________
vlc mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc

--===============8761419845736193767==--