Hi, Inside the code I could not find a way to play the video, I can help by showing how to link Java and С++ (create simple messagebox with java and c++)
First need create new code inside java
public final void MyMessageBox (String title, String message, final long callback)
{
AlertDialog.Builder builder = new AlertDialog.Builder (this);
builder.setTitle (title)
.setMessage (message)
.setCancelable (true)
.setPositiveButton ("OK", new DialogInterface.OnClickListener()
{
public void onClick (DialogInterface dialog, int id)
{
dialog.cancel();
}
});
builder.create().show();
}
then goto juce_android_JNIHelpers.h and add line
METHOD(MyMessageBox, "MyMessageBox", "(Ljava/lang/String;Ljava/lang/String;J)V") \
im added it after 277 line
then goto juce_NativeMessageBox.h and add
static void JUCE_CALLTYPE showmymessage (AlertWindow::AlertIconType iconType,
const String& title,
const String& message,
Component* associatedComponent = nullptr,
ModalComponentManager::Callback* callback = nullptr);
and then goto juce_android_Windowing.cpp and add
void JUCE_CALLTYPE NativeMessageBox::showmymessage (AlertWindow::AlertIconType iconType,
const String& title, const String& message,
Component* associatedComponent,
ModalComponentManager::Callback* callback)
{
android.activity.callVoidMethod (JuceAppActivity.MyMessageBox, javaString (title).get(),
javaString (message).get(), (jlong) (pointer_sized_int) callback);
}
now we can use new java function (im not sure that this right way, but it work)
NativeMessageBox::showmymessage(AlertWindow::NoIcon,String("Hi java"),String::empty);
I hope this helps you