mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
This was done as part of unforking JSQMessagesViewController, but is intentionally a separate commit so we can separate formatting changes from code changes in git history. * Import frameworks like: #import <FrameworkName/HeaderName.h> * instead of: #import "HeaderName.h" // FREEBIE
27 lines
798 B
Objective-C
27 lines
798 B
Objective-C
// Created by Frederic Jacobs on 17/12/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <JSQMessagesViewController/JSQVideoMediaItem.h>
|
|
#import "TSAttachmentStream.h"
|
|
|
|
@interface TSVideoAttachmentAdapter : JSQVideoMediaItem
|
|
|
|
@property NSString *attachmentId;
|
|
@property (nonatomic, strong) NSString *contentType;
|
|
@property (nonatomic) BOOL isAudioPlaying;
|
|
@property (nonatomic) BOOL isPaused;
|
|
|
|
- (instancetype)initWithAttachment:(TSAttachmentStream *)attachment incoming:(BOOL)incoming;
|
|
|
|
- (BOOL)isImage;
|
|
- (BOOL)isAudio;
|
|
- (BOOL)isVideo;
|
|
- (void)setAudioProgressFromFloat:(float)progress;
|
|
- (void)setAudioIconToPlay;
|
|
- (void)setAudioIconToPause;
|
|
- (void)setDurationOfAudio:(NSTimeInterval)duration;
|
|
- (void)resetAudioDuration;
|
|
|
|
@end
|