Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-05-2003, 04:07 PM
Junior Member
 
Join Date: Mar 2003
Posts: 14
Default Detecting end of MPEG file

Is there an efficient way to detect when an mpeg has finished playing and to then tell Flash to close the UI video frame window?
Reply With Quote
  #2 (permalink)  
Old 05-06-2003, 09:56 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Detecting end of MPEG file

You can use the "EndOfStream" event of the Windows Media Player, http://msdn.microsoft.com/library/de...dk/default.asp


Code:
var var1 = createControl("MediaPlayer.MediaPlayer.1", 0, 0, 200, 200);
var m = var1.activex;

m.open("2.mp3");

m.endofstream = function (l)
{
   var wnd = getMainWnd();
   wnd.close();
}
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:57 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.