File Explorer header - linked to CapeSoft home page  
Version version number
CapeSoft Software Copyright
www.capesoft.com
Updated 16 November 2005
     
   
HTML Fe Browser icon FeMedia
   
Contents
   
 
 
bullet small The FeMedia Object
 

Methods
Properties
Equates

 
bullet small The Templates
 

Overview

 
bullet small Useful References
 

Summary of callback events

 
     

horizontal rule

bullet File Explorer Classes - FeMedia

fe media object icon Formerly known as the Media file type / object, the FeMedia Object is used to display video files, and play sound files.

horizontal rule

Class Properties
  feMedia.MPVersionNumber
The version of Windows Media Player to load
 
   
   
   
   
   
   
   
     

horizontal rule

MPVersionNumber long
The version of Windows Media Player to Load. You need to set this before the call to the Init method.

Information

There are currently two allowed values for MPVersionNumber. Setting this to 6 will use the old Windows Media Player 6/7 control. Setting this to 10 will use the new Windows Media player 9 and newer control. Please note that using the new control is currently a Beta feature, in testing it works very well, however there is a known issue with multiple controls on a single window causing a GPF when the window is closed. You may have both old and new controls in your application, and you can even have old and new controls on the same window/thread.

Example

	! Use the old version of Windows Media Player
	ThisViewer1.MPVersionNumber = 6
ThisViewer1.Init (?feControl, , , , 1)

! Use the new version of Windows Media Player
ThisViewer3.MPVersionNumber = 10
ThisViewer3.Init (?feControl, , , , 1)

Information

The same techinique is used regardless of whether the Init method call is being done manually or populated by the template.

horizontal rule

bulletFeMedia - Templates

At this time there is quite an overlap in terms of multiple File Explorer classes being implemented by the same templates.  In the future we may revisit this, but for now all templates are covered in the main (FileExplorer.htm) help document, please click here.

horizontal rule

bulletSummary of callback events

See the FeMedia_SoundCallbacks and FeMedia_VideoCallbacks procedures in the feabc.app example application for more info.

Event Name: Equate: Description:
Buffering fe:MedEvt_Buffering Occurs when the control begins or ends buffering.
Click fe:MedEvt_Click Occurs when a user clicks the mouse with the cursor in the image window.
DblClick fe:MedEvt_DblClick Occurs when a user double clicks the mouse with the cursor in the image window.
Disconnect fe:MedEvt_Disconnect Occurs when the control is disconnected from the server.
DisplayModeChange fe:MedEvt_DisplayModeChange Occurs when the DisplayMode property changes.
DVDNotify fe:MedEvt_DVDNotify ( none )
EndOfStream fe:MedEvt_EndOfStream Occurs when the end of the title is reached.
Error fe:MedEvt_Error Occurs when the control has an error condition.
KeyDown fe:MedEvt_KeyDown Occurs when a key is pressed.
KeyPress fe:MedEvt_KeyPress Occurs when a key is pressed and released.
KeyUp fe:MedEvt_KeyUp Occurs when a key is released.
MarkerHit fe:MedEvt_MarkerHit Occurs when a marker is reached.
MouseDown fe:MedEvt_MouseDown Occurs when a mouse button is pressed.
MouseMove fe:MedEvt_MouseMove Occurs when the mouse pointer is moved.
MouseUp fe:MedEvt_MouseUp Occurs when a mouse button is released.
NewStream fe:MedEvt_NewStream Occurs when a new stream is started in a station.
OpenStateChange fe:MedEvt_OpenStateChange Occurs when the control changes its open state.
PlayStateChange fe:MedEvt_PlayStateChange Occurs when the control changes its play state.
PositionChange fe:MedEvt_PositionChange Occurs when the current media position moves to a new position.
ReadyStateChange fe:MedEvt_ReadyStateChange Occurs when the control's state of readiness changes.
ScriptCommand fe:MedEvt_ScriptCommand Occurs when a synchronized command or URL is received.
Warning fe:MedEvt_Warning Occurs when the control encounters a possible problem.

More Info:    ( work in progress )

OpenStateChange   ( OldState, NewState )
  OldState indicates the previous OpenState value.
  NewState indicates the new (current) OpenState value.
  Possible OpenState values are:
    0 - Content file is closed
    1 - Loading an .asx redirector file
    2 - Loading an .nsc station file
    3 - Locating the server
    4 - Connecting to the server
    5 - Opening or listening for the stream
    6 - Content file is open

PlayStateChange   ( OldState, NewState )
 
OldState indicates the previous PlayState value.
  NewState indicates the new (current) PlayState value.
  Possible PlayState values are:
    0 - Playback is stopped
    1 - Playback is paused
    2 - Stream is playing
    3 - Waiting for stream to begin
    4 - Stream is scanning forward
    5 - Stream is scanning in reverse
    6 - Skipping to next
    7 - Skipping to previous
    8 - Stream is not open


PositionChange   ( OldPosition, NewPosition )
  OldPosition indicates the position before it changed, in seconds.
  NewPosition indicates the current position, in seconds, after the position change occurred
 


[end of document]