Skip to content

A MediaRecorder polyfill (for Safari) with MP3 (audio/mpeg) encoding support

License

Notifications You must be signed in to change notification settings

anrikun/mp3-mediarecorder-polyfill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MP3 MediaRecorder Polyfill

A MediaRecorder polyfill (for Safari) with MP3 (audio/mpeg) encoding support

Supports

Constructor

MediaRecorder()

Properties

mimeType
ondataavailable
onerror
onpause
onresume
onstart
onstop
state
stream

Methods

isTypeSupported() audio/mpeg is the only supported MIME type.
pause()
requestData()
resume()
start()
stop()

Events

dataavailable
error
pause
resume
start
stop

Usage

<script>
if (!window.MediaRecorder) {
  document.write(decodeURI('%3Cscript defer src="/path/to/dist/polyfill.js">%3C/script>'));
}
</script>

Based on

https://github.com/ai/audio-recorder-polyfill
https://github.com/zhuker/lamejs

About

A MediaRecorder polyfill (for Safari) with MP3 (audio/mpeg) encoding support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published