Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaPlayer QML types error signal #48

Open
sinadogru opened this issue Dec 18, 2015 · 4 comments
Open

MediaPlayer QML types error signal #48

sinadogru opened this issue Dec 18, 2015 · 4 comments
Assignees

Comments

@sinadogru
Copy link

Hello,

I guess MediaPlayer type is suppose to emit a 'error' signal if it encounters an error. But on POT, for example if the source property contains an invalid media url, while implementation gives a debug output which shows the error like,

08:15:54.262 ERROR: Failed to open source /home/pi.

but on the qml side, error signal is not emitted. Here is a simple code,

MediaPlayer {
    id: player
    source: "file:///home/pi"
    autoPlay: true
    loops: MediaPlayer.Infinite
    onError: console.log("MediaPlayer.error..");
}

VideoOutput {
    id: video
    source: player
    fillMode: VideoOutput.Stretch
    anchors.fill: parent
}

usual expectation is when the source property is wrong, it would emit an error signal. But as I mentioned above, POT gives a debug output but not emit the signal.

I've also checked on my local machine, which is ubuntu, seems like it is supposed to emit this signal, here is the output for the same qml source file above,

GStreamer; Unable to pause - "file:///home/pi"
GStreamer; Unable to pause - "file:///home/pi"
qml: MediaPlayer.error..
Error: "Resource not found."

@sinadogru
Copy link
Author

UPDATE: and if I am not wrong, player.status also supposed to be MediaPlayer.InvalidMedia, which is not if the given source property was invalid.

@sinadogru sinadogru changed the title MediaPlayer QML type error signal MediaPlayer QML types error signal Dec 18, 2015
@carlonluca
Copy link
Owner

Yes, not all the signals are implemented. I'll add this as well.

@carlonluca carlonluca self-assigned this Dec 19, 2015
@alvarolcn
Copy link

Hi. Is the property duration and onDurationChanged signal implemented as well??

@carlonluca
Copy link
Owner

Probably not. You can file a bug report for that as well if you don't get the signal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants