Skip to content

Commit

Permalink
fix(FEC-8311): Live with DVR - when seeking back (more then dvrThresh…
Browse files Browse the repository at this point in the history
…old) the playbackType is not "dvr" (#12)

Change dvrThreshold units to seconds.
  • Loading branch information
Dan Ziv authored Jun 13, 2018
1 parent e58a9e5 commit 7e7be8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
serviceUrl: '//analytics.kaltura.com/api_v3/index.php',
viewEventCountdown: 10,
resetSessionCountdown: 30,
dvrThreshold: 120000
dvrThreshold: 120
}
```

Expand Down Expand Up @@ -63,9 +63,9 @@
>
> ##### Type: `number`
>
> ##### Default: `120000`
> ##### Default: `120`
>
> ##### Description: Threshold in milliseconds from the live edge.
> ##### Description: Threshold in seconds from the live edge.
>
> When player's playback position from the live edge <= then dvrThreshold, Kava will set playbackType to dvr. Otherwise it will be live.
Expand Down
2 changes: 1 addition & 1 deletion src/kava.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default class Kava extends BasePlugin {
serviceUrl: '//analytics.kaltura.com/api_v3/index.php',
viewEventCountdown: 10,
resetSessionCountdown: 30,
dvrThreshold: 120000,
dvrThreshold: 120,
playbackContext: '',
applicationVersion: ''
};
Expand Down

0 comments on commit 7e7be8b

Please sign in to comment.