Default media player settings - #4
Conversation
Add a "--player omxplayerlocal" option, that plays audio through the local output instead of the hdmi output with omxplayer.
The user can set the default player in a ~/.config/yt settings file, by reading the "player" entry, in the "[General]" section of the settings file. The format of the settings file should be like this: [General] player = omxplayer If the file is not there, or if it's corrupted in any way, yt defaults to mplayer.
Add information in the README.rst file about creating the ~/.config/yt settings file.
Indent the sample settings file so it shows right in github.
|
Hi @gapan , These changes look great! I've updated yt to include an alternative entry point for the Pi, to simplify it for people who are less comfortable with command line options. I was wondering what your thoughts where on having an alternative interface for the Pi and how that fits with specifying whether to use audio or hdmi output? Would it be possible to detect whether to use local audio or hdmi? Cheers, |
|
I had this idea too... because I wanted to play videos with audio through the analog output. Changing the source code was easy... but I think it's better to pull gapan's changes in order to make the project more flexible and user-friendly. |
|
You cannot detect whether to use local audio or hdmi. There is just no way to do it. That's why having an option for it makes sense. |
Hi,
I have added the ability to read the default player from a ~/.config/yt settings file, so the user doesn't have to specify omxplayer at the command line all the time.
I also added a "--player omxplayerlocal" option, to be able to send the audio output to the local (analog) output of the raspberry pi.
Please review and pull if you like.
Regards,
George