Skip to main content
Version: v5

Streaming Media

This plugin allows you to stream audio and video in a fullscreen, native player on iOS and Android.

https://github.com/nchutchind/cordova-plugin-streaming-media

Stuck on a Cordova issue?

Don't waste precious time on plugin issues.

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Installation

$ npm install cordova-plugin-streaming-media 
$ npm install @awesome-cordova-plugins/streaming-media
$ ionic cap sync

Supported Platforms

  • Amazon Fire OS
  • Android
  • iOS

Usage

React

Learn more about using Ionic Native components in React

Angular

import { StreamingMedia, StreamingVideoOptions } from '@awesome-cordova-plugins/streaming-media/ngx';

constructor(private streamingMedia: StreamingMedia) { }

let options: StreamingVideoOptions = {
successCallback: () => { console.log('Video played') },
errorCallback: (e) => { console.log('Error streaming') },
orientation: 'landscape',
shouldAutoClose: true,
controls: false
};

this.streamingMedia.playVideo('https://path/to/video/stream', options);