1
0
mirror of https://github.com/videojs/video.js.git synced 2024-12-14 11:23:30 +02:00

Reverted an error in src() from the default args update

This commit is contained in:
heff 2015-05-21 20:42:25 -07:00
parent 27ee448e1f
commit 1ff361a825

View File

@ -1480,7 +1480,11 @@ class Player extends Component {
* @return {String} The current video source when getting
* @return {String} The player when setting
*/
src(source=this.techGet('src')) {
src(source) {
if (source === undefined) {
return this.techGet('src');
}
let currentTech = Component.getComponent(this.techName);
// case: Array of source objects to choose from and pick the best to play