spodlecki / videojs-event-tracking Goto Github PK
View Code? Open in Web Editor NEWTrack events with VideoJS and keep an eye on performance metrics
License: MIT License
Track events with VideoJS and keep an eye on performance metrics
License: MIT License
(most likely related to #3 in some way)
Within the buffer tracking, the secondsToLoad
has been reported to be very high. From a quick glance, it looks like the user would be able to begin buffering, hit the pause, and wait for the scrub bar to show more buffering, then press play... at that time, we'd say "buffering done" which is most likely not the right way to handle it.
Current work around is to simply ignore in the charts the items that are obviously broken
Hi.
My question was related to the following behavior:
Regards,
Subhendu
This repo was built without tests for a proof of concept / quick prototyping. Now that a basic outline has been done, write some tests.
I'm writing some code to handle buffering events. Do you have any suggestion on how to simulate the buffered effect so I can test my integration? Thanks!
I'm trying to the performance tracker to fire off via player.on()
.
Adding a "performance" function to the eventTracking
config works.
player.eventTracking({
performance: function(data) {
console.log('tracking:performance', data);
}
});
Adding it via player.on()
does not work. This is my preferred method, but it doesn't fire off.
player.on('tracking:performance', (e, data) => console.log(e.type, data))
I'm working with the index.html
in the Github repo. I followed the instructions in the Readme to clone the repo, install the dependencies, and open the index.html
.
Browser: Firefox Developer Edition 103.0b9 (64-bit)
VideoJS: 7.18.1
When a user is viewing the videojs object, they can navigate away from the page. This will cause the performance event to not be fired.
Probable solution is to listen for the unload
event and trigger the performance event. This should increase accuracy of the performance events being fired.
Is there a way to load this on my existing HTML page that runs the player, instead of in another Javascript application, similar to this:
<video id="my-video" class="video-js" controls preload="auto" width="1280" height="720" poster="MY_VIDEO_POSTER.jpg" data-setup="{}">
<source src="playlist.m3u8" type="application/x-mpegURL" />
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="https://videojs.com/html5-video-support/" target="_b$
</p>
</video>
<script src="../node_modules/video.js/dist/video.min.js"></script>
<script src="../node_modules/videojs-contrib-quality-levels/dist/videojs-contrib-quality-levels.min.js"></script>
<script src="../node_modules/videojs-hls-quality-selector/dist/videojs-hls-quality-selector.min.js"></script>
<script>
var player = videojs('my-video');
player.hlsQualitySelector();
</script>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.