[TIMOB-7690] Android: Fullscreen VideoPlayer does not appear in emulator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Won't Fix |
Resolution Date | 2017-08-01T22:36:06.000+0000 |
Affected Version/s | Release 1.8.2 |
Fix Version/s | n/a |
Components | Android |
Labels | n/a |
Reporter | Arthur Evans |
Assignee | Eric Merriman |
Created | 2012-02-16T13:56:51.000+0000 |
Updated | 2017-08-01T22:36:06.000+0000 |
Description
When running a sample for Android Fullscreen VideoPlayer, the video doesn't show up in the emulator.
Running the same sample on the device, the video appears correctly.
Test case:
Titanium.UI.setBackgroundColor('#000');
var win = Titanium.UI.createWindow({
title : 'Test',
backgroundColor : '#fff',
exitOnClose : true
});
var contentURL = "http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4";
var openButton = Ti.UI.createButton({
title : "Start Video",
top : "5dp",
height : "40dp",
left : "10dp",
right : "10dp"
});
openButton.addEventListener('click', function() {
var activeMovie = Titanium.Media.createVideoPlayer({
url : contentURL,
backgroundColor : 'blue',
movieControlMode : Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode : Titanium.Media.VIDEO_SCALING_MODE_FILL,
fullscreen : true,
autoplay : true
});
var closeButton = Ti.UI.createButton({
title : "Exit Video",
top : "5dp",
height : "40dp",
left : "10dp",
right : "10dp"
});
closeButton.addEventListener('click', function() {
activeMovie.hide();
activeMovie.release();
activeMovie = null;
});
activeMovie.add(closeButton);
});
win.add(openButton);
win.open();
On the API Level 8 WVGA emulator, I'm not even seeing the video controls. In the Level 13 WVGA emulator, I'm seeing the controls and hearing audio, but the screen stays blank until I move the video position slider. Then I see still images as I move the slider, but they stay frozen when I release it. Also tried on the HVGA emulator to see if it was trouble handling the scaling, but that didn't work any better.
Not sure why normal video works in the emulator, but the fullscreen seems to freeze.
Arthur, what is your system configuration/platform? The android emulator's video capabilities are limited and shouldn't really be used for testing code that displays video. I'm not sure this is a Titanium problem specifically as the same issues arise with native development.
Closing due to inactivity. If this issue still exists, please raise a new ticket.