willprice / python-omxplayer-wrapper

:tv: Control OMXPlayer, the Raspberry Pi media player, from Python
http://python-omxplayer-wrapper.readthedocs.io
GNU Lesser General Public License v3.0
253 stars 71 forks source link

Set Video layer that video is played on #122

Open stretchyboy opened 6 years ago

stretchyboy commented 6 years ago

Description

Be able to create a new player on a specific video layer. Like "$ oxmplayer --layer 4". Please note --layer seems to be implemented in the oxmplayer wrapper not oxmplayer.bin

Example use case

To fade/switch between 2 videos in an art installation, using a button / user input.

willprice commented 5 years ago

You can already do this: OMXPlayer(MEDIA_FILE_PATH, args=['--layer', '1']).

Or are you talking about changing the layer of an existing player? If so it seems that was implemented fairly recently in omxplayer so I could expose that: https://github.com/popcornmix/omxplayer/commit/7f3faf6cadac913013248de759462bcff92f0102