Commit graph

17 commits

Author SHA1 Message Date
Vladimir Panteleev
776c2d1aaa assets/scripts.js: Allow #t12345 hash syntax
Similar to YouTube's ?t=12345.

Mostly for debugging.
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
363b1e32a8 assets/scripts.js: Improve title and hash updates
- Update them when the playback position changes by any means, not
  just when playing a certain chapter

- Include moments (choices) in hash and title

- Use choice descriptions in titles

- Allow meaningful back/forward navigation through chapters and choices
2019-07-28 08:16:55 +00:00
Vladimir Panteleev
c5fafb4c16 assets/scripts.js: Allow jumping to a chapter by setting the hash 2019-07-28 01:27:28 +00:00
Vladimir Panteleev
b4e04bccd1 assets/scripts.js: Improve handling of seeking
- Don't apply impressions when the player seeks into moments with
  impression data

- Fix false positives when seeking within the first few seconds of a
  segment
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
588036f80e assets/scripts.js: Rename generateJs to preconditionToJS 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
350a2caead assets/scripts.js: Fix undefined error for choices without descriptions 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
4195108b0d assets/scripts.js: Track time and moments properly
WIP.

- Fixes a family of bugs such as pausing the video during a choice
  resulting in the video resuming at the default choice (while still
  paused) after a while.

- Unifies tracking of moments and cleans up redundant code.

- Fixes unnecessary stutter when transitioning between two segments
  that are adjacent in the video file.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
2c987cd81e assets/scripts.js: Improve handling of pre-specified video src
Fixes behavior if HTML is edited to indicate the video source.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
7e26ff3ddb assets/scripts.js: Don't hardcode initial segment 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
68ec8bb628 assets/scripts.js: Fix check for undefined 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
64bad02a3b assets/scripts.js: Do not trigger key events with modifier keys
These key combinations usually mean something else and are not
intended for the web page.
2019-07-28 01:20:34 +00:00
Vladimir Panteleev
afc3abb81c Fix onload JS error 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
19c8003e62 assets/scripts.js: Delete unused function 2019-07-28 01:20:34 +00:00
Vladimir Panteleev
2826849ee0 assets/scripts.js: Fix JS warnings 2019-07-28 01:20:34 +00:00
Imanoel Ali
4768ffc21a add english subtitle 2019-01-17 11:35:54 +03:30
Imanoel Ali
cc5f2d5d78 play video after uplaod 2019-01-17 02:43:44 +03:30
Imanoel Ali
08e385231b first commit 2019-01-17 02:28:27 +03:30