1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-18 12:24:02 +02:00

make the early return value of handleSrc consistent

with player.currentSrc(), in the event that currentSource middleware is in effect
This commit is contained in:
Sarah Rimron-Soutter 2023-01-20 15:39:20 +00:00
parent 8565ef32e2
commit 538d663436

View File

@ -3305,7 +3305,7 @@ class Player extends Component {
handleSrc_(source, isRetry) {
// getter usage
if (typeof source === 'undefined') {
return this.cache_.src || '';
return this.currentSrc();
}
// Reset retry behavior for new source