Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

raw video/audio access on the server #49

Open
1 of 4 tasks
alirezag opened this issue Oct 18, 2018 · 3 comments
Open
1 of 4 tasks

raw video/audio access on the server #49

alirezag opened this issue Oct 18, 2018 · 3 comments
Assignees
Labels

Comments

@alirezag
Copy link

Submitting

  • Bug
  • Question
  • Suggetion
  • Other

Details

Hi all, I'm thinking of using ClusterWs for a demo app. I was wondering if I can access the raw video data on the server for some extra processing before passing it to the clients?

@goriunov
Copy link
Member

I hope i understood your question properly :)

There is no message modification on the publis event but what you can do is to send message (vide/audio) to the server with standard send then process it on the server and then publish to the channel:

Client -> standard send -> server (process) -> server.publish to the channel -> all other clients which listen to the channel.

This is one of the best approaches which i also prefer to use in most cases as i can do proper data validation and stuff.

Now about video and audio streaming i don't think WebSocket protocol is the best way to deal with it. I think you better check out UDP protocol.

@goriunov goriunov self-assigned this Oct 18, 2018
@alirezag
Copy link
Author

thanks for the reply. As for the streaming, would webrtc work?

@goriunov
Copy link
Member

Yes if you are using it for Peer-To-Peer communication (in any way you will need to use websokcet for signalling when user is connected or disconnected to stop or start stream for particular IP)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants