How can I play audio ( but secret url ) on WebSite? Is it possible? - node.js

I want to play an audio on WebSite but link of audio have to secret or encrypted on NodeJS
example: Spotify etc.

What I would suggest is to have your socket.io server which can send you an appropriate audio file for your request.
Once you are connected to socket sever send the name of the audio file to your server and the server will send the audio file over the socket.
After receiving the file you can play as you want.
This way you will not expose the actual URL of the audio file because that is handled by your server.

Related

Proxying a video from another server in Nodejs Express

I'm attempting to proxy a video connection from another server, and I need it to operate dynamically in VLC. Something like a stream. The video should be able to seek forward and backward quickly in VLC, maybe utilizing the range?
I have an mp4 link.
I'd want to use it as a mask to proxy into another URL.

How to structure an app which uses a mobile phone to transmit audio via UDP

I need some help structuring an App that allows for a speaker who can send audio via his/her phone mic and then for users to listen to this audio stream. I don't want to upload anything to the cloud as there may be bad internet reception.
What technologies to use? How do they talk to together?
Currently I have:
Have a mobile dongle that everyone connects to
host a server on this dongle?
Send an live audio stream to this server via UDP
Users listen to this server
Ideally it would be great if I could build this in React Native, which I think is possible. I am not sure how to host a server on a dongle though or even if this the best method?

Get mp3 file from node to react

I have two folders for the server (http: // loсalhost: 3000 node) and the client (http: // loсalhost: 3001 reactjs).
I have mp3 files on the server, I want to transfer them to the client, how can this be done? What should be the way?
Possible duplicate of How can I serve mp3 file on node js?
You can serve the mp3 file via a web service and use that api url in the react player.

RUn RTSP Live streaming in all browsers using angular js plugin

I have RTSP URL coming from back end and I have to run rtsp live streaming in my web GUI written in angular js.Currently i am using VXG player plugin to run that RTSP URL but this player is only supported in Chrome.Is there any solution to run that rtsp URL in all browsers
E.x: Chrome, Mozilla, IE, Safari, Microsoft Edge?
Thanks in Advance.
Rtsp is not a supported protocol by most browsers. If you need it to work on all browsers, you must use a protocol that works on all browsers. Like http.
Since RTSP is not supported directly by the browser it needs some back end server which captures the stream using web sockets so it is not like normal http where we need to wait for response web sockets is two-way duplex communication.And again in browser it can play only mp4 videos so there should be player which ever the format the stream is and convert it browser understandable format.
some url which will be helpful understand this concept
https://streamedian.com/docs/#description
And another using node js which uses websocket and jsmpeg player you can implement rtsp streaming in browser using Angular JS
https://www.npmjs.com/package/node-rtsp-stream
https://github.com/phoboslab/jsmpeg -- jsmpeg player
and server side you should install ffmpeg. so ffmpeg converts your stream.
Note If try to implement Node Js on please install the ffmpeg in the server side

P2P Audio stream Linux server software

I am in search of a server software which can stream different audios to a different clients.
For example every client will be able to create his own playlist and the server will stream it
Any help will be appreciated
You can check flash which has support for RTMP to stream audio real time using client server & RTMFP which works over peer to peer technology. You can use RTMFP in case peer is directly reachable else use RTMP. There is a open source red5 media server which also has support for RTMP protocol.

Resources