VLCKit
|
#import <VLCMediaPlayer.h>
Public Attributes | |
NSString *const | VLCChapterDescriptionName |
NSString *const | VLCChapterDescriptionTimeOffset |
NSString *const | VLCChapterDescriptionDuration |
NSString *const | VLCTitleDescriptionDuration |
NSString *const | VLCTitleDescriptionIsMenu |
The player base class needed to do any playback
- (float framesPerSecond) __attribute__ | ((deprecated)) |
Frames per second
Implemented in VLCStreamSession, VLCStreamSession, and VLCStreamSession.
- (NSUInteger countOfTitles) __attribute__ | ((deprecated)) |
count of titles
Implemented in VLCStreamSession, VLCStreamSession, and VLCStreamSession.
- (NSArray* titles) __attribute__ | ((deprecated)) |
array of available titles
Implemented in VLCStreamSession, VLCStreamSession, and VLCStreamSession.
- (float brightness) __deprecated_msg | ("Use -.brightness instead") | [VLCMediaPlayer adjustFilter] |
Set/Get the adjust filter's brightness value
- (float contrast) __deprecated_msg | ("Use -.contrast instead") | [VLCMediaPlayer adjustFilter] |
Set/Get the adjust filter's contrast value
- (BOOL adjustFilterEnabled) __deprecated_msg | ("Use -.enabled instead") | [VLCMediaPlayer adjustFilter] |
Enable or disable adjust video filter (contrast, brightness, hue, saturation, gamma)
- (float gamma) __deprecated_msg | ("Use -.gamma instead") | [VLCMediaPlayer adjustFilter] |
Set/Get the adjust filter's gamma value
- (float hue) __deprecated_msg | ("Use -.hue instead") | [VLCMediaPlayer adjustFilter] |
Set/Get the adjust filter's hue value
- (float saturation) __deprecated_msg | ("Use -.saturation instead") | [VLCMediaPlayer adjustFilter] |
Set/Get the adjust filter's saturation value
- (int) addPlaybackSlave: | (NSURL *) | slaveURL | |
type: | (VLCMediaPlaybackSlaveType) | slaveType | |
enforce: | (BOOL) | enforceSelection | |
Add additional input sources to a playing media item This way, you can add subtitles or audio files to an existing input stream For the user, it will appear as if they were part of the existing stream
slaveURL | of the content to be added |
slaveType | content type |
enforceSelection | switch to the added accessory content |
- (CGFloat) amplificationOfBand: | ("Use - instead") | DEPRECATED_MSG_ATTRIBUTE[VLCMediaPlayer equalizer] |
amplification of band
index | of the band |
- (NSArray *) chapterDescriptionsOfTitle: | (int) | titleIndex |
chapter descriptions an array of all chapters of the given title including information about chapter name, time offset and duration
- (NSArray *) chaptersForTitleIndex: | ((deprecated)) | __attribute__ |
Chapters of a given title index
- (NSArray* equalizerProfiles) DEPRECATED_MSG_ATTRIBUTE | ("Use - instead") | [VLCMediaPlayer equalizer] |
Get a list of available equalizer profiles
- (BOOL equalizerEnabled) DEPRECATED_MSG_ATTRIBUTE | ("Use - instead") | [VLCMediaPlayer equalizer] |
Toggle equalizer state param: bool value to enable/disable the equalizer
- (CGFloat preAmplification) DEPRECATED_MSG_ATTRIBUTE | ("Use - instead") | [VLCMediaPlayer equalizer] |
Set amplification level param: The supplied amplification value will be clamped to the -20.0 to +20.0 range.
- (unsigned numberOfBands) DEPRECATED_MSG_ATTRIBUTE | ("Use - instead") | [VLCMediaPlayer equalizer] |
Number of equalizer bands
- (void) extraShortJumpBackward |
Jumps shortly backward in current stream if seeking is supported.
- (void) extraShortJumpForward |
Jumps shortly forward in current stream if seeking is supported.
- (void) fastForward |
Fast forwards through the feed at the standard 1x rate.
- (void) fastForwardAtRate: | (float) | rate |
Fast forwards through the feed at the rate specified.
rate | Rate at which the feed should be fast forwarded. |
- (CGFloat) frequencyOfBandAtIndex: | ("Use - instead") | DEPRECATED_MSG_ATTRIBUTE[VLCMediaPlayer equalizer] |
frequency of equalizer band
index | the band index |
- (void) gotoNextFrame |
Advance one frame.
- (instancetype) initWithLibrary: | (VLCLibrary *) | library |
initialize player with a given initialized VLCLibrary
library | an instance of VLCLibrary to create the player against |
- (instancetype) initWithLibVLCInstance: | (void *) | playerInstance | |
andLibrary: | (VLCLibrary *) | library | |
initialize player with a certain libvlc instance and VLCLibrary
playerInstance | the libvlc instance |
library | the library instance |
- (instancetype) initWithOptions: | (NSArray *) | options |
initialize player with a given set of options
options | an array of private options |
- (instancetype) initWithVideoLayer: | (VLCVideoLayer *) | aVideoLayer |
initialize player with a given video layer
aVideoLayer | an instance of VLCVideoLayer |
- (instancetype) initWithVideoView: | (VLCVideoView *) | aVideoView |
initialize player with a given video view
aVideoView | an instance of VLCVideoView |
- (void) jumpBackward: | (int) | interval |
Jumps shortly backward in current stream if seeking is supported.
interval | to skip, in sec. |
- (void) jumpForward: | (int) | interval |
Jumps shortly forward in current stream if seeking is supported.
interval | to skip, in sec. |
- (void) longJumpBackward |
Jumps shortly backward in current stream if seeking is supported.
- (void) longJumpForward |
Jumps shortly forward in current stream if seeking is supported.
- (void) mediumJumpBackward |
Jumps shortly backward in current stream if seeking is supported.
- (void) mediumJumpForward |
Jumps shortly forward in current stream if seeking is supported.
- (void) nextChapter |
switch to the next chapter
- (typedef) NS_ENUM | (unsigned) | ||
(VLCMediaPlaybackSlaveType) | |||
VLCMediaPlaybackNavigationAction describes actions which can be performed to navigate an interactive title
- (int) numberOfChaptersForTitle: | (int) | titleIndex |
returns the number of chapters for a given title
titleIndex | the index of the title you are requesting the chapters for |
- (BOOL) openVideoSubTitlesFromFile: | ((deprecated)) | __attribute__ |
Load and set a specific video subtitle, from a file.
- (void) pause |
Set the pause state of the feed. Do nothing if already paused.
- (void) performNavigationAction: | (VLCMediaPlaybackNavigationAction) | action |
performs navigation actions on interactive titles
- (void) play |
Plays a media resource using the currently selected media controller (or default controller. If feed was paused then the feed resumes at the position it was paused in.
- (void) previousChapter |
switch to the previous chapter
- (void) resetEqualizerFromProfile: | ("Use - instead") | DEPRECATED_MSG_ATTRIBUTE[VLCMediaPlayer equalizer] |
Re-set the equalizer to a profile retrieved from the list
- (void) rewind |
Rewinds through the feed at the standard 1x rate.
- (void) rewindAtRate: | (float) | rate |
Rewinds through the feed at the rate specified.
rate | Rate at which the feed should be fast rewound. |
- (void) saveVideoSnapshotAt: | (NSString *) | path | |
withWidth: | (int) | width | |
andHeight: | (int) | height | |
Take a snapshot of the current video.
If width AND height is 0, original size is used. If width OR height is 0, original aspect-ratio is preserved.
path | the path where to save the screenshot to |
width | the snapshot's width |
height | the snapshot's height |
- (void) setAmplification: | (CGFloat) | amplification | |
forBand: | ("Use - instead") | DEPRECATED_MSG_ATTRIBUTE[VLCMediaPlayer equalizer] | |
set amplification for band
amplification | value (clamped to the -20.0 to +20.0 range) |
index | of the respective band |
- (void) setDeinterlace: | (VLCDeinterlace) | deinterlace | |
withFilter: | (NSString *) | name | |
Enable or disable deinterlace and specify which filter to use
deinterlace | mode for deinterlacing: enable, disable or auto |
name | of deinterlace filter to use (availability depends on underlying VLC version). |
- (void) setDeinterlaceFilter: | (nullable NSString *) | name |
Enable or disable deinterlace filter
name | of deinterlace filter to use (availability depends on underlying VLC version), NULL to disable. |
- (BOOL) setRendererItem: | (nullable VLCRendererItem *) | item |
Sets a VLCRendererItem
to the current media player
item | VLCRendererItem discovered by VLCRendererDiscoverer |
YES
if successful, NO
otherwise play
to take effect - (void) setVideoLayer: | (VLCVideoLayer *) | aVideoLayer |
set a video layer for rendering
aVideoLayer | instance of VLCVideoLayer |
- (void) setVideoView: | (VLCVideoView *) | aVideoView |
set a video view for rendering
aVideoView | instance of VLCVideoView |
- (void) shortJumpBackward |
Jumps shortly backward in current stream if seeking is supported.
- (void) shortJumpForward |
Jumps shortly forward in current stream if seeking is supported.
- (BOOL) startRecordingAtPath: | (NSString *) | path |
Start recording at given directory path
path | directory where the recording should go |
- (void) stop |
Stop the playing.
- (BOOL) stopRecording |
Stop current recording
- (BOOL) updateViewpoint: | (float) | yaw | |
pitch: | (float) | pitch | |
roll: | (float) | roll | |
fov: | (float) | fov | |
absolute: | (BOOL) | absolute | |
Updates viewpoint with given values.
yaw | view point yaw in degrees ]-180;180] |
pitch | view point pitch in degrees ]-90;90] |
roll | view point roll in degrees ]-180;180] |
fov | field of view in degrees ]0;180[ (default 80.) |
absolute | if true replace the old viewpoint with the new one. If false, increase/decrease it. |
- (NSString* const) VLCChapterDescriptionDuration |
dictionary value for the chapter's duration
- (NSString* const) VLCChapterDescriptionName |
dictionary value for the user-facing chapter name
- (NSString* const) VLCChapterDescriptionTimeOffset |
dictionary value for the chapter's time offset
- (NSString* const) VLCTitleDescriptionDuration |
dictionary value for the title's duration
- (NSString* const) VLCTitleDescriptionIsMenu |
dictionary value whether the title is a menu or not
|
readnonatomicassign |
Access to adjust filter's parameters and properties
|
readwriteatomicassign |
sets / returns the current audio channel
|
readatomiccopy |
Returns the audio track IDs those are needed to set the video index
|
readatomiccopy |
Returns the audio track names, usually a language name or a description It includes the "Disabled" fake track at index 0.
|
readatomicassign |
property whether the currently playing media can be paused (or not)
|
readwriteatomicassign |
Get the current audio delay. Positive values means audio is delayed further, negative values less.
|
readwriteatomicassign |
Return the current audio track index
Pass -1 to disable.
|
readwriteatomicassign |
Chapter selection and enumeration, it is bound to a title option. Return the current chapter index
|
readwriteatomicassign |
Return the current title index
|
readwriteatomicassign |
Get the current subtitle delay. Positive values means subtitles are being displayed later, negative values earlier.
|
readwriteatomicassign |
Return the current video subtitle index
Pass -1 to disable.
|
readwriteatomicassign |
Return the current video track index
Pass -1 to disable.
|
readwritenonatomicweak |
the delegate object implementing the optional protocol
|
readwriteatomicstrong |
set/retrieve a video view for rendering This can be any UIView or NSView or instances of VLCVideoView / VLCVideoLayer if running on macOS
|
readwritenonatomicassign |
Set/Get the adjust filter's gamma value
|
readatomicassign |
Does the current media have a video output?
|
readatomicassign |
the title with the longest duration
|
readatomicassign |
Get last snapshot available.
|
readnonatomicassign |
the library instance in use by the player instance
|
readwriteatomicstrong |
The currently media instance set to play
|
readatomicassign |
Get the last available loudness description for the current media (last 400ms)
|
readatomicassign |
returns the number of audio tracks available in the current media
|
readatomicassign |
returns the number of SPU tracks available in the current media
|
readatomicassign |
number of titles available for the current media
|
readatomicassign |
returns the number of video tracks available in the current media
|
readwritenonatomicassign |
Get the view point pitch in degrees
|
readatomicassign |
Playback state flag identifying that the stream is currently playing.
|
readwriteatomicassign |
Returns the receiver's position in the reading.
|
readwritenonatomicassign |
Get the requested movie play rate.
|
readnonatomicweak |
|
readwritenonatomicassign |
Get the view point roll in degrees
|
readwritenonatomicassign |
Set/Get the current video scaling factor. That is the ratio of the number of pixels on screen to the number of pixels in the original decoded video in each dimension. Zero is a special value; it will adjust the video to the output window/drawable (in windowed mode) or the entire screen.
param: relative scale factor as float
|
readatomicassign |
property whether the current input is seekable or not, e.g. it's a live stream
|
readatomiccopy |
Array of taken snapshots of the current video output
|
readatomicassign |
Playback's current state.
|
readwriteatomicstrong |
|
readatomiccopy |
title descriptions an array of all titles of the current media including information of name, duration and potential menu state
|
readwriteatomicassign |
Set/Get current video aspect ratio.
param: psz_aspect new video aspect-ratio or NULL to reset to default
|
readwriteatomicassign |
Set/Get current crop filter geometry.
param: psz_geometry new crop filter geometry (NULL to unset)
|
readatomicassign |
Get the current video size
|
readatomiccopy |
Returns the video subtitle track IDs those are needed to set the video subtitle index
|
readatomiccopy |
Returns the video subtitle track names, usually a language name or a description It includes the "Disabled" fake track at index 0.
|
readatomiccopy |
Returns the video track IDs those are needed to set the video index
|
readatomiccopy |
Returns the video track names, usually a language name or a description It includes the "Disabled" fake track at index 0.
- (NSString* const) VLCTitleDescriptionName |
dictionary value for the user-facing title name
|
readatomicassign |
Playback state flag identifying wheather the stream will play.
|
readwritenonatomicassign |
Get the view point yaw in degrees