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(); } }
public void OnVideoStart(VideoEventArgs e) { VideoStart?.Invoke(this, e); OnVideoEvent(e); }
public StreamedVideoView(Uri uri, string contentType, VideoStart state) : this() { Update(uri, contentType, state); }
public Resource(Uri uri, string contentType, VideoStart state) { _name = uri.OriginalString; _hashString = "V:" + uri.OriginalString; _addResourceCommand = new Commands.ResourceAddStream(uri, contentType, state == VideoStart.AutoPlay); }