summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2021-04-20 20:07:13 +0200
committerGitHub <noreply@github.com>2021-04-20 20:07:13 +0200
commit8a8dd9cef4c4f09d0ddafe5ba17b1d1efb1e325e (patch)
tree0537e3c6affb47f75500738322623e762ea1d956 /modules
parent399f55751e54fb144db4da02a5e5b023fea41d34 (diff)
parentea46639e22b83ff18d7b85c67b732f6e82ae7df3 (diff)
downloadredot-engine-8a8dd9cef4c4f09d0ddafe5ba17b1d1efb1e325e.tar.gz
Merge pull request #47896 from Calinou/videoplayer-stream-position-warning
Print a warning when trying to seek in VideoPlayer
Diffstat (limited to 'modules')
-rw-r--r--modules/theora/video_stream_theora.cpp1
-rw-r--r--modules/webm/video_stream_webm.cpp2
2 files changed, 2 insertions, 1 deletions
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) {
diff --git a/modules/webm/video_stream_webm.cpp b/modules/webm/video_stream_webm.cpp
index 101001cba0..a6b64b342e 100644
--- a/modules/webm/video_stream_webm.cpp
+++ b/modules/webm/video_stream_webm.cpp
@@ -194,7 +194,7 @@ float VideoStreamPlaybackWebm::get_playback_position() const {
}
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) {