LearnNewsExamplesServices
Frontmatter
id4552
titlecomponent.Video: cleanup
stateClosed
labels
enhancement
assigneesDinkh
createdAtJul 17, 2023, 5:09 PM
updatedAtJul 31, 2024, 10:49 PM
githubUrlhttps://github.com/neomjs/neo/issues/4552
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJul 31, 2024, 10:49 PM

component.Video: cleanup

Closed v8.1.0 enhancement
tobiu
tobiu commented on Jul 17, 2023, 5:09 PM

hi torsten,

a couple of thoughts:

  1. in case you are not using the vdom reference, don't assign it to a variable. we can use this.update() instead of this.vdom = vdom. already changed in all other spots inside the framework. example: https://github.com/neomjs/neo/blob/dev/src/button/Base.mjs#L169

  2. same pattern for domListeners => this.addDomListeners() example: https://github.com/neomjs/neo/blob/dev/src/button/Base.mjs#L181

  3. the playing_ config defaults to false. on DOM level there is autoplay: true though. i guess autoPlay could be a config on its own.

please drop a comment in case you want me to add the changes.

tobiu added the enhancement label on Jul 17, 2023, 5:09 PM
tobiu assigned to @Dinkh on Jul 17, 2023, 5:09 PM
Dinkh
Dinkh Jul 31, 2024, 9:54 PM

autoplay is used to immediately start playing the video, when you click the ghost. I will add a autoplay functionality anyways.

Dinkh referenced in commit c1c9688 - "#4552 added autoplay" on Jul 31, 2024, 10:47 PM
Dinkh
Dinkh Jul 31, 2024, 10:49 PM

fixed and added autoplay

Dinkh closed this issue on Jul 31, 2024, 10:49 PM