Android camera2 API - Part 13 Fixing screen preview orientation
Please note that I don't respond to questions on the youtube channel but for those that require help I provide paid consultancy services here https://www.codementor.io/mobapptuts
Part 13 - There are some non-Nexus devices that do not provide orientation support for the android camera2 api preview surface. Which results in the preview being displayed at the wrong orientation.
This android tutorial attempts to provide a solution for those types of non Nexus devices that display this behaviour.
Previous episodes of the android camera2 api series:
Part 1 Look & Feel - https://youtu.be/dfeencf-TpM
Part 2 Surface preview sizes - https://youtu.be/D423T5JVF-s
Part 3 Surface preview session - https://youtu.be/sETiFfSPYdI
Part 4 Starting camera preview - https://youtu.be/xK9fvxGzM1Q
Part 5 Background Handler - https://youtu.be/iTDROlrgdEY
Part 6 Focus Lock - https://youtu.be/lP-6dZWEzp4
Part 7 ImageReader - https://youtu.be/xHDakS803ag
Part 8 Capture still image - https://youtu.be/6luzGhjZdfQ
Part 9 Update grid gallery - https://youtu.be/9mt_toZtvNg
Part 10 RecyclerView click position - https://youtu.be/XANLaFQfI34
Part 11 Full screen image - https://youtu.be/N8G7TvOWZds
Part 12 Responding to capture intents - https://youtu.be/8AWUIXYCkhc
In this tutorial we will cover:
- Implementing a matrix fort the transformation
- Mapping the texture view to the preview surface
- Scaling & rotating the texture view
API's covered
- Matrix
- Matrix.postRotate
- Matrix.portScale
- Matrix.setRectToRect
- RectF
- RectF.centerX
- RectF.centerY
- RectF.offset
- Math.max
- TextureView.setTransform
For much more information checkout
Website - https://www.nigeapptuts.com
Twitter - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/mobapptuts/
The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.
Android studio (1.3.1) is the editor of choice (IDE) for this tutorial series.
This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Android camera2 API - Part 13 Fixing screen preview orientation», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.