Comments (4)
@L-Triple-O just to be clear, are you saying that when the same video is added-and-removed from a web page constantly, then each time during playback, the milestones get tracked? i.e.
Page loads
Add video to page
Play video
Milestone 1 reached --> track
Milestone 2 reached --> track
Remove video from page
Add the same video back to the page
Play video
Milestone 1 reached --> track
Milestone 2 reached --> track
Remove video from page
etc...
from launchext-youtube-playback.
Hi @yuhui ,
No. I'd actually expect what you've described.
What I'm seeing is the video being removed, but the milestones are still being tracked when there isn't an iframe video on the page anymore. I've updated your explanation a little. This also happens after a few times of adding/removing the video.
ex: It works on the 1st time but not the 5th.
Page loads
Click play button
Add iframe video to page
Video autoplays
Milestone 1 reached --> track
Milestone 2 reached --> track
Remove video from page( iframe removed.)
Click play button.
Add the same video iframe back to the page
Video autoplays
Milestone 1 reached --> track
Milestone 2 reached --> track
Remove video from page (iframe removed)
Milestone 2 continues in a loop, being fired and still tracking over and over.
from launchext-youtube-playback.
@L-Triple-O alright, I understand the problem now. Currently, my extension doesn't handle unloading of videos. So when that action occurs, the tracking setup still persists, resulting in the loop that you're experiencing. I'll have to update my extension to handle video unloading. In the meantime, unfortunately, I don't believe there is a workaround aside from forcing a page reload when unloading videos (which might not be desirable for you).
from launchext-youtube-playback.
@yuhui thanks for noting the issue and the insight on no real workaround for it. You're right, forcing a page reload isn't really an option. It's a great extension and I hope with this update we can move back to using it!
from launchext-youtube-playback.
Related Issues (12)
- First version
- Load YouTube IFrame API script from a Rule action HOT 1
- Add data element types to get video playback information
- Add video milestone tracking
- Track video start, resume, replay separately from playing
- Revert how video playback tracking is enabled
- player.getCurrentTime is undefined when video iframe src attribute is dynamically loaded HOT 3
- getCurrentTime is not a function HOT 5
- Enable YouTube IFrame API from a Rule action
- Does not work in IE (11) due to nodeList.forEach method call HOT 1
- Playback tracking does not work reliably on slow network connections
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 launchext-youtube-playback.