using System.Net;
using LiveStreamingServerNet;
using LiveStreamingServerNet.Flv.Installer;
using LiveStreamingServerNet.Networking.Helpers;
using var liveStreamingServer = LiveStreamingServerBuilder.Create()
.ConfigureRtmpServer(options => options.AddFlv())
.ConfigureLogging(options => options.AddConsole())
.Build();
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddBackgroundServer(liveStreamingServer, new IPEndPoint(IPAddress.Any, 1935));
var app = builder.Build();
app.UseWebSockets();
app.UseWebSocketFlv(liveStreamingServer);
app.UseHttpFlv(liveStreamingServer);
await app.RunAsync();
above code works fine with RTMP. But, when i try to access Websocket-FLV url(ws://localhost:5051/live/k1.flv), its not working. Is any change need to be done on code?
above code works fine with RTMP. But, when i try to access Websocket-FLV url(ws://localhost:5051/live/k1.flv), its not working. Is any change need to be done on code?