I have a C# WinForms application and a client has requested to have a streaming CNN video player integrated in to it. CNN uses a flash player located at http://www.cnn.com/video/live/live.html?stream=stream1
However if I embed a WebBrowser object and point it at the URL, the web site wants to fire a popup outside of my WebBrowser control. If I disable it (using the NewWindow event handlers), it throws up a javascript alert message. If I allow it, it opens a new IE instance outside of my application withe CNN video in it.
The only thought I had was to recreate the HTML and override the javascript settings for their flash object (http://z.cdn.turner.com/cnn/.element/apps/CNNLive/2.1.6.2/assets/scripts/liveplayersettings.js) in order to turn off the popup flags.
Anyone have thoughts on a way to accomplish showing the site while doing so inside of the application?
Ended up hacking the Javascript that CNN uses, dunno how long it’ll last but this was the quickest way to accomplish what I wanted without all the added overhead of the other solutions.