rjw57 / yt

Experiments with the YouTube API
MIT License
83 stars 25 forks source link

Default media player settings #4

Open gapan opened 11 years ago

gapan commented 11 years ago

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

CalumJEadie commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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.