Search code examples
c#asp.nethtmlembedmedia-player

Stop media player when html popup closed


I have a simple page and a link on it which opens a simple popup ajax popup with embedded media player on it, like so

<object classid="..." id="mediaplayer1">
</object>

The problem is that after closing and disappearing popup it seems that Meda Player continues working, cause I am hearing movie sound. How can I stop this?


Solution

  • I solve this by finding popup frame and setting contentWindow.location = ''