You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/01-playback-strategies.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ This requires additional config to select which media player implementation to u
34
34
window.bigscreenPlayer.mediaPlayer:'html5'
35
35
```
36
36
37
-
You must also indicate the device's live playback capability. There's more info in [the documentation on live-streaming](https://bbc.github.io/bigscreen-player/api/tutorial-live-streaming.html)
37
+
You must also indicate the device's live playback capability. There's more info in [the documentation on live-streaming](https://bbc.github.io/bigscreen-player/api/tutorial-10-live-streaming.html)
Copy file name to clipboardExpand all lines: docs/tutorials/02-events.md
+15-14Lines changed: 15 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@ Bigscreen Player uses a variety of events to signal its current state.
3
3
## Reacting to state changes
4
4
5
5
State changes which are emitted from the player can be acted upon to by registering a callback. The callback will receive all of the following state changes as the `state` property of the event:
6
+
6
7
-`MediaState.STOPPED`
7
8
-`MediaState.PAUSED`
8
9
-`MediaState.PLAYING`
@@ -13,17 +14,17 @@ State changes which are emitted from the player can be acted upon to by register
13
14
State changes may be registered for before initialisation and will automatically be cleared upon `tearDown()` of the player.
14
15
15
16
```javascript
16
-
var bigscreenPlayer =BigscreenPlayer();
17
+
var bigscreenPlayer =BigscreenPlayer()
17
18
18
19
// The token is only required in the case where the function is anonymous, a reference to the function can be stored and used to unregister otherwise.
19
20
var stateChangeToken =bigscreenPlayer.registerForStateChanges(function (event) {
Copy file name to clipboardExpand all lines: docs/tutorials/10-seeking.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,14 @@
1
-
A seek is initiated by `BigscreenPlayer#setCurrentTime()`. It can take a number or a number and a timeline. Each timeline is defined in the `Timeline` enum.
1
+
A seek is initiated by `BigscreenPlayer#setCurrentTime()`.
2
+
3
+
```js
4
+
bigscreenPlayer.setCurrentTime(30) // seeks in seconds
5
+
```
6
+
7
+
You can also specify [a timeline (read more in section: Timelines)](#timelines) to anchor your seek:
0 commit comments