mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
9db3b0db27
copy/save/delete is accessed via longpress for all media messages, just like for simple text messages. Notes ----- We don't support saving audio attachments as it's not clear where they should go. (I don't think users expect them to end up in their iTunes library.) There is still no UX for "pasting" media into Signal. Removed the now redundant (and confusing) "share" button interface. //FREEBIE
28 lines
811 B
Objective-C
28 lines
811 B
Objective-C
// Created by Frederic Jacobs on 17/12/14.
|
|
// Copyright (c) 2014 Open Whisper Systems. All rights reserved.
|
|
|
|
#import "OWSMessageEditing.h"
|
|
#import <JSQMessagesViewController/JSQVideoMediaItem.h>
|
|
|
|
@class TSAttachmentStream;
|
|
|
|
@interface TSVideoAttachmentAdapter : JSQVideoMediaItem <OWSMessageEditing>
|
|
|
|
@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
|