Hi all!
i am new in ionic framewrok.i using StreamingMedia to play video, but when i run on real device then i got this error: MediaPlayer Error: Unknown (1) 0
-my code:
playVideo() {
const options: StreamingVideoOptions = {
errorCallback: function (e) {
console.log(‘ERROR play video: ’ + e);
},
successCallback: function () {
console.log(‘Success play video’);
},
orientation: ‘landscape’,
controls: true
};
this.stream.playVideo(’/assets/video.mp4’, options);
}
Please help me to fix the error!
Thanks.