Package com.banuba.sdk.scene
Interface Video
-
- All Known Implementing Classes:
Video.CppProxy
public interface Video
Class, represents video texture interface. Subclass of image, also subclass of media.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Video.CppProxy
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Image
asImage()
Media
asMedia()
cast video to media parent class (media).java.lang.String
getCurrentVideo()
TextureFilteringMode
getFilteringMode()
int
getHeight()
float
getRotationAngle()
Video own rotation angleint
getWidth()
void
load(java.lang.String videoPath, VideoLoadingResultListener onLoadingFinished)
Load video file for decoding.void
loadByFd(int fd, VideoLoadingResultListener onLoadingFinished)
Load video file for decoding by file descriptor.void
setFilteringMode(TextureFilteringMode value)
set gpu video texture filtering mode param mode (texture_filtering_mode)
-
-
-
Method Detail
-
getCurrentVideo
@NonNull java.lang.String getCurrentVideo()
- Returns:
- current loaded video file (string).
-
getWidth
int getWidth()
- Returns:
- current loaded video pixels width (int).
-
getHeight
int getHeight()
- Returns:
- current loaded video pixels height (int).
-
load
void load(@NonNull java.lang.String videoPath, @Nullable VideoLoadingResultListener onLoadingFinished)
Load video file for decoding.- Parameters:
file_name
- (string): absolute path for video file.
-
loadByFd
void loadByFd(int fd, @Nullable VideoLoadingResultListener onLoadingFinished)
Load video file for decoding by file descriptor.- Parameters:
fd
- (i32): file descriptor, should be closed on the caller side.
-
asMedia
@Nullable Media asMedia()
cast video to media parent class (media).
-
asImage
@Nullable Image asImage()
- Returns:
- upcast to image type
-
getRotationAngle
float getRotationAngle()
Video own rotation angle
-
setFilteringMode
void setFilteringMode(@NonNull TextureFilteringMode value)
set gpu video texture filtering mode param mode (texture_filtering_mode)
-
getFilteringMode
@NonNull TextureFilteringMode getFilteringMode()
- Returns:
- filtering mode (texture_filtering_mode)
-
-