Skip to content

Events playing, paused , how to emit them? #145

@ricky11

Description

@ricky11

From the docs, we have common events playing, paused.

I am trying to emit the events from the av-waveform as so:

  <audio autoplay color="white" ref="foo" :src="vidUrl"></audio>
  <av-waveform  @playing="isPlaying = true" @paused="isPlaying = false" @ended="isPlaying=false" :canv-width="300" class="memoClass" played-line-color="#b7c6c7" :playtime-with-ms="false" :playtime-text-bottom="true" playtime-font-color="white" noplayed-line-color="white" ref-link="foo"/>

I am trying to change the data property isPlaying to toggle a icon, there isn't an error in the console, but the data property is not switching, hence the event isn't being fired.

I also trying to do this by checking the play state by $refs.foo.paused, but i cant find the paused element on foo, but that may be another issue.

as a side note, the font-color for the wave isn't changing to white, when i add a :playtime-font-color, there is a type error.

Thanks.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions