Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Android Error / MediaPlayerNative: Unable to create media player



  • Couldn't find a useful answer in a google search.
    I'm doing a simple test to play a video using QML.
    The app is very simple:

    1. Click in the choose button.
    2. Select a video in the dialog.
    3. Play the video.
      This works perfectly for Desktop.
      When I do the same for Android I can go until the 2nd step. Then, when I select the video I can read this error in Application Output:
    E MediaPlayerNative: Unable to create media player
    D Qt MediaPlayer: setDataSource failed.: status=0x80000000
    V MediaPlayer: resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
    V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
    V MediaPlayer: resetDrmState:  mDrmInfo=null mDrmProvisioningThread=null mPrepareDrmInProgress=false mActiveDrmScheme=false
    V MediaPlayer: cleanDrmObj: mDrmObj=null mDrmSessionId=null
    W libEGL  : EGLNativeWindowType 0x700fb22010 disconnect failed
    

    Its clear that the code can't create a MediaPlayer when running. I'm clueless from where I should start trying to find a solution.

    Here a link to my test code in my github: https://github.com/Oshio09/QML-Video-Test

    Using:
    Qt 5.13.0
    OS: Ubuntu 18.04.3 LTS [linux version 5.1.0-050100-generic]
    Android 9


Log in to reply