Skip to content

Conversation

gkatsev
Copy link
Member

@gkatsev gkatsev commented Jan 10, 2020

TODO

  • "no scroll:up" support
  • clearing the display
  • final cue without a new line
  • non region cues
  • better api?

@gkatsev gkatsev changed the title WIP: Regions feat: Regions Jun 6, 2020
@gkatsev
Copy link
Member Author

gkatsev commented Jun 6, 2020

This PR implements region support. It stays within the framework of the current API, which makes it a bit annoying. I think processCues probably needs a refactor for how it accepts arguments so that more changes can be made to it.
The key to making regions work is to realize that region cues should be positioned relatively and not absolutely.
There is likely some optimizations that can happen here particularly for inserting multiple cues for example during seeks.
In addition, this requires that the display area not be cleared, see videojs/video.js#6694 for usage example.

@gkatsev
Copy link
Member Author

gkatsev commented Jun 6, 2020

This still needs a couple of changes, making sure that if scroll:up isn't set, it doesn't scroll but just pops. also, verifying that regular captions are still working fine.

They were previously moved to a single block but they didn't get added
to the correct elements and thus the cues weren't positioned
appropriately.
@gkatsev
Copy link
Member Author

gkatsev commented Oct 7, 2020

A better API can wait for a complete overhaul.

@gkatsev
Copy link
Member Author

gkatsev commented Oct 7, 2020

This is a breaking change since it requires not clearing the display each tick like Video.js has been doing previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant