B4A Library [B4X] MediaChooser - cross platform videos and images chooser

This library makes it simple to let the user choose or capture media.

1715610738023.png


Features:
  • Allows the user to capture videos and still pictures (B4A and B4i only).
  • Allows the user to pick videos and pictures.
  • Very easy to use together with SimpleMediaManager.
  • Detects images mime types. Jpeg and Gifs.
  • Works with a progress bar that shows when items need to be copied. This is currently only relevant to B4A.
  • B4A - no permissions needed.
Usage instructions: see the example. It is quite simple.

Notes:
Updates:

- v1.02 - (B4A) KeepRunningService.NotificationTitle field. Default value is "Taking picture".
- v1.01 - (B4A) adds support for targetSdkVersion=34. New requirement in manifest editor: SetServiceAttribute(KeepRunningService, android:foregroundServiceType, shortService)
 

Attachments

  • MCExample.zip
    182.4 KB · Views: 331
  • MediaChooser.b4xlib
    4.3 KB · Views: 178
Last edited:
Getting compile error:

Error compiling program.
Error description: Unknown member: setgif2
Error occurred on line: 85
gif.SetGif2(MEDIA.Media)
Word: setgif2
SMM version 1.14 . B4A 12. 80. Please let me know what to do.
 

f0raster0

Well-Known Member
Licensed User
Longtime User
Hey everyone, I've been encountering an issue (when using frotal camare) where the image token changes in the preview.
Is there a way to maintain consistency with the image token throughout, without it flipping in the preview?
 
Top