Coder Social home page Coder Social logo

Comments (3)

dpogue avatar dpogue commented on May 28, 2024

Maybe #468 addresses this? I admit I'm not especially familiar with Android filesystem stuff, so it hasn't gotten the review it deserves yet

from cordova-android.

PabbleDabble avatar PabbleDabble commented on May 28, 2024

I am also curious about this. I'm using https://github.com/apache/cordova-plugin-media-capture to capture video within my app.
The plugin returns this from the intent after capturing video:
content://com.sec.android.app.camera.files/root/storage/emulated/0/DCIM/Camera/Video-VDO_20210723_130732.mp4
on Android 11, Galaxy Tab A7, which then mapUriToFile returns null
as this line within mapUriToFile yields -1
int columnIndex = cursor.getColumnIndex(LOCAL_FILE_PROJECTION[0]);
which then crashes the plugin with this error getAbsolutePath()' on a null object
So obviously there's probably a null catch missing in the media capture plugin, but I'm wondering if the webview should be able to parse the com.sec.android.app.camera... uri? Or maybe the camera hardware is storing the file in the wrong spot?

I'm looking in to the plugin as well, but I'm wondering if this is correct?

On other Android devices we've tried, it works. Another Android 11 device yields something like content://media/0000-0000/video/media/24513

Edit - It looks like the media-capture plugin people might be aware of this - apache/cordova-plugin-media-capture#215 . I will try and update this if this is the case, so if anyone else gets to here like I did will see the (hopeful) updated plugin.

from cordova-android.

breautek avatar breautek commented on May 28, 2024

Closing as obsolete / out-dated.

Too many things has changed between now and 2018. If this issue still persists, please create a new ticket with updated information.

from cordova-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.