Does i.MX6Q+android4.4.2 support playing udp unicast?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Does i.MX6Q+android4.4.2 support playing udp unicast?

ソリューションへジャンプ
1,599件の閲覧回数
lqll
Contributor III

Hi,community:

   my device is i.mx6q+android 4.4.2, I write an simple android app to play video with android api videoview. I found my device can play sdcard video and udp multicast video, but can't play udp unicast stream. Test video's format is H264, and the steamming source is VLC on pc.

   Android app like this:

VideoView videoView = (MyView)findViewById(R.id.videoview1);

Uri uri =Uri.parse("udp://10.14.25.3:1234");
videoView.setVideoURI(uri);
videoView.start();

   Device IP is 10.14.25.3, and udp port is 1234, when playing udp unicast video, logcat always print Reconnecting, and if I input tcpdump in shell , I can see this, so the net is ok.

root@sabresd_6dq:/tcpdump -c 1 -t udp port 1234

listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
IP 10.14.0.2.50672 > 10.14.25.3.1234: UDP, length 1316
1 packets captured
2 packets received by filter
0 packets dropped by kernel

Here is udp unicast logcat:

10-31 17:50:45.210 I/OMXPlayer( 3561): LEVEL: 1 FUNCTION: prepare LINE: 528
10-31 17:50:45.210 I/OMXPlayer( 3561): failed to open file: /data/system/audio_pass_through_pref.
10-31 17:50:45.210 I/OMXPlayer( 3561): Loading content: udp://10.14.25.3:1234

10-31 17:50:45.380 I/OMXPlayer( 2453): Reconnecting...
10-31 17:50:47.580 I/OMXPlayer( 2453): Reconnecting...
10-31 17:50:49.790 I/OMXPlayer( 2453): Reconnecting...
10-31 17:50:51.990 I/OMXPlayer( 2453): Reconnecting...

Can any help me? Thank you!

ラベル(2)
0 件の賞賛
返信
1 解決策
1,495件の閲覧回数
b36401
NXP Employee
NXP Employee

Here is a document regarding to setup multicast for Android on i.MX6:
https://community.nxp.com/docs/DOC-100045

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,496件の閲覧回数
b36401
NXP Employee
NXP Employee

Here is a document regarding to setup multicast for Android on i.MX6:
https://community.nxp.com/docs/DOC-100045

0 件の賞賛
返信