Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3349061
D7565.id26055.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7565.id26055.diff
View Options
diff --git a/lib/types/media-types.js b/lib/types/media-types.js
--- a/lib/types/media-types.js
+++ b/lib/types/media-types.js
@@ -12,51 +12,6 @@
export type EncryptedMediaType = 'encrypted_photo' | 'encrypted_video';
-export type Image = {
- +id: string,
- +uri: string,
- +type: 'photo',
- +dimensions: Dimensions,
- // stored on native only during creation in case retry needed after state lost
- +localMediaSelection?: NativeMediaSelection,
-};
-
-export type EncryptedImage = {
- +id: string,
- // a media URI for keyserver uploads / blob holder for Blob service uploads
- +holder: string,
- +encryptionKey: string,
- +type: 'encrypted_photo',
- +dimensions: Dimensions,
-};
-
-export type Video = {
- +id: string,
- +uri: string,
- +type: 'video',
- +dimensions: Dimensions,
- +loop?: boolean,
- +thumbnailID: string,
- +thumbnailURI: string,
- // stored on native only during creation in case retry needed after state lost
- +localMediaSelection?: NativeMediaSelection,
-};
-
-export type EncryptedVideo = {
- +id: string,
- // a media URI for keyserver uploads / blob holder for Blob service uploads
- +holder: string,
- +encryptionKey: string,
- +type: 'encrypted_video',
- +dimensions: Dimensions,
- +loop?: boolean,
- +thumbnailID: string,
- +thumbnailHolder: string,
- +thumbnailEncryptionKey: string,
-};
-
-export type Media = Image | Video | EncryptedImage | EncryptedVideo;
-
export type AvatarMediaInfo = {
+type: 'photo',
+uri: string,
@@ -595,3 +550,48 @@
+userTime: number,
+totalTime: number,
};
+
+export type Image = {
+ +id: string,
+ +uri: string,
+ +type: 'photo',
+ +dimensions: Dimensions,
+ // stored on native only during creation in case retry needed after state lost
+ +localMediaSelection?: NativeMediaSelection,
+};
+
+export type EncryptedImage = {
+ +id: string,
+ // a media URI for keyserver uploads / blob holder for Blob service uploads
+ +holder: string,
+ +encryptionKey: string,
+ +type: 'encrypted_photo',
+ +dimensions: Dimensions,
+};
+
+export type Video = {
+ +id: string,
+ +uri: string,
+ +type: 'video',
+ +dimensions: Dimensions,
+ +loop?: boolean,
+ +thumbnailID: string,
+ +thumbnailURI: string,
+ // stored on native only during creation in case retry needed after state lost
+ +localMediaSelection?: NativeMediaSelection,
+};
+
+export type EncryptedVideo = {
+ +id: string,
+ // a media URI for keyserver uploads / blob holder for Blob service uploads
+ +holder: string,
+ +encryptionKey: string,
+ +type: 'encrypted_video',
+ +dimensions: Dimensions,
+ +loop?: boolean,
+ +thumbnailID: string,
+ +thumbnailHolder: string,
+ +thumbnailEncryptionKey: string,
+};
+
+export type Media = Image | Video | EncryptedImage | EncryptedVideo;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 23, 4:58 PM (19 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2570618
Default Alt Text
D7565.id26055.diff (2 KB)
Attached To
Mode
D7565: [lib] Reorder types in `media-types.js`
Attached
Detach File
Event Timeline
Log In to Comment