Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25007] Android: repeatMode for VideoPlayer (parity)

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-08-11T00:54:02.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsandroid, parity, videoplayer
ReporterMichael Gangolf
AssigneeGary Mathews
Created2017-07-21T18:59:24.000+0000
Updated2017-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

Comments

  1. Michael Gangolf 2017-07-21

    PR 6_2_x: https://github.com/appcelerator/titanium_mobile/pull/9240 PR Master: https://github.com/appcelerator/titanium_mobile/pull/9241
  2. Lokesh Choudhary 2017-08-11

    FR Passed for both master & backport. PR's merged.
  3. Lokesh Choudhary 2017-08-15

    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

JSON Source