React Native Audio Streaming

screenshot of React Native Audio Streaming
react-native

iOS & Android react native module to play an audio stream, with background support and media controls

Overview

The react-native-audio-streaming project is no longer maintained and was designed for playing shoutcast streams with meta data. It featured background audio streaming of remote streams, control via sticky notification on Android and media center on iOS, shoutcast/Icy meta data support, and a simple UI player component. Users interested in playing local audio or recording may consider exploring other projects like jsierles/react-native-audio or zmxv/react-native-sound.

Features

  • Background audio streaming of remote stream
  • Control via sticky notification on Android and media center on iOS
  • Shoutcast/Icy meta data support
  • Simple UI player component with available API for sound control

First installation step (for both iOS & Android)

$ npm install react-native-audio-streaming --save

iOS Installation Options:

  1. Cocoapods installation:
pod 'RNAudioStreaming', :path => '../node_modules/react-native-audio-streaming'
pod install
  1. Mostly automatic installation:
$ react-native link react-native-audio-streaming
  1. Manual installation:
  • Add ReactNativeAudioStreaming.xcodeproj to XCode project
  • Add libReactNativeAudioStreaming.a and libStreamingKit.a to project's Build Phases

Final steps for iOS:

  • Add $(SRCROOT)/../node_modules/react-native-audio-streaming/ios to project's Header Search Paths
  • Update Info.plist file to add audio background mode

Android Installation:

  • Update MainApplication.java and MainAcitivity.java with necessary imports and package additions
  • Update android/settings.gradle with project dependencies
  • Update android/app/build.gradle with additional dependencies

Summary

The react-native-audio-streaming project, focused on playing shoutcast streams, is no longer maintained. Users seeking similar functionality for local audio playback or recording are recommended to explore alternative projects like jsierles/react-native-audio or zmxv/react-native-sound. The features of this project included background audio streaming, control via notifications, support for shoutcast meta data, and a simple UI player component. Installation involves npm installation and platform-specific steps for both iOS and Android.

react-native
React Native

React Native is a framework for building mobile applications using React and JavaScript. It enables developers to write once and deploy to multiple platforms, including iOS, Android, and the web, while providing a native app-like experience to users.