private void PlaybackStart() { if (this.playbackEngine == null) { return; } this.playbackEngine.Started += this.OnPlaybackStarted; this.playbackEngine.Stopped += this.OnPlaybackStopped; this.playbackEngine.Closed += this.OnPlaybackClosed; this.playbackEngine.Failed += this.OnPlaybackFailed; this.playbackEngine.FrameSizeChanged += this.OnFrameSizeChanged; this.playbackEngine.Start(); this.mediaUpdateSampleArgs = new MediaSampleUpdateArgs(); this.PlayerState = PlayerState.Starting; }
internal static extern int exGetFrameData(uint playerHandle, ref MediaSampleUpdateArgs args);
private void OnSampleUpdatedHandler(ref MediaSampleUpdateArgs args) { }
public bool GetFrameData(ref MediaSampleUpdateArgs args) { return(Wrapper.exGetFrameData(this.Handle, ref args) == 0); }