From ea46639e22b83ff18d7b85c67b732f6e82ae7df3 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Wed, 14 Apr 2021 20:39:13 +0200 Subject: 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. --- modules/theora/video_stream_theora.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/theora') diff --git a/modules/theora/video_stream_theora.cpp b/modules/theora/video_stream_theora.cpp index c5f6dc0d99..19f26c87cd 100644 --- a/modules/theora/video_stream_theora.cpp +++ b/modules/theora/video_stream_theora.cpp @@ -603,6 +603,7 @@ float VideoStreamPlaybackTheora::get_playback_position() const { }; void VideoStreamPlaybackTheora::seek(float p_time) { + WARN_PRINT_ONCE("Seeking in Theora and WebM videos is not implemented yet (it's only supported for GDNative-provided video streams)."); } void VideoStreamPlaybackTheora::set_mix_callback(AudioMixCallback p_callback, void *p_userdata) { -- cgit v1.2.3