-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7424b38
commit e39cc15
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
classlib/bytecoder.web/src/main/java/de/mirkosertic/bytecoder/api/web/HTMLAudioElement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} |