react-waves | React component wrapper for wavesurfer.js | Frontend Framework library

 by   dschoon JavaScript Version: v4.0.2 License: No License

kandi X-RAY | react-waves Summary

kandi X-RAY | react-waves Summary

react-waves is a JavaScript library typically used in User Interface, Frontend Framework, React applications. react-waves has no bugs, it has no vulnerabilities and it has low support. You can install using 'npm i @dschoon/react-waves' or download it from GitHub, npm.

React component wrapper for wavesurfer.js
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              react-waves has a low active ecosystem.
              It has 65 star(s) with 21 fork(s). There are 3 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 8 open issues and 34 have been closed. On average issues are closed in 50 days. There are 37 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of react-waves is v4.0.2

            kandi-Quality Quality

              react-waves has 0 bugs and 0 code smells.

            kandi-Security Security

              react-waves has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              react-waves code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              react-waves does not have a standard license declared.
              Check the repository for any license declaration and review the terms closely.
              OutlinedDot
              Without a license, all rights are reserved, and you cannot use the library in your applications.

            kandi-Reuse Reuse

              react-waves releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions, examples and code snippets are available.
              react-waves saves you 52 person hours of effort in developing the same functionality from scratch.
              It has 138 lines of code, 0 functions and 22 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed react-waves and discovered the below as its top functions. This is intended to give you an instant insight into react-waves implemented functionality, and help decide if they suit your requirements.
            • Load audio file .
            • Seek to move .
            • Assert if a number is positive .
            • Load audio files .
            • Capitalize the first letter of a string
            • Register events on wavesur
            • Convert milliseconds to a position .
            Get all kandi verified functions for this library.

            react-waves Key Features

            No Key Features are available at this moment for react-waves.

            react-waves Examples and Code Snippets

            No Code Snippets are available at this moment for react-waves.

            Community Discussions

            QUESTION

            unable to show remaining time in wavesurfer.js
            Asked 2021-May-02 at 08:18
            import React,{ useEffect, useRef, useState } from "react";
            import { useDispatch, useSelector } from 'react-redux'
            import { format, formWaveSurferOptions } from '../../utils/generic'
            import { receiveCurrentTrack, receiveTrackRef , togglePlay} from '../../redux/action/currentTrack'
            import './_playlist.scss'
            import WaveSurfer from "wavesurfer.js";
            import {Link} from 'react-router-dom';
            
            const PlayList = (props) => {
              const dispatch = useDispatch()
            
              const { track, queue, currentTrack, index } = props
              const waveformRef = useRef(null);
              const waveRef = useSelector((state)=>state.currentTrack.waveRef)
              const wavesurfer = useRef(null);
              const currentTime = useRef(null)
              const [duration, setDuration] = useState() 
            
              useEffect(() => {
                
                const options = formWaveSurferOptions(waveformRef.current);
                wavesurfer.current = WaveSurfer.create(options);
                wavesurfer.current.load(track.url);
                
                wavesurfer.current.on("ready", ()=> {
                  if(wavesurfer.current){
                    wavesurfer.current.setVolume(0)
                    setDuration(format(wavesurfer.current.getDuration()))
                  }
                });
                
                return () => wavesurfer.current.destroy();
              }, [track.url]);
            
              useEffect(()=>{
                if(currentTrack){
                  dispatch(receiveTrackRef(wavesurfer))
                } 
                return ()=> waveRef?.current.stop()
            
              },[currentTrack.track?.url])
            
              const handleClick = () => {
              
                dispatch(receiveTrackRef(wavesurfer))
            
                if(currentTrack){
                  dispatch(togglePlay())
                } 
                else {
                  waveRef?.current.stop()
                  dispatch(receiveCurrentTrack(track, queue));
                }
              };
            
              
              
              return (
                
                        # {index} :
                        {track.title}
                        {track.artist}
                        0.00 / {duration && duration} 
                        console.log('hhh')} ref={waveformRef} />
                        {duration && duration}
                
              );
            };
            
            export default PlayList;
            
            ...

            ANSWER

            Answered 2021-May-02 at 08:18

            From the Official Doc :

            getCurrentTime() – Returns current progress in seconds.

            There's also a audioprocess event as you mentioned that fires continuously as the audio plays.
            So by combining these together, we have this:

            Source https://stackoverflow.com/questions/67271773

            QUESTION

            Fixing third-party modules in Gatsby that require window
            Asked 2020-Oct-30 at 06:42

            So, I am not very familiar with webpack, however, I am trying to use a package in Gatsby.js that requires 'window'. I found the following webpage in their docs, and have tried to figure out what I need to do to make it work, but to no success. Any light anyone can shed would be very appreciated. This is what I have:

            gatsby-node.js

            ...

            ANSWER

            Answered 2020-Oct-30 at 06:42

            Change your setWebpackConfig rule to:

            Source https://stackoverflow.com/questions/64602873

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install react-waves

            You can install using 'npm i @dschoon/react-waves' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dschoon/react-waves.git

          • CLI

            gh repo clone dschoon/react-waves

          • sshUrl

            git@github.com:dschoon/react-waves.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link