-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Describe the bug
A clear and concise description of what the bug is.
I have created everything, tried to use getMedias and i got not implemented error
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
To open library to upload video/images
Screenshots
If applicable, add screenshots to help explain your problem.
Device Info (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
const resp: MediaResponse = await Media.getMedias({ types: "all", quantity: 10 });
if (resp.medias.length === 0) throw new Error("No media selected");
results = await Promise.all(
resp.medias.map(async (asset) => {
const path = asset.data
? asset.data
: (await Media.getMediaByIdentifier({ identifier: asset.identifier })).path;
const file = await Filesystem.readFile({ path });
const base64Data = typeof file.data === "string" ? file.data : "";
return `data:${asset.duration != null ? "video/mp4" : "image/jpeg"};base64,${base64Data}`;
})
);
this is code that i tried to use, i got not implemented error,
-permission android:name="android.permission.RECORD_AUDIO" />
i have almost all possible permissions , also added Media: {
androidGalleryMode: true,
},
this inside capcaitor.config.ts, what else do i need?