americosfacebook / googletv-issues

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

Streaming HTTPS is BLOCKED for MediaPlayer #157

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attached is the error log and source code when I try to append an Auth header 
to stream a source of HTTPS content from the internet. Please kindly help to 
look into this issue.

Original issue reported on code.google.com by sungc...@gmail.com on 21 Mar 2013 at 3:42

Attachments:

GoogleCodeExporter commented 8 years ago
Your code is rather hard to read, why are you using all the reflection calls?

From what I see, you are trying to call:
public void setDataSource (Context context, Uri uri, Map<String, String> 
headers)

This method is only available starting API Level 14.

Please instead use the method: public void setDataSource (Context context, Uri 
uri)
Yes I know, with this method you will not be able to pass custom headers to the 
request.

There is no such "custom headers" method in the API Level 13 (Google TV)

Original comment by c...@google.com on 21 Mar 2013 at 5:38

GoogleCodeExporter commented 8 years ago
If there was no method available why doesn't throw and error when I tried 
calling this method. Obviously, the method is hidden, that is why the 
reflection calls. If the method is presented why couldn't it be exposed for use 
of HTTPS streaming?

I just couldn't understand why would the team decide to block this custom 
header for google tv where the streaming is happening.

Original comment by sungc...@gmail.com on 28 Mar 2013 at 5:15

GoogleCodeExporter commented 8 years ago
The method you are attempting to call is not part of the public API (in API 
level 13).

There is no way in API level 13 to set custom headers for HTTPs streaming.

This feature has been introduced in later versions of Android (API level 14).

Original comment by c...@google.com on 28 Mar 2013 at 6:22

GoogleCodeExporter commented 8 years ago
Okay, even if this is not a defect. Could this be a improvement that the google 
tv team can work on? Google TV is built to stream Medias, how could it possibly 
not support basic authentication header for progressive download?

Original comment by sungc...@gmail.com on 2 Apr 2013 at 9:54

GoogleCodeExporter commented 8 years ago
Android r13 (Honeycomb - API Level 13) is what Google TV is currently based on. 
Android r13 does not support HTTPS headers for streaming. 

You may enjoy watching this video from Google I/O 2012 - 
http://www.youtube.com/watch?v=sN4jUOYHVHk 

Original comment by kri...@google.com on 2 Apr 2013 at 3:33