Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Media Plugin won't play the example video on Lollipop 5.1.1 on a nexus — Gideros Forum

Media Plugin won't play the example video on Lollipop 5.1.1 on a nexus

AniketKAniketK Member
edited February 2016 in General questions
I took the media plugin form the gideros site, exported the example project, followed the instructions in the install.html and when I installed the app and tried to 'Play Video' it says 'Can't play this video'.

I'm using a Nexus 4 that's on 5.1.1. Using Gideros 2015.10.

Comments

  • So a bump and I also tried it on the latest version of Gideros (2015.12) and the example didn't work there either. Still saying "Can't play this video"
  • Is there any specific java error in Logcat?
    Cause I don't have Android 5 capable device, so can't test for that specific OS
  • This is the md5 sum of the test.mp4 27e10f20acad394fb1b32ff37f0b422d

    This is the error that occurs.
    02-29 09:42:23.080: D/MediaPlayer(21164): Couldn't open file on client side, trying server side
    02-29 09:42:23.082: W/VideoView(21164): Unable to open content: test.mp4
    02-29 09:42:23.082: W/VideoView(21164): java.io.IOException: setDataSource failed.
    02-29 09:42:23.082: W/VideoView(21164): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1086)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1060)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.media.MediaPlayer.setDataSource(MediaPlayer.java:1014)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.widget.VideoView.openVideo(VideoView.java:352)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.widget.VideoView.access$2100(VideoView.java:72)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.widget.VideoView$7.surfaceCreated(VideoView.java:628)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.SurfaceView.updateWindow(SurfaceView.java:580)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:176)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1970)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1061)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5885)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.Choreographer.doFrame(Choreographer.java:550)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.os.Handler.handleCallback(Handler.java:739)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.os.Handler.dispatchMessage(Handler.java:95)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.os.Looper.loop(Looper.java:135)
    02-29 09:42:23.082: W/VideoView(21164): 	at android.app.ActivityThread.main(ActivityThread.java:5254)
    02-29 09:42:23.082: W/VideoView(21164): 	at java.lang.reflect.Method.invoke(Native Method)
    02-29 09:42:23.082: W/VideoView(21164): 	at java.lang.reflect.Method.invoke(Method.java:372)
    02-29 09:42:23.082: W/VideoView(21164): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
    02-29 09:42:23.082: W/VideoView(21164): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
    02-29 09:42:23.082: D/VideoView(21164): Error: 1,0
    That's what I see after I get the "Can't play this video." dialog.
    After I close that dialog I get this:
    02-29 09:44:13.346: E/MediaPlayer(21164): stop called in state 1
    02-29 09:44:13.346: E/MediaPlayer(21164): error (-38, 0)
    02-29 09:44:13.373: W/MediaPlayer(21164): mediaplayer went away with unhandled events
    02-29 09:44:13.377: W/InputMethodManagerService(574): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@32c19a9d attribute=android.view.inputmethod.EditorInfo@bf8db12, token = android.os.BinderProxy@2c9aa18b
    02-29 09:44:13.379: I/Keyboard.Facilitator(875): onFinishInput()
  • ar2rsawseenar2rsawseen Maintainer
    too bad, unfortunately it does not tell me much.
    From logs it seems that video is in some format that MediaPlayer can't play.
    Unfortunately it does not tell me much more.

    Have you tried with other videos, that you can play on your phone?

    Likes: antix

    +1 -1 (+1 / -0 )Share on Facebook
  • @ar2rsawseen the video I used was the video in the Media.zip which was given as an example. Which is strange because I'd compiled the example app before and it used to work.

    The example video itself can be played on the phone, as can several others which I have tried this with. A simple default media player can play them but the Media example cannot.
  • antixantix Member
    @AniketK - If you make a new project using the example.zip does it work if you don't modify it at all?
  • simwhisimwhi Member
    edited May 2017
    Hi,

    I can't get the media plugin to work on Android. I tested using Android 5.0.1 and 6.0.1, using the example project provided in Gideros installation folder
    05-28 14:26:35.700 793-859/com.wobblemonkey.mediademo E/MediaPlayer: error (1, -2147483648)
    05-28 14:26:35.710 793-793/com.wobblemonkey.mediademo E/MediaPlayer: Error (1,-2147483648)
    05-28 14:26:35.720 793-793/com.wobblemonkey.mediademo I/HwCust: Constructor found for class android.widget.HwCustTextViewImpl
    05-28 14:27:18.570 793-793/com.wobblemonkey.mediademo E/MediaPlayer: stop called in state 0
    05-28 14:27:18.570 793-793/com.wobblemonkey.mediademo E/MediaPlayer: error (-38, 0)
    05-28 14:27:18.590 793-793/com.wobblemonkey.mediademo W/MediaPlayer: mediaplayer went away with unhandled events
    The video does play via built-in Android video player though.

    Any ideas?


    Quick update:

    The video plays fine in an Android player via Gideros.
Sign In or Register to comment.