Open DomTaffuri opened 4 years ago
cordova-plugin-streaming-media 2.2.0
9.0.0
Huawei P9
import { Injectable } from '@angular/core'; import { StreamingMedia, StreamingVideoOptions } from '@ionic-native/streaming-media/ngx';
@Injectable({ providedIn: 'root' }) export class RtspServiceService {
constructor( private streamingMedia: StreamingMedia ) { }
private streamLink = "xxxxx";
startRegistration() { let options: StreamingVideoOptions = { successCallback: () => { console.log('Video played') }, errorCallback: (e) => { console.log(e) }, orientation: 'landscape', shouldAutoClose: true, controls: false }; this.streamingMedia.playVideo(this.streamLink, options); }
}
Error : MediaPlayer Error : Server Died(100)
Playing the same link with VLC works perfectly.
cordova-plugin-streaming-media 2.2.0
9.0.0
Huawei P9
import { Injectable } from '@angular/core'; import { StreamingMedia, StreamingVideoOptions } from '@ionic-native/streaming-media/ngx';
@Injectable({ providedIn: 'root' }) export class RtspServiceService {
constructor( private streamingMedia: StreamingMedia ) { }
private streamLink = "xxxxx";
startRegistration() { let options: StreamingVideoOptions = { successCallback: () => { console.log('Video played') }, errorCallback: (e) => { console.log(e) }, orientation: 'landscape', shouldAutoClose: true, controls: false }; this.streamingMedia.playVideo(this.streamLink, options); }
}
Error : MediaPlayer Error : Server Died(100)
Playing the same link with VLC works perfectly.