1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-29 16:16:38 +00:00

Print a warning when trying to seek in VideoPlayer

Seeking isn't implemented in built-in video formats and can only
be supported in GDNative-provided video formats.

(cherry picked from commit ea46639e22)
This commit is contained in:
Hugo Locurcio
2021-04-14 20:39:13 +02:00
committed by Rémi Verschelde
parent 595a1edd3b
commit f0d1bedc74
3 changed files with 5 additions and 6 deletions

View File

@@ -222,8 +222,7 @@ float VideoStreamPlaybackWebm::get_playback_position() const {
return video_pos;
}
void VideoStreamPlaybackWebm::seek(float p_time) {
//Not implemented
WARN_PRINT_ONCE("Seeking in Theora and WebM videos is not implemented yet (it's only supported for GDNative-provided video streams).");
}
void VideoStreamPlaybackWebm::set_audio_track(int p_idx) {