I'm getting my feet wet with red5 and am trying to make a basic app that will stream a random video to the client.
Let's say I have 3 flvs on my server, I'd like a client to connect to my red5 app and have 1 of these 3 videos streamed to them. The only streaming i've been able to figure out so far uses netStream.play("video.flv"), this doesn't work for me, I wan't the server to decide on the file to stream rather than the client, any help is really appreciated, thanks in advance.
We've made a first-pass at supporting dynamic streaming and you can read my post about it here: http://gregoire.org/2011/07/19/dynamic-streaming-with-red5/
Related
I made a web-server that runs on an esp32(LAN) and I have made it possible to send information to the esp itself from the servers url, (example : 192.168.1.39/?userInput=123), the number 123 is what I want to send from the application depends on the user's input (I compiled it to a packet of 8bits) so max number is 255, the server has an XML and some basic UI for viewing the information passed back and forth, I wanna be able to send the so called packet to the server and it passing it to the esp32 with almost no delay, I used google firebase before but it has way too much delay for it to be usable, I tried using a WebView and loading the URL with the number from the packet, I ran out of ideas on how to approach this would love some advice :)
I tried searching other questions here on the site, asked friends/teachers, watched a few tutorials and asked chatGPT for help but nothing was helpful.
From reading your question it seems you are lost setting up server and client at the same time. Divide the tasks into chunks you can digest:
First, setup your ESP32 webserver. Follow a tutorial like https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ and test it using a normal web browser. It can be used to run GET requests easily, and the amount of data you need to transfer that should definitely be enough. Alternatively you can use curl to send client requests.
Next, develop your java client to send the appropriate request. You can test the behaviour using any standard webserver and check the logs.
Finally put the ESP32 url into your client and see whether they work together.
I want to make a TeamSpeak 3 Musicbot in Java. But I don't find any Protocol from Teamspeak for the Voice transmission. And after searching for a Client API, for Java, I didn't find anything. Only for a ServerQuery but that doesn't help me I think.
I only want the Client to connect to the Server and then plays a Song, though that wouldn't be that hard!
Maybe you Guys can help me?
Teamspeak does not have an official client-api. You can only use the Query-API and create plugins. As the Query-API does not support any voice-communication, that's not the way you should go. The (most) official way of creating a Teamspeak3 MusicBot would be to run a client on your server which has a plugin installed which allows you to play music (more or less a soundboard). Sinusbot is exactly built this way.
Another "unofficial" option would be to make use of unofficial reverses of the teamspeak-protocol and built you own client from these. If you want more information about this, this repository might help you (and look for other projects the creator pushed, they might help you too).
I'm not quite sure if this helps, but have been developing a TeamSpeak 3 music bot using Kotlin, which is compatible with Java as it runs on the JVM (Java Virtual Machine)
The way it works is that it first launches the TeamSpeak client and connects to the desired server and channel, then it starts monitoring the chat log -> the bot can be controlled by entering commands into the chat.
The bot uses the TeamSpeak ClientQuery via Netcat to send messages to the chat.
It is completely client-side so you don't need to be server admin to get it working.
The bot currently supports Spotify, YouTube, and SoundCloud.
You can check it out at https://gitlab.com/Bettehem/ts3-musicbot
I need to send an object built in server to my Android app. I'm looking for the best way to do that. I dunno if the best choice is just JSP with binary output, or maybe RMI or just sockets. Google Cloud Messaging should be my choice, but It seems Im needing a supporting server for this technologie.
Any suggestion?
Thank you.
For a project, I need to be able to stream live audio from a Java server to the browser on the client. My first guess was to use RTMP with a Flash player, my second guess to make use of the HTML5 audio tag. But so far, I've failed to find anything useful (like a library), so does anyone have any pointers on how to do this?
Here's the setup: The sound comes in from a VoIP server as a bunch of PCM samples. From there, it has to go to get to the client, while usually only one client listens to one stream. So I need to be able to send many VoIP streams to several clients, a simple form of authentication would also be nice (like a token or a secret URL where the stream is located at).
So far, I've looked at Red5 (looks to me like one-to-many streaming only) and searched for Java-based RTMP libraries. Any help is gladly appreciated!
After carrying out some research I have found out that an RTSP media server for develivering video and audio can be implemeneted in java using Netty. After consulting the web site and veiwing the documentation I have still not found any real help on how an RTSP media server can be implemeneted using it. I have been stucktrying to solve this problem for a while now and I am well aware of the RTSP protocol, other streaming protocols and all the issues that come with streaming media. Could someone please piont me at a place to start so that I can slowly work my way through the implemenattion of an RTSP server in java (Netty). Any online documentation or source code that is reasonably close to this issue, or shows the very basics would be a great help. Thank you.
You could take a look at flazr which is Netty implementation for streaming protocols like RTMP. Another place where you might find relevant information is the related projects page of Netty.
I think the best way to solve it is to create a new Netty project and make a HTTP server and client, then modify it into a RTSP server and client.