americosfacebook / googletv-issues

Automatically exported from code.google.com/p/googletv-issues
0 stars 0 forks source link

AVAPIMediaPlayer does not support Chunked Transfer Encoding #205

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Trying to stream a mpeg2_ts Live TV stream (unknown length) via http.
The data is provided using chunked tranfer encoding (header Transfer-Encoding : 
chunked)
pointing VLC to the url via network stream works without any issue.

using a HiSense pulse device to point to the http url as a datasource causes 
the following error.

I/AVAPIMediaPlayer(142): Found HTTP success.  Connection is HTTP/1.1, code was 
206 
I/AVAPIMediaPlayer(142): Found content type video/mpeg 
W/AVAPIMediaPlayer(142): Error, reached end of headers before finding required 
fields.

By looking at 
https://code.google.com/p/googletv-mirrored-source/source/browse/tv/frameworks/l
ibs/avapi_mediaplayer/http_source/gtv_curl_transfer_engine.cpp?repo=vendor

it seems that GTV requires Content-Length header and cannot deal with 
Tranfer-Encoding : chunked

however this version of the file seems to solve the issue:
https://code.google.com/p/googletv-mirrored-source/source/browse/tv/frameworks/l
ibs/avapi_mediaplayer/http_source/gtv_curl_transfer_engine.cpp?repo=vendor&r=b5b
a2dc7eef0afefa66cade0d837442675ba8066

Original issue reported on code.google.com by sebastie...@gmail.com on 22 Oct 2013 at 1:17

GoogleCodeExporter commented 8 years ago
The version of the file which supports Transfer-Encoding : chunked 
(https://code.google.com/p/googletv-mirrored-source/source/browse/tv/frameworks/
libs/avapi_mediaplayer/http_source/gtv_curl_transfer_engine.cpp?repo=vendor&r=b5
ba2dc7eef0afefa66cade0d837442675ba8066) seems to be for the latest iteration of 
v2 however the latest v3 has removed the support. what was the rationale for 
that and what would you suggest for cases where content-length is unknown ?

Original comment by sebastie...@gmail.com on 22 Oct 2013 at 11:54