Moved to provider + type to make it cleaner in future, fix for multiple players

This commit is contained in:
Sam Potts
2017-11-23 17:35:35 +11:00
parent de6f0f1b77
commit 921cefd212
22 changed files with 199 additions and 215 deletions

View File

@ -1,10 +1,16 @@
// ==========================================================================
// Plyr supported types
// Plyr supported types and providers
// ==========================================================================
const types = {
embed: ['youtube', 'vimeo'],
html5: ['video', 'audio'],
export const providers = {
html5: 'html5',
youtube: 'youtube',
vimeo: 'vimeo',
};
export default types;
export const types = {
audio: 'audio',
video: 'video',
};
export default { providers, types };