createPostMediumModelVideo static method
Future<MemberMediumContainerModel>
createPostMediumModelVideo(
- AppModel app,
- String memberId,
- String assetPath
)
Implementation
static Future<MemberMediumContainerModel> createPostMediumModelVideo(
AppModel app, String memberId, String assetPath) async {
var docID = newRandomKey();
var video = await MemberMediumHelper(
app, memberId, MemberMediumAccessibleByGroup.public)
.createThumbnailUploadVideoAsset(
docID,
assetPath,
);
return MemberMediumContainerModel(
documentID: newRandomKey(),
memberMedium: video,
);
}