Giter VIP home page Giter VIP logo

Comments (10)

waldoj avatar waldoj commented on July 3, 2024

IIRC, I spent hours on this a few months ago. I tried to move to the HTML5 version of the video player, but I couldn't get it to play nicely with byte ranges, and gave up.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

Faintly, I remember that the HTML version of Flowplayer simply doesn't support playlists of byte ranges. So that's something that will need investigation.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

I note that the Internet Archive uses JWPlayer, and there's no trouble skipping around between times there. So that's compatible. Whether JWPlayer supports timestamp granularity on playlists remains to be seen.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

Looking at JWPlayer's playlist config options, I don't see that it supports time ranges (or even start times) within playlists.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

Ah, so any modern (HTML5) video player supports byte-range requests, because it's fundamental to the <video> element. So this is really just a playlist problem at this point.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

In theory, this could be done with jPlayer. The play method takes an optional time parameter, so that can start at a specified time. We know how many seconds it's been playing, and, using the jPlayerPlaylist plugin's select method, we can move to other playlist items. So it'd only be a matter of stringing those together.

MediaElement.js has a playlist plugin, and has currentTime get/set methods, so presumably that would work, too.

Finally, there's Video.js. That might be too simplistic for our purposes.

It's worth considering that Flowplayer or JWPlayer might work, too, if we're dropping our standards to "could probably create this functionality via JavaScript. With the caveat that what I don't know about JavaScript is a great deal.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

Oh, hey, I just found in this bill.php:

COMMENTED OUT 08/20/2014
I was testing out moving to HTML5 video, which is long overdue, but then I remembered why I didn't
do this a long time ago -- FlowPlayer doesn't support clips in HTML 5. You can apparently fake it
by setting up cuepoints, and using seek(startpos), pause(), etc.

At this point, I'm inclined to stick with FlowPlayer. If I'm going to be writing JavaScript, I might as well work with a known quantity.

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

I think it'll work like this:

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

Huh. That worked...perfectly?

from richmondsunlight.com.

waldoj avatar waldoj commented on July 3, 2024

This has been implemented on the bills page. It remains to be implemented on the video and legislator pages. It would also be wise to add a playlist visible to the user.

from richmondsunlight.com.

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.