We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1236c2d commit 18652b6Copy full SHA for 18652b6
lib/player.js
@@ -1511,7 +1511,7 @@ shaka.Player = class extends shaka.util.FakeEventTarget {
1511
// after several playbacks, and they are not able anymore to properly
1512
// create MediaKeys objects. To prevent it, clear the cache after
1513
// each playback.
1514
- if (this.config_.streaming.clearDecodingCache) {
+ if (this.config_ && this.config_.streaming.clearDecodingCache) {
1515
shaka.util.StreamUtils.clearDecodingConfigCache();
1516
shaka.util.DrmUtils.clearMediaKeySystemAccessMap();
1517
}
0 commit comments