-
Notifications
You must be signed in to change notification settings - Fork 51
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
Hi!How to differentiate type of action within onActivityResult? #29
Comments
Hi, well depends how do you use it. I suppose you are using not custom approach, so Annca does not provide any info in |
Hi!Yes- it works great about video restrictions! Only one question - it is strange and seems like media quality parameter just retrieve available values from Camera resolution config. is it correct? because when I select 'LOW' for 15sec = 244Kb size. - when I select 'Medium' for 15 sec = 22Mb sizethis is really big jump between low and medium)) and in your config.java i see that LOW=11 and MEDIUM=12. - so no ability to select quality something really medium like 1mb size. And if I selectsetVideoFileSize(1024*1024) system anyway as i understand selects LOW mode and final file size not 1mb as I set, but the same 244Kb((( 10.07.2017, 22:22, "Rodion Surzhenko" <notifications@github.com>: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.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
ACtually there is some bug - i don't know how to solve it:1. I've checked that yes - your Annca takes available resolution modes from camera option.2. BUt what strange - in native camera app - it shows 4 modes (144x144, 640x480, 1280, 1940). in annca camera mode it shows (144x144, 1280, 1940).3. So native camera has 4 modes, but annca only 3 modes. how to solve this?(( 11.07.2017, 07:51, "zhjcnm@yandex.ru" <zhjcnm@yandex.ru>:Hi!Yes- it works great about video restrictions! Only one question - it is strange and seems like media quality parameter just retrieve available values from Camera resolution config. is it correct? because when I select 'LOW' for 15sec = 244Kb size. - when I select 'Medium' for 15 sec = 22Mb sizethis is really big jump between low and medium)) and in your config.java i see that LOW=11 and MEDIUM=12. - so no ability to select quality something really medium like 1mb size. And if I selectsetVideoFileSize(1024*1024) system anyway as i understand selects LOW mode and final file size not 1mb as I set, but the same 244Kb((( 10.07.2017, 22:22, "Rodion Surzhenko" <notifications@github.com>: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.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
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 - |
Hello! Can you little bit help me : what is the most correct way/solution to implement 'imagepicker' from gallery within your Annca library? Thanks a lot! Of course I can just make separate button on screeen outside Annca call to camera, but more great way to add this when camera opened from Annca call. 13.07.2017, 11:14, "Rodion Surzhenko" <notifications@github.com>: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.—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or mute the thread.
|
HI!
this is not issue, i think it already exist.
How can I understand Photo or Video was captured? (of course I can check uri extension but...)
And also can I set Video settings without 'setMediaAction'? I mean that by default Photo mode will be shown , but when I select Video mode - restrictions will be applied. is it possible?
The text was updated successfully, but these errors were encountered: