Exemple #1
0
        private void asyncPlay(string audioFilePath)
        {
            playRecording = false; //About to play user recording so next recording should be from the database. so set playrecording to false.
            delegatePlayer VLCDelegate = new delegatePlayer(this.Play);

            // Call play asynchronously.
            VLCDelegate.BeginInvoke(new Uri(audioFilePath), new string[] { }, null, null);
        }
Exemple #2
0
        /// <summary>
        /// The VLCPlayer is not threadsafe, so it is much easier to invoke it with delegates.
        /// This should be used to play the video; it also handles the audio overlay.
        /// </summary>
        private void asyncPlay()
        {
            if (!recordingProgressBarLabel.Text.Equals(noFileText))
            {
                playRecording = true; //About to play database recording so next recording should be from the user audio. so set playrecording to false.
            }
            else
            {
                playRecording = false; //No user recording so the next recording should be from the database.
            }
            // Get a new instance of the delegate
            delegatePlayer VLCDelegate = new delegatePlayer(this.Play);

            // Call play asynchronously.
            VLCDelegate.BeginInvoke(new Uri(filePath), new string[] { }, null, null);
        }
Exemple #3
0
        /// <summary>
        /// The VLCPlayer is not threadsafe, so it is much easier to invoke it with delegates.
        /// This should be used to play the video; it also handles the audio overlay.
        /// </summary>
        private void asyncPlay()
        {
            if (!recordingProgressBarLabel.Text.Equals(noFileText))
            {
                playRecording = true;
            }
            else
            {
                playRecording = false;
            }
            // Get a new instance of the delegate
            delegatePlayer VLCDelegate = new delegatePlayer(vlcControl.Play);

            // Call play asynchronously.
            VLCDelegate.BeginInvoke(new Uri(filePath), new string[] { }, null, null);
        }