홈>
iPhone 등에서 앱을 실행할 때 비디오가 왜 실행되지 않는지 알아 내려고합니다. 그러나 Android에서 실행할 때 실행할 수 있습니다. 코르도바에 문제가 있습니까? 누구든지 같은 문제에 직면 했습니까? 감사합니다
TS :
export class PlayerVideoPage {
public source: String = '';
public title: String = '';
constructor(public navCtrl: NavController, public navParams: NavParams, public orientation: OrientationService) {
this.source = navParams.get('url');
this.title = navParams.get('title');
this.orientation.unlock()
}
dismiss() {
this.navCtrl.pop();
this.orientation.lock()
}
ngOnDestroy() {
this.orientation.lock();
}
loadVideo() {
return './assets/learn/videos/' + this.source;
}
}
HTML :
<ion-content padding>
<h4 text-center>{{title}}</h4>
<ion-grid>
<ion-row>
<video controls playsinline>
<source [src]="loadVideo()"
type='video/mp4;'/>
</video>
</ion-row>
<ion-row class="button-controls">
<button ion-button icon-only round (click)="dismiss()">
<ion-icon name="close"></ion-icon>
</button>
</ion-row>
</ion-grid>
</ion-content>
iOS :
Android :
- 답변 # 1
관련 질문
- javascript : React 네이티브를 사용하여 버튼 클릭 시 앱에서 글꼴 크기를 변경하는 방법
- android : 이전에 설치된 모바일 앱의 새 버전을 테스트하는 방법
- Android Studio에 iPhone을 어떻게 추가합니까?
- Flutter 및 Android 스튜디오
- android : React Native Debugger에서 소스맵이 작동하지 않음
- 최신 브라우저, Android 및 IOS에는 어떤 종류의 글꼴 파일이 필요합니까?
- android : flutter:-내 code를 실행하려고 할 때 ID가 존재하지 않습니다.
- android : Flutter는 이상한 양수 하단 패딩과 음수 상단 패딩으로 중국어 텍스트를 렌더링하므로 텍스트를 세로로 가운데에 맞출 수 없습니다.
- android : 여러 앱/인증서와 Fastlane 일치
- android : ionic v6 Cordova에서 SYSTEM_ALERT_WINDOW를 사용하는 방법
config.xml
에 아래 줄을 추가 할 수 있습니다 :config.xml