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
-
Method Summary
Modifier and TypeMethodDescriptionasImage()
asMedia()
cast video to media parent class (media).int
float
Video own rotation angleint
getWidth()
void
load
(String videoPath, VideoLoadingResultListener onLoadingFinished) Load video file for decoding.void
loadByFd
(int fd, VideoLoadingResultListener onLoadingFinished) Load video file for decoding by file descriptor.void
set gpu video texture filtering mode param mode (texture_filtering_mode)
-
Method Details
-
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
Load video file for decoding.- Parameters:
file_name
- (string): absolute path for video file.
-
loadByFd
Load video file for decoding by file descriptor.- Parameters:
fd
- (i32): file descriptor, should be closed on the caller side.
-
asMedia
cast video to media parent class (media). -
asImage
- Returns:
- upcast to image type
-
getRotationAngle
float getRotationAngle()Video own rotation angle -
setFilteringMode
set gpu video texture filtering mode param mode (texture_filtering_mode) -
getFilteringMode
- Returns:
- filtering mode (texture_filtering_mode)
-