Use of Gstreamer RTSP server with Android
Mariem
mariem.mhiri.ext at valeo.com
Wed Jul 26 13:11:19 UTC 2017
Hello,
I have an android application that is able to open an UDP socket, connect to
server, receive data (h264 flow), decode the data received and display it on
the smartphone screen.
What I am trying to do now is to replace my server with the following
pipeline:
gst-launch-1.0 filesrc location=toystory.h264 ! h264parse !
video/x-h264,stream-format=byte-stream,alignment=nal ! rtph264pay ! udpsink
host=x.x.x.x port=5000
The problem is when I launch the android I get nothing on the screen (No
data received by the client).
To open the socket, I am using the following java code:
try
{
IPAddress = InetAddress.getByName(dstAddress);
socket = new DatagramSocket(PORT);
socket.connect(IPAddress,PORT);
sendPacket = new DatagramPacket(buff, buff.length, IPAddress, PORT);
if (socket.isConnected()) {
socket.send(sendPacket);
}
receivePacket = new DatagramPacket(buff, buff.length, IPAddress, PORT);
socket.receive(receivePacket);
}
catch(IOException e) {
e.printStackTrace();
}
Could you please guide me to connect the pipeline to the client?
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Use-of-Gstreamer-RTSP-server-with-Android-tp4683962.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list