| 1234567891011121314151617181920212223242526272829 |
- using System.Threading.Tasks;
- using InABox.Core;
- using InABox.Mobile;
- namespace PRS.Mobile
- {
- public class DigitalFormEmbeddedVideo : DigitalFormEmbeddedMedia<DFLayoutVideoField, DFLayoutVideoFieldProperties>
- {
- protected override bool IsVideo => true;
- protected override bool DisableLibrary => Definition.Properties.DisableLibrary;
- protected override bool Secure => Definition.Properties.Secure;
- protected override bool Required => Definition.Properties.Required;
-
- protected override Task<MobileDocument> CaptureMedia()
- {
- return MobileDocument.From(new MobileDocumentVideoSource());
- }
- protected override Task<MobileDocument> SelectMedia()
- {
- return MobileDocument.From(new MobileDocumentVideoLibrarySource());
- }
- protected override byte[] CreateThumbnail(byte[] data, float maxwidth = 200, float maxheight=200)
- {
- return MobileUtils.ImageTools.CreateVideoThumbnail(data, maxwidth, maxheight);
- }
- }
- }
|