[TIMOB-25007] Android: repeatMode for VideoPlayer (parity)
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-08-11T00:54:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 6.2.0 |
Components | Android |
Labels | android, parity, videoplayer |
Reporter | Michael Gangolf |
Assignee | Gary Mathews |
Created | 2017-07-21T18:59:24.000+0000 |
Updated | 2017-08-15T22:38:26.000+0000 |
Description
Androids VideoPlayer is missing the repeatMode. This is a parity ticket to add the two repeatStates (loop/no-loop)
Example:
var vidWin = Titanium.UI.createWindow({
title: 'Video View Demo',
backgroundColor: '#fff'
});
var videoPlayer = Titanium.Media.createVideoPlayer({
top: 2,
autoplay: true,
backgroundColor: 'blue',
height: 300,
width: 300,
mediaControlStyle: Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode: Titanium.Media.VIDEO_SCALING_ASPECT_FIT,
repeatMode: Titanium.Media.VIDEO_REPEAT_MODE_ONE
});
videoPlayer.url = 'movie.mp4';
vidWin.add(videoPlayer);
vidWin.open();
Modes:
* Titanium.Media.VIDEO_REPEAT_MODE_NONE
* Titanium.Media.VIDEO_REPEAT_MODE_ONE
PR 6_2_x: https://github.com/appcelerator/titanium_mobile/pull/9240 PR Master: https://github.com/appcelerator/titanium_mobile/pull/9241
FR Passed for both master & backport. PR's merged.
Verified the fix in SDK 7.0.0.v20170815135242 & 6.2.0.v20170815130745. Closing. Studio Ver: 4.9.1.201707200100 SDK Ver: 6.2.0.v20170815130745, 7.0.0.v20170815135242 OS Ver: 10.12.3 Xcode Ver: Xcode 8.3.3 Appc NPM: 4.2.9 Appc CLI: 6.2.3 Ti CLI Ver: 5.0.14 Alloy Ver: 1.9.13 Node Ver: 6.10.1 Java Ver: 1.8.0_101 Devices: ⇨ samsung SM-G955U1 --- Android 7.0 Emulator: Android 6.0, Android 5.1.1