Have you considered to use CSS pseudo-class to control the playerIcon to display or not?
You might saw that I was using CSS pseudo-class to control the back button in the TitleBar. So I think you can also use CSS pseudo-class to show and hide the playerIcon.

The playerIcon shows in all modes, except the player mode, so it might easier to hide the playerIcon when the className of the body is "player-mode", like: body.player-mode #title-player { display: none; }