mobileFX VHX
VHX Object / MediaEvents Property
In This Topic
    MediaEvents Property
    In This Topic
    Description
    The range of player events we want to receive in OnPlayerEvent.
    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property MediaEvents As Boolean
    Return Type
    False if we are listening only for a small range of events; true if we are listening for the whole range of VHX_EVENTS.
    Remarks

    Set to false by default. If set to true, apart from the VHX_MediaPlayerPlaying, VHX_MediaPlayerEndReached, VHX_MediaPlayerStopped and VHX_MediaPlayerPaused, we will also receive all other possible VHX_EVENTS.

    Example
    private void Form1_Load(object sender, EventArgs e)
    {
        axVHX1.MediaEvents = true;
    }
     private void axVHX1_OnPlayerEvent(object sender, AxVHXLib.IVHXEvents_OnPlayerEventEvent e)
    {
        Debug.WriteLine("OnPlayerEvent");
        Debug.WriteLine("eventName: " + e.eventName);
        Debug.WriteLine("eventCode: " + e.eventCode);
        Debug.WriteLine("mediaType: " + e.mediaType);
        Debug.WriteLine("state: " + e.state);
        Debug.WriteLine("durationSec: " + e.durationSec);
        Debug.WriteLine("currentTimeSec: " + e.currentTimeSec);
        Debug.WriteLine("currentPosition: " + e.currentPosition);
        Debug.WriteLine("rate: " + e.rate);
        Debug.WriteLine("fPS: " + e.fPS);
        Debug.WriteLine("----------");
    }
    See Also