Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. problem With Audio.Metadata At Qt5.12.6

problem With Audio.Metadata At Qt5.12.6

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
2 Posts 1 Posters 256 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.
  • M Offline
    M Offline
    miladTalaei
    wrote on last edited by
    #1

    hello guys i am a beginner In QT and My English is not Very Well so at the first i am sorry for that
    I searched all sites and Froums for a solution but i cant find any way to fix it
    so i creat this topic and i hope that you guys can help me
    i want to make a musicplayer that play and pause the music with MetaData like title and cover image and ...
    so i wrote this at QML(main.qml):

    
    Audio{
            id:myAudio
            source: "home/milad/Downloads/tm.mp3"
            onStatusChanged: {
                switch(status){
                case Audio.Loading:
                    console.log("Music is Loading...");
                    break;
                case Audio.Loaded:
                    console.log(" Seccsusfuly Loaded!");
                    myAudio.play();
                    break;
                case Audio.Buffering:
                    console.log("status:buffering");
                    break;
                case Audio.Stalled:
                    console.log("status:stalled");
                    break;
                case Audio.Buffered:
                    console.log("status:buffered");
                    break;
                case Audio.InvalidMedia:
                    console.log("status:invalid media");
    
            }
            onPlaybackStateChanged: {
                switch(playbackState){
                case Audio.PlayingState:
                  //get music title
                    if(metaData.title){
                        console.log("title is:"+metaData.title);
                    }
                   //OutPut is:' tmbax-babak zanjani 320' (music title is ok)
                   //get music image Cover
                    if(metaData.posterUrl){
                        console.log("poster: "+metaData.posterUrl);
                       //OutPut is: 'poster: undefined'
                    }
                    if(metaData.coverArtUrlSmall){
                        console.log("small_poster:"+metaData.coverArtUrlSmall);
                      //OutPut is: 'small_poster: undefined'
                    }
                    if(metaData.coverArtUrlLarge){
                        console.log("large_poster:"+metaData.coverArtUrlLarge);
                     //OutPut is: 'Large_poster: undefined'
                    }
                    break;
                }
            }
    
        }
    

    when i run it , i can see the title that i Log it but i cant see the Image Url and mylog is "undenified"
    my Export Platform is Android And my OS is Ubuntu And my Qt Version is 5.12.6
    so whats my wrong? please help me This is my biggest problem in my life
    thanks

    1 Reply Last reply
    0
    • M Offline
      M Offline
      miladTalaei
      wrote on last edited by
      #2

      guys? i am waiting already..

      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