Closed
Bug 1145661
Opened 10 years ago
Closed 10 years ago
Video playback statistics are not working
Categories
(Firefox OS Graveyard :: Gaia::Video, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: diego, Assigned: rnicoletti)
References
Details
(Whiteboard: [caf priority: p2][CR 810872])
Video playback statistics where added in bug 948095.
The video app is supposed to output the following statistics to the console when media.mediasource.enabled is set to true:
I/GeckoDump( 1174): Video statistics start
I/GeckoDump( 1174): Dimensions: 640x480
I/GeckoDump( 1174): Complete duration: 00:45
I/GeckoDump( 1174): Start time: 00:00
I/GeckoDump( 1174): End time: 00:01
I/GeckoDump( 1174): Total frames: 61
I/GeckoDump( 1174): Decoded frames: 60
I/GeckoDump( 1174): Corrupted frames: 1
I/GeckoDump( 1174): Rendered frames: 54
I/GeckoDump( 1174): Dropped frames: 7
I/GeckoDump( 1174): Average rendered FPS: 22.84
I/GeckoDump( 1174): Video statistics end
As per https://github.com/mozilla-b2g/gaia/blob/master/apps/video/js/video.js#L1195
Reporter | ||
Updated•10 years ago
|
Whiteboard: [CR 810872]
Updated•10 years ago
|
Whiteboard: [CR 810872] → [CR 811154][CR 810872]
Updated•10 years ago
|
Whiteboard: [CR 811154][CR 810872] → [caf priority: p2][CR 811154][CR 810872]
Reporter | ||
Updated•10 years ago
|
Whiteboard: [caf priority: p2][CR 811154][CR 810872] → [caf priority: p2][CR 810872]
Comment 1•10 years ago
|
||
Russ,
Please investigate and if this is an issue on getting the stats from the media platform side for video app, NI Sotaro or Chris pearce.
Thanks
Hema
Assignee: nobody → rnicoletti
Comment 2•10 years ago
|
||
Does this really need to block? I see zero user impact.
Flags: needinfo?(dwilson)
Reporter | ||
Comment 3•10 years ago
|
||
(In reply to Dave Hylands [:dhylands] from comment #2)
> Does this really need to block? I see zero user impact.
This is needed to take performance metrics to ensure the quality of video playback.
Flags: needinfo?(dwilson)
Assignee | ||
Comment 4•10 years ago
|
||
I've set 'media.mediasource.enabled' to '1' and to 'true' but I'm seeing that 'getVideoPlaybackQuality' is not available on the video element. I'm using 'setprop media.mediasource.enabled 1' and then I'm restarting b2g. Is that correct?
Flags: needinfo?(sotaro.ikeda.g)
Flags: needinfo?(cpearce)
Assignee | ||
Comment 5•10 years ago
|
||
I also tried adding 'user_pref("media.mediasource.enabled", true)' to prefs.js
Comment 6•10 years ago
|
||
Try setting pref media.mediasource.whitelist to false.
Flags: needinfo?(cpearce)
Comment 7•10 years ago
|
||
From the following, the exposure of getVideoPlaybackQuality() seems to be controlled by MediaSource::Enabled().
partial interface HTMLVideoElement {
[Func="mozilla::dom::MediaSource::Enabled", NewObject]
VideoPlaybackQuality getVideoPlaybackQuality();
https://dxr.mozilla.org/mozilla-central/source/dom/webidl/HTMLVideoElement.webidl#51
Flags: needinfo?(sotaro.ikeda.g)
Comment 8•10 years ago
|
||
On master, it checks "media.mediasource.enabled" and "media.mediasource.whitelist".
https://dxr.mozilla.org/mozilla-central/source/dom/media/mediasource/MediaSource.cpp#339
But on b2g v2.2, it checks "media.mediasource.enabled" and "media.mediasource.youtubeonly".
https://hg.mozilla.org/releases/mozilla-b2g37_v2_2/file/263d9f75db72/dom/media/mediasource/MediaSource.cpp
Comment 9•10 years ago
|
||
Then on master, the following enable the statistics.
> pref("media.mediasource.enabled", true);
> pref("media.mediasource.whitelist", false);
Assignee | ||
Comment 10•10 years ago
|
||
I've verified that after setting the above prefs, the video app is dumping the video statistics:
I/GeckoDump( 1912): XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
I/GeckoDump( 2585): Video statistics start
I/GeckoDump( 2585): Dimensions: 352x288
I/GeckoDump( 2585): Complete duration: 00:09
I/GeckoDump( 2585): Start time: 00:00
I/GeckoDump( 2585): End time: 00:01
I/GeckoDump( 2585): Total frames: 23
I/GeckoDump( 2585): Decoded frames: 23
I/GeckoDump( 2585): Corrupted frames: 0
I/GeckoDump( 2585): Rendered frames: 23
I/GeckoDump( 2585): Dropped frames: 0
I/GeckoDump( 2585): Average rendered FPS: 10.47
I/GeckoDump( 2585): Video statistics end
I/GeckoDump( 1912): XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
I/GeckoDump( 2585): Video statistics start
I/GeckoDump( 2585): Dimensions: 352x288
I/GeckoDump( 2585): Complete duration: 00:09
I/GeckoDump( 2585): Start time: 00:01
I/GeckoDump( 2585): End time: 00:04
I/GeckoDump( 2585): Total frames: 51
I/GeckoDump( 2585): Decoded frames: 51
I/GeckoDump( 2585): Corrupted frames: 0
I/GeckoDump( 2585): Rendered frames: 50
I/GeckoDump( 2585): Dropped frames: 1
I/GeckoDump( 2585): Average rendered FPS: 11.90
I/GeckoDump( 2585): Video statistics end
I/GeckoDump( 1912): XXX FIXME : Got a mozContentEvent: remote-debugger-prompt
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
Updated•10 years ago
|
blocking-b2g: 2.2? → ---
Reporter | ||
Comment 11•10 years ago
|
||
(In reply to Sotaro Ikeda [:sotaro] from comment #8)
> On master, it checks "media.mediasource.enabled" and
> "media.mediasource.whitelist".
>
> https://dxr.mozilla.org/mozilla-central/source/dom/media/mediasource/
> MediaSource.cpp#339
>
> But on b2g v2.2, it checks "media.mediasource.enabled" and
> "media.mediasource.youtubeonly".
Looks like this works. Thanks!
You need to log in
before you can comment on or make changes to this bug.
Description
•