Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store Locally function not working such as int player_snapshot(void *hplayer, char *file, int w, int h, int waitt) ,int player_record(void *hplayer, char *file) #43

Open
pvnsaravana2 opened this issue Feb 28, 2021 · 1 comment

Comments

@pvnsaravana2
Copy link

pvnsaravana2 commented Feb 28, 2021

Thanks for the Library ...!!!!!

int player_snapshot(void *hplayer, char *file, int w, int h, int waitt) ,int player_record(void *hplayer, char *file)

written code in ffplayer_jni.cpp

static void JNICALL nativeSnapshot(JNIEnv env, jobject obj, jlong hplayer)
{
__android_log_print(ANDROID_LOG_ERROR, "player_jni", "ERROR0: EnterNativeSnapshot\n");
DO_USE_VAR(env);
DO_USE_VAR(obj);
char
filenamedata = (char*) "Demo";
player_snapshot((void*)hplayer,filenamedata,1440 ,2960 ,0);
__android_log_print(ANDROID_LOG_ERROR, "player_jni", "ERROR0: ExitNativeSnapshot\n");
}

static void JNICALL nativeRecord(JNIEnv env, jobject obj, jlong hplayer)
{
__android_log_print(ANDROID_LOG_ERROR, "player_jni", "ERROR0: EnterNativeRecord\n");
DO_USE_VAR(env);
DO_USE_VAR(obj);
char
filenamedata = (char*) "Demo";
player_record((void*)hplayer,filenamedata);
__android_log_print(ANDROID_LOG_ERROR, "player_jni", "ERROR0: ExitNativeRecord\n");
}

There is no crash observed , but unable to find the snapshot image and record video locally ..Not sure whether file has been created or not ..?
Please let me know the file path about local storage ....After calling those methods which location files will be store ?

Tested with Android player apk code - Android App as test environment ... . so file has been updated as per new function calls...

@rockcarry Please do the needful to fix this issues ,Thanks for the Library ...!!!!!

@HelloTodayWolrd
Copy link

HelloTodayWolrd commented Sep 25, 2021

try to use texureview to get the snapshot image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants