-
Notifications
You must be signed in to change notification settings - Fork 403
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
Pause Audio if card is removed, Resume if swipe again. #572
Comments
I did some hacking. I changed Reader.py (using exprimental as base, since I run a RM6300). There I check if the counter is equals 10, and set a card_id "stop". While below 10 I set a card_id "pause" and add one to the counter. this causes that the card eval receives a stop or pause card - which i did configure in the rfid_trigger_play.conf. It works as expected, but it's still a hack. What would be better way to implement such feature? |
Hi @jebos |
I will check if I find a better way to implement it (less hacky) nevertheless you find my changes in my fork (Feature branch) |
Hey, my Kids actually played around with it and decided they do not like this. We are now at a "Controll Card" Mechanism which is kind of changed to the Master Behavior in a way that they can keep the card on the reader and have dedicated pause / stop cards, but pause wont toggle the playback. they seem happy, I close this request. |
I would like to pause the audio if the card is removed. If it's removed for longer than 1 Minute I would like to stop the playback. If the card is placed again on the reader, the playback should resume or if it was stopped it should restart.
I think this could be done by sending artificial card ids in the reader.py...
what do you think?
The text was updated successfully, but these errors were encountered: