Skip to content

kshabunov/cordova-plugin-ios-streaming-audio

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova iOS Streaming Audio plugin

Forked from https://github.com/keosuofficial/cordova-audio-stream-plugin to tailor it for my needs.

As of today (December 2019), the popular Cordova Media plugin can not stream audio on iOS. The Cordova Streaming Media plugin can stream, but it always does it in the full-screen mode. This plugin is meant to do just one thing: playback streaming audio on iOS platform with no UI attached.

Installation

cordova plugin add https://github.com/kshabunov/cordova-plugin-ios-streaming-audio.git

Usage example

  // Create new instance
  function onStart() {
    console.log("Audio streaming started");
  }
  function onError(error) {
    console.log('Audio streaming error, code: ' + error.code + ', message: ' + error.message);
  }
  var audioStream = new AudioStream("http://your.audio/stream", onStart, onError);
  
  // Start streaming
  audioStream.play();

  // Stop streaming
  audioStream.stop();
  

About

Cordova plugin for streaming audio on iOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 69.5%
  • JavaScript 30.5%