-
Notifications
You must be signed in to change notification settings - Fork 52
qt: Does not accept movies as commandline parameters #122
Comments
The pull request does not completely solve this.
I assume this happens because play() is called before the video widget is completely initialized |
@sdroege thanks for your feedback :)
I think the order is correct: first loads the root QML document (video item constructor called), then it sets the video item in the sink, and after that, sets a playlist (which calls pause or play) |
So for you a movie selected from the file chooser immediately starts? Ok, maybe the same problem as 2) then. And maybe that's something Linux specific :) |
No, 1) and 2) seem different issues. After selecting something with the file chooser, it does not automatically start but clicking on play makes it start. Selecting something via commandline gives the above error, and the same error happens every time you click on play again. After then selecting something with the file chooser, clicking on play makes the video play. |
Ok, then issue 2) definitely has to do with different behaviour in Linux, like you said it's very likely we call As per the 1), by default I set autoPlay to false: https://github.com/sdroege/gst-player/blob/master/qt/main.qml#L47 |
@amorenoc It should probably be possible to call it with a list of movie files from the commandline.
Also when doing that, it should start playing the first one immediately. And also start playing immediately when a movie is selected from the file chooser (or at least go to paused in both cases so you can see the first frame).
The text was updated successfully, but these errors were encountered: