Ionic live streaming

hello, i am developing a streaming application and this is my code, it doesnt reflect anything yet it seems to be right in all written, how can i make it work to live stream videos online.

//streaming medaia here
liveStream()
{
let options: StreamingVideoOptions = {
successCallback: () => { console.log(‘Finished Video’) },
errorCallback: (e) => { console.log('Error: ', e) },
orientation: ‘portrait’
};

// http://www.sample-videos.com/
this.streamingMedia.playVideo(‘http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_30mb.mp4’, options);
}

and in my html code i have

Live TV

      </div>

i wil be grateful for the positive feedback

Try to call you liveStream() in the constructor

this.liveStream();

The code is not working

Did you release this message on your console? Native: tried calling StreamingMedia.playVideo, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator Guess you should run it on your mobile device rather than using ionic serve. I just tried an example

Check this Ionic media streaming

1 Like

Thanks its working now i had to run it on device

Great! [quote=“wandie, post:6, topic:118942, full:true”]
Thanks its working now i had to run it on device
[/quote]
Cheers :beers:

Try to make the what I posted “solution” if that solves your problem so others can easily get this post without searching a long way.

i have done so already