Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Runtime/Scripts/Core/Participant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

using LiveKit.Internal.Threading;
using LiveKit.Internal.FFI;
using System.IO;
namespace LiveKit
{
public delegate Task<string> RpcHandler(RpcInvocationData data);
Expand Down Expand Up @@ -451,6 +452,9 @@ public SendTextInstruction SendText(string text, string topic)
///
public SendFileInstruction SendFile(string path, StreamByteOptions options)
{
if (File.Exists(path) == false)
Utils.Error("File not found");

using var request = FFIBridge.Instance.NewRequest<StreamSendFileRequest>();
var sendFileReq = request.request;
sendFileReq.LocalParticipantHandle = (ulong)Handle.DangerousGetHandle();
Expand Down
Loading