Skip to content

Commit

Permalink
Add HTMLAudioElement (#597)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuripourre authored Jul 22, 2021
1 parent 7424b38 commit e39cc15
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package de.mirkosertic.bytecoder.api.web;

import de.mirkosertic.bytecoder.api.OpaqueProperty;

public interface HTMLAudioElement extends HTMLElement {

@OpaqueProperty("loop")
void setLoop(boolean loop);

@OpaqueProperty("loop")
boolean isLoop();

@OpaqueProperty("volume")
void setVolume(float volume);

@OpaqueProperty("volume")
float getVolume();

@OpaqueProperty("currentTime")
void setCurrentTime(int currentTime);

@OpaqueProperty("currentTime")
int getCurrentTime();

@OpaqueProperty("paused")
boolean isPaused();

@OpaqueProperty("ended")
boolean isEnded();

void play();

void pause();

void stop();

@OpaqueProperty("src")
void setSrc(String url);

@OpaqueProperty("crossOrigin")
void setCrossOrigin(String crossOrigin);
}

0 comments on commit e39cc15

Please sign in to comment.