Package com.banuba.sdk.scene
Interface Media
-
- All Known Implementing Classes:
Media.CppProxy
public interface Media
Base class, represents media files handling.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Media.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getEndPosition()
float
getStartPosition()
boolean
isLooped()
boolean
isPlaying()
void
pause()
pause video playbackvoid
play()
starts video playbackvoid
resume()
resume paused video playbackvoid
setEndPosition(float position)
set playback end position.void
setLooped(boolean looped)
set playback looping.void
setStartPosition(float position)
set playback start position.void
stop()
stop video playback
-
-
-
Method Detail
-
setStartPosition
void setStartPosition(float position)
set playback start position.- Parameters:
position
- (float): playback start position (seconds)
-
setEndPosition
void setEndPosition(float position)
set playback end position.- Parameters:
position
- (float): playback end position (seconds)
-
setLooped
void setLooped(boolean looped)
set playback looping.- Parameters:
looped
- (bool): loop playback flag
-
isLooped
boolean isLooped()
- Returns:
- loop playback flag (bool)
-
getStartPosition
float getStartPosition()
- Returns:
- playback start position (float)
-
getEndPosition
float getEndPosition()
- Returns:
- playback end position (float)
-
isPlaying
boolean isPlaying()
- Returns:
- playback active flag.
-
play
void play()
starts video playback
-
pause
void pause()
pause video playback
-
stop
void stop()
stop video playback
-
resume
void resume()
resume paused video playback
-
-