LuxChat  2.0
Instant messenger for iOS
Instance Methods | Properties | List of all members
JSQESVideoMediaItem Class Reference

#import <JSQVideoMediaItem.h>

Inheritance diagram for JSQESVideoMediaItem:
JSQMediaItem <JSQMessageMediaData> <JSQMessageMediaData>

Instance Methods

(instancetype) - initWithFileURL:isReadyToPlay:
 
- Instance Methods inherited from JSQMediaItem
(instancetype) - initWithMaskAsOutgoing:
 
(void) - clearCachedMediaViews
 
- Instance Methods inherited from <JSQMessageMediaData>
(UIView *) - mediaView
 
(CGSize) - mediaViewDisplaySize
 
(UIView *) - mediaPlaceholderView
 
(NSUInteger) - mediaHash
 

Properties

NSURL * fileURL
 
BOOL isReadyToPlay
 
- Properties inherited from JSQMediaItem
BOOL appliesMediaViewMaskAsOutgoing
 

Detailed Description

The JSQESVideoMediaItem class is a concrete JSQMediaItem subclass that implements the JSQMessageMediaData protocol and represents a video media message. An initialized JSQESVideoMediaItem object can be passed to a JSQMediaMessage object during its initialization to construct a valid media message object. You may wish to subclass JSQESVideoMediaItem to provide additional functionality or behavior.

Method Documentation

- (instancetype) initWithFileURL: (NSURL *)  fileURL
isReadyToPlay: (BOOL)  isReadyToPlay 

Initializes and returns a video media item having the given fileURL.

Parameters
fileURLThe URL that identifies the video resource.
isReadyToPlayA boolean value that specifies if the video is ready to play.
Returns
An initialized JSQESVideoMediaItem if successful, nil otherwise.

If the video must be downloaded from the network, you may initialize a JSQESVideoMediaItem with a nil fileURL or specify NO for isReadyToPlay. Once the video has been saved to disk, or is ready to stream, you can set the fileURL property or isReadyToPlay property, respectively.

Property Documentation

- (NSURL*) fileURL
readwritenonatomicstrong

The URL that identifies a video resource.

- (BOOL) isReadyToPlay
readwritenonatomicassign

A boolean value that specifies whether or not the video is ready to be played.

When set to YES, the video is ready. When set to NO it is not ready.


The documentation for this class was generated from the following files: