diff --git a/Video.js b/Video.js index ea1ce8f2df..52413a7d2e 100644 --- a/Video.js +++ b/Video.js @@ -226,6 +226,8 @@ export default class Video extends Component { if (uri && uri.match(/^\//)) { uri = `file://${uri}`; } + + if (!uri) throw new Error('Trying to load empty source.'); const isNetwork = !!(uri && uri.match(/^https?:/)); const isAsset = !!(uri && uri.match(/^(assets-library|ipod-library|file|content|ms-appx|ms-appdata):/));