Skip to content

martynaskadisa/use-media-session

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

38b1657 · Jun 8, 2021

History

18 Commits
Jul 27, 2020
Jul 26, 2020
Jul 27, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jul 27, 2020
Jul 27, 2020
Jul 26, 2020
Jul 26, 2020
Jul 26, 2020
Jun 8, 2021

Repository files navigation

NPM bundlephobia

React hooks for interacting with Media Session API

Demo

Install

npm install --save use-media-session

or

yarn add use-media-session

Usage

import React from 'react';
import { useMediaMeta } from 'use-media-session';

const Example = () => {
  useMediaMeta({
    title: 'A title for your media',
  });
};

License

MIT © martynaskadisa


This hook is created using create-react-hook.