Skip to content

Commit

Permalink
Modified player -Debug Logger- to fix console error
Browse files Browse the repository at this point in the history
Change-Id: I27f6dde509f5b5d5c3b9a87f763daa240103f157
  • Loading branch information
YU-CHI HSIEH committed Jan 7, 2022
1 parent b6bc49f commit 65a4c7b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions js/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,18 @@ analytics_.start();
* Debug Logger Object
* setEnabled: Enable debug logger and show a 'DEBUG MODE' overlay at top left corner.
* showDebugLogs: Displays the logs through an overlay on the receiver.
* Uncomment setEnabled() and showDebugLogs() to enable this functionality.
* Make sure to change setEnabled to false when deploying to production.
*/
const castDebugLogger = cast.debug.CastDebugLogger.getInstance();
// castDebugLogger.setEnabled(true);
// castDebugLogger.showDebugLogs(true);
/**
* Uncommnet the following code to enable its functionality
*/
// context.addEventListener(cast.framework.system.EventType.READY, () => {
// if (!castDebugLogger.debugOverlayElement_) {
// castDebugLogger.setEnabled(true);
// castDebugLogger.showDebugLogs(true);
// }
// });

// enables logging for described events at the configured logging level
castDebugLogger.loggerLevelByEvents = {
Expand Down

1 comment on commit 65a4c7b

@Zsanika1234
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fszopo

Please sign in to comment.