How to stream video to your android phone 如何將視訊遠端傳輸至你的android手機?

雲一JL發表於2012-10-23

任務:

在手機上接收PC的廣播或單播視訊流,簡單而言,就是當我想看電影了,那麼不需要將電影轉存至手機,直接邊傳邊看,當然,也可以使用多播,幾個手機同時可以看。

mission: PC stream video to android phone , why we do that? Coz we do not need to copy movie to sd card to see instead we just seeing and pc transferring。  

必備條件:

prepare for test

1 android phone  2 PC (linux  , windows) 3 VLC  4  Wifi


測試裝置:
My test enviroment 

 DROID RAZR ,ICS(Android 4.04) ,XP & UBUNTU ,VLC Towflower(2.02) ,NETGEAR Router

開始:
Now we start:

1 VLC -> 媒體Media ->流Stream

2 選擇檔案choose file -> 新增媒體檔案 add media file -> 串流 press stream

3 目標設定 Stream output ->設定RTSP->設定路徑setting output ,如果播放失敗,新增'test.sdp',If fails,append 'test.sdp'


4 點選串流Stream

5 接下來就是掏出手機了,下載一個最新的VLC 應用,或者自己寫一個簡單的videoview應用,輸入上述的rtsp://Server_IP:8554/test.sdp,然後,我們就可以看到電腦上傳輸的視訊啦。

now we could download vlc from google play to our android phone ,or u could also write a videoview app to receive stream. Input the stream address ,like rtsp://Server_IP/test.sdp, then we could see the show in PC.


後話:

PS:

昨天在找vlc的時候,發現了個VLC remote ,結果發現竟然是在手機上遠端控制PC端的VLC的,把手機當成電腦VLC播放器的遙控器。。。太geek了。。。

yesterday ,when I try to find vlc player ,I also find a app named 'vlc remote' ,which turns out a tool that could remote control the vlc in pc ,like play,stop or play list, so fun ,so geek... 





相關文章