55 lines
1.2 KiB
C#
55 lines
1.2 KiB
C#
using Unity.WebRTC;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace Unity.RenderStreaming
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public class SignalingEventData : BaseEventData
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string connectionId { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public RTCDataChannel channel { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public RTCRtpTransceiver transceiver { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public string sdp { get; set; }
|
|
|
|
/// <summary>
|
|
/// 参与者ID
|
|
/// </summary>
|
|
public string participantId { get; set; }
|
|
|
|
/// <summary>
|
|
/// 角色 (host/participant)
|
|
/// </summary>
|
|
public string role { get; set; }
|
|
|
|
/// <summary>
|
|
/// 自定义消息内容
|
|
/// </summary>
|
|
public string message { get; set; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="eventSystem"></param>
|
|
public SignalingEventData(EventSystem eventSystem) : base(eventSystem)
|
|
{
|
|
}
|
|
}
|
|
}
|