atapas / webapis-playground

The Web APIs Playground is a project to showcase the JavaScript Web APIs with examples and demonstrations. Client-side JavaScript APIs are here to help with providing wrapper functions for many low-level tasks.

Home Page:https://webapis-playground.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

✨ [New Demo Request]: Media Session API

trravic opened this issue · comments

Please include the request by answering these questions.

What is the Example and Demo Topic?

Media Session API provides a way to customize media notifications. It does this by providing metadata for display by the user agent for the media your web app is playing.

Please explain why do you need it?

Gives utmost flexibility for the user to control the system. With few action context handlers , one can easily customise the playback actions. With the concept, one can apply this POC to turn on / turn off , mute/unmute , seek various controls of playing audios/videos.

Any Links, Reads?

https://developer.mozilla.org/en-US/docs/Web/API/Media_Session_API

Do you want to contribute to the source code for this example?

Yes, I would like to take up the opportunity and provide a meaningful contribution. Could you please review the Request and provide next action items?

If you are picking up this request to implement, PLEASE READ THIS

@atapas

Could you please review #184

Screenshot 2022-10-26 at 12 42 57 AM

Thanks for the opportunity, First step towards Typescript , totally loving it:)

  • Logging the recent 5 events , if it exceeds will delete the old entry and adding the new one to avoid clutterness.

@atapas could you please review and let me know if any changes needed? thanks