cpd73 wrote: 
> Appears for me most of the time, but I have seen it take time before.
> Chrome will only allow audio playback (which Material fakes so that the
> controls can appear) after the user interacts with the page. So,
> Material listens for 'touchend' - and attempts to initialise the
> MediaSession then. However, the whole thing is one *massive* hack - I
> have to fool Chrome into thinking its playing a file (hence the
> silence.ogg file), play/pause this every 15 seconds (as if it stays
> paused for too long, the session disappears).

...I've updated the code to init the session on 'click' and not
'touchend' - this -seems- to work more consistently for me. I noticed
that with 'touchend' if I swiped to change views, the initialisation
would fail more often than not.


------------------------------------------------------------------------
cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686
View this thread: http://forums.slimdevices.com/showthread.php?t=109624

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to