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

cancel
Showing results for 
Search instead for 
Did you mean: 

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

Jump to solution
184 Views
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!

Labels (2)
0 Kudos
1 Solution
80 Views
b36401
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
1 Reply
81 Views
b36401
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos