Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic Overlay + Overlay before video plays #49

Open
iq-dot opened this issue Apr 11, 2017 · 1 comment
Open

Dynamic Overlay + Overlay before video plays #49

iq-dot opened this issue Apr 11, 2017 · 1 comment

Comments

@iq-dot
Copy link

iq-dot commented Apr 11, 2017

Hi guys,

I had two questions and though it would be easier to raise a single issue.

Firstly, I am looking trying to do a dynamic overlay that is essentially a counter, I couldn't see any examples or means of doing this, has anyone tried this before and know if it is possible?

Secondly, I was looking at adding an overlay when the player loads but before the user has started the video, I can't seem to find the right event hook to start this overlay. I tried 'ready' and 'loadstart' with no luck. Is there another event hook I am missing or not possible to add an overlay to the poster before the video starts?

Many thanks for your help.

@balindenberg
Copy link

Hi @iq-dot. You can definitely do a dynamic overlay. The overlay function takes an array of overlay objects, so you can add / remove from that array and re-overlay it at any point in time. When a user takes an action in my application, I create a new overlay object, add it to the current array of overlay objects, and then call the overlay function using that array. You should then immediately see the overlay on the video. Hope this helps.

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

No branches or pull requests

2 participants