americosfacebook / googletv-issues

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

MediaPlayer onBufferingUpdate broken. #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
So, on other android platforms (and according to the docs), the percent 
variable in onBufferingUpdate should the the percent of the video that has 
buffered. In onInfo's listener, for API level 9 and above, there should be a 
MEDIA_INFO_BUFFERING_START and MEDIA_INFO_BUFFERING_END.  However, on GOOGLETV, 
those MEDIA_INFO events are never sent down. Also, the onBufferingUpdate 
percent seems to sort of reflect those variables on googleTV. When percent is 
0-99, the media is paused due to buffering and when it reaches 100, it starts 
playing back again.

I am using GoogleTV on both the sony platform and on the REVUE, where I see 
this behavior occurring. On the android platform on the tablet, it seems to be 
behaving according to the spec.

Original issue reported on code.google.com by u...@redux.com on 28 Jan 2012 at 12:19

GoogleCodeExporter commented 8 years ago
Please clarify what you mean by "onInfo's listener". It would be nice to have 
the actual method names with links to their Android reference doc.

Original comment by mjo...@google.com on 28 Jan 2012 at 4:53

GoogleCodeExporter commented 8 years ago
This is what I mean by onInfo's listener:
http://developer.android.com/reference/android/media/MediaPlayer.OnInfoListener.
html

This is what I mean by OnBufferingUpdate:
http://developer.android.com/reference/android/media/MediaPlayer.OnBufferingUpda
teListener.html

These are methods on the OnInfoListener and OnBufferingUpdateListener 
interfaces that can be attached to a MediaPlayer object.

Original comment by u...@redux.com on 28 Jan 2012 at 7:18

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Thanks! Did you mean onInfo is broken?The title of the bug says 
onBufferingUpdate is broken, but from the description, it seems you meant 
onInfo is not behaving as expected for GoogleTV.

Original comment by meghajos@gmail.com on 30 Jan 2012 at 2:47

GoogleCodeExporter commented 8 years ago
Sorry, the title probably wasn't too specific. Actually, both seem to be 
broken. OnInfoListener doesn't send those two events: 
MEDIA_INFO_BUFFERING_START and MEDIA_INFO_BUFFERING_END. Also, in the 
onBufferingUpdate, the percent variable does not seem to indicate the percent 
of the video that has been downloaded, (which is what the docs indicate, and 
what happens on the android tablets from what I've seen), but rather it sort of 
does what the MEDIA_INFO_BUFFERING_START/MEDIA_INFO_BUFFERING_END would do in 
that the percent is 0 when it is paused due to buffering and keeps increasing 
and reaches 100 when it will resume play since it has buffered enough of the 
video to keep playing (but not necessarily the entire video). 

Thanks,
Udam

Original comment by u...@redux.com on 30 Jan 2012 at 2:56

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 31 Jan 2012 at 1:14

GoogleCodeExporter commented 8 years ago
The percent issue for onBufferingUpdate seems to be fixed in the latest update 
on the SONY TV devices that occurred recently. 
However, the MEDIA_INFO_BUFFERING_START/MEDIA_INFO_BUFFERING_END events don't 
seem to be being sent in OnInfoListener still.

Original comment by u...@redux.com on 2 Feb 2012 at 6:39

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 5 Apr 2012 at 11:51

GoogleCodeExporter commented 8 years ago

Original comment by mjo...@google.com on 10 Jul 2012 at 7:42

GoogleCodeExporter commented 8 years ago
I run into similar problem with onBufferingUpdate, on Sony NSZ GS7 (with the 
latest software), bufferPct value for mp3 internet stream file is some weird 
number, always over 10000.  

Original comment by roman.ho...@mautilus.com on 11 Oct 2012 at 10:20