createPostMediumModelVideo static method

Future<MemberMediumContainerModel> createPostMediumModelVideo(
  1. AppModel app,
  2. String memberId,
  3. 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,
  );
}