void smfPlayer_MediaPluginRegistered(object sender, Core.CustomEventArgs <Plugins.IMediaPlugin> e) { //When the media plugin is registered, we'll enable and disable the appropriate //3D plugins, and record which media plugin is loaded. Choose3DPlugin(); currentMediaPlugin = e.Value; //Subscribe to events indicating whether the 3D plugin's properties are valid if (Anaglyph3DPlugin.Current != null) { Anaglyph3DPlugin.Current.S3DPropertiesValid -= Current_S3DPropertiesValid; Anaglyph3DPlugin.Current.S3DPropertiesInvalid -= Current_S3DPropertiesInvalid; Anaglyph3DPlugin.Current.S3DPropertiesValid += Current_S3DPropertiesValid; Anaglyph3DPlugin.Current.S3DPropertiesInvalid += Current_S3DPropertiesInvalid; } }
void smfPlayer_PlaylistItemChanged(object sender, Core.CustomEventArgs <Core.Media.PlaylistItem> e) { ChooseAnaglyphMode(); }