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();
Pull Request ready: https://github.com/appcelerator/titanium_mobile/pull/744
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
Open to add label