-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
send audio messages throught pusher channel #381
Comments
Please explain why you're trying to send the file through Pusher. You should ideally store the file on your own server and only send the file's url to the user(s). |
@joshmaines Because it's for a real time app, but I've solved by switching to socket.io and a dedicated server, pusher is not able to send binary data over the channels. |
You can send binary data as a string (convert it) as long as it fits inside the size limitations of a single message. |
|
|
You can't normally use shared hosting for services like Pusher, but in the case of Pusher, you can accomplish using it on shared hosting, because it's an external service you connect to using an API. here's a link to the getting started docs: https://pusher.com/docs/channels/getting_started/javascript/ Edit: Most shared hosting won't give you the ability to install the Pusher and Node libraries using NPM, but you may be able to get around this. I'd recommend getting a VPS (virtual private server) account somewhere as that's easier to work with (less limitations anyway) and doesn't have to cost a lot. |
I wanna implement an authentication without using laravel and a way to send audio messages using the pusher created channel. Can anyone help me?I never implemented audio sending and I'm not sure on how to proceed with the users authentication on the php side, and how to correctly send and retrive the audio data using pusher.
This is the code of the webRTC demo that pushers will offer on github (I've removed the webrtc because it will leave the sognaling open and this consume my pusher api quota), I did some modifications to integrate a button for audio recording. I've tried to send it throught the pusher connection, but if I send a blob url, it will give me an error when the message is received
net::ERR_REQUEST_RANGE_NOT_SATISFIABLE
, I have no idea of how to pass the data?For the authentication, I want to use private channels, I want to understand what I need to put in my PHP file to authorize the users for a room.
JS code
PHP
The text was updated successfully, but these errors were encountered: