When i Use sdk 28 work but I use sdk 29 not work.
When ?
Fail we open video with streaming media and file opener pdf.
How simulator error?
android studio
-> Configure -> Sdk manager install o android 10.0 (q) close modal
-> Configure -> AVD MANGER -> CREATE VIRTUAL -> Pixel 3a XL -> NEXT -> Q -> NEXT -> FINISH
run this code
async openVideo() {
let options: CaptureVideoOptions = {
limit: 1,
duration: 5,
quality: 0
}
await this.mediaCapture.captureVideo(options).then((res: MediaFile[]) => {
this.video = res[0].fullPath;
}, (err: CaptureError) => {
console.error(err);
});
}
startVideo(video) {
let options: StreamingVideoOptions = {
successCallback: () => { console.log("Success") },
errorCallback: (error) => {
console.log("Video Start Fail")
console.log(error)
},
orientation: 'portrait',
shouldAutoClose: true,
controls: true
}
this.streamingMedia.playVideo(video, options);
}
ionic cordova emulate android.
1 post - 1 participant