GithubHelp home page GithubHelp logo

Comments (14)

thijstriemstra avatar thijstriemstra commented on August 28, 2024

@Chinese1904 you should listen for resize. Take a look at https://github.com/katspaugh/wavesurfer.js/blob/master/plugin/wavesurfer.minimap.js#L121

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

In order to have a responsive player, the fluid option should be supported, as described here in this blog post: http://blog.videojs.com/Video-js-5-s-fluid-mode-and-playlist-picker/

Use wavesurfer's debounce method (available since wavesurfer.js 1.3.1) to make the waveform responsive (katspaugh/wavesurfer.js#964).

from videojs-wavesurfer.

chrisbbreuer avatar chrisbbreuer commented on August 28, 2024

Fluid usually was my go to, but it does not work with wavesurfer, because it seems that the height needs to be set. I will take a look at debounce :-)

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

I'm also working on something now, will create a branch with something to test with.

from videojs-wavesurfer.

chrisbbreuer avatar chrisbbreuer commented on August 28, 2024

Amazing! Looking forward to that!

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

@Chinese1904 maybe you can checkout and test the responsive-28 branch. It does scale the player properly (although quite large) but the waveform isn't layered on top of the player anymore, not sure why it floats like that.

from videojs-wavesurfer.

chrisbbreuer avatar chrisbbreuer commented on August 28, 2024

In the example you still set a height. If I am correct, that height is only for the waves?
The output looks like:

Image of screenshot

Thanks so much for this improvement. It would be such a nice enhancement!

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

Yea the height option should still work in my opinion, but ignoring it should use the max height available in the player. Something that still needs to be fixed. Feel free to hack on it and help implement this.

from videojs-wavesurfer.

chrisbbreuer avatar chrisbbreuer commented on August 28, 2024

If the height is ignored, the waves will be underneath the player and only visible in full screen mode. As you can see in the screenshot, the waves are not over the player yet. Do you know why this could be?

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

It's fixed and available in the adv-plugin-29 branch (that'll become v2.0.0 eventually).

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

@Chinese1904 I merged the version 2.0 branch to master and there's now a fluid.html example. Can you checkout git master and see if it works for you?

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

I merged the version 2.0 branch to master

videojs-wavesurfer 2.0.0 was released just now that includes fluid support, see https://collab-project.github.io/videojs-wavesurfer/examples/fluid.html

from videojs-wavesurfer.

salmanAhmad143 avatar salmanAhmad143 commented on August 28, 2024

HI Team i am struggling an issue while implementing the videojs-wavesurfer. Actaually my requirement is to display the wave along with video togeather. But i didn't find any option into this. Please help me

Thanks

from videojs-wavesurfer.

thijstriemstra avatar thijstriemstra commented on August 28, 2024

take a look at the video example @salmanAhmad143: https://collab-project.github.io/videojs-wavesurfer/examples/video.html

from videojs-wavesurfer.

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.