GeckoFX

Skybound

Skybound Software is looking to hire experienced C# developers to work on Stylizer and other forthcoming Skybound products. Click here for details.

GeckoFX is an open-source component which makes it easy to embed Mozilla Gecko (Firefox) into any .NET Windows Forms application. Written in clean, fully commented C#, GeckoFX is the perfect replacement for the default Internet Explorer-based WebBrowser control. Download GeckoFX @ Google Code >

GeckoFX is made by Skybound Software, authors of Stylizer—the professional CSS editor with a strong focus on visual control, error-free workflow, and productivity. Learn About Stylizer >

GeckoFX Forum

Discuss GeckoFX, the Open-Source Gecko Control for .NET

You are not logged in.

Flash video problem..

#1 December 28, 2008 9:01 PM

softwerx
Member
From: Goshen, IN, US
Registered: September 04, 2008
Posts: 466
Website

Flash video problem..

When removing a tab that contains a web page that is playing an embedded movie file (flash, divx, etc) the movie continues to play - even though the tab has been removed from the tab control. How do I stop the files from playing when I remove a tab from the tab control? (BTW, I'm using an owner drawn tab control)  I don't want to destroy the browser instance contained on the removed tab page because I've implemented a system to restore closed tabs.

Offline

 

#2 December 28, 2008 9:43 PM

softwerx
Member
From: Goshen, IN, US
Registered: September 04, 2008
Posts: 466
Website

Re: Flash video problem..

Issue resolved:

I am adding both the tab page and the browser instance to a list (for keeping track of recent browsing history) as well as a stack (for reopening closed tabs). What I was doing was first attempting to stop browser activity using the Stop method of the control and then adding the tab page to both the list and stack. What I needed to do was add the tab page to the list and stack and then call the Stop method of the browser control followed by a navigation to about:blank - which stopped all movie activities on the page.

Offline

 

#3 February 01, 2010 5:21 AM

rock_star
Member
Registered: November 19, 2009
Posts: 7

Re: Flash video problem..

hey i having same problem what should i do to remove tab and browser :|

here my code

Code:

If Not BrowserTab.TabPages.Count = 1 Then
            BrowserTab.TabPages.RemoveAt(BrowserTab.SelectedIndex)
            BrowserTab.SelectTab(BrowserTab.TabPages.Count - 1)
            int = int - 1
         End If

can Please give code so i can understand do what you save to stop this

Offline

 

#4 February 01, 2010 2:59 PM

softwerx
Member
From: Goshen, IN, US
Registered: September 04, 2008
Posts: 466
Website

Re: Flash video problem..

If I find some spare time, later, to dig up my old project I'll post the relevant code here for you.

Offline

 

#5 February 08, 2010 12:57 PM

rock_star
Member
Registered: November 19, 2009
Posts: 7

Re: Flash video problem..

Hey man i really need this i try to find solution for this all over net but have no luck
every tab browser project i seen the video still play after that tab is remove so i request you to help me out with it :D

Last edited by rock_star (February 08, 2010 12:57 PM)

Offline

 

#6 February 08, 2010 10:51 PM

softwerx
Member
From: Goshen, IN, US
Registered: September 04, 2008
Posts: 466
Website

Re: Flash video problem..

I no longer have the project - hence the code is gone. Sorry.

You could just navigate the browser instance away from the page playing video and then close it on the navigating event.

Last edited by softwerx (February 08, 2010 10:52 PM)

Offline

 

Board footer