Ошибка загрузки плагина медиаплеера Silverlight - PullRequest
0 голосов
/ 20 октября 2011

Я пытаюсь написать универсальный плагин MMPPF (Microsoft Media Platform Player Framework).Я связал это с серебряным игроком света.По некоторым причинам плагин никогда не загружается (функция PluginLoadFailed всегда вызывается.).Мой код прикреплен ниже.

using System;
using System.Windows;
using System.Windows.Controls;
using System.ComponentModel.Composition;
using Microsoft.SilverlightMediaFramework.Plugins.Metadata;
using Microsoft.SilverlightMediaFramework.Plugins;
using Microsoft.SilverlightMediaFramework.Core;
using Microsoft.SilverlightMediaFramework.Utilities;

namespace MyGenericPlugin
{
   [ExportGenericPlugin(PluginName = "MyGenericPlugin",
    PluginDescription = "This is a generic MMPPFPlugin.",
    PluginVersion = "1.0")]
    public class MyGenericPlugin : IGenericPlugin
    {

        public event Action<IPlugin,
        Microsoft.SilverlightMediaFramework.Plugins.Primitives.LogEntry> LogReady;

        public event Action<IPlugin, Exception> PluginLoadFailed;

        public event Action<IPlugin> PluginLoaded;

        public event Action<IPlugin, Exception> PluginUnloadFailed;

        public event Action<IPlugin> PluginUnloaded;


        public void SetPlayer(FrameworkElement Player)
        {
          throw new NotImplementedException();
        }

        bool IPlugin.IsLoaded
        {
          get { throw new NotImplementedException(); }
        }

        void IPlugin.Load()
        {
          throw new NotImplementedException();
        }

        event Action<IPlugin,      
         Microsoft.SilverlightMediaFramework.Plugins.Primitives.LogEntry> IPlugin.LogReady
        {
          add { throw new NotImplementedException(); }
          remove { throw new NotImplementedException(); }
        }

        event Action<IPlugin, Exception> IPlugin.PluginLoadFailed
        {
          add { throw new NotImplementedException(); }
          remove { throw new NotImplementedException(); }
        }

        event Action<IPlugin> IPlugin.PluginLoaded
        {
          add { throw new NotImplementedException(); }
          remove { throw new NotImplementedException(); }
        }

        event Action<IPlugin, Exception> IPlugin.PluginUnloadFailed
        {
          add { throw new NotImplementedException(); }
          remove { throw new NotImplementedException(); }
        }

        event Action<IPlugin> IPlugin.PluginUnloaded
        {
          add { throw new NotImplementedException(); }
          remove { throw new NotImplementedException(); }
        }

        void IPlugin.Unload()
        {
          throw new NotImplementedException();
        }

        void IPlayerConsumer.SetPlayer(FrameworkElement Player)
        {
          throw new NotImplementedException();
        }
   }
 }
...