Fixes Cast UI not hiding when content shown locally closes #1133
What I understand is the issue was that once we cast media, the Cast UI won't go away even if media is playing locally.
I have updated the code to hide the externalVideoOutputView when the media is not playing on the external screen. Let me know if it works.