look997
#firefox #nightly #webdev #javascript
Media control notification - Co to za API? To jest jakiś standard/kandydat?
https://twitter.com/FennecNightly/status/740174912577515520
  • Najlepsze
  • Wszystkie komentarze
KwadratowyPomidor
look997
look997 Autor
0
@KwadratowyPomidor: Nie widzę tam możliwości kontrolowania strony. Że w powiadomieniu jest przycisk np. play/pause. Coś przeoczyłem?
KwadratowyPomidor
@look997: aj sorry tu masz

https://developer.mozilla.org/en-US/Add-ons/Firefox_for_Android/API/Notifications.jsm

buttons An array of buttons to show on the notification. Maximum of three.


var buttons=[{buttonId:"Pause",title:"Pause",icon:"drawable://pause"}];
look997
look997 Autor
0
@KwadratowyPomidor: Czyli to jest wyłączne API dodatków a nie żaden standard? Szkoda.