Closed
Bug 1301023
Opened 10 years ago
Closed 10 years ago
mobile device mp4 videos preload = 'metadata'; are not loaded correctly by Firefox
Categories
(Core :: Audio/Video: Playback, defect, P1)
Tracking
()
RESOLVED
DUPLICATE
of bug 1269260
People
(Reporter: info, Unassigned)
Details
(Keywords: testcase-wanted)
Attachments
(3 files)
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; GWX:RED; GWX:RESERVED; rv:11.0) like Gecko
Steps to reproduce:
I have developed a JavaScript (after selected a Video file with <input type="file">)function which preloads metadata and outputs the width, height and duration values of the mp4. Also it plays after that the mp4 Video file in the Browser Background.
function setFileInfo(files) {
myVideos = [];
myVideos.push(files[0]);
var video = document.createElement('video');
video.preload = 'metadata';
video.onloadedmetadata = function() {
window.URL.revokeObjectURL(this.src);
var duration = video.duration;
var width = video.videoWidth;
var height = video.videoHeight;
myVideos[myVideos.length-1].duration = duration;
myVideos[myVideos.length-1].videoWidth = width;
myVideos[myVideos.length-1].videoHeight = height;
updateInfos();
}
Actual results:
For some mp4 Video files which are recorded with a smartphone or mobile device Firefox doesn't preload the metadata and also doesn't return any readyState. For other Video mp4 files all works fine (tested with some other demo Videos not recorded on a mobile device).
On other Browsers the metadata is loaded correctly without any problem.
In the attachment is a Media File Info created with VLC Player of the Codec format of the Video mp4 file recorded on Smartphone with the problem.
Expected results:
Firefox should correctly preload the metadata of all kind of mp4 Video files.
| Reporter | ||
Updated•10 years ago
|
Summary: mobile device mp4 videos preload = 'metadata'; not loaded → mobile device mp4 videos preload = 'metadata'; are not loaded correctly by Firefox
Could you attach a testcase (html file with your JS script) and an MP4 video sample with the issue, please. It would help to test and debug.
| Reporter | ||
Comment 2•10 years ago
|
||
Here is a mp4 Video recorded on a smartphone. In the meanwhile I deteted an the console the error message:
HTTP-Content-Type "video/3gpp" wird nicht unterstützt. Laden der
Medium konnte nicht abgespielt werden. Keine Dekoder für angefragte Formate: video/3gpp, video/3gpp
So it has something to do with Support for video/3gpp Format which is used by Smartphone Video formats.
Comment 3•10 years ago
|
||
Can you save me the trouble and provide a URL that reproduces the issue?
Priority: -- → P1
| Reporter | ||
Comment 4•10 years ago
|
||
you should try this:
### copy this and create a html file ###
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script type="text/javascript">
function setFileInfo(files) {
myVideos = [];
myVideos.push(files[0]);
var video = document.createElement('video');
video.preload = 'metadata';
video.onloadedmetadata = function() {
// here no metadata preloaded for 3gpp Video codecs
alert(video.readyState); // here firefox should give a value "1" for readyState as other browsers do, see console error message "video/3gpp not supported..."
window.URL.revokeObjectURL(this.src);
}
video.src = URL.createObjectURL(files[0]);
}
</script>
<body>
<input type="file" onchange="setFileInfo(files);" />
</body>
</html>
###
If you try this with the attached "mov_0007.mp4" file you will see the error. If you use another mp4 file with h264 video codec there is no error. If you try this with other Browsers tehre are no Errors the metadata is loaded.
You should enable also 3gpp as supported video Format in Firefox as this is mostly used on smartphones video recordings.
About the MP4 file:
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
I tested in 50+, it's already fixed after bug 1269260:
John Lin — Bug 1269260 - Treat 'iso?' file as MP4 video. r=jya
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Flags: needinfo?(info)
Resolution: --- → DUPLICATE
| Reporter | ||
Comment 7•10 years ago
|
||
So, where can you get this version of Firefox 50+? Is there a download because from the mozilla website you get only the 48+ version.
Sorry, it's fixed in 49+.
49 is on Beta channel at the moment and release is for 2016-09-13.
You can check the calendar here: https://wiki.mozilla.org/RapidRelease/Calendar
And for the record:
Beta: https://www.mozilla.org/en-US/firefox/beta/all/
Aurora (Developer Edition): https://www.mozilla.org/en-US/firefox/developer/all/
Nightly: https://nightly.mozilla.org/
You need to log in
before you can comment on or make changes to this bug.
Description
•