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

Default media player settings #4

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Default media player settings #4

wants to merge 4 commits into from

Conversation

gapan
Copy link

@gapan gapan commented Jan 23, 2013

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

gapan added 4 commits January 23, 2013 20:20
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.
@CalumJEadie
Copy link
Collaborator

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,
Calum

@michelesr
Copy link

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.

@gapan
Copy link
Author

gapan commented Jun 17, 2013

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.

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

Successfully merging this pull request may close these issues.

3 participants