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:
parent
27ee448e1f
commit
1ff361a825
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user