HDiSim currentDisplayMode

It appears that HDiSim has the currentDisplayMode set to Player.DISPLAY_NONE by default.

If I put this logic branch in my onLoad function, the HDiSim will fall into it:

if (Player.currentDisplayMode == Player.DISPLAY_NONE) {

}



Answer this question

HDiSim currentDisplayMode

  • andypai

    It looks like it is hard-coded to that value. May I ask what kind of things you wish to do based on the result

    We should of course be returning DISPLAY_HD.



  • karande23

    I'm building Comp5 for the forum. One of the requirements is display detection; so for instance you can start playing the audio on start if the device is an audio only player, or is not hooked up to a display.

    The compilation is complete (showed it to the Toshiba guys yesterday) except for display detection (3 line of code).

    So actually, the fact that HDiSim is set to DISPLAY_NONE works in this case for testing purposes :) I just didn't expect that so I posted the question.

    I have no idea if we'll be able to test this functionality on a (current) player. I'll have to ask the Toshiba folks about that.


  • HDiSim currentDisplayMode