VLCMediaPlayer.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673
  1. /*****************************************************************************
  2. * VLCMediaPlayer.h: VLCKit.framework VLCMediaPlayer header
  3. *****************************************************************************
  4. * Copyright (C) 2007-2009 Pierre d'Herbemont
  5. * Copyright (C) 2007-2015 VLC authors and VideoLAN
  6. * Copyright (C) 2009-2015 Felix Paul Kühne
  7. * $Id$
  8. *
  9. * Authors: Pierre d'Herbemont <pdherbemont # videolan.org>
  10. * Felix Paul Kühne <fkuehne # videolan.org>
  11. *
  12. * This program is free software; you can redistribute it and/or modify it
  13. * under the terms of the GNU Lesser General Public License as published by
  14. * the Free Software Foundation; either version 2.1 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Lesser General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Lesser General Public License
  23. * along with this program; if not, write to the Free Software Foundation,
  24. * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  25. *****************************************************************************/
  26. #import <Foundation/Foundation.h>
  27. #if TARGET_OS_IPHONE
  28. # import <CoreGraphics/CoreGraphics.h>
  29. # import <UIKit/UIKit.h>
  30. #endif
  31. #import "VLCMedia.h"
  32. #import "VLCTime.h"
  33. #import "VLCAudio.h"
  34. #if !TARGET_OS_IPHONE
  35. @class VLCVideoView;
  36. @class VLCVideoLayer;
  37. #endif
  38. @class VLCLibrary;
  39. /* Notification Messages */
  40. extern NSString *const VLCMediaPlayerTimeChanged;
  41. extern NSString *const VLCMediaPlayerStateChanged;
  42. extern NSString *const VLCMediaPlayerTitleChanged;
  43. extern NSString *const VLCMediaPlayerChapterChanged;
  44. /**
  45. * VLCMediaPlayerState describes the state of the media player.
  46. */
  47. typedef NS_ENUM(NSInteger, VLCMediaPlayerState)
  48. {
  49. VLCMediaPlayerStateStopped, //< Player has stopped
  50. VLCMediaPlayerStateOpening, //< Stream is opening
  51. VLCMediaPlayerStateBuffering, //< Stream is buffering
  52. VLCMediaPlayerStateEnded, //< Stream has ended
  53. VLCMediaPlayerStateError, //< Player has generated an error
  54. VLCMediaPlayerStatePlaying, //< Stream is playing
  55. VLCMediaPlayerStatePaused //< Stream is paused
  56. };
  57. /**
  58. * VLCMediaPlaybackNavigationAction describes actions which can be performed to navigate an interactive title
  59. */
  60. typedef NS_ENUM(unsigned, VLCMediaPlaybackNavigationAction)
  61. {
  62. VLCMediaPlaybackNavigationActionActivate = 0,
  63. VLCMediaPlaybackNavigationActionUp,
  64. VLCMediaPlaybackNavigationActionDown,
  65. VLCMediaPlaybackNavigationActionLeft,
  66. VLCMediaPlaybackNavigationActionRight
  67. };
  68. /**
  69. * Returns the name of the player state as a string.
  70. * \param state The player state.
  71. * \return A string containing the name of state. If state is not a valid state, returns nil.
  72. */
  73. extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
  74. /**
  75. * Formal protocol declaration for playback delegates. Allows playback messages
  76. * to be trapped by delegated objects.
  77. */
  78. @protocol VLCMediaPlayerDelegate
  79. @optional
  80. /**
  81. * Sent by the default notification center whenever the player's state has changed.
  82. * \details Discussion The value of aNotification is always an VLCMediaPlayerStateChanged notification. You can retrieve
  83. * the VLCMediaPlayer object in question by sending object to aNotification.
  84. */
  85. - (void)mediaPlayerStateChanged:(NSNotification *)aNotification;
  86. /**
  87. * Sent by the default notification center whenever the player's time has changed.
  88. * \details Discussion The value of aNotification is always an VLCMediaPlayerTimeChanged notification. You can retrieve
  89. * the VLCMediaPlayer object in question by sending object to aNotification.
  90. */
  91. - (void)mediaPlayerTimeChanged:(NSNotification *)aNotification;
  92. /**
  93. * Sent by the default notification center whenever the player's title has changed (if any).
  94. * \details Discussion The value of aNotification is always an VLCMediaPlayerTitleChanged notification. You can retrieve
  95. * the VLCMediaPlayer object in question by sending object to aNotification.
  96. * \note this is about a title in the navigation sense, not about metadata
  97. */
  98. - (void)mediaPlayerTitleChanged:(NSNotification *)aNotification;
  99. /**
  100. * Sent by the default notification center whenever the player's chapter has changed (if any).
  101. * \details Discussion The value of aNotification is always an VLCMediaPlayerChapterChanged notification. You can retrieve
  102. * the VLCMediaPlayer object in question by sending object to aNotification.
  103. */
  104. - (void)mediaPlayerChapterChanged:(NSNotification *)aNotification;
  105. #if TARGET_OS_PHONE
  106. /**
  107. * Sent by the default notification center whenever a new snapshot is taken.
  108. * \details Discussion The value of aNotification is always an VLCMediaPlayerSnapshotTaken notification. You can retrieve
  109. * the VLCMediaPlayer object in question by sending object to aNotification.
  110. */
  111. - (void)mediaPlayerSnapshot:(NSNotification *)aNotification;
  112. #endif
  113. @end
  114. // TODO: Should we use medialist_player or our own flavor of media player?
  115. @interface VLCMediaPlayer : NSObject
  116. @property (nonatomic, readonly) VLCLibrary *libraryInstance;
  117. @property (weak, nonatomic) id<VLCMediaPlayerDelegate> delegate;
  118. #if !TARGET_OS_IPHONE
  119. /* Initializers */
  120. - (instancetype)initWithVideoView:(VLCVideoView *)aVideoView;
  121. - (instancetype)initWithVideoLayer:(VLCVideoLayer *)aVideoLayer;
  122. #endif
  123. - (instancetype)initWithOptions:(NSArray *)options;
  124. - (instancetype)initWithLibVLCInstance:(void *)playerInstance andLibrary:(VLCLibrary *)library;
  125. /* Video View Options */
  126. // TODO: Should be it's own object?
  127. #pragma mark -
  128. #pragma mark video functionality
  129. #if !TARGET_OS_IPHONE
  130. - (void)setVideoView:(VLCVideoView *)aVideoView;
  131. - (void)setVideoLayer:(VLCVideoLayer *)aVideoLayer;
  132. #endif
  133. @property (strong) id drawable; /* The videoView or videoLayer */
  134. /**
  135. * Set/Get current video aspect ratio.
  136. *
  137. * \param psz_aspect new video aspect-ratio or NULL to reset to default
  138. * \note Invalid aspect ratios are ignored.
  139. * \return the video aspect ratio or NULL if unspecified
  140. * (the result must be released with free()).
  141. */
  142. @property (NS_NONATOMIC_IOSONLY) char *videoAspectRatio;
  143. /**
  144. * Set/Get current crop filter geometry.
  145. *
  146. * \param psz_geometry new crop filter geometry (NULL to unset)
  147. * \return the crop filter geometry or NULL if unset
  148. */
  149. @property (NS_NONATOMIC_IOSONLY) char *videoCropGeometry;
  150. /**
  151. * Set/Get the current video scaling factor.
  152. * That is the ratio of the number of pixels on
  153. * screen to the number of pixels in the original decoded video in each
  154. * dimension. Zero is a special value; it will adjust the video to the output
  155. * window/drawable (in windowed mode) or the entire screen.
  156. *
  157. * \param relative scale factor as float
  158. */
  159. @property (nonatomic) float scaleFactor;
  160. /**
  161. * Take a snapshot of the current video.
  162. *
  163. * If width AND height is 0, original size is used.
  164. * If width OR height is 0, original aspect-ratio is preserved.
  165. *
  166. * \param path the path where to save the screenshot to
  167. * \param width the snapshot's width
  168. * \param height the snapshot's height
  169. */
  170. - (void)saveVideoSnapshotAt: (NSString *)path withWidth:(int)width andHeight:(int)height;
  171. /**
  172. * Enable or disable deinterlace filter
  173. *
  174. * \param name of deinterlace filter to use (availability depends on underlying VLC version), NULL to disable.
  175. */
  176. - (void)setDeinterlaceFilter: (NSString *)name;
  177. /**
  178. * Enable or disable adjust video filter (contrast, brightness, hue, saturation, gamma)
  179. *
  180. * \param bool value
  181. */
  182. @property (nonatomic) BOOL adjustFilterEnabled;
  183. /**
  184. * Set/Get the adjust filter's contrast value
  185. *
  186. * \param float value (range: 0-2, default: 1.0)
  187. */
  188. @property (nonatomic) float contrast;
  189. /**
  190. * Set/Get the adjust filter's brightness value
  191. *
  192. * \param float value (range: 0-2, default: 1.0)
  193. */
  194. @property (nonatomic) float brightness;
  195. /**
  196. * Set/Get the adjust filter's hue value
  197. *
  198. * \param float value (range: -180-180, default: 0.)
  199. */
  200. @property (nonatomic) float hue;
  201. /**
  202. * Set/Get the adjust filter's saturation value
  203. *
  204. * \param float value (range: 0-3, default: 1.0)
  205. */
  206. @property (nonatomic) float saturation;
  207. /**
  208. * Set/Get the adjust filter's gamma value
  209. *
  210. * \param float value (range: 0-10, default: 1.0)
  211. */
  212. @property (nonatomic) float gamma;
  213. /**
  214. * Get the requested movie play rate.
  215. * @warning Depending on the underlying media, the requested rate may be
  216. * different from the real playback rate. Due to limitations of some protocols
  217. * this option may not be taken into account at all, if set.
  218. * \param rate movie play rate to set
  219. *
  220. * \return movie play rate
  221. */
  222. @property (nonatomic) float rate;
  223. @property (nonatomic, readonly, weak) VLCAudio * audio;
  224. /* Video Information */
  225. /**
  226. * Get the current video size
  227. * \return video size as CGSize
  228. */
  229. @property (NS_NONATOMIC_IOSONLY, readonly) CGSize videoSize;
  230. /**
  231. * Does the current media have a video output?
  232. * \note a false return value doesn't mean that the video doesn't have any video
  233. * \note tracks. Those might just be disabled.
  234. * \return current video output status
  235. */
  236. @property (NS_NONATOMIC_IOSONLY, readonly) BOOL hasVideoOut;
  237. /**
  238. * Frames per second
  239. * \note Deprecated, provided for API compatibility only
  240. * \note To retrieve a media's FPS, use VLCMediaTracksInformationFrameRate.
  241. * \returns 0
  242. */
  243. @property (NS_NONATOMIC_IOSONLY, readonly) float framesPerSecond __attribute__((deprecated));
  244. #pragma mark -
  245. #pragma mark time
  246. /**
  247. * Sets the current position (or time) of the feed.
  248. * \param value New time to set the current position to. If time is [VLCTime nullTime], 0 is assumed.
  249. */
  250. /**
  251. * Returns the current position (or time) of the feed.
  252. * \return VLCTIme object with current time.
  253. */
  254. @property (NS_NONATOMIC_IOSONLY, strong) VLCTime *time;
  255. @property (nonatomic, readonly, weak) VLCTime *remainingTime;
  256. #pragma mark -
  257. #pragma mark ES track handling
  258. /**
  259. * Return the current video track index
  260. *
  261. * \return 0 if none is set.
  262. *
  263. * Pass -1 to disable.
  264. */
  265. @property (readwrite) int currentVideoTrackIndex;
  266. /**
  267. * Returns the video track names, usually a language name or a description
  268. * It includes the "Disabled" fake track at index 0.
  269. */
  270. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *videoTrackNames;
  271. /**
  272. * Returns the video track IDs
  273. * those are needed to set the video index
  274. */
  275. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *videoTrackIndexes;
  276. /**
  277. * returns the number of video tracks available in the current media
  278. * \return number of tracks
  279. */
  280. @property (NS_NONATOMIC_IOSONLY, readonly) int numberOfVideoTracks;
  281. /**
  282. * Return the current video subtitle index
  283. *
  284. * \return 0 if none is set.
  285. *
  286. * Pass -1 to disable.
  287. */
  288. @property (readwrite) int currentVideoSubTitleIndex;
  289. /**
  290. * Returns the video subtitle track names, usually a language name or a description
  291. * It includes the "Disabled" fake track at index 0.
  292. */
  293. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *videoSubTitlesNames;
  294. /**
  295. * Returns the video subtitle track IDs
  296. * those are needed to set the video subtitle index
  297. */
  298. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *videoSubTitlesIndexes;
  299. /**
  300. * returns the number of SPU tracks available in the current media
  301. * \return number of tracks
  302. */
  303. @property (NS_NONATOMIC_IOSONLY, readonly) int numberOfSubtitlesTracks;
  304. /**
  305. * Load and set a specific video subtitle, from a file.
  306. * \param path to a file
  307. * \return if the call succeed..
  308. */
  309. - (BOOL)openVideoSubTitlesFromFile:(NSString *)path;
  310. /**
  311. * Get the current subtitle delay. Positive values means subtitles are being
  312. * displayed later, negative values earlier.
  313. *
  314. * \return time (in microseconds) the display of subtitles is being delayed
  315. */
  316. @property (readwrite) NSInteger currentVideoSubTitleDelay;
  317. /**
  318. * Chapter selection and enumeration, it is bound
  319. * to a title option.
  320. */
  321. /**
  322. * Return the current video subtitle index, or
  323. * \return NSNotFound if none is set.
  324. *
  325. * To disable subtitle pass NSNotFound.
  326. */
  327. @property (readwrite) int currentChapterIndex;
  328. - (void)previousChapter;
  329. - (void)nextChapter;
  330. - (int)numberOfChaptersForTitle:(int)titleIndex;
  331. - (NSArray *)chaptersForTitleIndex:(int)titleIndex __attribute__((deprecated));
  332. extern NSString *const VLCChapterDescriptionName;
  333. extern NSString *const VLCChapterDescriptionTimeOffset;
  334. extern NSString *const VLCChapterDescriptionDuration;
  335. /**
  336. * chapter descriptions
  337. * an array of all chapters of the given title including information about
  338. * chapter name, time offset and duration
  339. * \note if no title value is provided, information about the chapters of the current title is returned
  340. * \return array describing the titles in details
  341. */
  342. - (NSArray *)chapterDescriptionsOfTitle:(int)titleIndex;
  343. /**
  344. * Title selection and enumeration
  345. * \return NSNotFound if none is set.
  346. */
  347. @property (readwrite) int currentTitleIndex;
  348. @property (readonly) int numberOfTitles;
  349. @property (readonly) NSUInteger countOfTitles __attribute__((deprecated));
  350. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titles __attribute__((deprecated));
  351. extern NSString *const VLCTitleDescriptionName;
  352. extern NSString *const VLCTitleDescriptionDuration;
  353. extern NSString *const VLCTitleDescriptionIsMenu;
  354. /**
  355. * title descriptions
  356. * an array of all titles of the current media including information
  357. * of name, duration and potential menu state
  358. * \return array describing the titles in details
  359. */
  360. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *titleDescriptions;
  361. /**
  362. * the title with the longest duration
  363. * \return int matching the title index
  364. */
  365. @property (readonly) int indexOfLongestTitle;
  366. /* Audio Options */
  367. /**
  368. * Return the current audio track index
  369. *
  370. * \return 0 if none is set.
  371. *
  372. * Pass -1 to disable.
  373. */
  374. @property (readwrite) int currentAudioTrackIndex;
  375. /**
  376. * Returns the audio track names, usually a language name or a description
  377. * It includes the "Disabled" fake track at index 0.
  378. */
  379. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *audioTrackNames;
  380. /**
  381. * Returns the audio track IDs
  382. * those are needed to set the video index
  383. */
  384. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *audioTrackIndexes;
  385. /**
  386. * returns the number of audio tracks available in the current media
  387. * \return number of tracks
  388. */
  389. @property (NS_NONATOMIC_IOSONLY, readonly) int numberOfAudioTracks;
  390. #pragma mark -
  391. #pragma mark audio functionality
  392. @property (NS_NONATOMIC_IOSONLY) int audioChannel;
  393. /**
  394. * Get the current audio delay. Positive values means audio is delayed further,
  395. * negative values less.
  396. *
  397. * \return time (in microseconds) the audio playback is being delayed
  398. */
  399. @property (readwrite) NSInteger currentAudioPlaybackDelay;
  400. #pragma mark -
  401. #pragma mark equalizer
  402. /**
  403. * Get a list of available equalizer profiles
  404. * \Note Current versions do not allow the addition of further profiles
  405. * so you need to handle this in your app.
  406. *
  407. * \return array of equalizer profiles
  408. */
  409. @property (weak, readonly) NSArray *equalizerProfiles;
  410. /**
  411. * Re-set the equalizer to a profile retrieved from the list
  412. * \Note This doesn't enable the Equalizer automagically
  413. */
  414. - (void)resetEqualizerFromProfile:(unsigned)profile;
  415. /**
  416. * Toggle equalizer state
  417. * \param bool value to enable/disable the equalizer
  418. * \return current state */
  419. @property (readwrite) BOOL equalizerEnabled;
  420. /**
  421. * Set amplification level
  422. * \param The supplied amplification value will be clamped to the -20.0 to +20.0 range.
  423. * \note this will create and enabled an Equalizer instance if not present
  424. * \return current amplification level */
  425. @property (readwrite) CGFloat preAmplification;
  426. /**
  427. * Number of equalizer bands
  428. * \return the number of equalizer bands available in the current release */
  429. @property (readonly) unsigned numberOfBands;
  430. /**
  431. * frequency of equalizer band
  432. * \return frequency of the requested equalizer band */
  433. - (CGFloat)frequencyOfBandAtIndex:(unsigned)index;
  434. /**
  435. * set amplification for band
  436. * \param amplification value (clamped to the -20.0 to +20.0 range)
  437. * \param index of the respective band */
  438. - (void)setAmplification:(CGFloat)amplification forBand:(unsigned)index;
  439. /**
  440. * amplification of band
  441. * \param index of the band
  442. * \return current amplification value (clamped to the -20.0 to +20.0 range) */
  443. - (CGFloat)amplificationOfBand:(unsigned)index;
  444. #pragma mark -
  445. #pragma mark media handling
  446. /* Media Options */
  447. @property (NS_NONATOMIC_IOSONLY, strong) VLCMedia *media;
  448. #pragma mark -
  449. #pragma mark playback operations
  450. /**
  451. * Plays a media resource using the currently selected media controller (or
  452. * default controller. If feed was paused then the feed resumes at the position
  453. * it was paused in.
  454. */
  455. - (void)play;
  456. /**
  457. * Toggle's the pause state of the feed.
  458. */
  459. - (void)pause;
  460. /**
  461. * Stop the playing.
  462. */
  463. - (void)stop;
  464. /**
  465. * Advance one frame.
  466. */
  467. - (void)gotoNextFrame;
  468. /**
  469. * Fast forwards through the feed at the standard 1x rate.
  470. */
  471. - (void)fastForward;
  472. /**
  473. * Fast forwards through the feed at the rate specified.
  474. * \param rate Rate at which the feed should be fast forwarded.
  475. */
  476. - (void)fastForwardAtRate:(float)rate;
  477. /**
  478. * Rewinds through the feed at the standard 1x rate.
  479. */
  480. - (void)rewind;
  481. /**
  482. * Rewinds through the feed at the rate specified.
  483. * \param rate Rate at which the feed should be fast rewound.
  484. */
  485. - (void)rewindAtRate:(float)rate;
  486. /**
  487. * Jumps shortly backward in current stream if seeking is supported.
  488. * \param interval to skip, in sec.
  489. */
  490. - (void)jumpBackward:(int)interval;
  491. /**
  492. * Jumps shortly forward in current stream if seeking is supported.
  493. * \param interval to skip, in sec.
  494. */
  495. - (void)jumpForward:(int)interval;
  496. /**
  497. * Jumps shortly backward in current stream if seeking is supported.
  498. */
  499. - (void)extraShortJumpBackward;
  500. /**
  501. * Jumps shortly forward in current stream if seeking is supported.
  502. */
  503. - (void)extraShortJumpForward;
  504. /**
  505. * Jumps shortly backward in current stream if seeking is supported.
  506. */
  507. - (void)shortJumpBackward;
  508. /**
  509. * Jumps shortly forward in current stream if seeking is supported.
  510. */
  511. - (void)shortJumpForward;
  512. /**
  513. * Jumps shortly backward in current stream if seeking is supported.
  514. */
  515. - (void)mediumJumpBackward;
  516. /**
  517. * Jumps shortly forward in current stream if seeking is supported.
  518. */
  519. - (void)mediumJumpForward;
  520. /**
  521. * Jumps shortly backward in current stream if seeking is supported.
  522. */
  523. - (void)longJumpBackward;
  524. /**
  525. * Jumps shortly forward in current stream if seeking is supported.
  526. */
  527. - (void)longJumpForward;
  528. /**
  529. * performs navigation actions on interactive titles
  530. */
  531. - (void)performNavigationAction:(VLCMediaPlaybackNavigationAction)action;
  532. #pragma mark -
  533. #pragma mark playback information
  534. /**
  535. * Playback state flag identifying that the stream is currently playing.
  536. * \return TRUE if the feed is playing, FALSE if otherwise.
  537. */
  538. @property (NS_NONATOMIC_IOSONLY, getter=isPlaying, readonly) BOOL playing;
  539. /**
  540. * Playback state flag identifying wheather the stream will play.
  541. * \return TRUE if the feed is ready for playback, FALSE if otherwise.
  542. */
  543. @property (NS_NONATOMIC_IOSONLY, readonly) BOOL willPlay;
  544. /**
  545. * Playback's current state.
  546. * \see VLCMediaState
  547. */
  548. @property (NS_NONATOMIC_IOSONLY, readonly) VLCMediaPlayerState state;
  549. /**
  550. * Returns the receiver's position in the reading.
  551. * \return movie position as percentage between 0.0 and 1.0.
  552. */
  553. @property (NS_NONATOMIC_IOSONLY) float position;
  554. /**
  555. * Set movie position. This has no effect if playback is not enabled.
  556. * \param movie position as percentage between 0.0 and 1.0.
  557. */
  558. @property (NS_NONATOMIC_IOSONLY, getter=isSeekable, readonly) BOOL seekable;
  559. @property (NS_NONATOMIC_IOSONLY, readonly) BOOL canPause;
  560. #if TARGET_OS_IPHONE
  561. @property (NS_NONATOMIC_IOSONLY, readonly, copy) NSArray *snapshots;
  562. /**
  563. * Get last snapshot available.
  564. * \return an UIImage with the last snapshot available.
  565. * \note return value is nil if there is no snapshot
  566. */
  567. @property (NS_NONATOMIC_IOSONLY, readonly) UIImage *lastSnapshot;
  568. #endif
  569. @end