Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6244] Android: Video Player mediaControlStyle creation property ignored

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-01-04T13:23:45.000+0000
Affected Version/sRelease 1.8.0.1
Fix Version/sSprint 2011-46, Release 1.8.0.1
ComponentsAndroid
Labelsmodule_media, qe-testadded
ReporterBill Dawson
AssigneeBill Dawson
Created2011-11-20T19:09:13.000+0000
Updated2012-01-04T13:23:45.000+0000

Description

Fail/Test Case

* Run the app.js below. * When the video loads, tap the video and confirm that the play controls (play/pause, etc.) *do* appear. * Change the app.js by changing mediaControlStyle to Titanium.Media.VIDEO_CONTROL_NONE. * Re-run the app. * When the video loads, tap the video and confirm that *no* play controls appear. (The failcase is that they *do* still appear.)
var win = Ti.UI.createWindow({exitOnClose: true, backgroundColor: "yellow"});

var moviePlayer = Ti.Media.createVideoPlayer({
	url: 'http://dts.podtrac.com/redirect.mp4/twit.cachefly.net/video/aaa/aaa0033/aaa0033_h264b_640x368_256.mp4',
	mediaControlStyle: Titanium.Media.VIDEO_CONTROL_EMBEDDED,
	scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL,
	autoplay: true,
	backgroundColor: "blue"
});

win.add(moviePlayer);
win.open();

Comments

  1. Bill Dawson 2011-11-20

    Pull Request ready: https://github.com/appcelerator/titanium_mobile/pull/744
  2. Dustin Hyde 2011-12-06

    Bug fixed. Verified on: SDK: 1.8.0.1.v20111205164258 Runtimes: Android V8/Rhino Studio: 1.0.7.201112052104 OS: OS X Lion Devices Tested: Nexus One 2.2.2, Droid3 2.3.4, G Slate 3.1, Emulator 4.0
  3. Natalie Huynh 2012-01-04

    Open to add label

JSON Source