5.12.2 • Published 11 months ago

@podlove/player-react v5.12.2

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

@podlove/player-react

React wrapper for @podlove/web-player

Installation

  • Run npm i @podlove/player-react

Usage

import { PodloveWebPlayer } from '@podlove/player-react';

<PodloveWebPlayer 
episode="https://backend.podlovers.org/wp-json/podlove-web-player/shortcode/publisher/60" 
config="https://backend.podlovers.org/wp-json/podlove-web-player/shortcode/config/podlovers/theme/default" />

Properties

  • episode: Episode metadata as file reference or as plain object, see episode docs
  • config: Config metadata as file reference or as plain object, see config docs
  • base: (Optional) player resource base, will fallback to the cdn if not provided
  • variant: (Optional) player template variant, see templating docs
  • playtime: (Optional) initial playtime in milliseconds
  • tab: (Optional) initial tab in milliseconds
  • template: (Optional) remote template

Callbacks

  • onLoaded: (Optional) callback hook that gets called with the player store, see runtime API

Children

Provided children will be parsed as player templates:

<PodloveWebPlayer 
episode="https://backend.podlovers.org/wp-json/podlove-web-player/shortcode/publisher/60" 
config="https://backend.podlovers.org/wp-json/podlove-web-player/shortcode/config/podlovers/theme/default">
 { 
  `<root style="max-width: '950px'; min-width: '260px'" class="p-4 flex justify-center rounded">
    <play-button></play-button>
  </root>`
 } 
</PodloveWebPlayer>
5.12.2

11 months ago

5.12.0

2 years ago

5.11.1

2 years ago

5.11.0

3 years ago

5.9.0

3 years ago

5.8.0

3 years ago

5.7.3

3 years ago

5.7.2

3 years ago

5.7.0

3 years ago

5.6.4

3 years ago

5.6.3

3 years ago

5.6.2

3 years ago

5.6.1

3 years ago

5.6.0

4 years ago