Skip to content

PlayerControl

Antoine Aflalo edited this page May 14, 2015 · 1 revision

Keep in mind all this is accessible directly in visual studio using Intellisense.

Events

    public static event EventHandler<PlayerStateEventArgs> PlayerStateChanged;
    public static event EventHandler<MediaLoadingEventArgs> MediaLoading;
    public static event EventHandler PlayerLoaded;
    public static event EventHandler PlaybackCompleted;
    public static event EventHandler FormClosed;
    public static event EventHandler EnteringFullScreenMode;
    public static event EventHandler EnteredFullScreenMode;
    public static event EventHandler ExitingFullScreenMode;
    public static event EventHandler ExitedFullScreenMode;
    public static event EventHandler PaintOverlay;
    public static event EventHandler<PlayerControlEventArgs<KeyEventArgs>> KeyDown;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseWheel;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseMove;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseClick;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseDoubleClick;
    public static event EventHandler<PlayerControlEventArgs<DragEventArgs>> DragDrop;
    public static event EventHandler<PlayerControlEventArgs<DragEventArgs>> DragEnter;
    public static event EventHandler<CommandLineFileOpenEventArgs> CommandLineFileOpen;
    public static event EventHandler<FrameEventArgs> FrameDecoded;
    public static event EventHandler<FrameEventArgs> FrameRendered;
    public static event EventHandler<FrameEventArgs> FramePresented;
    public static event EventHandler VolumeChanged;
    public static event EventHandler SubtitleTrackChanged;
    public static event EventHandler AudioTrackChanged;

Properties

    public static Form Form { get; }
    public static Control VideoPanel { get; }
    public static Icon ApplicationIcon { get; }
    public static PlayerState PlayerState { get; }
    public static bool InFullScreenMode { get; }
    public static long MediaPosition { get; }
    public static long MediaDuration { get; }
    public static IList<MediaTrack> SubtitleTracks { get; }
    public static IList<MediaTrack> AudioTracks { get; }
    public static IList<Chapter> Chapters { get; }
    public static MediaTrack ActiveSubtitleTrack { get; }
    public static MediaTrack ActiveAudioTrack { get; }
    public static int Volume { get; set; }
    public static bool Mute { get; set; }
    public static string MediaFilePath { get; }
    public static VideoInfo VideoInfo { get; }
    public static AMMediaType VideoMediaType { get; }
    public static string ConfigRootPath { get; }
    public static int FullScreenSeekBarHeight { get; }
    public static IRenderScript ActiveRenderScript { get; }
    public static Guid ActiveRenderScriptGuid { get; }
    public static IList<Assembly> ExtensionAssemblies { get; }
    public static IList<IRenderScriptUi> RenderScripts { get; }
    public static IList<IPlayerExtension> PlayerExtensions { get; }
    public static Configuration PlayerSettings { get; }

