2

我已经关注了这个页面。这只是显示黑屏而不是播放视频。这是我的代码

   vm.config = {
            sources: [
                {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.mp4"), type: "video/mp4"},
                {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.webm"), type: "video/webm"},
                {src: $sce.trustAsResourceUrl("http://static.videogular.com/assets/videos/videogular.ogg"), type: "video/ogg"}
            ],
            tracks: [
                {
                    src: "http://www.videogular.com/assets/subs/pale-blue-dot.vtt",
                    kind: "subtitles",
                    srclang: "en",
                    label: "English",
                    default: ""
                }
            ],
            theme: "components/videogular-themes-default/videogular.css",
            plugins: {
                poster: "http://www.videogular.com/assets/images/videogular.png"
            }
        };

和 HTML 是

    <videogular vg-theme="vm.config.theme">
        <vg-media vg-src="vm.config.sources"
                vg-tracks="vm.config.tracks">
        </vg-media>
      </videogular>

我的视频版本是 "name": "videogular", "version": "1.4.4", ,角度版本是"angular": "^1.5.0",

4

0 回答 0