看板 AndroidDev 關於我們 聯絡資訊
請教大大,我寫了一個小程式要播放 rtsp streaming 封包, 有收到封包時程式可以正常執行,沒有收到封包時會出現下面錯誤: ERROR/ARTSPConnection(2163): err = 110 (Connection timed out) INFO/MyHandler(2163): connection request completed with result -110 (Connection timed out) INFO/AwesomePlayer(2163): ARTSPController::connect returned -214748364801-02 ERROR/MediaPlayer(7972): error (1, -2147483648) ERROR/MediaPlayer(7972): Error (1,-2147483648) DEBUG/VideoView(7972): Error: 1,-2147483648 程式碼如下,有加 try-cath 了,不知道是否少了什麼? 請高手指點迷津,謝謝! videoView = (VideoView) findViewById(R.id.VideoView01); try { Uri video_url = Uri.parse("rtsp://192.168.1.1:5500/test.sdp"); videoView.setVideoURI(video_url); videoView.requestFocus(); videoView.start(); }catch (Exception e) { Log.e("Play rtsp RROR", "!!!!!"+e.toString()); } -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.218.111.194