mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 04:38:02 +00:00
Bug 1370838 - Because we need to ensure frame shown on the screen, so play the video to the end. r=jerry,jwwang
MozReview-Commit-ID: 7VPgbaozgSF --HG-- extra : rebase_source : 8fdb3c8e408dd4f8e0875f15daa7b2ded0d99552
This commit is contained in:
parent
f0c47c12cb
commit
6a5e557c75
@ -3,7 +3,18 @@
|
||||
<head>
|
||||
</head>
|
||||
<body>
|
||||
<video src="789075.webm" preload="metadata" onloadedmetadata="this.src=''; document.documentElement.className=undefined"></video>
|
||||
<video src="789075.webm" preload="metadata" id="v">
|
||||
</video>
|
||||
<!-- Note we reset 'src' to release decoder resources and cubeb streams to prevent OOM or OpenCubeb() failures. -->
|
||||
<script type="application/javascript">
|
||||
var video = document.getElementById("v");
|
||||
video.onloadeddata = function () {
|
||||
video.play();
|
||||
};
|
||||
video.onended = function () {
|
||||
video.src="";
|
||||
document.documentElement.className = undefined;
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user