Android :: Video Streaming Through Socket And Playing From Client
Nov 20, 2010
I have two simple programmes, server and client, both at localhost. What I want to do is to streaming the video from the server to the client through socket and the client can play it by using filediscriptor of the socket. First I try to send some message and the client can receive it. After that I send a few bytes of the video from the server'sd card to the client. The client can receive those bytes but cannot play it. Anyone know how to solve the problem?
Here is my server and client code snippets:
Server:
CODE:..............
Client:
CODE:..........................
View 1 Replies
Oct 3, 2012
How to record the received rtsp video streaming on android client.
I need record the received video by a android smartphone via rtsp streaming (DSS 6) in mp4 or yuv file format.
I can do this using a pc/linux client but i do know how to do this on android.
Also, can an i access a android device using ssh and execute vlc, mobo or mplayer on it? How?
View 1 Replies
View Related
Nov 21, 2010
I got this message when trying to play mp4 video on android from url ( video is not valid for streaming on this device )
the code i use to play mp4
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.parse(url), "video/mp4");startActivity(intent);
how to solve this problem?
View 14 Replies
View Related
Sep 27, 2010
I have a problem in playing video file in android using VideoView. When I keep the .3gp video file locally in res/raw folder, the video file plays successfully. But when I keep this same file on live web server and stream it, it runs on Android G1, Nexus one and Tatoo which I have for testing. But It fails to stream and play on Motorola milestone. I got the error on device as: 'This video is not valid for streaming'. What problem it should be, I am really seek of finding it. Is it the issue of programming or file format?
View 2 Replies
View Related
Jul 15, 2010
I am writing an Android app that should exchange data to a server over Bluetooth, with the server side on a PC running Ubuntu, using the bluez library, in C (or C++).
My Android app fails (IOException) when I try to connect to my server socket on the PC.
Here is essentially what I in the java code (in Android, full eclipse project here: http://dl.dropbox.com/u/2968234/ThinBTClient.zip)
CODE:...........
This throws IOException after a timeout of 10seconds or so.
On the server side (in Ubuntu 8.10), I basically set up a Bluetooth server socket, along the lines described in the example bluez/sdp-register.c
Down below is my C++ program. To compile it do
g++ -I/usr/include/glib-2.0/ -I/usr/lib/glib-2.0/include -o bt_server bt_server.cpp -lbluetooth
I can do the reverse succesfully, i.e. create a server socket in Android and connect from Linux, however this is not what I want to do!
I think either the problem has to do with my config of Ubuntu.
CODE:................
View 1 Replies
View Related
Aug 15, 2010
Kindly provide me the code/steps for Android application which will provide the Video Streaming & Video playing functionalities by accesssing the Videos from various video websites available on Internet.
View 1 Replies
View Related
Mar 3, 2010
I have a simple client-server app on android. the android service communicates with the server via tcp sockets. the service sends a simple String to server which works. the server processes the string and sends back an object to the android service. the object implements the serializable interface. the object "leaves" the server successfully but at the point where the android service receives the object (socket.readObject()
View 1 Replies
View Related
Apr 7, 2010
I want to make my phone communicate with computer with socket. I have try many kinds of source in internet. None of them works. The phone always display "HelloWorld <ActivityName>". Log.d() seems not work on my phone, because, I have used that, but nothing was printed.
View 3 Replies
View Related
Sep 21, 2010
I am trying to develop an android application which will be able to record a video and send it in real time to a remote computer. The computer then will play it live. I have managed to establish a connection between the android and the computer, and to record a video on the android phone. My problem is, how will I be able to send this video to the computer? Does anyone have an idea?
View 5 Replies
View Related
Apr 23, 2010
I am maintaining a streaming music player, and I'm running into a similar problem as http://www.last.fm/group/Last.fm+Android/forum/114391/_/593575
My player stop after roughly 1-2 minutes, and there are no log messages except for "I/AudioHardwareQSD( 52): AudioHardware pcm playback is going to standby" just after the playback stops.
This happens when I run it on the Nexus One over 3G. It does not happen over Wifi, and it does not happen on my HTC Hero with android 1.5 over 3G.
Do you guys have any hints on how to debug this? Is it e.g. possible to monitor the memory available to the media player object?
View 5 Replies
View Related
Jan 22, 2013
I've been looking around for a solution to this - and so far have only found Gmote to be close to what I'm looking for. Actually Gmote hits it on the head, but I wanted to see if there were other options. Here's the setup:
We have a soundboard and speaker system. I would like to hook up a small PC (running either windows or Linux) to the soundboard so that whatever is playing from the computer will come through the speakers. And to control what gets played from the computer, I would like to use my Android phone.
I would consider streaming from my phone if it was reliable enough. I had first looked into streaming to the system via bluetooth - but that wasn't quite stable enough and dropped out too many times.
View 1 Replies
View Related
Dec 3, 2012
I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
View 6 Replies
View Related
Dec 1, 2012
I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
View 5 Replies
View Related
Jan 12, 2010
Is there a way to play the music on sites like 1.fm. this is one thing the blackberries blow away the Eris with.
View 3 Replies
View Related
Dec 18, 2009
Is there any way to play Streaming radio stations other than apps built for specific services (like Pandora/last.fm/slacker/imeem).To clarify, I mean online radio stations, that use .pls files to play streams. Some also have plugin players, but since Flash isn't on the Droid yet I'm not too worried about them. But it seems like it ought to be possible to play streaming .pls files.I tried to download one and it said it couldn't be downloaded because the size could not be determined.
View 1 Replies
View Related
Apr 19, 2010
Might be a daft question but is there any app I could download that will assist me with this. On my onld phone (Windows Mobile based) I could listen to certain sports commentaries via the internet stream. (I think they are .wma files). Is there any app that will allow me to play these or is it beyond android to play windows media format at the moment. for information the Hero tries to play but returns a content not supported' type error
View 1 Replies
View Related
Feb 12, 2010
I don't have time to dig in right now, and will this weekend if I need to but, is there an app out that will stream the following two URLs:
http://droidtest:droidtest@live.str3am.com:3120/secure
http://onyx.streamguys.com/pianosolo?u=droidtest&p=droidtest
View 8 Replies
View Related
Jun 29, 2010
We have a simple client server architecture between our mobile device and our server both written in Java. An extremely simple ServerSocket and Socket implementation. However one problem is that when the client terminates abruptly (without closing the socket properly) the server does not know that it is disconnected. Furthermore, the server can continue to write to this socket without getting any exceptions. Why? According to documentation Java sockets should throw exceptions if you try to write to a socket that is not reachable on the other end!
View 5 Replies
View Related
Nov 12, 2009
Essentially Im trying to get many many java clients connect to a socket on my ColdFusion server (Using the Socket Gateway). However before i even start to code this, Im a little confused about sockets and their performance. First of all, are sockets meant for many(1000+) clients connecting to one socket (say port 2202) on one server? How is the performance if all there waiting for is basically a ping, or something such that when these clients receive this "ping" they can go get some new data.
View 5 Replies
View Related
Jun 28, 2010
say if android supports an RTSP stack? We've an RTSP server that we'd like to stream video to an android rtsp client if thats possible
View 8 Replies
View Related
Aug 5, 2010
I am currently having some problems controlling the audio on my phone via bluetooth in my car.
When I press the button for the next track on Pandora, that would automatically activate the Android Music Player and play whatever I have stored on the SD card. Ultimately, what I have is 2 sources of music playing at the same time.
Only way to fix it is to get rid of the SD card. OR I can switch tracks using the phone itself.
I realize that this problem isn't limited to the Droid X. I've read about this happening on the Incredible as well.
Anyone know whether a patch (or Froyo can fix this)?
View 6 Replies
View Related
Apr 6, 2009
Can anyone tell me how video streaming can done.
View 2 Replies
View Related
Aug 17, 2010
The default player gets out of sync with the audio/video. Is there a replacement for the stock player for streaming video? Im on the htc inc.
View 1 Replies
View Related
Jul 31, 2009
For a research project we need to capture video on the HTC magic and transmit this video over a network to other devices, both HTC magic's and desktop pc's (which have their own implementations of the codecs).For the transmission over the network we are using some of our own native libraries, which have all compiled fine and work. These libraries work via the RTP (Real time transfer) protocol. This poses a significant problem because RTP expects detailed information about the contents of each packet (exact timestamp, sampling rate, which part of which frame is in each packet etc.) So we tried the method described at http://www.mattakis.com /blog/kisg/20090708/broadcasting-video-with-an This appears the only way to get the MediaRecorder to send it's data to our native application. So we run a server-socket on the native side, send MediaRecorder output to a FileDescriptor of a javasocket. The native side does receive data. 2 problems however :
1. Like said in the blogpost : header information etc. is not filled in, so if we write the data to file from the native-side, it's not playable.
2. The socket we write to is TCP, so a stream implementation. So there is no clear way to know where each frame begins and ends (because the data comes in continuously). And that's the main problem : we can't package the data in good RTP packets for transmission! Nor can we get good information about the timing etc. So we looked into OpenCore a little bit, hoping to be able to do it through JNI-interfaces ourselves (or maybe even directly with the native implementations from our native code). This has proven a daunting task, because so little documentation can be found on these things. So the question is : Is it possible to get the encoded video (and audio) data with clear frame-separation and good timing-information for RTP transmission? (It is not an option to use anything but RTP, as the research is partly about RTP possibilities)
View 7 Replies
View Related
Nov 14, 2009
I need help on live video streaming. I want to do the following things in live video streaming.
1. I want to broadcast the live video which is recording by camera from one android mobile directly to a particular ip address.
2. now i want to play that video to another android mobile from that ip address without storing that video.
View 4 Replies
View Related
May 7, 2009
I tried for video streaming in sdk 1.5. The video format .mp4.But it gives error like "This video is not valid for streaming to this video". But in http://developer.android.com/sdk/android-1.5-highlights.html .mp4 is supported for streaming.
View 7 Replies
View Related
Nov 29, 2009
Is their either a trick or an application that would let a video that is being streamed to loads in the background and allow you to move to another application or back to the browser while the video loads? As soon as I get off screen from the video player, all is lost.
View 1 Replies
View Related
Sep 21, 2010
I have a simple question "*Is Video Streaming possible in Android Emulator*",I am using the example in Android SDK but it give me message "*Sorry Can't play this Video*".I am using Youtube Video to stream in android Emulator.
View 5 Replies
View Related
May 18, 2010
I 'm developing a video streaming android application on HTC Tattoo. I 've Lighttpd server at my server side which i use to stream videos to a web site. On Android , Do I need to enable any module in Lighttpd server?
View 2 Replies
View Related
Jan 16, 2012
How to get videos from android to the wii (hacked of course). I have tried to just plug in a usb cord in the back like I do for my psp but every time I go into an app for watching movies it wont show my phone. I know I can just take the sd card out but its a real pain to take the back off my phone and the case I have on it too.
View 3 Replies
View Related