Video Methods - GodDragoner/TeaseAIJava GitHub Wiki
playVideo(String path/url)
Plays a video file that matches the given path.
Parameters:
path - The path you want to play a video file from
Alias: showVideo, displayVideo
Example:
playVideo("Videos/SomeVideos/talkingDog.mp4");
playVideo("http://techslides.com/demos/sample-videos/small.mp4");
playVideo(String path/url, boolean wait)
Plays a video file that matches the given path and if wait is true waits for the video file to end before continuing.
Parameters:
path - The path you want to play a video file from
wait - Whether you want to wait for the video file to end
Alias: showVideo, displayVideo
Example:
playVideo("Videos/SomeVideos/talkingDog.mp4", true);
playVideo("http://techslides.com/demos/sample-videos/small.mp4", true);
showCategoryVideo(String type)
Plays a video file of a certain type.
Parameters:
type - The type you want the video to belong to
Alias: playCategoryVideo, displayCategoryVideo
Example:
showCategoryVideo("BLOWJOB");
showCategoryVideo(String type, boolean wait)
Plays a video file of a certain type and waits for video to finish if wait is true.
Parameters:
type - The type you want the video to belong to
wait - Whether the script should wait for the video to finish or not before continuing.
Alias: playCategoryVideo, displayCategoryVideo
Example:
showCategoryVideo("BLOWJOB", true);
stopVideo()
Stops playing the current video.
Example:
stopVideo();
isPlayingVideo()
Returns whether a video is currently being played.
Example:
if(isPlayingVideo()) {
stopVideo();
}