mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
Android: Remove non-functional native video OS methods
Those methods are only properly implemented for iOS. Supersedes #43811.
This commit is contained in:
parent
a0a22ef49f
commit
e96f0ea1d7
7 changed files with 13 additions and 113 deletions
|
@ -59,10 +59,6 @@ GodotIOJavaWrapper::GodotIOJavaWrapper(JNIEnv *p_env, jobject p_godot_io_instanc
|
|||
_set_screen_orientation = p_env->GetMethodID(cls, "setScreenOrientation", "(I)V");
|
||||
_get_screen_orientation = p_env->GetMethodID(cls, "getScreenOrientation", "()I");
|
||||
_get_system_dir = p_env->GetMethodID(cls, "getSystemDir", "(I)Ljava/lang/String;");
|
||||
_play_video = p_env->GetMethodID(cls, "playVideo", "(Ljava/lang/String;)V");
|
||||
_is_video_playing = p_env->GetMethodID(cls, "isVideoPlaying", "()Z");
|
||||
_pause_video = p_env->GetMethodID(cls, "pauseVideo", "()V");
|
||||
_stop_video = p_env->GetMethodID(cls, "stopVideo", "()V");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -203,33 +199,6 @@ String GodotIOJavaWrapper::get_system_dir(int p_dir) {
|
|||
}
|
||||
}
|
||||
|
||||
void GodotIOJavaWrapper::play_video(const String &p_path) {
|
||||
// Why is this not here?!?!
|
||||
}
|
||||
|
||||
bool GodotIOJavaWrapper::is_video_playing() {
|
||||
if (_is_video_playing) {
|
||||
JNIEnv *env = get_jni_env();
|
||||
return env->CallBooleanMethod(godot_io_instance, _is_video_playing);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
void GodotIOJavaWrapper::pause_video() {
|
||||
if (_pause_video) {
|
||||
JNIEnv *env = get_jni_env();
|
||||
env->CallVoidMethod(godot_io_instance, _pause_video);
|
||||
}
|
||||
}
|
||||
|
||||
void GodotIOJavaWrapper::stop_video() {
|
||||
if (_stop_video) {
|
||||
JNIEnv *env = get_jni_env();
|
||||
env->CallVoidMethod(godot_io_instance, _stop_video);
|
||||
}
|
||||
}
|
||||
|
||||
// SafeNumeric because it can be changed from non-main thread and we need to
|
||||
// ensure the change is immediately visible to other threads.
|
||||
static SafeNumeric<int> virtual_keyboard_height;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue