Skip to content

Commit

Permalink
fix(FEC-13038): Add image track type only if player sources with imag…
Browse files Browse the repository at this point in the history
…e is populated (#136)

* Add image track type only player sources with image is populated
  • Loading branch information
giladna committed Mar 15, 2023
1 parent b507a26 commit 9a1b6b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/adapter/adapter.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,9 @@ let YouboraAdapter = youbora.Adapter.extend({

/** @returns {void} - Listener for 'load_start' event. */
loadListener: function () {
this.plugin.options['content.playbackType'] = MediaType.IMAGE;
if (this.player.isImage()) {
this.plugin.options['content.playbackType'] = MediaType.IMAGE;
}
if (this.player.config.playback.preload !== 'auto') {
this.playListener();
}
Expand Down

0 comments on commit 9a1b6b9

Please sign in to comment.