Full class

 public static class PlayerControl
  {
    public static void SetPlayerControl(IPlayerControl playerControl);
    public static bool OnKeyDown(ref KeyEventArgs args);
    public static bool OnMouseWheel(ref MouseEventArgs args);
    public static bool OnMouseMove(ref MouseEventArgs args);
    public static bool OnMouseClick(ref MouseEventArgs args);
    public static bool OnMouseDoubleClick(ref MouseEventArgs args);
    public static bool OnDragDrop(ref DragEventArgs args);
    public static bool OnDragEnter(ref DragEventArgs args);
    public static void OnPlaybackCompleted();
    public static void OnFormClosed();
    public static void OnPlayerStateChanged(PlayerState playerState, PlayerState oldState);
    public static void OnVolumeChanged();
    public static void OnAudioTrackChanged();
    public static void OnSubtitleTrackChanged();
    public static void OnFrameDecoded(FrameEventArgs e);
    public static void OnFrameRendered(FrameEventArgs e);
    public static void OnFramePresented(FrameEventArgs e);
    public static void OnPaintText();
    public static void OnExitedFullScreenMode();
    public static void OnExitingFullScreenMode();
    public static bool OnCommandLineFileOpen(CommandLineFileOpenEventArgs e);
    public static void OnEnteredFullScreenMode();
    public static void OnEnteringFullScreenMode();
    public static void OnMediaLoading(MediaLoadingEventArgs e);
    public static void OnPlayerLoaded();
    public static void OpenMedia(string filename, bool play = true, bool showOsd = true);
    public static void PlayMedia(bool showOsd = true);
    public static void PauseMedia(bool showOsd = true);
    public static void SeekMedia(long usec);
    public static void StepMedia();
    public static void StopMedia();
    public static void CloseMedia();
    public static void SelectSubtitleTrack(MediaTrack track, bool showOsd = true);
    public static void SelectAudioTrack(MediaTrack track, bool showOsd = true);
    public static void ShowStats(bool show);
    public static void ResetStats();
    public static void GoFullScreen();
    public static void GoWindowed();
    public static void HandleException(Exception exception);
    public static void ShowOsdText(string text, int durationMs = 1000);
    public static void HideOsdText();
    public static IText CreateText(string font, int size, TextFontStyle style);
    public static void ShowOptionsDialog();
    public static void FitAspectRatio();
    public static void FitPercentage(int percent);
    public static void RefreshSettings();
    public static void SetRenderScript(Guid renderScriptGuid);
    public static Form Form { get; }
    public static Control VideoPanel { get; }
    public static Icon ApplicationIcon { get; }
    public static PlayerState PlayerState { get; }
    public static bool InFullScreenMode { get; }
    public static long MediaPosition { get; }
    public static long MediaDuration { get; }
    public static IList<MediaTrack> SubtitleTracks { get; }
    public static IList<MediaTrack> AudioTracks { get; }
    public static IList<Chapter> Chapters { get; }
    public static MediaTrack ActiveSubtitleTrack { get; }
    public static MediaTrack ActiveAudioTrack { get; }
    public static int Volume { get; set; }
    public static bool Mute { get; set; }
    public static string MediaFilePath { get; }
    public static VideoInfo VideoInfo { get; }
    public static AMMediaType VideoMediaType { get; }
    public static string ConfigRootPath { get; }
    public static int FullScreenSeekBarHeight { get; }
    public static IRenderScript ActiveRenderScript { get; }
    public static Guid ActiveRenderScriptGuid { get; }
    public static IList<Assembly> ExtensionAssemblies { get; }
    public static IList<IRenderScriptUi> RenderScripts { get; }
    public static IList<IPlayerExtension> PlayerExtensions { get; }
    public static Configuration PlayerSettings { get; }
    public static event EventHandler<PlayerStateEventArgs> PlayerStateChanged;
    public static event EventHandler<MediaLoadingEventArgs> MediaLoading;
    public static event EventHandler PlayerLoaded;
    public static event EventHandler PlaybackCompleted;
    public static event EventHandler FormClosed;
    public static event EventHandler EnteringFullScreenMode;
    public static event EventHandler EnteredFullScreenMode;
    public static event EventHandler ExitingFullScreenMode;
    public static event EventHandler ExitedFullScreenMode;
    public static event EventHandler PaintOverlay;
    public static event EventHandler<PlayerControlEventArgs<KeyEventArgs>> KeyDown;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseWheel;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseMove;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseClick;
    public static event EventHandler<PlayerControlEventArgs<MouseEventArgs>> MouseDoubleClick;
    public static event EventHandler<PlayerControlEventArgs<DragEventArgs>> DragDrop;
    public static event EventHandler<PlayerControlEventArgs<DragEventArgs>> DragEnter;
    public static event EventHandler<CommandLineFileOpenEventArgs> CommandLineFileOpen;
    public static event EventHandler<FrameEventArgs> FrameDecoded;
    public static event EventHandler<FrameEventArgs> FrameRendered;
    public static event EventHandler<FrameEventArgs> FramePresented;
    public static event EventHandler VolumeChanged;
    public static event EventHandler SubtitleTrackChanged;
    public static event EventHandler AudioTrackChanged;
  }
Clone this wiki locally