Closed Bug 1118151 Opened 9 years ago Closed 9 years ago

Can't play MPEG-DASH / Media Source demo on Gonk

Categories

(Core :: Audio/Video, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: ayang, Assigned: ayang)

References

Details

1. enable MSE/MP4 preference
2. http://dash-mse-test.appspot.com/dash-player.html

It shows message "3, 'Implausible duration from video element: NaN"
Nightly firefox is ok.
Assignee: nobody → ayang
2015-01-09 06:14:13.556524 UTC - -1225637548[b6a4a080]: MediaSource(b2312940)::MediaSource(aWindow=b3a970f0) mSourceBuffers=b2315070 mActiveSourceBuffers=b23150a0
2015-01-09 06:14:13.670328 UTC - -1225637548[b6a4a080]: b3a83a70 Network state changed to NO_SOURCE
2015-01-09 06:14:13.671510 UTC - -1225637548[b6a4a080]: b3a83a70 ChangeDelayLoadStatus(1) doc=0x0
2015-01-09 06:14:13.671802 UTC - -1225637548[b6a4a080]: b3a83a70 Network state changed to LOADING
2015-01-09 06:14:13.672173 UTC - -1225637548[b6a4a080]: b3a83a70 Trying load from src=mediasource:http://dash-mse-test.appspot.com/1ef8e02c-ff77-4f32-a338-f81f613108b4
2015-01-09 06:14:13.672358 UTC - -1225637548[b6a4a080]: b3a83a70 Network state changed to IDLE
2015-01-09 06:14:13.672647 UTC - -1225637548[b6a4a080]: b3a83a70 ChangeDelayLoadStatus(0) doc=0xb2588800
2015-01-09 06:17:19.691741 UTC - -1225637548[b6a4a080]: MediaSource(b224d040)::MediaSource(aWindow=b3a955c0) mSourceBuffers=b2545670 mActiveSourceBuffers=b25456a0
2015-01-09 06:17:19.773859 UTC - -1225637548[b6a4a080]: b3a83900 Network state changed to NO_SOURCE
2015-01-09 06:17:19.774671 UTC - -1225637548[b6a4a080]: b3a83900 ChangeDelayLoadStatus(1) doc=0x0
2015-01-09 06:17:19.774780 UTC - -1225637548[b6a4a080]: b3a83900 Network state changed to LOADING
2015-01-09 06:17:19.774948 UTC - -1225637548[b6a4a080]: b3a83900 Trying load from src=mediasource:http://dash-mse-test.appspot.com/8053b348-839c-47d4-ae6f-5398c5b4d2ec
2015-01-09 06:17:19.774984 UTC - -1225637548[b6a4a080]: b3a83900 Network state changed to IDLE
2015-01-09 06:17:19.775100 UTC - -1225637548[b6a4a080]: b3a83900 ChangeDelayLoadStatus(0) doc=0xb2593800

The problem is network loading is changed to IDLE in [1] after LOADING state.

[1] https://dxr.mozilla.org/mozilla-central/source/dom/html/HTMLMediaElement.cpp#854
The root cause is the preload preference is set to none in b2g.

pref("media.preload.default", 1); // default to preload none

https://dxr.mozilla.org/mozilla-central/source/b2g/app/b2g.js#307
For your information, I can play it on my Flame without changing the pref.
(In reply to Blake Wu [:bwu][:blakewu] from comment #4)
> For your information, I can play it on my Flame without changing the pref.
BTW, I pressed the play button and it can play... :)
You need to press the play button manually due to preload is "none" in b2g. It makes sense on mobile to avoid extra network fee.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.