Beispiel #1
0
 private MediaStream(IJSRuntime jsRuntime, JsObjectRef jsObjectRef) : base(jsRuntime, jsObjectRef)
 {
     AddNativeEventListenerForObjectRef("addtrack", (s, e) => OnAddTrack?.Invoke(s, e),
                                        MediaStreamTrackEvent.Create);
     AddNativeEventListenerForObjectRef("removetrack", (s, e) => OnRemoveTrack?.Invoke(s, e),
                                        MediaStreamTrackEvent.Create);
 }
        void OnClickDelete(object obj)
        {
            var dump = m_ClipEditors.ToArray();

            for (int i = 0; i < dump.Length; i++)
            {
                RemoveClip(dump[i]);
            }

            OnRemoveTrack?.Invoke(this);
        }
Beispiel #3
0
        /// <summary>
        /// Delete track display
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnDelete_Click(object sender, EventArgs e)
        {
            string            message = "Do you want to remove from the display the track number " + _tracknumber + "?";
            string            caption = "Karaboss";
            MessageBoxButtons buttons = MessageBoxButtons.YesNo;
            DialogResult      result;

            // Displays the MessageBox.
            result = MessageBox.Show(message, caption, buttons);

            if (result == DialogResult.Yes)
            {
                OnRemoveTrack?.Invoke(this, e, _tracknumber);
            }
        }
Beispiel #4
0
 private void PeerConnection_OnRemoveTrack(RTCTrackEvent evt)
 {
     OnRemoveTrack?.Invoke(evt);
 }