Comments (1)
@andrea-daru
Hi!
I think the H5P developers forum at https://h5p.org/forum/2 would be the right place for your question.
Having said that: $(this)
will (of course) only give you access to the DOM of the video element that you selected yourself ($('video.h5p-video')
). What you'd need is a reference to the Interactive Video instance which you can get via the array at H5P.instances
. Just setting preventSkipping
to false
will not be enough though, because the interface has already been initialized and does not get updated.
Other trouble that you will run into: You should listen on the H5P.Video instance (that you can retrieve via the H5P.InteractiveVideo instance) for an 'ended' event, not the DOM, because a) you might run into trouble if there are multiple videos in the DOM which could happen in InteractiveBook and b) otherwise your customization will for instance not work for YouTube videos that do not provide access to the video DOM.
Not sure if there's a convenient way to achieve what you want using the overrides. What about contributing an option to Interactive Video instead? Cannot say, however, if the H5P core team would support that change You should pre-qualify it with them if you don't want your work to be rejected potentially.
from h5p-interactive-video.
Related Issues (20)
- Can Essay Question be added to Interactive Video Suite please?
- Slider function not available or included by any libraries dependencies HOT 1
- H5P Interactive Video Full Screen Error HOT 2
- Navigation hotspot position bug
- Broken icons on some content types HOT 6
- Bookmark Icon and Video speed
- (IMPORTANT) Patent company going against h5p use of a patent
- Required parameter (contentId) is missing HOT 2
- Strings from imported plugins aren't translated even though the translation exists in the proper file HOT 1
- Add support for opencast / paella embedded videos
- Plaintext import/editor for bookmarks HOT 1
- Empty <h2> header in interactive video does not function as a header. HOT 7
- Vimeo pro support not working will
- is it possible to use h5p with video.js library?
- Error Uncaught TypeError: Cannot read properties of undefined (reading 'field') HOT 3
- Feature request: Interactive video hotspot click setup.
- Fullscreen not working correctly for Firefox [Canvas and SCORM].
- Add tries numbers on the interactive videos
- Ampersand in the URL break link when using with image HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from h5p-interactive-video.