Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10861] iOS: Add setCurrentPlaybackTime API

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2012-10-03T19:45:25.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
Labelsapi, parity, qe-port
Reporterjavier muniz
AssigneeHieu Pham
Created2012-09-11T16:20:54.000+0000
Updated2012-10-16T21:02:30.000+0000

Description

Test code:
var win = Titanium.UI.createWindow();
	
	var options = {
		url: 'movie.mp4',
		backgroundColor: '#111',
		scalingMode: Titanium.Media.VIDEO_SCALING_MODE_FILL,
		mediaControlStyle: Titanium.Media.VIDEO_CONTROL_NONE // See TIMOB-2802, which may change this property name
	};
	
	if (Titanium.Platform.osname == "ipad") {
		options.width = 400;
		options.height = 300;
	}
	
	var activeMovie = Titanium.Media.createVideoPlayer(options);
	win.add(activeMovie);
	

	activeMovie.play();
	
	
	win.open();
        activeMovie.setCurrentPlaybackTime(4000);
	

Comments

  1. javier muniz 2012-09-11

    https://github.com/appcelerator/titanium_mobile/pull/2915 contains the pull request that fixes this.
  2. Hieu Pham 2012-10-01

    This API is already exposed on Android. Just need iOS implementation for parity.
  3. Blain Hamon 2012-10-03

    Pull merged.
  4. Tamila Smolich 2012-10-16

    Verified feature works as expected. Testing environment: Titanium Studio, build: 3.0.0.201210151149 Titanium SDK, build: 3.0.0.v20121015174610 iPhone 4S (4.3.5)

JSON Source