28 lines
669 B
Objective-C
28 lines
669 B
Objective-C
//
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
//
|
|
|
|
#import "OWSAudioAttachmentPlayer.h"
|
|
#import "OWSMessageEditing.h"
|
|
#import "OWSMessageMediaAdapter.h"
|
|
#import <JSQMessagesViewController/JSQVideoMediaItem.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class TSAttachmentStream;
|
|
|
|
@interface TSVideoAttachmentAdapter
|
|
: JSQVideoMediaItem <OWSMessageEditing, OWSMessageMediaAdapter, OWSAudioAttachmentPlayerDelegate>
|
|
|
|
@property NSString *attachmentId;
|
|
@property (nonatomic, strong) NSString *contentType;
|
|
|
|
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment incoming:(BOOL)incoming;
|
|
|
|
- (BOOL)isAudio;
|
|
- (BOOL)isVideo;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|