ImageRow icon indicating copy to clipboard operation
ImageRow copied to clipboard

Any plan to support video?

Open Eric0625 opened this issue 7 years ago • 6 comments

It would be great to select videos

Eric0625 avatar Dec 19 '17 15:12 Eric0625

Any update on this?

SebastianBO avatar Oct 02 '18 16:10 SebastianBO

This is not in the roadmap for now but we could add an example.

You could try setting presentationMode or using row.onPresent to configure the picker controller

mats-claassen avatar Oct 03 '18 13:10 mats-claassen

Thinking it through a bit more, you cannot use ImageRow as the value of the row is an UIImage and you will probably want an URL or something to represent the video.

What can be done is: create a new row using most of the logic from ImageRow, set the type of the value of the row to URL, change the ImagePickerController to take set the url of the picked video as value of the row. Finally get a thumbnail of the video to show in the row (could be done with AVAssetImageGenerator).

However, this would be a row to pick a video and not a video or image. For that we would have to create a row whose value is an enum or other structure to allow both.

Does this sound reasonable?

mats-claassen avatar Oct 03 '18 14:10 mats-claassen

Maybe we can create a row whose return value is PHAsset? That way the image and video would both be supported.

Eric0625 avatar Oct 08 '18 04:10 Eric0625

That would be possible, yes

mats-claassen avatar Oct 08 '18 14:10 mats-claassen

For selecting only videos use VideoRow.

Choosing images or videos requires a bigger restructure of ImageRow as mentioned above.

mats-claassen avatar Jan 09 '19 20:01 mats-claassen