Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3006] iOS :: regression :: setCurrentPlaybackTime() removed from TiMediaVideoPlayerProxy.m between 1.8.1 and 1.8.2

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2012-03-24T21:46:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterStephen Feather
AssigneeShak Hossain
Created2012-03-19T17:54:24.000+0000
Updated2016-03-08T07:48:01.000+0000

Description

Problem

setcurrentPlaybackTime() no longer functions under 1.8.2 for video players under iOS

Expectations

setCurrentPlayBacktime() should be functional allowing for seek forward or seek backwards

Solution

Add the following code back into
-(void)setCurrentPlaybackTime:(id)value
{
    [self player].currentPlaybackTime=[TiUtils doubleValue:value];
    
}

Comments

  1. Stephen Feather 2012-03-19

    You can close this. It must have been removed further back than 1.8.1 and I hacked it into 1.8.1 because of a PREVIOUS regression. Guess I'll keep rehacking functionality back in.
  2. Amol Jadhav 2012-03-29

    Hi I added code given by you in my TiMediaVideoPlayerProxy.m and worked perfectly on simulator. but the problem is we need to add this code in local(app's) TiMediaVideoPlayerProxy.m file also. And when we install our app on device studio 'cleans' our project which removes this code from local file.. and now this function does not work on device(ipad). How to make this changes persistent?pls help..
  3. Stephen Feather 2012-03-29

    Has to be added to the SDK itself, located down in ~/Library/Application Support/Titanium
  4. Amol Jadhav 2012-03-29

    yes i have added this in ~/Library/Application Support/Titanium.. but it dose not work by adding only there..it needs to add in local copy also to work properly.. but it gets removed when we clean project.. what should I do?
  5. Stephen Feather 2012-03-29

    If you have to add it to the "local" (and I'm not sure what this means, in the build folder?) then you might not be pulling the correct SDK. The method I mentioned above works as I require it for ALL my multimedia apps.
  6. Amol Jadhav 2012-03-29

    hey thanks..it worked now it does not delete code after cleaning and works perfect on simulator..but does not seek to proper position on ipad..why? thanks..

JSON Source