i.mx8mq-evk IPTV function with udp streaming

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx8mq-evk IPTV function with udp streaming

1,586 Views
johnke
Contributor I

I followed 'i.MX_Android_Extended_Codec_Release_Notes' to verify IPTV with udp protocol.
It's working on I.MX8mq EVK and able to display udp streaming.On I.MX8mq EVK, I use Android P9.0.0_1.0.0 and HDMI-OUT to display.
But during playback, the video will have the problem of broken screen and not smooth.

I'm also to display on I.MX6q development board with android or other PC with Windows OS to eliminate network environment problems.When playing on these devices, there is no broken or not smooth.

Any suggestions please let me know, Thanks.

0 Kudos
Reply
2 Replies

1,475 Views
igorpadykov
NXP Employee
NXP Employee

Hi john

Android P9.0.0_1.0.0 is based on quite old L4.14.78-1.0.0_ga release

as described in Android P9.0.0_1.0.0 Documentation

May be recommended to try latest Android Q10.0.0_1.0.0 Documentation

which based on L4.19.35_1.1.0 release.and has much improvements.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,475 Views
johnke
Contributor I

Hi Igor,

 

I have tested on 'Android_Q10.0.0_1.0.0' but the streaming via udp still failed.

Where can I refer to the function of Streaming in the document?

 

The log shows:

04-13 09:38:18.790 I/ActivityTaskManager( 3583): START u0 {dat=udp://224.1.2.3:1234 flg=0x10000000 cmp=com.android.gallery3d/.app.MovieActivity} from uid 0
04-13 09:38:18.794 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.797 D/android.hardware.power@1.3-service.imx( 3410): LAUNCH: 1
04-13 09:38:18.808 W/ActivityThread( 4850): handleWindowVisibility: no activity for token android.os.BinderProxy@52aa920
04-13 09:38:18.813 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.830 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.863 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.873 W/AudioManager( 4850): Use of stream types is deprecated for operations other than volume control
04-13 09:38:18.874 W/AudioManager( 4850): See the documentation of requestAudioFocus() for what to use instead with android.media.AudioAttributes to qualify your playback use case
04-13 09:38:18.874 I/MediaFocusControl( 3583): requestAudioFocus() from uid/pid 10092/4850 clientId=android.media.AudioManager@b8dd1b9 callingPack=com.android.gallery3d req=2 flags=0x0 sdk=28
04-13 09:38:18.880 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.898 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.916 I/MediaFocusControl( 3583): requestAudioFocus() from uid/pid 10092/4850 clientId=android.media.AudioManager@b8dd1b9 callingPack=com.android.gallery3d req=1 flags=0x0 sdk=28
04-13 09:38:18.922 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.923 W/MediaPlayer( 4850): Couldn't open udp://224.1.2.3:1234
04-13 09:38:18.923 W/MediaPlayer( 4850): java.io.FileNotFoundException: No content provider: udp://224.1.2.3:1234
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1673)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1503)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:1420)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.media.MediaPlayer.attemptDataSource(MediaPlayer.java:1101)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1073)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1097)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.widget.VideoView.openVideo(VideoView.java:412)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.widget.VideoView.access$2200(VideoView.java:83)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.widget.VideoView$7.surfaceCreated(VideoView.java:694)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.SurfaceView.updateSurface(SurfaceView.java:758)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:155)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2769)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1745)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:7768)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:967)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.Choreographer.doCallbacks(Choreographer.java:791)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.Choreographer.doFrame(Choreographer.java:726)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:952)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.os.Handler.handleCallback(Handler.java:883)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.os.Handler.dispatchMessage(Handler.java:100)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.os.Looper.loop(Looper.java:214)
04-13 09:38:18.923 W/MediaPlayer( 4850): at android.app.ActivityThread.main(ActivityThread.java:7356)
04-13 09:38:18.923 W/MediaPlayer( 4850): at java.lang.reflect.Method.invoke(Native Method)
04-13 09:38:18.923 W/MediaPlayer( 4850): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
04-13 09:38:18.923 W/MediaPlayer( 4850): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
04-13 09:38:18.924 D/NuPlayerDriver( 3419): NuPlayerDriver(0xf574a900) created, clientPid(4850)
04-13 09:38:18.927 I/Codec2Client( 3419): Creating a Codec2 client to service "software"
04-13 09:38:18.930 I/Codec2Client( 3419): Client to Codec2 service "software" created
04-13 09:38:18.932 D/SurfaceUtils( 3419): connecting to surface 0xf57e6808, reason setVideoSurfaceTexture
04-13 09:38:18.933 D/NuPlayer( 3419): onSetVideoSurface(0xf57e6000, no video decoder)
04-13 09:38:18.932 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.938 E/ClearFileSource( 3419): Failed to open file 'udp://224.1.2.3:1234'. (No such file or directory)
04-13 09:38:18.938 E/GenericSource( 3419): Failed to create data source!
04-13 09:38:18.939 E/MediaPlayerNative( 4850): error (1, -2147483648)
04-13 09:38:18.948 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.980 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.997 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:18.998 E/MediaPlayer( 4850): Error (1,-2147483648)
04-13 09:38:18.998 D/VideoView( 4850): Error: 1,-2147483648
04-13 09:38:19.006 I/ActivityTaskManager( 3583): Displayed com.android.gallery3d/.app.MovieActivity: +200ms
04-13 09:38:19.016 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.030 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.249 I/chatty ( 3583): uid=1000(system) Binder:3583_D identical 21 lines
04-13 09:38:19.250 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.266 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.380 I/chatty ( 3583): uid=1000(system) Binder:3583_10 identical 12 lines
04-13 09:38:19.380 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.401 D/android.hardware.power@1.3-service.imx( 3410): LAUNCH: 0
04-13 09:38:19.401 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.415 I/chatty ( 3583): uid=1000(system) Binder:3583_10 identical 2 lines
04-13 09:38:19.415 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.431 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.497 I/chatty ( 3583): uid=1000(system) Binder:3583_D identical 8 lines
04-13 09:38:19.497 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.514 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.580 I/chatty ( 3583): uid=1000(system) Binder:3583_6 identical 8 lines
04-13 09:38:19.580 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.597 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.680 I/chatty ( 3583): uid=1000(system) Binder:3583_D identical 10 lines
04-13 09:38:19.680 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:19.697 E/InputDispatcher( 3583): Window handle nav_input_consumer has no registered input channel
04-13 09:38:22.871 E/TaskPersister( 3583): File error accessing recents directory (directory doesn't exist?).

 

Regards,

John Ke

0 Kudos
Reply