All Projects → yusukeshib → react-native-audio-polyfill

yusukeshib / react-native-audio-polyfill

Licence: other
Audio polyfill for desktop and native.

Programming Languages

java
68154 projects - #9 most used programming language
objective c
16641 projects - #2 most used programming language
javascript
184084 projects - #8 most used programming language
python
139335 projects - #7 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to react-native-audio-polyfill

Sticky State
StickyState is a high performant module making native position:sticky statefull and polyfilling the missing sticky browser feature
Stars: ✭ 692 (+5223.08%)
Mutual labels:  polyfill, native
Jekyll Spaceship
🚀 A Jekyll plugin to provide powerful supports for table, mathjax, plantuml, mermaid, emoji, video, audio, youtube, vimeo, dailymotion, soundcloud, spotify, etc.
Stars: ✭ 196 (+1407.69%)
Mutual labels:  polyfill, sound
Share Api Polyfill
A polyfill for the sharing that can be used in desktop too, so your users can shere in their twitter, facebook, messenger, linkedin, sms, e-mail, print, telegram or whatsapp.
Stars: ✭ 210 (+1515.38%)
Mutual labels:  polyfill, native
node-webrtc
🔌 WebRTC bindings for Node, written according to the W3C specification.
Stars: ✭ 23 (+76.92%)
Mutual labels:  native
react-native-screen-keyboard
On-screen keyboard with customisable keys and tactile / UI feedback 📱
Stars: ✭ 22 (+69.23%)
Mutual labels:  native
UnitySoundManager
Sound manager with 3 tracks, language system, pooling system, Fade in/out effects, EventTrigger system and more.
Stars: ✭ 55 (+323.08%)
Mutual labels:  sound
SquirrelJME
SquirrelJME is a Java ME 8 Virtual Machine for embedded and Internet of Things devices. It has the ultimate goal of being 99.9% compatible with the Java ME standard.
Stars: ✭ 148 (+1038.46%)
Mutual labels:  native
draggable-polyfill
🌈a beautify polyfill for native drag!
Stars: ✭ 49 (+276.92%)
Mutual labels:  polyfill
anitomy-js
Native Node.js wrapper for Anitomy
Stars: ✭ 21 (+61.54%)
Mutual labels:  native
scala-native-starter
A starter for scala-native.
Stars: ✭ 27 (+107.69%)
Mutual labels:  native
abifestival-app
Cross-platform festival-app built with the Appcelerator Titanium framework
Stars: ✭ 16 (+23.08%)
Mutual labels:  native
fabric-samples-nodocker
🌱 Deploy fabric-samples without docker. Currently support v1.4.x & 2.0.x .
Stars: ✭ 35 (+169.23%)
Mutual labels:  native
haxeui-hxwidgets
The hxWidgets backend of the HaxeUI framework -
Stars: ✭ 20 (+53.85%)
Mutual labels:  native
collision-sound
Collision Sound aims to be an easy and powerful way of adding sound to object collisions in Unity
Stars: ✭ 21 (+61.54%)
Mutual labels:  sound
xUnwind
🔥 xUnwind is a collection of Android native stack unwinding solutions.
Stars: ✭ 127 (+876.92%)
Mutual labels:  native
titanium-speech
Use the iOS 10 SFSpeechRecognizer API in JavaScript with Appcelerator Hyperloop.
Stars: ✭ 21 (+61.54%)
Mutual labels:  native
cala
Cross-platform system interface for hardware IO
Stars: ✭ 46 (+253.85%)
Mutual labels:  sound
react-native-console-time-polyfill
console.time and console.timeEnd polyfill for react-native
Stars: ✭ 92 (+607.69%)
Mutual labels:  polyfill
kafka-consumer-lag-monitoring
Client tool that exports the consumer lag of Kafka consumer groups to Prometheus or your terminal
Stars: ✭ 45 (+246.15%)
Mutual labels:  native
microui-odin
A tiny immediate-mode UI library for The Odin Programming Language
Stars: ✭ 24 (+84.62%)
Mutual labels:  native

react-native-audio-polyfill

html Audio class polyfill for react-native. You can use Audio for android,ios without modification to browser code.

Usage

import Audio from 'react-native-audio-polyfill'

const audio1 = new Audio()

audio1.onload = () => {
  console.log('audio loaded')
  audio1.play()
}

Play local files

audio1.addEventListener('loadeddata', () => audio1.play())
audio1.addEventListener('error', err => console.log('audio error:', err)
audio1.src = './test.mp3'
audio1.load()

Play remote files

audio1.addEventListener('loadeddata', () => audio1.play())
audio1.addEventListener('error', err => console.log('audio error:', err)
audio1.src = 'http://www.music.helsinki.fi/tmt/opetus/uusmedia/esim/a2002011001-e02-128k.mp3'
audio1.load()

Play assets in native

import asset1 from './test.mp3'

audio1.addEventListener('loadeddata', () => audio1.play())
audio1.addEventListener('error', err => console.log('audio error:', err)
audio1.src = asset1
audio1.load()

Install

npm install react-native-audio-polyfill

Add it to your project

react-native link

Coverage

functions

  • addTextTrack()
  • canPlayType()
  • load()
  • play()
  • pause()

properties

  • audioTracks
  • autoplay
  • buffered // only android
  • controller
  • controls
  • crossOrigin
  • currentSrc
  • currentTime
  • defaultMuted
  • defaultPlaybackRate
  • duration
  • ended
  • error
  • loop
  • mediaGroup
  • muted
  • networkState
  • paused
  • playbackRate
  • played
  • preload
  • readyState
  • seekable
  • seeking
  • src
  • startDate
  • textTracks
  • videoTracks
  • volume

event

  • abort
  • canplay
  • canplaythrough
  • durationchange
  • emptied
  • ended
  • error
  • loadeddata
  • loadedmetadata
  • loadstart
  • pause
  • play
  • playing
  • progress // only android
  • ratechange
  • seeked
  • seeking
  • stalled
  • suspend
  • timeupdate
  • volumechange
  • waiting

TODO

  • canPlayType support.
  • Create audio component with controls=true.
  • Buffering progress for ios.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].