override protected void OnAttach()
 {
     if (factory == null)
     {
         factory = new HTTPSourceStreamFactory(Application.PeerCast);
     }
     Application.PeerCast.SourceStreamFactories.Add(factory);
 }
 protected override void OnAttach()
 {
     if (factory==null) factory = new HTTPSourceStreamFactory(Application.PeerCast);
       Application.PeerCast.SourceStreamFactories.Add(factory);
 }