Dash.js: How do I disable logging if I'm not directly interacting with the dash MediaPlayer?

Created on 20 Apr 2018  路  2Comments  路  Source: Dash-Industry-Forum/dash.js

Environment
  • Dash.js version: 2.6.7
  • Browser name/version: any
  • OS name/version: Chrome
Steps to reproduce
  1. Include dashjs on the page or in a Webpack bundle
  2. Put a <video> tag on the page
Observed behaviour

There's a zillion log lines

I know that if I'm directly instantiating a MediaPlayer instance I can call mediaPlayer.getDebug().setLogToBrowserConsole(false). How do I do that if I'm just dropping dashjs on the page and letting it automatically upgrade <video> elements to use DASH?

Question

Most helpful comment

I would look favorably on dash.js emitting less noisy log output in general. Even when I care about dash.js logs as I am interacting with the player or debugging something, the zillion log entries about buffering states makes it very hard to actually find anything useful.

All 2 comments

I would look favorably on dash.js emitting less noisy log output in general. Even when I care about dash.js logs as I am interacting with the player or debugging something, the zillion log entries about buffering states makes it very hard to actually find anything useful.

@iameli, when dash.js is associated with HTML5 video elements it creates the property _dashjs_player on them so you can easily get a reference to each dash.js MediaPlayer instance.

For example, in case you have just one video element in your webpage, you will be able to deactivate logs in this way:

document.getElementsByTagName("video")[0]._dashjs_player.getDebug().setLogToBrowserConsole(false)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bbert picture bbert  路  5Comments

ruslandinov picture ruslandinov  路  4Comments

sandersaares picture sandersaares  路  5Comments

carlanton picture carlanton  路  5Comments

AxelDelmas picture AxelDelmas  路  6Comments