问题
Given a video (of arbitrary lenght in a format supported by the device) taken from the gallery, how can I extract the first frame as an EncodedImage? Thank you
回答1:
Right now the only way to do that is through native code. Historically some platforms didn't support grabbing a video frame and we didn't revisit that over the past 7 years. You can file an RFE on this but right now I'm not sure when we'll get around to implementing it as media is painful.
来源:https://stackoverflow.com/questions/58052585/from-video-to-image-in-codename-one