Closed Bug 1079174 Opened 10 years ago Closed 10 years ago

Firefox fails to play videos on Windows if no sound-card is available

Categories

(Core :: Audio/Video, defect)

All
Windows 7
defect
Not set
normal

Tracking

()

VERIFIED FIXED
mozilla35
Tracking Status
firefox35 + verified

People

(Reporter: cosmin-malutan, Assigned: jwwang)

References

Details

(Whiteboard: [mozmill])

Attachments

(2 files)

With bug 1051658 landed, if Firefox fails to decode the audio stream the video won't be played at all. 
This is the case if you don't have a sound-card available.

The first failing build is ftp://ftp.mozilla.org/pub/firefox/tinderbox-builds/mozilla-inbound-win32/1412345616/ 

To be able to reproduce this:
1 Open a Windows machine with no sound-card (you can disable it if you're using a VM box)
1 Install the latest nightly
2 Open: http://mozqa.com/data/firefox/video/sample-video-60s.ogv

Expected: Video will play without sound

Actual result: Video won't play, error: "Video can't be played because the file is corrupt."
               And on browsers console: "Media resource http://www.mozqa.com/data/firefox/video/sample-video-60s.ogv could not be decoded."
No longer blocks: 1005847
Blocks: 1005847
(In reply to Cosmin Malutan from comment #0)
> Expected: Video will play without sound

Is this behavior common to other browsers? If so, we should make no exception for Firefox. How about playing an audio-only file without sound card installed? Does it still play without sound output or fail to play at all?
No, an audio only file won't play neither. Regarding other browsers they all play the video only if you don't have a sound-card installed and they won't bailout the video too.
[Tracking Requested - why for this release]:
Whiteboard: [mozmill]
Btw. does this only happen on Windows or also on other platforms?
Flags: needinfo?(cosmin.malutan)
Only on windows, I've checked exactly the same steps on Linux, but there it work just fine.
Flags: needinfo?(cosmin.malutan)
It looks like cubeb_wasapi will fail to init a stream when sound card not present. Per comment 0, the user expects to play video in spite of sound error. We should ignore the AudioSink error when there is still video to play.

Try: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=c7ee6f27bfac
Looks fine.
Assignee: nobody → jwwang
Status: NEW → ASSIGNED
Attachment #8501405 - Flags: review?(kinetik)
Attachment #8501405 - Flags: review?(kinetik) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/1d9f0405f64d
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
This has been fixed, it passes the test too.
Thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.