我必須問題才能播放視頻橫向全屏模式。請幫助我以橫向全屏顯示視頻。在Ionic App中播放橫向全屏幕視頻
我使用下面的代碼來查看Ionic中的模板。
<ion-view view-title="Poem" hide-nav-bar="true">
<div class="modal transparent fullscreen-player">
<video id="myvideo" ng-src="{{clipSrc}}" class="centerme" controls="controls" autoplay poster="{{bg}}"></video>
</div>
</ion-view>
控制器代碼如下:
.controller('PoemDetailCtrl', function($scope) {
$scope.clipSrc = '/android_asset/www/video/demo.mp4'
$scope.bg = 'img/poems/01.png';
var video = document.getElementById("myvideo");
if (video.requestFullscreen) {
video.requestFullscreen();
} else if (video.msRequestFullscreen) {
video.msRequestFullscreen();
} else if (video.mozRequestFullScreen) {
video.mozRequestFullScreen();
} else if (video.webkitRequestFullscreen) {
video.webkitRequestFullscreen();
}
})
我得到了下面的輸出,在Android設備
我想輸出默認如下:
有你安裝任何插件,播放視頻文件中的離子framework..other比媒體插件 –
沒有我不使用這裏的任何插件,我使用HTML5視頻標籤 –
我試着用你的代碼中起視頻文件離子框架..視頻本身不玩這就是爲什麼我問你是否使用任何插件....你可以請把你的代碼在github –