我有这个:
<videogular >
<vg-video vg-src="config.sources" vg-native-controls="true"></vg-video>
</videogular>
和依赖项:
'com.2fdevs.videogular',
"com.2fdevs.videogular.plugins.controls",
"com.2fdevs.videogular.plugins.overlayplay",
"com.2fdevs.videogular.plugins.buffering",
"com.2fdevs.videogular.plugins.poster"
and in the controller:
$scope.config = {
sources: [
{src: $sce.trustAsResourceUrl("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"), type: "video/mp4"},
{src: $sce.trustAsResourceUrl("http://clips.vorwaerts-gmbh.de/big_buck_bunny.webm"), type: "video/webm"},
{src: $sce.trustAsResourceUrl("http://clips.vorwaerts-gmbh.de/big_buck_bunny.ogg"), type: "video/ogg"}
],
theme: {
url: "styles/themes/default/videogular.css"
}
};
而且我看到视频栏,但是当我按播放时,声音响了,但视频消失了,这是什么问题?