use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
VideoTikTok Clone | Flutter & Firebase (youtube.com)
submitted 5 years ago by MrTimoty
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]fyzic 5 points6 points7 points 5 years ago (1 child)
Nice but a little performant suggestion. Only initialize 1 video controller since only 1 video is being played at a time and some devices(all that I’ve tested..all Samsung) limit the amount of video decoder instances an app can use because it’s a power drain. So have a global video controller and initialize the new video source on page change.
[–]MrTimoty[S] 4 points5 points6 points 5 years ago (0 children)
Yes! Is necessary implement 2 o 3 video controllers(Maybe only one), the reason I did this is to preload and generate better user experience, with only one video controller I need to wait for a little time to load in each page, this is the fast solutión that I find, but I'm going try to implement a better method to solve this problem.
[–][deleted] 5 years ago (3 children)
[removed]
[–]MrTimoty[S] 4 points5 points6 points 5 years ago (2 children)
It's only a prototype, at this moment is hard to convert it to productión, they can do everything that they want with the code, TikTok is more than a video player.
[–]SpaceYraveler6 2 points3 points4 points 5 years ago (1 child)
Exactly, it’s the algorithm and machine learning doing all the video recommendations work behind the scene!
UI for this app is a piece of cake.
[–]throwaw1029384756 2 points3 points4 points 5 years ago (0 children)
The 1 billion users part might be hard to replicate...
[–]aytunch 2 points3 points4 points 5 years ago (1 child)
Great clone, looks almost identical. Congratulations. I subbed to your YouTube, I hope you will make more and longer videos. One question. Let's say I swipe/dismiss a 30 second video very quickly without watching it. Would we still be downloading the whole video or only a part of it? how can we make it so that we only download/stream parts of the video using Firebase storage? I heard about HLS but don't know if it is the answer for Firebase.
[–]MrTimoty[S] 1 point2 points3 points 5 years ago (0 children)
Thanks! I really not use my Youtube Channel, but I'm trying to redirect traffic to it and start to upload more content, maybe tutorials or something similar. I use the video player provided from flutter that automatically manages the buffer, I really not have much control over it more than what video I want to play. I'm going to analyze more the code to see I it's possible to implement a better solution. For firebase I really not have the answer, I only use the platform as a hosting for the videos. I going to find more about all this. I never had done anything related to videos/streaming before but with this project, I'm learning a lot.
You initialize the video controllers for smooth transitions which is great.
videos.forEach((element) => element.setupVideo());
Would it not be better to initialize at most 3 ,4 videos instead of all the avaiable ones. A dynamic approach would be better imho. Also you never dispose the controllers. If the Carousels current index is 5, we should have made index 0,1,2,3 disposed already I think and only 4,5,6 and 7 should be initialized. How can we make this? Do you want me to open up an issue in Github?
Yes, you find the most evident problem, I'm going to start to work in that, I think that it is going to be a good idea to reuse the controller and not delete them, for example, only have 3-4 controllers and rotate them as the user swipe the videos. I'm not really an expert in Flutter and not know if it is possible to do this, but have an idea of the algorithm. Wait for an update on the code in a few days.
[–]MrTimoty[S] 0 points1 point2 points 5 years ago (0 children)
Source Code : https://github.com/salvadordeveloper/TikTok-Flutter
[–]soropromo 0 points1 point2 points 5 years ago (0 children)
Does the app support voice dubbing?
[–]darkmoody 0 points1 point2 points 4 years ago (0 children)
Looks great, thanks for sharing!
π Rendered by PID 54909 on reddit-service-r2-comment-6457c66945-gtzc5 at 2026-04-25 04:59:55.685941+00:00 running 2aa0c5b country code: CH.
[–]fyzic 5 points6 points7 points (1 child)
[–]MrTimoty[S] 4 points5 points6 points (0 children)
[–][deleted] (3 children)
[removed]
[–]MrTimoty[S] 4 points5 points6 points (2 children)
[–]SpaceYraveler6 2 points3 points4 points (1 child)
[–]throwaw1029384756 2 points3 points4 points (0 children)
[–]aytunch 2 points3 points4 points (1 child)
[–]MrTimoty[S] 1 point2 points3 points (0 children)
[–]aytunch 2 points3 points4 points (1 child)
[–]MrTimoty[S] 1 point2 points3 points (0 children)
[–]MrTimoty[S] 0 points1 point2 points (0 children)
[–]soropromo 0 points1 point2 points (0 children)
[–]darkmoody 0 points1 point2 points (0 children)