/// <summary> /// extracts the video data from the returned picker object /// </summary> /// <param name="i"></param> private void AddPickedVideo2Playlist(int i) { VideoClipData videoData = new VideoClipData(); videoData.URL = filePicker.FileNames[i]; videoData.Name = filePicker.SafeFileNames[i]; AddVideoData2ListView(videoData); }
/// <summary> /// saves the desired video'uri and at HD to paylist /// </summary> /// <param name="videoData">the object contaning the video location on HD</param> public void AddVideoData2ListView(VideoClipData videoData) { targetAsset.VideoClipList.Add(videoData); playlistView.Refresh(); }
/// <summary> /// shows the Remove video button when the user highlights a video /// fom the playlist's listview /// </summary> /// <param name="obj"></param> private void OnItemChosen(System.Object obj) { selectedItem = (VideoClipData)obj; removeVideoButton.visible = true; }