[TIMOB-10861] iOS: Add setCurrentPlaybackTime API
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2012-10-03T19:45:25.000+0000 |
| Affected Version/s | Release 3.0.0 |
| Fix Version/s | Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20 |
| Components | iOS |
| Labels | api, parity, qe-port |
| Reporter | javier muniz |
| Assignee | Hieu Pham |
| Created | 2012-09-11T16:20:54.000+0000 |
| Updated | 2012-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);
https://github.com/appcelerator/titanium_mobile/pull/2915 contains the pull request that fixes this.
This API is already exposed on Android. Just need iOS implementation for parity.
Pull merged.
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)