Use streaming in ASP.NET Core SignalR can stream video in room in realtime?

Hoài Nam Nguyễn 41 Reputation points
2024-05-07T06:59:55.42+00:00

I read this article Use streaming in ASP.NET Core SignalR When client A play the video, I will convert the blob file to the byte array. and then send it to the server using streaming in SignalR as described in the article.

staying at client B in the room, how can I play the video using the <video> html tag.

Developer technologies ASP.NET ASP.NET Core
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 77,686 Reputation points Volunteer Moderator
    2024-05-07T15:56:56.69+00:00

    the javascript defines a MediaSource() and uses this to stream to the video tag. see:

    https://developer.mozilla.org/en-US/docs/Web/API/MediaSource

    note: signal/r is not real fast and uses small buffers, so you will need to use a low frame rate. also you will should implement range requests (setLiveSeekableRange)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.