How to show progress of multiple video (upload) file through Signal R by using ASP.NET MVC 4 and MVC 5? RRS feed

  • Question

  • User-234441352 posted

    I'm using ASP.NET MVC5 and ASP.NET MVC4 applications with Vimeo dotnet API.

    I am using SignalR in my application.

    What is the best recommended way to develop a mechanism for multiple video files as well as for multiple users simultaneously.

    Friday, October 23, 2020 4:34 AM

All replies

  • User-1330468790 posted

    Hi Mehmood ahmed,


    Could you please specify what the mechanism means here?


    If you want to implement the progress bar, then you could refer to below code. (I assume that you will get the similar returned value from the upload server).


    Regarding the multiple hubs, SignalR 2.0 was updated to handle multiple hubs over one signlar connection with no lost in performance.

    Official docs: http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server#multiplehubs


    Best regards,


    Monday, October 26, 2020 10:55 AM
  • User-234441352 posted

    Thank you Sean, 
     I have already implemented the logic through the same approach.

    If you can guide then please suggest me that how can I share the progress to the specific client/user not all clients ?

    I am calling the following code from outside the hub class.



    Is there any way to call it using ?

    IHubContext hubContext = GlobalHost.ConnectionManager.GetHubContext<MyHub>();

    Or is there any trick just share for one client/user ?

    Monday, October 26, 2020 1:15 PM