I'm developing app, which display movies from the Web. I have to display midroll ad. I can't use one surfaceView, because when I call release on MediaPlayer (in order to display ad), buffer of main movie is lost.
I've found that thread:
In most of devices that solution work great, but I have one device that display only black screen (sound is ok, in native player movie is displayed well).
Resizing surfaceViews is very simple:
- Code: Select all
private final LayoutParams max = new AbsoluteLayout.LayoutParams(200, 200, 0, 0);
private final LayoutParams min = new AbsoluteLayout.LayoutParams(1, 1, 1, 1);
Here is simple app to test that thing:
(you have to put mp4 and 3gp files on sdcard and click Play in order to switch videos)
All help will be appreciated. I will be also grateful if you test apk on your device and comment if everything is working + info about device (model, soft).