Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #17931 from russnicoletti/bug988037
Browse files Browse the repository at this point in the history
Bug 988037 - [B2G][Video] WebM videos attached in email do not display properly when previewed in email app r=johu
  • Loading branch information
russnicoletti committed Apr 3, 2014
2 parents c5cd3a1 + e0adfda commit 780298e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/video/js/view.js
Expand Up @@ -55,7 +55,12 @@ navigator.mozSetMessageHandler('activity', function viewVideo(activity) {
dom.player.classList.add('hidden');
// video rotation is not parsed, parse it.
getVideoRotation(blob, function(rotation) {
videoRotation = rotation;
if (typeof rotation === 'string') {
console.error('get video rotation error: ' + rotation);
videoRotation = 0;
} else {
videoRotation = rotation;
}
// show player when player size and rotation are correct.
dom.player.classList.remove('hidden');
// start to play the video that showPlayer also calls fitContainer.
Expand Down

0 comments on commit 780298e

Please sign in to comment.