Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android Error / MediaPlayerNative: Unable to create media player
Forum Updated to NodeBB v4.3 + New Features

Android Error / MediaPlayerNative: Unable to create media player

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
1 Posts 1 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    Oshio
    wrote on last edited by Oshio
    #1

    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

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved