diff --git a/src/js/tech/loader.js b/src/js/tech/loader.js index 7df0a02b8..5403197ff 100644 --- a/src/js/tech/loader.js +++ b/src/js/tech/loader.js @@ -32,6 +32,15 @@ class MediaLoader extends Component { super(player, options_, ready); + // if no sources are provides but we have a src attribute, use it. In the source + // loading process, we try to figure out the type, so, use it directly here. + if ( + (!options.playerOptions.sources || options.playerOptions.sources.length === 0) && + options.playerOptions.src + ) { + options.playerOptions.sources = [options.playerOptions.src]; + } + // If there are no sources when the player is initialized, // load the first supported playback technology.