Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-11611): Pass the program ID when sending a bookmark #615

Merged
merged 8 commits into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion flow-typed/types/metadata-config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
// @flow
declare type PKMetadataConfigObject = {
name?: string,
description?: string
description?: string,
mediaType?: string,
metas?: Object,
tags?: Object,
epgId?: string,
recordingId?: string
};
14 changes: 14 additions & 0 deletions src/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,20 @@ export default class Player extends FakeEventTarget {
this._applyABRRestriction(config);
}

/**
* Configures the player metadata according to a given configuration.
* @param {PKMetadataConfigObject} sourcesMetadata - The sources metadata for the player instance.
* @returns {void}
*/
setSourcesMetadata(sourcesMetadata: PKMetadataConfigObject): void {
if (this._sources) {
if (!this._sources.metadata) {
this._sources.metadata = {};
}
Utils.Object.mergeDeep(this._sources.metadata, sourcesMetadata);
}
}

/**
* Configures the player according to a given configuration.
* @param {PKSourcesConfigObject} sources - The sources for the player instance.
Expand Down