forked from naver/egjs-view360
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: fix videojs demo not working on iOS
- Loading branch information
Showing
3 changed files
with
8 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,15 +6,15 @@ | |
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | ||
<title>eg.view360 examples Video.js with view360</title> | ||
<link rel="stylesheet" type="text/css" href="../../../common/css/demo.css"> | ||
<link href="https://vjs.zencdn.net/5.4.6/video-js.css" rel="stylesheet" type="text/css"> | ||
<link href="https://vjs.zencdn.net/7.17.0/video-js.css" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" type="text/css" href="../../../common/css/PanoControls.css"> | ||
|
||
<script src="../../../common/js/jquery-2.2.4.js"></script> | ||
<script src="../../../common/js/codepen.js"></script> | ||
<script src="../../../common/js/qrcode.js"></script> | ||
<script src="../../../common/js/PieView.js"></script> | ||
<script src="../../../common/js/screenfull.min.js"></script> | ||
<script src="https://vjs.zencdn.net/5.4.6/video.js"></script> | ||
<script src="https://vjs.zencdn.net/7.17.0/video.js"></script> | ||
<script src="../../../release/latest/dist/view360.pkgd.js"></script> | ||
<script src="../../../common/js/PanoControls.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js"></script> | ||
|
@@ -168,15 +168,13 @@ <h2>You can use video.js with view360.</h2> | |
</div> | ||
</body> | ||
<script> | ||
var video = document.querySelector(".viewer video"); | ||
|
||
videojs("video").ready(function () { | ||
videojs("video").ready(function () { | ||
var video = document.querySelector(".viewer video"); | ||
var videoContainer = document.querySelector("#video"); | ||
var view360Container = document.createElement('div'); | ||
|
||
view360Container.className = "container"; | ||
videoContainer.insertBefore(view360Container, videoContainer.firstChild); | ||
// video.style.display = "none"; | ||
|
||
var panoViewer = new eg.view360.PanoViewer(view360Container, | ||
{ | ||
|
@@ -185,7 +183,7 @@ <h2>You can use video.js with view360.</h2> | |
useZoom: false, | ||
} | ||
); | ||
window.panoViewer | ||
|
||
window.addEventListener("resize", function() { | ||
panoViewer.updateViewportDimensions(); | ||
}); | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters