Merge pull request #695 from chinloongtan/master
Fix nil string uri parameter error
This commit is contained in:
commit
a0716335d7
2
Video.js
2
Video.js
@ -268,6 +268,8 @@ export default class Video extends Component {
|
|||||||
let uri = source.uri || '';
|
let uri = source.uri || '';
|
||||||
if (uri && uri.match(/^\//)) {
|
if (uri && uri.match(/^\//)) {
|
||||||
uri = `file://${uri}`;
|
uri = `file://${uri}`;
|
||||||
|
} else if (uri === '') {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!uri) {
|
if (!uri) {
|
||||||
|
Loading…
Reference in New Issue
Block a user