|
@@ -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;
|