Changeset 43a3035ffdaf90ae4303b55b27802205521f5982
- Timestamp:
- 04/01/08 00:02:12
(3 months ago)
- Author:
- Faustino Osuna <enrique.osuna@gmail.com>
- git-committer:
- Faustino Osuna <enrique.osuna@gmail.com> 1207000932 +0100
- git-parent:
[79b9d34ee355a0934cae8451a283f74e2c87dc5e]
- git-author:
- Faustino Osuna <enrique.osuna@gmail.com> 1207000932 +0100
- Message:
VLCKit.framework: Documentation updates, whitespace cleanup.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCEventManager.h: VLC.framework VLCEventManager header |
|---|
| | 2 | * VLCEventManager.h: VLCKit.framework VLCEventManager header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCLibVLCbridging.h: VLC.framework VLCLibVLCBridging (Private) header |
|---|
| | 2 | * VLCLibVLCbridging.h: VLCKit.framework VLCLibVLCBridging (Private) header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 27 | 27 | #import "VLCStreamOutput.h" |
|---|
| 28 | 28 | |
|---|
| | 29 | /* Utility functions */ |
|---|
| | 30 | /** |
|---|
| | 31 | * \function catch_execption( ex ) |
|---|
| | 32 | * Utility function that catches a LibVLC generated exception by throwing a Cocoa based NSException. |
|---|
| | 33 | * \param ex LibVLC exception returned by LibVLC internal functions. |
|---|
| | 34 | */ |
|---|
| | 35 | #define catch_exception( ex ) __catch_exception( (void *)(ex), __FUNCTION__, __FILE__, __LINE__ ) |
|---|
| | 36 | extern void __catch_exception( void * e, const char * function, const char * file, int line_number ); |
|---|
| | 37 | |
|---|
| 29 | 38 | /** |
|---|
| 30 | 39 | * Bridges functionality between libvlc and VLCMediaList implementation. |
|---|
| 31 | 40 | */ |
|---|
| 32 | | |
|---|
| 33 | | /* |
|---|
| 34 | | * Utility function |
|---|
| 35 | | */ |
|---|
| 36 | | |
|---|
| 37 | | #define catch_exception( ex ) __catch_exception( (void *)(ex), __FUNCTION__, __FILE__, __LINE__ ) |
|---|
| 38 | | extern void __catch_exception( void * e, const char * function, const char * file, int line_number ); |
|---|
| 39 | | |
|---|
| 40 | | /* |
|---|
| 41 | | * @interface VLC(class) (LibVLCBridging) |
|---|
| 42 | | */ |
|---|
| 43 | | |
|---|
| 44 | 41 | @interface VLCMediaList (LibVLCBridging) |
|---|
| 45 | 42 | /* Factories */ |
|---|
| … | … | |
| 104 | 101 | */ |
|---|
| 105 | 102 | - (void)setLength:(VLCTime *)value; |
|---|
| 106 | | |
|---|
| 107 | | |
|---|
| 108 | 103 | @end |
|---|
| 109 | 104 | |
|---|
| … | … | |
| 178 | 173 | @end |
|---|
| 179 | 174 | |
|---|
| | 175 | /** |
|---|
| | 176 | * TODO: Documentation |
|---|
| | 177 | */ |
|---|
| 180 | 178 | @interface VLCStreamOutput (LibVLCBridge) |
|---|
| 181 | 179 | - (NSString *)representedLibVLCOptions; |
|---|
| rdbddc5a |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCVideoCommon.h: VLC.framework VLCVideoCommon header |
|---|
| | 2 | * VLCVideoCommon.h: VLCKit.framework VLCVideoCommon header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 25 | 25 | #import <QuartzCore/QuartzCore.h> |
|---|
| 26 | 26 | |
|---|
| | 27 | /** |
|---|
| | 28 | * TODO: Documentation |
|---|
| | 29 | */ |
|---|
| 27 | 30 | @interface VLCVideoLayoutManager : NSObject |
|---|
| 28 | 31 | { |
|---|
| … | … | |
| 30 | 33 | BOOL fillScreenEntirely; |
|---|
| 31 | 34 | } |
|---|
| | 35 | |
|---|
| | 36 | /* Factories */ |
|---|
| | 37 | + (id)layoutManager; |
|---|
| | 38 | |
|---|
| | 39 | /* Properties */ |
|---|
| 32 | 40 | @property BOOL fillScreenEntirely; |
|---|
| 33 | 41 | @property CGSize originalVideoSize; |
|---|
| 34 | | |
|---|
| 35 | | + (id)layoutManager; |
|---|
| 36 | | |
|---|
| 37 | 42 | @end |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCAudio.h: VLC.framework VLCAudio header |
|---|
| | 2 | * VLCAudio.h: VLCKit.framework VLCAudio header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Faustino E. Osuna |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLC.h: VLC.framework main header |
|---|
| | 2 | * VLCKit.h: VLCKit.framework main header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 23 | 23 | *****************************************************************************/ |
|---|
| 24 | 24 | |
|---|
| 25 | | #ifndef VLC_FRAMEWORK_VLC_H |
|---|
| 26 | | #define VLC_FRAMEWORK_VLC_H |
|---|
| | 25 | /** |
|---|
| | 26 | * TODO: Framework Documetnation |
|---|
| | 27 | */ |
|---|
| 27 | 28 | |
|---|
| 28 | 29 | #import <VLCKit/VLCLibrary.h> |
|---|
| … | … | |
| 44 | 45 | @class VLCTime; |
|---|
| 45 | 46 | @class VLCVideoView; |
|---|
| 46 | | |
|---|
| 47 | | #endif /* VLC_FRAMEWORK_VLC_H */ |
|---|
| r39bd598 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCLibrary.h: VLC.framework VLCLibrary implementation |
|---|
| | 2 | * VLCLibrary.h: VLCKit.framework VLCLibrary implementation |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 28 | 28 | #import "VLCMedia.h" |
|---|
| 29 | 29 | |
|---|
| 30 | | |
|---|
| | 30 | // FIXME: Hide from public header |
|---|
| 31 | 31 | extern void * CreateSharedLibraryOnStartup( void ) __attribute__((constructor)); |
|---|
| 32 | 32 | extern void * DestroySharedLibraryAtExit( void ) __attribute__((destructor)); |
|---|
| … | … | |
| 35 | 35 | |
|---|
| 36 | 36 | /** |
|---|
| 37 | | * VLCLibrary object. |
|---|
| 38 | | * TODO: Documentation VLCLibrary |
|---|
| | 37 | * The VLCLibrary is the base library of the VLCKit.framework. This object provides a shared instance that exposes the |
|---|
| | 38 | * internal functionalities of libvlc and libvlc-control. The VLCLibrary object is instantiated automatically when |
|---|
| | 39 | * VLCKit.framework is loaded into memory. Also, it is automatically destroyed when the VLCKit.framework is unloaded |
|---|
| | 40 | * from memory. |
|---|
| | 41 | * |
|---|
| | 42 | * Currently, the framework does not support multiple instances of VLCLibrary. Furthermore, you cannot destroy any |
|---|
| | 43 | * instiantiation of VLCLibrary, as previously noted, this is done automatically by the dynamic link loader. |
|---|
| 39 | 44 | */ |
|---|
| 40 | 45 | @interface VLCLibrary : NSObject |
|---|
| … | … | |
| 46 | 51 | /* Factories */ |
|---|
| 47 | 52 | /** |
|---|
| 48 | | * TODO: Documentation + [VLCLibrary sharedLibrary] |
|---|
| | 53 | * Returns the library's shared instance. |
|---|
| | 54 | * \return The library's shared instance. |
|---|
| 49 | 55 | */ |
|---|
| 50 | 56 | + (VLCLibrary *)sharedLibrary; |
|---|
| … | … | |
| 52 | 58 | /* Properties */ |
|---|
| 53 | 59 | /** |
|---|
| 54 | | * TODO: Documentation VLCLibrary.audio |
|---|
| | 60 | * Returns the library's audio object. This object is used to manipulate the global audio properities of the shared |
|---|
| | 61 | * library. |
|---|
| | 62 | * \return The library's shared audio instance. |
|---|
| 55 | 63 | */ |
|---|
| 56 | 64 | @property (readonly) VLCAudio * audio; |
|---|
| r4a19225 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMedia.h: VLC.framework VLCMedia header |
|---|
| | 2 | * VLCMedia.h: VLCKit.framework VLCMedia header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 101 | 101 | /** |
|---|
| 102 | 102 | * Defines files and streams as a managed object. Each media object can be |
|---|
| 103 | | * administered seperately. VLCMediaPlayer or VLCMediaControl must be used |
|---|
| | 103 | * administered seperately. VLCMediaPlayer or VLCMediaList must be used |
|---|
| 104 | 104 | * to execute the appropriate playback functions. |
|---|
| 105 | 105 | * \see VLCMediaPlayer |
|---|
| 106 | | * \see VLCMediaControl |
|---|
| | 106 | * \see VLCMediaList |
|---|
| 107 | 107 | */ |
|---|
| 108 | 108 | @interface VLCMedia : NSObject |
|---|
| 109 | 109 | { |
|---|
| 110 | 110 | void * p_md; //< Internal media descriptor instance |
|---|
| 111 | | NSURL * url; //< URL for this media resource |
|---|
| | 111 | NSURL * url; //< URL (MRL) for this media resource |
|---|
| 112 | 112 | VLCMediaList * subitems; //< Sub list of items |
|---|
| 113 | | VLCTime * length; //< Duration of the media |
|---|
| | 113 | VLCTime * length; //< Cached duration of the media |
|---|
| 114 | 114 | NSMutableDictionary * metaDictionary; //< Meta data storage |
|---|
| 115 | 115 | id delegate; //< Delegate object |
|---|
| 116 | 116 | BOOL artFetched; //< Value used to determine of the artwork has been preparsed |
|---|
| 117 | | VLCMediaState state; |
|---|
| | 117 | VLCMediaState state; //< Current state of the media |
|---|
| 118 | 118 | } |
|---|
| 119 | 119 | |
|---|
| 120 | | /* Object Factories */ |
|---|
| | 120 | /* Factories */ |
|---|
| 121 | 121 | /** |
|---|
| 122 | 122 | * Manufactures a new VLCMedia object using the URL specified. |
|---|
| 123 | 123 | * \param anURL URL to media to be accessed. |
|---|
| 124 | | * \return A new VLCMedia object, only if there were no errors. This object |
|---|
| 125 | | * will be automatically released. |
|---|
| | 124 | * \return A new VLCMedia object, only if there were no errors. This object will be automatically released. |
|---|
| 126 | 125 | * \see initWithMediaURL |
|---|
| 127 | 126 | */ |
|---|
| … | … | |
| 131 | 130 | * Manufactures a new VLCMedia object using the path specified. |
|---|
| 132 | 131 | * \param aPath Path to the media to be accessed. |
|---|
| 133 | | * \return A new VLCMedia object, only if there were no errors. This object |
|---|
| 134 | | * will be automatically released. |
|---|
| | 132 | * \return A new VLCMedia object, only if there were no errors. This object will be automatically released. |
|---|
| 135 | 133 | * \see initWithPath |
|---|
| 136 | 134 | */ |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMediaDiscoverer.h: VLC.framework VLCMediaDiscoverer header |
|---|
| | 2 | * VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMediaDiscoverer.h: VLC.framework VLCMediaDiscoverer header |
|---|
| | 2 | * VLCMediaDiscoverer.h: VLCKit.framework VLCMediaDiscoverer header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 36 | 36 | VLCMediaList * allMedia; |
|---|
| 37 | 37 | } |
|---|
| 38 | | /* Singleton */ |
|---|
| | 38 | /* Factories */ |
|---|
| 39 | 39 | + (id)sharedMediaLibrary; |
|---|
| 40 | 40 | |
|---|
| rdbddc5a |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMediaList.h: VLC.framework VLCMediaList header |
|---|
| | 2 | * VLCMediaList.h: VLCKit.framework VLCMediaList header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| rdbddc5a |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMediaLisAspect.h: VLC.framework VLCMediaLisAspect header |
|---|
| | 2 | * VLCMediaLisAspect.h: VLCKit.framework VLCMediaLisAspect header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCMediaPlayer.h: VLC.framework VLCMediaPlayer header |
|---|
| | 2 | * VLCMediaPlayer.h: VLCKit.framework VLCMediaPlayer header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 35 | 35 | |
|---|
| 36 | 36 | /** |
|---|
| 37 | | * TODO: Documentation VLCMediaPlayerState |
|---|
| | 37 | * VLCMediaPlayerState describes the state of the media player. |
|---|
| 38 | 38 | */ |
|---|
| 39 | 39 | typedef enum VLCMediaPlayerState |
|---|
| … | … | |
| 49 | 49 | |
|---|
| 50 | 50 | /** |
|---|
| 51 | | * TODO: Documentation extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState) |
|---|
| | 51 | * Returns the name of the player state as a string. |
|---|
| | 52 | * \param state The player state. |
|---|
| | 53 | * \return A string containing the name of state. If state is not a valid state, returns nil. |
|---|
| 52 | 54 | */ |
|---|
| 53 | 55 | extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state); |
|---|
| … | … | |
| 59 | 61 | @protocol VLCMediaPlayerDelegate |
|---|
| 60 | 62 | /** |
|---|
| 61 | | * TODO: Documentation - [VLCMediaPlayerDelegate ] |
|---|
| | 63 | * Sent by the default notification center whenever the player's time has changed. |
|---|
| | 64 | * \details Discussion The value of aNotification is always an VLCMediaPlayerTimeChanged notification. You can retrieve |
|---|
| | 65 | * the VLCMediaPlayer object in question by sending object to aNotification. |
|---|
| 62 | 66 | */ |
|---|
| 63 | 67 | - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification; |
|---|
| 64 | 68 | |
|---|
| 65 | 69 | /** |
|---|
| 66 | | * TODO: Documentation - [VLCMediaPlayerDelegate ] |
|---|
| | 70 | * Sent by the default notification center whenever the player's state has changed. |
|---|
| | 71 | * \details Discussion The value of aNotification is always an VLCMediaPlayerStateChanged notification. You can retrieve |
|---|
| | 72 | * the VLCMediaPlayer object in question by sending object to aNotification. |
|---|
| 67 | 73 | */ |
|---|
| 68 | 74 | - (void)mediaPlayerStateChanged:(NSNotification *)aNotification; |
|---|
| … | … | |
| 73 | 79 | { |
|---|
| 74 | 80 | id delegate; //< Object delegate |
|---|
| 75 | | |
|---|
| 76 | 81 | void * instance; // Internal |
|---|
| 77 | 82 | VLCMedia * media; //< Current media being played |
|---|
| 78 | | VLCTime * cachedTime; |
|---|
| 79 | | VLCMediaPlayerState cachedState; |
|---|
| 80 | | float position; |
|---|
| | 83 | VLCTime * cachedTime; //< Cached time of the media being played |
|---|
| | 84 | VLCMediaPlayerState cachedState; //< Cached state of the media being played |
|---|
| | 85 | float position; //< The position of the media being played |
|---|
| 81 | 86 | } |
|---|
| 82 | 87 | |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCTime.h: VLC.framework VLCTime header |
|---|
| | 2 | * VLCTime.h: VLCKit.framework VLCTime header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| rdbddc5a |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCVideoLayer.h: VLC.framework VLCVideoLayer header |
|---|
| | 2 | * VLCVideoLayer.h: VLCKit.framework VLCVideoLayer header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 29 | 29 | BOOL hasVideo; |
|---|
| 30 | 30 | } |
|---|
| | 31 | |
|---|
| | 32 | /* Properties */ |
|---|
| 31 | 33 | @property (readonly) BOOL hasVideo; |
|---|
| 32 | 34 | @property BOOL fillScreen; |
|---|
| rb3372f1 |
r43a3035 |
|
| 1 | 1 | /***************************************************************************** |
|---|
| 2 | | * VLCVideoView.h: VLC.framework VLCVideoView header |
|---|
| | 2 | * VLCVideoView.h: VLCKit.framework VLCVideoView header |
|---|
| 3 | 3 | ***************************************************************************** |
|---|
| 4 | 4 | * Copyright (C) 2007 Pierre d'Herbemont |
|---|
| … | … | |
| 35 | 35 | } |
|---|
| 36 | 36 | |
|---|
| | 37 | /* Properties */ |
|---|
| 37 | 38 | @property (assign) id delegate; |
|---|
| 38 | 39 | @property (copy) NSColor *backColor; |
|---|