[AC-3006] iOS :: regression :: setCurrentPlaybackTime() removed from TiMediaVideoPlayerProxy.m between 1.8.1 and 1.8.2
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-24T21:46:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Stephen Feather |
Assignee | Shak Hossain |
Created | 2012-03-19T17:54:24.000+0000 |
Updated | 2016-03-08T07:48:01.000+0000 |
Description
Problem
setcurrentPlaybackTime() no longer functions under 1.8.2 for video players under iOSExpectations
setCurrentPlayBacktime() should be functional allowing for seek forward or seek backwardsSolution
Add the following code back into
-(void)setCurrentPlaybackTime:(id)value
{
[self player].currentPlaybackTime=[TiUtils doubleValue:value];
}
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.
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..
Has to be added to the SDK itself, located down in ~/Library/Application Support/Titanium
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?
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.
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..