What version of Streaming-Meda-Cordova-Plugin are you using?
2.2.0
What version of Cordova are you using?
8.0.0
What devices are affected?
Huawei p10 lite, Huawei Honor 8
Please describe the issue in detail, with relevant code samples
I have app which displays some video content.
These are mp4 files.
After playing any for 2-3 minutes, video stops, player is closed, user is send back to the main window where was before.
This happens only for certain devices (e.g. Huawei p10 lite, Huawei Honor 8)
i can see there is similar issue #105 it was closed with suggestion it occurs only on old and cheap devices - in my case devices are not that old and cheap :wink:
I obviously see some errors in logs (attached below), but i wasn't able to investigate it successfully.
Anyone has some ideas what can be the cause?
Here are some device logs:
07-04 10:25:08.506 427 427 E ServiceManager: try to find service failed, not allowed access from isolated processes.
07-04 10:25:08.507 1870 1887 I ServiceManager: Waiting for service SurfaceFlinger...
07-04 10:25:09.508 427 427 E ServiceManager: try to find service failed, not allowed access from isolated processes.
07-04 10:25:09.508 1870 1887 I ServiceManager: Waiting for service SurfaceFlinger...
07-04 10:25:10.509 427 427 E ServiceManager: try to find service failed, not allowed access from isolated processes.
07-04 10:25:10.509 1870 1887 I ServiceManager: Waiting for service SurfaceFlinger...
07-04 10:25:10.857 567 2605 E NuPlayerDecoder: Stream error for OMX.google.aac.decoder (err=-1004), EOS successfully queued
07-04 10:25:10.858 567 2552 E NuPlayer: received error(0xfffffc14) from audio decoder, flushing(0), now shutting down
07-04 10:25:10.859 427 427 E SELinux : avc: denied { find } for service=Hwmedia.monitor pid=567 uid=1013 scontext=u:r:mediaserver:s0 tcontext=u:object_r:hw_mediamonitor_service:s0 tclass=service_manager permissive=0
07-04 10:25:10.859 427 427 E ServiceManager: try to find service failed, svc can not find service.
07-04 10:25:10.859 567 2605 W HwMediaMonitorManager: HwMediaMonitorService not published, waiting...
07-04 10:25:10.860 567 2605 I HwMediaMonitorManager: The HwMediaMonitorService is NULL, write exception log failed!(prior:3, type:14, msg:OIBF1)
07-04 10:25:10.861 560 616 I Hwmedia_monitor: Permission Denial: can't writeLogMsg HwMediaMonitorService from pid=2221, uid=11307
07-04 10:25:10.862 2221 2445 E MediaPlayer: error (1, -1004)
07-04 10:25:10.862 2221 2221 E MediaPlayer: Error (1,-1004)
07-04 10:25:10.863 2221 2221 E SimpleVideoStream: MediaPlayer Error: Unknown (1) -1004
07-04 10:25:10.866 567 2610 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.866 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.866 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.866 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.866 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.868 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.868 567 2606 W SimpleSoftOMXComponent: checkTransitions port buf count is not zero
07-04 10:25:10.873 613 958 I AudioTrackShared: server obtain null buf part1:0 rear:7899840 front:7899840 mFrameCount:24000
07-04 10:25:10.896 2221 2221 I MediaPlayer: [HSM] stayAwake false uid: 11307, pid: 2221
07-04 10:25:10.906 1794 1909 I ScenarioService: ID_VIDEO_END : EventID=135 Pkg=pl.vitalia.holia Pid=2221
07-04 10:25:10.930 1794 2078 I PGServer: report state:10016 event type:1 pid:0 uid:0 pkg:pl.vitalia.holia to pid: 1202
07-04 10:25:10.941 2221 2221 I FirebasePerformance: Session ID - 7d2abb523db040f8bc8ca475e002c669
07-04 10:25:10.942 2221 2221 W com.facebook.appevents.AppEventsLogger: activateApp events are being logged automatically. There's no need to call activateApp explicitly, this is safe to remove.
07-04 10:25:10.956 1794 2073 I HardwareAdapter: write LcdCinemaNode success value :0
07-04 10:25:10.963 428 441 E ion : set flags ioctrl failed!
07-04 10:25:10.968 428 441 I gralloc : alloc_device_alloc:564: Alloc handle(0x7d8ea35000): interfmt=200000001, stride=1088, size=8486912, usage=0xb00
07-04 10:25:10.968 428 441 E ion : set flags ioctrl failed!
07-04 10:25:10.973 428 441 I gralloc : alloc_device_alloc:564: Alloc handle(0x7d8ea35200): interfmt=200000001, stride=1088, size=8486912, usage=0xb00
07-04 10:25:10.973 428 441 E ion : set flags ioctrl failed!
07-04 10:25:10.979 428 441 I gralloc : alloc_device_alloc:564: Alloc handle(0x7d8ea35d00): interfmt=200000001, stride=1088, size=8486912, usage=0xb00
07-04 10:25:10.989 1224 1224 W android.display: type=1400 audit(0.0:1209396): avc: denied { read } for name="SharedRes" dev="dm-5" ino=1777 scontext=u:r:system_server:s0 tcontext=u:object_r:media_rw_data_file:s0 tclass=dir permissive=0
07-04 10:25:11.029 2221 2221 I MediaPlayer: [HSM] stayAwake false uid: 11307, pid: 2221
07-04 10:25:11.035 2221 2221 W System.err: android.os.NetworkOnMainThreadException
07-04 10:25:11.043 2221 2221 W System.err: at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1315)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.org.conscrypt.Platform.blockGuardOnNetwork(Platform.java:300)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl$SSLInputStream.read(OpenSSLSocketImpl.java:741)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.okio.Okio$2.read(Okio.java:136)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.okio.AsyncTimeout$2.read(AsyncTimeout.java:211)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.okio.RealBufferedSource.read(RealBufferedSource.java:50)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:418)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.internal.Util.skipAll(Util.java:159)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.internal.Util.discard(Util.java:141)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:435)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.okio.RealBufferedSource.close(RealBufferedSource.java:396)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.okhttp.okio.RealBufferedSource$1.close(RealBufferedSource.java:384)
07-04 10:25:11.043 2221 2221 W System.err: at java.io.BufferedInputStream.close(BufferedInputStream.java:472)
07-04 10:25:11.043 2221 2221 W System.err: at android.media.MediaHTTPConnection.teardownConnection(MediaHTTPConnection.java:153)
07-04 10:25:11.043 2221 2221 W System.err: at android.media.MediaHTTPConnection.disconnect(MediaHTTPConnection.java:144)
07-04 10:25:11.043 2221 2221 W System.err: at android.media.IMediaHTTPConnection$Stub.onTransact(IMediaHTTPConnection.java:61)
07-04 10:25:11.043 2221 2221 W System.err: at android.os.Binder.execTransact(Binder.java:565)
07-04 10:25:11.043 2221 2221 W System.err: at android.media.MediaPlayer._reset(Native Method)
07-04 10:25:11.043 2221 2221 W System.err: at android.media.MediaPlayer.reset(MediaPlayer.java:1772)
07-04 10:25:11.043 2221 2221 W System.err: at android.widget.VideoView.release(VideoView.java:653)
07-04 10:25:11.043 2221 2221 W System.err: at android.widget.VideoView.-wrap1(VideoView.java)
07-04 10:25:11.043 2221 2221 W System.err: at android.widget.VideoView$7.surfaceDestroyed(VideoView.java:644)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.SurfaceView.updateWindow(SurfaceView.java:630)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.SurfaceView.onWindowVisibilityChanged(SurfaceView.java:272)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.View.dispatchWindowVisibilityChanged(View.java:10346)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewGroup.dispatchWindowVisibilityChanged(ViewGroup.java:1289)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1674)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1372)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6774)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:926)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.Choreographer.doCallbacks(Choreographer.java:735)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.Choreographer.doFrame(Choreographer.java:667)
07-04 10:25:11.043 2221 2221 W System.err: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:912)
07-04 10:25:11.043 2221 2221 W System.err: at android.os.Handler.handleCallback(Handler.java:761)
07-04 10:25:11.043 2221 2221 W System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
07-04 10:25:11.043 2221 2221 W System.err: at android.os.Looper.loop(Looper.java:156)
07-04 10:25:11.043 2221 2221 W System.err: at android.app.ActivityThread.main(ActivityThread.java:6517)
07-04 10:25:11.043 2221 2221 W System.err: at java.lang.reflect.Method.invoke(Native Method)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:942)
07-04 10:25:11.043 2221 2221 W System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)
07-04 10:25:11.044 567 2628 I imgvideo-vdecapi: [SID=0x05000001] VDECDD_EVENT_STREAM_STOPPED
07-04 10:25:11.044 567 2608 I img_omd_vdec_task: ==============flush==========
07-04 10:25:11.044 567 2608 I img_omd_vdec_task: ==============flush==========
07-04 10:25:11.044 567 2608 I imgvideo-omx: MISSING_STOP_FLAG
07-04 10:25:11.044 567 2628 I imgvideo-vdecapi: [SID=0x05000001] VDECDD_EVENT_STREAM_STOPPED
07-04 10:25:11.044 567 2608 I imgvideo-omx: #Total number of Frames Decoded: 4924
07-04 10:25:11.054 2221 2410 W zze : Application name is not set. Call Builder#setApplicationName.
07-04 10:25:11.066 4243 4121 I SendBroadcastPermission: action:com.google.android.gms.gcm.ACTION_SCHEDULE, mPermissionType:0
07-04 10:25:11.070 4243 4121 I SendBroadcastPermission: action:com.google.android.gms.gcm.ACTION_SCHEDULE, mPermissionType:0
07-04 10:25:11.087 4243 4121 I SendBroadcastPermission: action:com.google.android.gms.gcm.ACTION_SCHEDULE, mPermissionType:0
07-04 10:25:11.090 4243 4121 I SendBroadcastPermission: action:com.google.android.gms.gcm.ACTION_SCHEDULE, mPermissionType:0
07-04 10:25:11.101 24434 24512 E ExecutionCriteria: Package unavailable for task: com.tripadvisor.tripadvisor/com.tripadvisor.android.timeline.service.TimelineGcmTaskService{u=0 tag="TAG_SYNC_DATA" trigger=window{period=43200s,flex=8640s,earliest=-26370996s,latest=-26362356s} requirements=[NET_CONNECTED] attributes=[PERSISTED,RECURRING] scheduled=-26405556s last_run=N/A jid=N/A status=PENDING retries=0 client_lib=MANCHEGO_GCM-11910000}
07-04 10:25:11.118 567 2608 I imgvideo-omx: Exiting VDECTask
07-04 10:25:11.118 567 2607 I imgvideo-omx: Destroying VdecTask e9568030
07-04 10:25:11.118 567 2607 I imgvideo-omx: IMG_OMD_ComponentDeInit Done.
What did you expect to happen?
Player is closed after some time (2-3 minutes)
What actually happened?
Player plays content till the end
What version of Streaming-Meda-Cordova-Plugin are you using? 2.2.0 What version of Cordova are you using? 8.0.0 What devices are affected? Huawei p10 lite, Huawei Honor 8 Please describe the issue in detail, with relevant code samples I have app which displays some video content. These are mp4 files. After playing any for 2-3 minutes, video stops, player is closed, user is send back to the main window where was before. This happens only for certain devices (e.g. Huawei p10 lite, Huawei Honor 8)
i can see there is similar issue #105 it was closed with suggestion it occurs only on old and cheap devices - in my case devices are not that old and cheap :wink:
I obviously see some errors in logs (attached below), but i wasn't able to investigate it successfully. Anyone has some ideas what can be the cause? Here are some device logs:
What did you expect to happen? Player is closed after some time (2-3 minutes) What actually happened? Player plays content till the end