我正在使用Valiant360视频播放器播放视频,但出现交叉原点错误和视频状态错误0,试图使交叉原点匿名,但仍然无法正常工作。这是我的代码
<div class="valiantContainer" data-video-src="Video.MOV" style="width: 800px; height:700px;"></div>
<script type="text/javascript" src="js/jquery-1.7.2.min.js" ></script>
<script type="text/javascript" src="js/three.min.js"></script>
<!-- Valiant360 plugin, load after jQuery and Three.js -->
<script type="text/javascript" src="jquery.valiant360.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('.valiantContainer').Valiant360({
crossOrigin: 'anonymous', // valid keywords: 'anonymous' or 'use-credentials'
clickAndDrag: false, // use click-and-drag camera controls
keyboardControls: true, // use keyboard controls (move by arrows)
flatProjection: false, // map image to appear flat (often more distorted)
fov: 35, // initial field of view
fovMin: 3, // min field of view allowed
fovMax: 100, // max field of view allowed
hideControls: false, // hide player controls
lon: 0, // initial lon for camera angle
lat: 0, // initial lat for camera angle
loop: "loop", // video loops by default
muted: true, // video muted by default
volume: 0.5, // video volume by default
autoplay: true // video autoplays by default
});
// play video
$('.valiantContainer').Valiant360('play');
// pause video
$('.valiantContainer').Valiant360('pause');
});
</script>