Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Media Object incorrect ? #196

Closed
3 tasks done
lenanex opened this issue Oct 18, 2020 · 2 comments
Closed
3 tasks done

Media Object incorrect ? #196

lenanex opened this issue Oct 18, 2020 · 2 comments
Milestone

Comments

@lenanex
Copy link

lenanex commented Oct 18, 2020

Bug Report

Problem

What is expected to happen?

Once I retrieve the media object after successful capture, I should get a valid URL to preview the image in the dom with

`
private win: any = window;
[...]

const photo = await this.mediaCapture.captureImage({limit: 1});

const url = this.win.Ionic.WebView.convertFileSrc(photo[0].localURL); `

What does actually happen?

It used to work up until now.
Since today, on my Android device, I can't access the url (404) and if I try to copy the file into another folder (just like in this guide : https://devdactic.com/ionic-4-media-files-guide/ I'm getting also a code 1 : not_found.

Information

Command or Code

Environment, Platform, Device

Ionic / testing it on a galaxy Note 10+

Version information

Ionic:

Ionic CLI : 6.12.0 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.4.0
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 10.0.8
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3

Cordova:

Cordova CLI : 10.0.0
Cordova Platforms : 6.0.0, android 9.0.0, browser
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 14 other plugins)

Utility:

cordova-res (update available: 0.15.1) : 0.14.0
native-run (update available: 1.2.2) : 0.3.0

System:

NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.14.8
OS : macOS Catalina

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@alexhildebrand
Copy link

I've been experiencing something similar. Though the video capture works fine it seems to be stored in a place in an area where even if the android application has storage permissions, it cannot be retrieved.

This is the video being captured
image

and when I try to copy the file to the application's directory (with a different cordova library (cordova-plugin-file)):

image

Issues around getting file:
https://forum.ionicframework.com/t/filesystem-capacitor-android-10-issues/189371/3
ionic-team/capacitor#2916

Environment, Platform, Device
Ionic / testing it on a Motorola one vision

@breautek
Copy link
Contributor

should be fixed by #308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants