Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7690] Android: Fullscreen VideoPlayer does not appear in emulator

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionWon't Fix
Resolution Date2017-08-01T22:36:06.000+0000
Affected Version/sRelease 1.8.2
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterArthur Evans
AssigneeEric Merriman
Created2012-02-16T13:56:51.000+0000
Updated2017-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.

Comments

  1. Stephen Feather 2012-02-21

    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.
  2. Lee Morris 2017-08-01

    Closing due to inactivity. If this issue still exists, please raise a new ticket.

JSON Source