Skip to content

Commit

Permalink
fix(Stats): Fix bytesDownloaded when using src= (#7223)
Browse files Browse the repository at this point in the history
Related to #7222
  • Loading branch information
avelad committed Aug 29, 2024
1 parent b9005b3 commit b7ebe9e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -5297,6 +5297,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
}

if (this.loadMode_ == shaka.Player.LoadMode.SRC_EQUALS) {
this.stats_.addBytesDownloaded(NaN);
this.stats_.setResolution(
/* width= */ element.videoWidth || NaN,
/* height= */ element.videoHeight || NaN);
Expand Down

0 comments on commit b7ebe9e

Please sign in to comment.