Skip to content

Commit

Permalink
Fix src= playback on WebOS (#2777)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Velad Galván authored Aug 10, 2020
1 parent 4781129 commit fdfb518
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -2087,11 +2087,11 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
// the current time because |playhead| will do that for us.
has.mediaElement.src = has.uri;

// Tizen 3 won't load anything unless you call load() explicitly, no matter
// the value of the preload attribute. This is harmful on some other
// platforms by triggering unbounded loading of media data, but is necessary
// here.
if (shaka.util.Platform.isTizen()) {
// Tizen 3 / WebOS won't load anything unless you call load() explicitly,
// no matter the value of the preload attribute. This is harmful on some
// other platforms by triggering unbounded loading of media data, but is
// necessary here.
if (shaka.util.Platform.isTizen() || shaka.util.Platform.isWebOS()) {
has.mediaElement.load();
}

Expand Down

0 comments on commit fdfb518

Please sign in to comment.