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:'Lucida Grande'=
;,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: '=
<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>',</div><div>=C2=
=A0 'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',</div><d=
iv>=C2=A0 range: 'bytes=3D0-',</div><div>=C2=A0 connection: 'cl=
ose',</div><div>=C2=A0 'icy-metadata': '1' }</div><div>=
Content-Range bytes 0-65535/337974513</div><div><br></div><div>1:</div><div=
>{ host: '<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>',<=
/div><div>=C2=A0 'user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git&=
#39;,</div><div>=C2=A0 range: 'bytes=3D337968724-',</div><div>=C2=
=A0 connection: 'close',</div><div>=C2=A0 'icy-metadata': &=
#39;1' }</div><div>Content-Range bytes 337968724-337974512/337974513</d=
iv><div><br></div><div>2:</div><div>{ host: '<a href=3D"http://127.0.0.=
1:12202">127.0.0.1:12202</a>',</div><div>=C2=A0 'user-agent': &=
#39;VLC/3.0.0-git LibVLC/3.0.0-git',</div><div>=C2=A0 range: 'bytes=
=3D8096-',</div><div>=C2=A0 connection: 'close',</div><div>=C2=
=A0 'icy-metadata': '1' }</div><div>Content-Range bytes 809=
6-73631/337974513</div><div><br></div><div>3:</div><div>{ host: '<a hre=
f=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>',</div><div>=C2=A0 =
9;user-agent': 'VLC/3.0.0-git LibVLC/3.0.0-git',</div><div>=C2=
=A0 range: 'bytes=3D107524-',</div><div>=C2=A0 connection: 'clo=
se',</div><div>=C2=A0 'icy-metadata': '1' }</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: '<a href=3D"http://127.0.0.1:12202">=
127.0.0.1:12202</a>',</div><div>=C2=A0 connection: 'keep-alive'=
,</div><div>=C2=A0 pragma: 'no-cache',</div><div>=C2=A0 'cache-=
control': 'no-cache',</div><div>=C2=A0 accept: 'text/html,a=
pplication/xhtml+xml,application/xml;q=3D0.9,image/webp,*/*;q=3D0.8',</=
div><div>=C2=A0 dnt: '1',</div><div>=C2=A0 'accept-encoding'=
;: 'gzip, deflate, sdch',</div><div>=C2=A0 'accept-language'=
;: 'de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4' }</div><div>Content-=
Range bytes 0-65535/337974513</div><div><br></div><div><br></div><div>{ hos=
t: '<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202</a>',</div><=
div>=C2=A0 connection: 'keep-alive',</div><div>=C2=A0 pragma: '=
no-cache',</div><div>=C2=A0 'cache-control': 'no-cache'=
,</div><div>=C2=A0 'accept-encoding': 'identity;q=3D1, *;q=3D0&=
#39;,</div><div>=C2=A0 accept: '*/*',</div><div>=C2=A0 dnt: '1&=
#39;,</div><div>=C2=A0 referer: '<a href=3D"http://127.0.0.1:12202/">ht=
tp://127.0.0.1:12202/</a>',</div><div>=C2=A0 'accept-language':=
'de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4',</div><div>=C2=A0 rang=
e: 'bytes=3D0-' }</div><div>Content-Range bytes 0-65535/337974513</=
div><div><br></div><div><br></div><div>{ host: '<a href=3D"http://127.0=
.0.1:12202">127.0.0.1:12202</a>',</div><div>=C2=A0 connection: 'kee=
p-alive',</div><div>=C2=A0 accept: '*/*',</div><div>=C2=A0 dnt:=
'1',</div><div>=C2=A0 'accept-encoding': 'gzip, deflat=
e, sdch',</div><div>=C2=A0 'accept-language': 'de-DE,de;q=
=3D0.8,en-US;q=3D0.6,en;q=3D0.4' }</div><div>Content-Range bytes 0-6553=
5/337974513</div><div><br></div><div><br></div><div>{ host: '<a href=3D=
"http://127.0.0.1:12202">127.0.0.1:12202</a>',</div><div>=C2=A0 connect=
ion: 'keep-alive',</div><div>=C2=A0 pragma: 'no-cache',</di=
v><div>=C2=A0 'cache-control': 'no-cache',</div><div>=C2=A0=
'accept-encoding': 'identity;q=3D1, *;q=3D0',</div><div>=
=C2=A0 accept: '*/*',</div><div>=C2=A0 dnt: '1',</div><div>=
=C2=A0 referer: '<a href=3D"http://127.0.0.1:12202/">http://127.0.0.1:1=
2202/</a>',</div><div>=C2=A0 'accept-language': 'de-DE,de;q=
=3D0.8,en-US;q=3D0.6,en;q=3D0.4',</div><div>=C2=A0 range: 'bytes=3D=
65535-' }</div><div>Content-Range bytes 65535-131070/337974513</div><di=
v><br></div><div><br></div><div>{ host: '<a href=3D"http://127.0.0.1:12=
202">127.0.0.1:12202</a>',</div><div>=C2=A0 connection: 'keep-alive=
',</div><div>=C2=A0 pragma: 'no-cache',</div><div>=C2=A0 'c=
ache-control': 'no-cache',</div><div>=C2=A0 'accept-encodin=
g': 'identity;q=3D1, *;q=3D0',</div><div>=C2=A0 accept: '*/=
*',</div><div>=C2=A0 dnt: '1',</div><div>=C2=A0 referer: '<=
a href=3D"http://127.0.0.1:12202/">http://127.0.0.1:12202/</a>',</div><=
div>=C2=A0 'accept-language': 'de-DE,de;q=3D0.8,en-US;q=3D0.6,e=
n;q=3D0.4',</div><div>=C2=A0 range: 'bytes=3D131070-' }</div><d=
iv>Content-Range bytes 131070-196605/337974513</div><div><br></div><div><br=
></div><div>{ host: '<a href=3D"http://127.0.0.1:12202">127.0.0.1:12202=
</a>',</div><div>=C2=A0 connection: 'keep-alive',</div><div>=C2=
=A0 pragma: 'no-cache',</div><div>=C2=A0 'cache-control': &=
#39;no-cache',</div><div>=C2=A0 'accept-encoding': 'identit=
y;q=3D1, *;q=3D0',</div><div>=C2=A0 accept: '*/*',</div><div>=
=C2=A0 dnt: '1',</div><div>=C2=A0 referer: '<a href=3D"http://1=
27.0.0.1:12202/">http://127.0.0.1:12202/</a>',</div><div>=C2=A0 'ac=
cept-language': 'de-DE,de;q=3D0.8,en-US;q=3D0.6,en;q=3D0.4',</d=
iv><div>=C2=A0 range: 'bytes=3D196605-' }</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==--