// %BANNER_BEGIN% // --------------------------------------------------------------------- // %COPYRIGHT_BEGIN% // Copyright (c) (2018-2022) Magic Leap, Inc. All Rights Reserved. // Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2 // Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein. // %COPYRIGHT_END% // --------------------------------------------------------------------- // %BANNER_END% namespace UnityEngine.XR.MagicLeap { using System.Runtime.InteropServices; /// /// MLWebRTC class contains the API to interface with the /// WebRTC C API. /// public partial class MLWebRTC { /// /// Class that represents an app defined source that can be used by the MLWebRTC API. /// public abstract partial class AppDefinedSource : MediaStream.Track { /// /// Gets the GCHandle of this managed object. /// protected GCHandle gcHandle; /// /// Instance method that is called when the source is destroyed via MLWebRTC.MediaStream.Track.DestroyLocal(). /// protected abstract void OnSourceDestroy(); /// /// Instance method that is called when the source is enabled or disabled via MLWebRTC.MediaStream.Track.SetEnabled() /// /// True if enabled. protected abstract void OnSourceSetEnabled(bool enabled); public AppDefinedSource(string trackId) : base(trackId) {} } } }