Skip to content

Commit

Permalink
fix: logs for DRM checks (#83)
Browse files Browse the repository at this point in the history
fix logger to be in the right place for DRM
  • Loading branch information
Yuvalke committed Aug 28, 2019
1 parent bacf34a commit 985943c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drm/widevine.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default class Widevine extends BaseDrmProtocol {
* @return {boolean} - Whether Widevine is the configure key system.
*/
static isConfigured(drmData: Array<Object>, drmConfig: PKDrmConfigObject): boolean {
Widevine._logger.debug('Can play DRM scheme of: ' + DrmScheme.WIDEVINE);
return DrmScheme.WIDEVINE === drmConfig.keySystem && !!drmData.find(drmEntry => drmEntry.scheme === drmConfig.keySystem);
}

Expand All @@ -25,6 +24,7 @@ export default class Widevine extends BaseDrmProtocol {
* @return {boolean} - Whether Widevine can be play on the current environment.
*/
static canPlayDrm(drmData: Array<Object>): boolean {
Widevine._logger.debug('Can play DRM scheme of: ' + DrmScheme.WIDEVINE);
return !!drmData.find(drmEntry => drmEntry.scheme === BaseDrmProtocol.DrmScheme.WIDEVINE);
}

Expand Down

0 comments on commit 985943c

Please sign in to comment.