Code Monkey home page Code Monkey logo

Comments (5)

memfis19 avatar memfis19 commented on August 27, 2024

Hi, well depends how do you use it. I suppose you are using not custom approach, so Annca does not provide any info in onActivityResult, because it is quite easy to retrieve file extension or mime-type with standart tools i.e. File (in case you really need it - I'll add, but not in nearest time, sorry). As for settings, sure you pass general setting both for photo and video actions. In case something does not work - can you send me please how do you set settings.

from annca.

bakhman1981 avatar bakhman1981 commented on August 27, 2024

from annca.

bakhman1981 avatar bakhman1981 commented on August 27, 2024

from annca.

memfis19 avatar memfis19 commented on August 27, 2024

Hi, well yes, it is thing to improve and I believe I mentioned it in README. I don't know, do you know , but device camera has predefined amount of supported sizes for preview, photo and video (and they are different on different devices). So in Annca was selected more simple approach for end using - MEDIA_QUALITY. And it has few values: low, medium, high. Depends on video sizes this MEDIA_QUALITY is evaluated. Algorithm is very simple just split the supported sizes on MEDIA_QUALITY amounts. I.e. you have next supported values: 144x144, 256x372, 320x480, 480x640, 480x720, 720x1280, 1080x1920. So Annca will use 144 for low, 1080 for hight and 480 for medium. Beside this to start record we need provide additional setting such as audio and video bitrate, codec etc. This values are retrieved from CamcorderProfile profiles and matched to the MEDIA_QUALITY sizes (note that CamcorderProfile may return profile which is not supported by camera, so it is search for best matching option), and then used all this values. That's why the difference between LOW and MEDUIM quality so big, 144 audio and video bitrates very low and for 480p quite big. Exceptional case is limitation by file size in this case audio and video bitrates are decreasing until video will fit file size or will be used the lowest possible values that camera supports.

from annca.

bakhman1981 avatar bakhman1981 commented on August 27, 2024

from annca.

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.