-
Notifications
You must be signed in to change notification settings - Fork 6
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
Small improvement and exception handling #5
base: master
Are you sure you want to change the base?
Conversation
The class Player in player.py allready contained the method launch. This method is exposed externaly as a command line parameter by adding the wrapper to client.py.
The play command is extended by a url validator that also allows to add a syntactically correct URL to the playlist. Whether the URL target really exists is not checked.
The command line options title and length are added by reusing the logic implemented in info, but allowing the user only to ask specifically for a single information. In order to navigate in the track, the position and seek commands are added both in the Player as well as in the ClientSubcommands class.
In case a command is sent to class Player and VLC is not running, the following error occurs: <<'NoneType' object has no attribute 'xyz'.>> This error is explicitly catched in player_list_error_wrapped() to avoid crashing of the complete program. All methods that rely on a valid response of their called function need a special error handling.
In case a stream is played as a raw media file with bad metadate, it might happen that no valid content is return by the DBUS command for the title. In this case a fallback is added to display the path to the file instead. The path is always a valid content.
During playing aroung with vlc-ctrl running it on my raspberry pi, typing the commands on my laptop being loged in remotely via SSH I noticed strange behavior: It was not possible to send vlc application to the backgroung and to use the SSH session for next command. While playing aroung, I noticed that adding the option '-I dummy' helps. After calling 'vlc-ctrl launch', the terminal is now available for next commands. While at it, I cleaned up trailing whitespaces in this file.
Hi,
Thanks for trying out and improving vlc-ctrl. 🙂
Right now, for personal reasons, I'm on a rather long break from GitHub and
programming. So, I won't be able to review and merge the changes for at
least a few months.
I'll take a look as soon as I get back to it.
Regards,
Amol.
…On Sun, Jul 12, 2020, 11:51 PM DanielGlaas ***@***.***> wrote:
Hi amol9,
I came accross your tool and I found it very useful. While playing aroung,
I decided that some small adaptions would make it even more better.
Please take a look and decide whether you want to accept my proposals.
------------------------------
You can view, comment on, or merge this pull request online at:
#5
Commit Summary
- Add subcommand that allows to start a new VLC instance
- Allow to play URLs too
- Add some more command line options
- Catch special exceptions that occure if no VLC instance is running
- Add a fallback for streams with no entry in 'title'
- Fix issue with launch command requested via SSH
File Changes
- *M* vlc_ctrl/client.py
<https://github.com/amol9/vlc-ctrl/pull/5/files#diff-1fbbdbf39556b233b7b256e6ef0e2872>
(90)
- *M* vlc_ctrl/player.py
<https://github.com/amol9/vlc-ctrl/pull/5/files#diff-c136dfaa51a91ebaab6c531668e2a3dd>
(44)
Patch Links:
- https://github.com/amol9/vlc-ctrl/pull/5.patch
- https://github.com/amol9/vlc-ctrl/pull/5.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#5>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA776PESY62X4NOHYXNVVLR3H5LRANCNFSM4OX5K6NQ>
.
|
Hi Amol, Thanks, |
Hello, @DanielGlaas Can you add support for windows & Mac as Amol suggested in this issue. |
@pseudo-usama : I don't own a Mac so I have absolutely no skills on this field and also for Windows, I'm the right one to do that. |
Hi amol9,
I came accross your tool and I found it very useful. While playing aroung, I decided that some small adaptions would make it even more better.
Please take a look and decide whether you want to accept my proposals.