In this video, we upgrade our TikTok clone by loading videos dynamically from an API instead of using static local videos.
In Part 1, we built the swipeable UI. Now in Part 2, we make it real by fetching videos from URLs and displaying them in a smooth scrolling feed.
Timestamps:
00:00 Introduction
00:58 Setup Retrofit for API Calls
08:10 Add Internet Permission
08:35 Create Data Models (API Parsing)
13:10 MVVM Architecture Explained
13:45 Setup ViewModel
18:10 Fetch Data from API (ViewModel)
28:50 Update UI with API Data
32:45 Play Videos from URL (Dynamic Feed)
33:20 Pagination (Lazy Loading)
36:00 Error Handling & UI State
42:55 Final Demo 🚀
API ( Pexels ) : https://api.pexels.com/v1/videos/popular
🔥 What you’ll learn:
Fetch video data using Retrofit
Handle API responses in MVVM
Load videos dynamically in Jetpack Compose
Build a real-world TikTok-like feed
💻 Tech Stack:
Kotlin, Jetpack Compose, Retrofit, MVVM, Coroutines
📌 Part 1: • TikTok Swipe UI in Android (Jetpack Compos...
🚀 This is how real apps load content — not from local files, but from APIs.
If you found this helpful, like 👍 and subscribe for the next part!
#AndroidDevelopment #JetpackCompose #TikTokClone #Kotlin #Retrofit #MobileDevelopment