mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03: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:
committed by
Rémi Verschelde
parent
595a1edd3b
commit
f0d1bedc74
@@ -617,10 +617,9 @@ float VideoStreamPlaybackTheora::get_playback_position() const {
|
||||
return get_time();
|
||||
};
|
||||
|
||||
void VideoStreamPlaybackTheora::seek(float p_time){
|
||||
|
||||
// no
|
||||
};
|
||||
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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user