I am new to android.I want to play a video or audio file from my Pc(server) to the emulator(Cl开发者_开发知识库ient).To do this want should I have to do.I don't have any idea what should I have to do.I have to set Socket.I have to change any thing in Pc Side.What should I have to do.Please help me.Thanks in advance.
This is a fairly ambitious first project. But basically, you need to have a server running on your PC that will serve the media. Then, have an Android app connect to your media server and use Android's MediaPlayer class to play the audio/video. A detailed documentation of the MediaPlayer class can be found here. I can't find any authoritative documentation on what protocols are supported out of the box, but you should at least be able to get it working with RTSP, as documented here, by running a VLC server on the PC.
精彩评论