RSATom / QmlVlc

[ABANDONED] libvlc wrapper for Qt Quick 2/Qml
Other
139 stars 56 forks source link

vlcplayer onLengthChanged doesn't work #22

Closed pincopallopino closed 9 years ago

pincopallopino commented 9 years ago

i try to get the lenght of the video but i see always on console output "lenght: 0"

VlcPlayer {
        id: vlcPlayer;
        mrl: "youtube video"

        onLengthChanged: {
            console.log("lenght: " + vlcPlayer.length)
        }
}
RSATom commented 9 years ago

I'll check it soon. Thanks.

RSATom commented 9 years ago

fixed by 1a7b3833192866e7720e786eb0f27c486b661885

mediaPlayerLengthChanged ( which could be used as onLengthChanged, since it's attached to length property ) now has length argument, so you could use it directly:

VlcPlayer {
        id: vlcPlayer;
        mrl: "youtube video"

        onLengthChanged: {
            console.log("lenght: " + length)
        }
}

check it please, and if it works fine, please close this issue.

Thanks!

pincopallopino commented 9 years ago

ok, it works, thanks