Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martynaskadisa/use-media-session
React hooks for interacting with Media Session API
https://github.com/martynaskadisa/use-media-session
hooks mediasession mediasession-api react
Last synced: 2 months ago
JSON representation
React hooks for interacting with Media Session API
- Host: GitHub
- URL: https://github.com/martynaskadisa/use-media-session
- Owner: martynaskadisa
- Created: 2020-07-26T20:35:12.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T12:31:17.000Z (about 2 years ago)
- Last Synced: 2024-11-07T09:53:26.316Z (2 months ago)
- Topics: hooks, mediasession, mediasession-api, react
- Language: TypeScript
- Homepage: https://martynaskadisa.github.io/use-media-session/
- Size: 3.2 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 34
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[![NPM](https://img.shields.io/npm/v/use-media-session.svg)](https://www.npmjs.com/package/use-media-session)
[![bundlephobia](https://img.shields.io/bundlephobia/minzip/use-media-session)](https://bundlephobia.com/result?p=use-media-session)# [use-media-session](https://martynaskadisa.github.io/use-media-session/)
> React hooks for interacting with Media Session API
[Demo](https://martynaskadisa.github.io/use-media-session/)
## Install
```bash
npm install --save use-media-session
```or
```bash
yarn add use-media-session
```## Usage
```tsx
import React from 'react';
import { useMediaMeta } from 'use-media-session';const Example = () => {
useMediaMeta({
title: 'A title for your media',
});
};
```## License
MIT © [martynaskadisa](https://github.com/martynaskadisa)
---
This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).