Ionic-Framework로 작업 중이며 비디오를 재생할 때 Videogular 플러그인을 사용하고 있습니다. 하지만 iOS에서 에뮬레이션 할 때 데스크톱에서는 자동 실행되지 않습니다.iOS 용 비디오 자동 재생이 앱에서 작동하지 않습니다.
내 HTML :
<videogular vg-width="config.width"
vg-height="config.height"
vg-theme="config.theme.url"
vg-autoplay="config.autoPlay"
vg-stretch="config.stretch.value"
vg-responsive="config.responsive">
<video class='videoPlayer' controls preload='none'>
<source src='assets/videos/level1.mp4' type='video/mp4'>
<source src='assets/videos/level1.ogv' type='video/ogg'>
</video>
<vg-overlay-play>Test</vg-overlay-play>
</videogular>
모듈 : 당신은 모바일 장치에 자동 재생 할 수
angular.module('starter', [
'ionic',
'starter.controllers',
'starter.services',
"com.2fdevs.videogular",
"com.2fdevs.videogular.plugins.controls",
"com.2fdevs.videogular.plugins.overlayplay",
"com.2fdevs.videogular.plugins.buffering",
"com.2fdevs.videogular.plugins.poster"
])
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
});
})
그러면 페이스 북은 어떻게합니까 –
아무 때나 탭/클릭해야하며 동영상을 재생하기 위해 이벤트를 가져옵니다. 거의 모든 브라우저에서 문서화 된 사양입니다. 대역폭 소비를 피하기 위해 비디오를 자동 재생할 수 없으므로 다운로드를 허용해야하는 사용자 여야합니다. – elecash
음, 어떻게 든 재생할 수있었습니다. 몇 가지 일을했지만 자동 재생 = "자동 재생"기능을 추가했기 때문에 정확히 무엇을했는지 모르겠습니다. 시도한 마지막 사항이었습니다. –