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

Improvents to event handling and APIs #16

Merged
merged 19 commits into from
Oct 18, 2019
Merged

Conversation

edrpls
Copy link

@edrpls edrpls commented Oct 18, 2019

This PR adds a few features:

  • add once listener to fire listeners once
  • refactor on method to always return a teardown function and keep track of all active node listeners
  • creation of <video> tag in constructor to allow early event listening
  • improved destroy method now keeps the container and removes all instance and node listeners
  • custom events: playback-progress, player-click, resize. See README.md for details.
  • support playsinline attribute by default
  • prevent control clicks from propagating
  • MIT license added
  • general code tiding

BTW, reviewers, you don't really have to review this PR, I just wanted to keep you updated!

@edrpls
Copy link
Author

edrpls commented Oct 18, 2019

Fixes #13, and lays the groundwork for most of #1

@edrpls edrpls merged commit 6136fe9 into develop Oct 18, 2019
edrpls pushed a commit that referenced this pull request Nov 9, 2019
* Improvents to event handling and APIs (#16)

* fix  typo

* Update demos

* Add 'Once' listener and fix setting volume

* remove container contents instead of container

* Retry adding stored player listeners

* Fix Once listener for player

* emit decorated timeupdate and refactor on/once to be reusable

* Improve time reporting and player listener teardown

* Support playsinline attribute and playback in iOS

* GS-1222 Revert play/pause calls

* Move constants to their own file

* Add getCurrentTime method

* GS-1230 Handle video resize event

* Update readme

* prepend private events with __

* prevent control's click event propagation

* move defaultOptions to constants file

* slightly improve docs

* add MIT license

* # This is a combination of 3 commits.
# This is the 1st commit message:

Implement VAST and VPAID support

# The commit message #2 will be skipped:

# add optional chaining

# This is the commit message #3:

split javascript from media files

* Implement VAST and VPAID support

split javascript from media files

split other media file types

add VPAIDWrapper

change VAST/VPAID flow and call handshakeVersion

load VPAID in FIF

render and play VPAID, connect: play/pause, mute/unmute, set volume

set initial volume on VPAID

report VPAID playback progress

await for VPAID and map events to regular events

document VPAID events and changes

load VPAID at the end of dummy document

replace VAST request macros

enable VAST playback and tracking

document VAST usage and emit all VPAID events

Apply muted config correctly to video elt

listen for video clicks instead of container clicks
@edrpls edrpls deleted the feature/pre-release-fixes branch December 6, 2019 20:30
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