我正在使用图书馆video.js。我使用了网站上的示例代码:
<video id="my-video" class="video-js vjs-default-skin" controls
preload="auto" width="1000" height="600" data-setup='{ "playbackRates": [1,
1.5, 2] }'>
<source src="file\undefined\1501667652598.mp4" type="video/mp4">
</video>
并添加了scripts / css:
<link href="http://vjs.zencdn.net/6.2.4/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/6.2.4/video.js"></script>
当我直接刷新页面时,它工作正常。但如果我改变状态,它默认为常规视频播放器。我面临的问题可能是什么?
州定义如下:
angular.module("pamm").config(function ($stateProvider) {
$stateProvider
.state("user.topic", {
url: "/topic",
views: {
"content@user": {
templateUrl: "feature/user/topic/topic-list.html"
}
},
params: {
section: null,
type: null
}
})
.state("user.topic.details", {
url: "/details/:id",
views: {
"content@user": {
templateUrl: "feature/user/topic/topic-details.html"
}
},
params: {course: null}
})
.state("user.topic.result", {
url: "/result",
views: {
"content@user": {
templateUrl: "feature/user/topic/topic-result.html"
}
}
})
});