Hi,
We are attempting to create a an Android video plugin for Corona. We are using the new Corona-3100 native template and we’re mostly successful.
One issue that we have, is that, when we add the player to the CoronaActivity using: “activity.getOverlayView().addView( videoPlayerView );”.
The video will play BELOW all of Coronas objects, basically below Corona. At first, we thought that only the audio is playing, but we were able to finally see the video when we added: " display.setDefault ( “background”, 0, 0, 0, 0 )".
Here’s the catch though, when we add an ImageView the exact same way at the exact same time, the ImageView will show up ABOVE Corona:
"activity.getOverlayView().addView( ImageView );
activity.getOverlayView().addView( videoPlayerView );".
We tried something as simple as:
videoPlayerView.bringToFront();
But this doesn’t change a thing…
If you would like to recreate the issue, simply use the native in any function called by, or after the
require(“plugin.library”):
activity.runOnUiThread(new Runnable() { @Override public void run() { VideoView videoview = new VideoView(activity); Uri uri = Uri.parse("http://clips.vorwaerts-gmbh.de/big\_buck\_bunny.mp4"); videoview.setVideoURI(uri); activity.getOverlayView().addView(videoview); videoview.start(); }
We are looking for a way to bring the video player to the front,
Thank you,
Mars Team