Camcorder.afterrecording has clip parameter to give the file path, but I don't know why in my app give another path:
content://media/external/ video/media/<number_with_4_ digit>
someone know why?
--
the result from the camcorder unfortunately is a video content uri, but not a path to the recorded clip
--
see also this old thread from Dec. 2014 getClip returns a file path not working MIT should change that and provide a file path instead
also unfortunately there is no conversion block available, which converts a video content uri into a path to the file
however you could write your own extension and create a block yourself...
more information about how to create an extension see here Announcing App Inventor Extension Components
however that will be more advanced and will require some Java skills...
I also can offer to write that conversion block, see also Q2 here https://puravidaapps.com/file. php#q .
in order to select manually the video recorded is there something like imagepicker?
there is no video picker component
The App Inventor Extensions are currently in testing. See the announcement for more information about how to use an App Inventor Extension.
Camcorder.afterrecording has clip parameter to give the file path, but I don't know why in my app give another path:
content://media/external/video/media/<number_with_4_digit>
it seems to be, MIT fixed that issue meanwhile
the camcorder now provides the path to the file instead of the content uri as previously
thank you MIT!
댓글 없음:
댓글 쓰기