Skip to content

martynaskadisa/use-media-session

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.