We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27bdab8 commit 68577f6Copy full SHA for 68577f6
src/player.js
@@ -472,7 +472,7 @@ export default class Player extends FakeEventTarget {
472
*/
473
setSourcesMetadata(sourcesMetadata: PKMetadataConfigObject): void {
474
if (this._sources) {
475
- if (this?._sources?.metadata) {
+ if (!this?._sources?.metadata) {
476
this._sources.metadata = {};
477
}
478
Utils.Object.mergeDeep(this._sources.metadata, sourcesMetadata);
0 commit comments