libvlc_exception_init( &ex );
// Time is managed in seconds, while duration is managed in microseconds
// TODO: Redo VLCTime to provide value numberAsMilliseconds, numberAsMicroseconds, numberAsSeconds, numberAsMinutes, numberAsHours
- libvlc_media_player_set_time( (libvlc_media_player_t *)instance,
- (value ? [[value numberValue] longLongValue] / 1000 : 0),
+ libvlc_media_player_set_time( (libvlc_media_player_t *)instance,
+ (value ? [[value numberValue] longLongValue] : 0),
&ex );
catch_exception( &ex );
}
{
if( [self isSeekable] )
{
- interval = interval * 1000000;
+ interval = interval * 1000;
[self setTime: [VLCTime timeWithInt: ([[self time] intValue] - interval)]];
}
}
{
if( [self isSeekable] )
{
- interval = interval * 1000000;
+ interval = interval * 1000;
[self setTime: [VLCTime timeWithInt: ([[self time] intValue] + interval)]];
}
}
{
if (value)
{
- long long duration = [value longLongValue] / 1000000;
+ long long duration = [value longLongValue] / 1000;
long long positiveDuration = llabs(duration);
if( positiveDuration > 3600 )
return [NSString stringWithFormat:@"%s%01d:%02d:%02d",
{
if (value)
{
- long long duration = [value longLongValue] / 1000000;
+ long long duration = [value longLongValue] / 1000;
long long positiveDuration = llabs(duration);
long hours = positiveDuration / 3600;
long mins = (positiveDuration / 60) % 60;