Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    IMediaPlayer Interface

    Namespace: Stride.Media
    Assembly: Stride.dll

    Interface for playable media

    public interface IMediaPlayer : IMediaReader
    Name Description
    Methods
    Pause()

    Pause the media.

    Play()

    Start or resume playing the media.

    Stop()

    Stop playing the media immediately and reset the media to the beginning of the source.

    | Improve this Doc View Source

    Methods


    Pause()

    Pause the media.

    void Pause()
    Remarks

    A call to Pause when the media is already paused or stopped has no effects.


    Play()

    Start or resume playing the media.

    void Play()
    Remarks

    A call to Play when the media is already playing has no effects.


    Stop()

    Stop playing the media immediately and reset the media to the beginning of the source.

    void Stop()
    Remarks

    A call to Stop when the media is already stopped has no effects


    Inherited Members

    IMediaReader.IsDisposed
    IMediaReader.SpeedFactor
    IMediaReader.Seek(TimeSpan)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation