Kotlin camera2 API sharing video Uri between Android fragments

Опубликовано: 07 Февраль 2025
на канале: Mobile Application Tutorials
1,361
11

This Kotlin on Android tutorial series describes how to pass the Uri from a captured video to another Android fragment.
The video Uri will be used for video playback in the following tutorial.

In this Kotlin on Android tutorial we will cover:
Installing the ViewModel
Creating a ViewModel class
Instantiating the ViewModel inside Android Fragments
Setting and getting the ViewModel values
Creating an Android Fragment from scratch
Replacing an Android fragment from inside a fragment

The details of the code on GitHub can be found in the tutorial articles. The free YouTube membership is required, which can be found here https://goo.gl/SsUFZw

The full introduction post can be found here https://goo.gl/CP7TzW

Site posts & YouTube release dates:
1 - Icons https://goo.gl/CDyMFo - 23 March 2018
2 - MediaRecorder https://goo.gl/CuVV98 - 30 March 2018
3 - Video Capture https://goo.gl/38dWw2 - 06 April 2018
4 - Round Thumbnail https://goo.gl/Vn6pgz - 13 April 2018
5 - ViewModel https://goo.gl/bYsojZ - 20 April 2018
6 - ExoPlayer https://goo.gl/YBZUCc - 27 April 2018
7 - Picture in Picture https://goo.gl/jbGy1y - 04 May 2018
8 - Switching Cameras (Premium) https://goo.gl/zSrNse
9 - Audio (Premium) https://goo.gl/3PdbUr
10 - SurfaceView (Premium) https://goo.gl/PHN53D

For a one-off fee of $10.00 you can access the all the episodes straight away from here https://goo.gl/EEBKMj

Or else you can sign up for the professional membership plan for unlimited access to all the premium ad-free tutorials for $10.00 a month here https://goo.gl/bVAVRX

For business inquiries, you can contact me at my site https://goo.gl/oYB4Ln
For any technical questions I provide paid consultancy here https://www.codementor.io/mobapptuts
Members of the professional plan can also post questions on the forum here https://goo.gl/85APgY

Site Series: https://goo.gl/CP7TzW
YouTube Playlist:

For questions, training and consultancy support I can be contacted here https://goo.gl/HEZsX1

For much more information check out

Website - https://www.mobapptuts.com
Codementor - https://www.codementor.io/mobapptuts
Twitter -   / mobapptuts  
Facebook -   / nigeapptuts  
Google+ - https://plus.google.com/b/11588464208...
Pinterest -   / mobapptuts