Giter Site home page Giter Site logo

Comments (4)

robwalch avatar robwalch commented on July 25, 2024

Hi @jakedahm,

This is a known issue. I'll see if we can get a fix for it with html5 and Flash playback in our 7.1.1 release.

The player's model doesn't get duration from the current video provider until the first time event so that's why you are seeing this behavior:

https://github.com/jwplayer/jwplayer/blob/master/src/js/controller/model.js#L93

The plan so far is to add this data to "bufferChange" events so that it can be set before playback when media is buffering (or preloading in v7.1.1🎉).

from jwplayer.

jakedahm avatar jakedahm commented on July 25, 2024

Thanks @robwalch!

Can you give me an idea of when 7.1.1 will be released? I know you are still at 7.1.0-beta, but I am wanting to cut over to 7 from 6 ASAP.

from jwplayer.

robwalch avatar robwalch commented on July 25, 2024

@jakedahm We're shooting for end of the month based on our current 2 week cycle.

This is an issue we deal with in our own analytics product. We require four events to fire before all the playback data is available (and we could probably ignore play the more I think about it).

  • 'play' (video tag or provider indicated that playback has begun)
  • 'meta' (usually where duration, width and height are provided)
  • 'levels' (usually before play when we know what qualities are available)
  • 'firstFrame' (new in 7. Fired either when the first frame is rendered or first time event, depending on provider)

Keep in mind that this developed for the course of 6.x to 7.x. Our analytics plugin has to work across multiple versions of the same major release so it works around the short comings of previous releases.

Keep in mind that this developed for the course of 6.8 to 7.x. Our analytics plugin has to work across multiple versions of the same major releases.

We can reopen this issue if you want to get a notification when we've made a change internally. I hope with preloading we can also provide duration in some instances before play is even called.

from jwplayer.

jakedahm avatar jakedahm commented on July 25, 2024

I think it should be alright. I just found out that 'meta' is fired before 'play', and contains the duration in the event payload.

Thanks

from jwplayer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.