2017-03-29 20:49:26 +02:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 Open Whisper Systems. All rights reserved.
|
|
|
|
//
|
2015-01-14 22:30:01 +01:00
|
|
|
|
2017-04-20 16:06:31 +02:00
|
|
|
#import "OWSAudioAttachmentPlayer.h"
|
2016-03-11 19:34:39 +01:00
|
|
|
#import "OWSMessageEditing.h"
|
2017-04-19 03:27:59 +02:00
|
|
|
#import "OWSMessageMediaAdapter.h"
|
2015-01-14 22:30:01 +01:00
|
|
|
#import <JSQMessagesViewController/JSQVideoMediaItem.h>
|
|
|
|
|
2017-03-29 20:49:26 +02:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
2016-03-11 19:34:39 +01:00
|
|
|
@class TSAttachmentStream;
|
|
|
|
|
2017-04-20 16:06:31 +02:00
|
|
|
@interface TSVideoAttachmentAdapter
|
|
|
|
: JSQVideoMediaItem <OWSMessageEditing, OWSMessageMediaAdapter, OWSAudioAttachmentPlayerDelegate>
|
2015-01-14 22:30:01 +01:00
|
|
|
|
|
|
|
@property NSString *attachmentId;
|
2015-12-22 12:45:09 +01:00
|
|
|
@property (nonatomic, strong) NSString *contentType;
|
2015-01-14 22:30:01 +01:00
|
|
|
|
2015-12-22 12:45:09 +01:00
|
|
|
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment incoming:(BOOL)incoming;
|
2015-01-14 22:30:01 +01:00
|
|
|
|
|
|
|
- (BOOL)isAudio;
|
|
|
|
- (BOOL)isVideo;
|
|
|
|
|
|
|
|
@end
|
2017-03-29 20:49:26 +02:00
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|