BMXVideoAttachment Class Reference

Inherits from BMXFileAttachment :
BMXMessageAttachment :
NSObject
Declared in BMXVideoAttachment.h

Properties

duration

时长

@property (nonatomic, assign) int duration

Discussion

时长

Declared In

  • BMXVideoAttachment.h

thumbnailFileLength

thumbnail文件大小

@property (nonatomic) long long thumbnailFileLength

Discussion

thumbnail文件大小

Declared In

  • BMXVideoAttachment.h

thumbnailPath

缩略图路径

@property (nonatomic, copy) NSString *thumbnailPath

Discussion

缩略图路径

Declared In

  • BMXVideoAttachment.h

thumbnailUrl

缩略图url

@property (nonatomic, copy) NSString *thumbnailUrl

Discussion

缩略图url

Declared In

  • BMXVideoAttachment.h

thumbnaildownLoadStatus

视频下载状态

@property (nonatomic, assign) BMXAttachmentDownloadStatus thumbnaildownLoadStatus

Discussion

视频下载状态

Declared In

  • BMXVideoAttachment.h

videoSize

video大小

@property (nonatomic) CGSize videoSize

Discussion

video大小

Declared In

  • BMXVideoAttachment.h

Instance Methods

initWithData:duration:videoSize:displayName:conversationId:

- (instancetype)initWithData:(NSData *)*aData* duration:(int)*duration* videoSize:(CGSize)*videoSize* displayName:(NSString *)*displayName* conversationId:(NSString *)*conversationId*

Example:

initWithData:duration:videoSize:displayName:thumbnailData:conversationId:

- (instancetype)initWithData:(NSData *)*aData* duration:(int)*duration* videoSize:(CGSize)*videoSize* displayName:(NSString *)*displayName* thumbnailData:(NSData *)*thumbnailData* conversationId:(NSString *)*conversationId*

Example:

            messageObject.contentType = BMXContentTypeFile;
            messageModel.content = dic[@"displayName"];
            break;
        }
            
        case MessageBodyType_Video: {
            NSDictionary *dic = [NSDictionary dictionaryWithDictionary:content];
//            int videoTime = (int)dic[@"videoduration"];
            NSData *tumbnaildata = [NSData dataWithData:dic[@"tumbnaildata"]];
            UIImage *image = dic[@"thumbImage"];
            BMXVideoAttachment *videoAttachment = [[BMXVideoAttachment alloc] initWithData:dic[@"videodata"]

initWithLocalPath:duration:size:displayName:conversationId:

- (instancetype)initWithLocalPath:(NSString *)*aLocalPath* duration:(int)*duration* size:(CGSize)*size* displayName:(NSString *)*aDisplayName* conversationId:(NSString *)*conversationId*

Example:

initWithLocalPath:duration:size:thumbnailPath:displayName:conversationId:

- (instancetype)initWithLocalPath:(NSString *)*aLocalPath* duration:(int)*duration* size:(CGSize)*size* thumbnailPath:(NSString *)*thumbnailPath* displayName:(NSString *)*aDisplayName* conversationId:(NSString *)*conversationId*

Example:

© 2019-2022 美信拓扑 | 官网 该文件修订时间: 2022-09-21 11:43:07

results matching ""

    No results matching ""