25 lines
844 B
JavaScript
25 lines
844 B
JavaScript
// __________ (used to handle stuff like http://goo.gl/xmE5eg) issue #129
|
|
// Storage.js
|
|
|
|
/**
|
|
* Storage is a standalone object used by {@link RecordRTC} to store reusable objects e.g. "new AudioContext".
|
|
* @license {@link https://github.com/muaz-khan/RecordRTC#license|MIT}
|
|
* @author {@link http://www.MuazKhan.com|Muaz Khan}
|
|
* @example
|
|
* Storage.AudioContext === webkitAudioContext
|
|
* @property {webkitAudioContext} AudioContext - Keeps a reference to AudioContext object.
|
|
* @see {@link https://github.com/muaz-khan/RecordRTC|RecordRTC Source Code}
|
|
*/
|
|
|
|
var Storage = {};
|
|
|
|
if (typeof AudioContext !== 'undefined') {
|
|
Storage.AudioContext = AudioContext;
|
|
} else if (typeof webkitAudioContext !== 'undefined') {
|
|
Storage.AudioContext = webkitAudioContext;
|
|
}
|
|
|
|
if (typeof RecordRTC !== 'undefined') {
|
|
RecordRTC.Storage = Storage;
|
|
}
|