]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix embed api documentation
authorChocobozzz <me@florianbigard.com>
Fri, 20 Mar 2020 14:04:02 +0000 (15:04 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 20 Mar 2020 14:04:02 +0000 (15:04 +0100)
client/src/standalone/videos/test-embed.ts
support/doc/api/embeds.md

index e5e6365dc0a13e1f7d2914465be1be1d9d234575..202e86667c646e32eb2a81b0f0edae7ee0f41dee 100644 (file)
@@ -30,7 +30,7 @@ window.addEventListener('load', async () => {
   ]
 
   monitoredEvents.forEach(e => {
-    player.addEventListener(e as PlayerEventType, () => console.log(`PLAYER: event '${e}' received`))
+    player.addEventListener(e as PlayerEventType, (param) => console.log(`PLAYER: event '${e}' received`, param))
     console.log(`PLAYER: now listening for event '${e}'`)
   })
 
index 5586e013ad1e67442d9b573dc7ee7ef28a44c032..6ee7deeab4708c69a656a7e4cce11bc0b50391eb 100644 (file)
@@ -111,14 +111,6 @@ Get the playback volume. Returns a value between `0` and `1`.
 
 You can subscribe to events by using `addEventListener()`. See above for details.
 
-## Event `play`
-
-Fired when playback begins or is resumed after pausing.
-
-## Event `pause`
-
-Fired when playback is paused.
-
 ## Event `playbackStatusUpdate`
 
 Fired every half second to provide the current status of playback. The parameter of the callback will resemble:
@@ -135,7 +127,7 @@ The `volume` field contains the volume from `0` (silent) to `1` (full volume). T
 
 ## Event `playbackStatusChange`
 
-Fired when playback transitions between states, such as `pausing` and `playing`. More states may be added later.
+Fired when playback transitions between states, such as `paused` and `playing`. More states may be added later.
 
 ## Event `resolutionUpdate`