private void Update(Uri uri, string contentType, VideoStart state)
 {
     if (ResourceId != 0 && Application != null)
     {
         ReleaseResource();
     }
     _resource = new Resource(uri, contentType, state);
     if (Application != null)
     {
         Create();
     }
 }
Beispiel #2
0
 public void OnVideoStart(VideoEventArgs e)
 {
     VideoStart?.Invoke(this, e);
     OnVideoEvent(e);
 }
 public StreamedVideoView(Uri uri, string contentType, VideoStart state)
     : this()
 {
     Update(uri, contentType, state);
 }
Beispiel #4
0
 public Resource(Uri uri, string contentType, VideoStart state)
 {
     _name               = uri.OriginalString;
     _hashString         = "V:" + uri.OriginalString;
     _addResourceCommand = new Commands.ResourceAddStream(uri, contentType, state == VideoStart.AutoPlay);
 }