I m building an ionic application where I am trying to integrated live streaming into my app using rtmp stream. It will open the player but the Video is not playing.
Here is my code:
import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
@IonicPage()
@Component({
selector: 'page-media',
templateUrl: 'media.html',
})
export class MediaPage {
constructor() {
}
start(){
alert("start video");
(<any>window).videoStreamer.streamRTMP
('rtmp://103.130.188.26:1935/ntv/live/live1',alert('success'),
alert('failed')).onConnectionSuccess((data)=>alert(data))
.onError((data)=>alert(data));
}
}