Can I use Wavesurfer without media?
See original GitHub issueI want to render waveform once (from youtube video, scraped direct link to mp4), then save picks array
, and in the future use it with official youtube-api.
That means that in wavesurfer I need only Waveform, and Regions. And don’t need any attached media.
Then with Waveform canvas (from picks array) and Regions I’ll control youtube video through api:
- show current position of playback,
- change position on click on it,
- display subtitles like labels on Regions, etc For now I doubled media, and it is a buggy way… it is hard to sync 2 media playbacks… Even when I mute one of them, sometimes they sound both.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
FAQ - wavesurfer.js
Yes, if you use the backend: 'MediaElement' option. See here: http://wavesurfer-js.org/example/audio-element/. The audio will start playing as you press ...
Read more >WaveSurfer Options
option type default
audioRate float 1
audioContext object none
audioScriptProcessor object none
Read more >Media Element Fallback Example - wavesurfer.js
wavesurfer.js will automatically fallback to HTML5 Media if Web Audio is not supported. However, you can choose to use audio element manually.
Read more >wavesurfer.js documentation API Document
Yes, if you use the backend: 'MediaElement' option. See here: https://wavesurfer-js.org/example/audio-element/. The audio will start playing as you press ...
Read more >Home | wavesurfer.js
Yes, if you use the backend: 'MediaElement' option. See here: https://wavesurfer-js.org/example/audio-element/. The audio will start playing as you press ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I didn’t use it with mp4 file, only with youtube API. Try events like “region-updated” or other events from here: https://wavesurfer-js.org/plugins/regions.html
@ApayRus I want to do something similar except I am not going to use youtube video. How can I control mp4 video from regions? Like moving video frames when I move regions.