esac
done
- #install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
- install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.2.dylib" ${target_lib} "library"
+ install_library "${VLC_BUILD_DIR}/src/${prefix}libvlc.dylib" ${target_lib} "library"
install_library "${VLC_BUILD_DIR}/src/${prefix}libvlccore.dylib" ${target_lib} "library"
##########################
libvlc_exception_init( &ex );
const char * lib_vlc_params[] = {
- "-I", "dummy", "--vout=opengllayer",
- "--no-video-title-show", "--no-sout-keep", "--ignore-config"
+ "-I", "dummy", "--vout=minimal_macosx",
+ "--no-video-title-show", "--no-sout-keep", "--ignore-config",
+ "--opengl-provider=minimal_macosx",
+ "-verbose=-1"
//, "--control=motion", "--motion-use-rotate", "--video-filter=rotate"
};
static void HandleMediaTimeChanged(const libvlc_event_t * event, void * self)
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
[[VLCEventManager sharedManager] callOnMainThreadObject:self
withMethod:@selector(mediaPlayerTimeChanged:)
withArgumentAsObject:[NSNumber numberWithLongLong:event->u.media_player_time_changed.new_time]];
// Make sure that this instance has been associated with the drawing canvas.
libvlc_exception_t ex;
libvlc_exception_init( &ex );
- libvlc_media_player_set_drawable ((libvlc_media_player_t *)instance,
- (libvlc_drawable_t)aDrawable,
+ libvlc_media_player_set_nsobject ((libvlc_media_player_t *)instance,
+ aDrawable,
&ex);
catch_exception( &ex );
}
[self willChangeValueForKey:@"time"];
[cachedTime release];
cachedTime = [[VLCTime timeWithNumber:newTime] retain];
+
[self didChangeValueForKey:@"time"];
}
- (void)mediaPlayerPositionChanged:(NSNumber *)newPosition
{
- if( [newPosition floatValue] - position < 0.005 && position - [newPosition floatValue] < 0.005 )
- return; /* Forget that, this is too much precision for our uses */
[self willChangeValueForKey:@"position"];
- position = ((float)((int)([newPosition floatValue]*1000)))/1000.;
+ position = [newPosition floatValue];
[self didChangeValueForKey:@"position"];
}
[self play];
}
-- (void)play;
+- (BOOL)play;
{
NSString * libvlcArgs;
if( self.drawable )
[super setMedia: self.media];
}
[super play];
+ return YES;
}
+ (NSSet *)keyPathsForValuesAffectingDescription
if (value)
{
long long duration = [value longLongValue] / 1000000;
- return [NSString stringWithFormat:@"%02d:%02d:%02d",
+ return [NSString stringWithFormat:@"%01d:%02d:%02d",
(long) (duration / 3600),
(long)((duration / 60) % 60),
(long) (duration % 60)];
else
{
// Return a string that represents an undefined time.
- return @"--:--:--";
+ return @"-:--:--";
}
}
INFOPLIST_FILE = Resources/Info.plist;
INSTALL_PATH = "@loader_path/../Frameworks";
LD_FLAGS_LIBINTL = "-dylib_file @loader_path/../lib/vlc_libintl.dylib:$(VLC_FRAMEWORK)/lib/vlc_libintl.dylib";
- LD_FLAGS_LIBVLC = "-dylib_file @loader_path/lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib -dylib_file @loader_path/../lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib";
+ LD_FLAGS_LIBVLC = "-dylib_file @loader_path/lib/libvlc.dylib:$(VLC_FRAMEWORK)/lib/libvlc.dylib";
LD_FLAGS_LIBVLC_CONTROL = "-dylib_file @loader_path/lib/libvlc-control.dylib:$(VLC_FRAMEWORK)/lib/libvlc-control.dylib";
LIBRARY_SEARCH_PATHS = "$(VLC_FRAMEWORK)/lib";
OTHER_LDFLAGS = (