mobileFX VHX
VHX Object / MediaSpeed Property
In This Topic
    MediaSpeed Property
    In This Topic
    Description
    The speed that the media is playing.
    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property MediaSpeed As Single
    Return Type
    The speed of the media.
    Remarks
    Set to 1 by default. We can also use MediaSpeed to define the speed to play the media. If MediaLoop is set to true, it will affect just the first iteration.
    Example
    private void axVHX1_OnPlayerReady(object sender, EventArgs e)
     {
         // Set the speed to play the media.
         axVHX1.Open("file:///path-to-your-file");
         axVHX1.MediaSpeed = 0.5f;
     }
     private void axVHX1_OnPlayerEvent(object sender, AxVHXLib.IVHXEvents_OnPlayerEventEvent e)
    {
         // Retrieve the speed the media is being played.
         Debug.WriteLine("MediaSpeed: " + axVHX1.MediaSpeed);
     }
    See Also