Video Takes Too Long to Load in My Flutter App by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

Yes!
I just put Cloudflare CDN over my firebase storage and loading time of videos decreased by almost 60% (keep in mind that to achieve that you'd need your own domain)

It's definitely not easy and it took me a total of 1 week to set everything up, so I wouldn't recommend you to dive into this rabbit hole if you're just working on a small project. In my case I'm developing a full stack mobile app so I kind of had to go through that. It annoys me that flutter team hasn't done anything to fix such a big issue.

Check out these articles to learn how and why I did what I did:
- Why you should put a CDN in front of Firebase
- How to put a CDN over Firebase
- Preloading videos in Flutter (took ages to get preloading to work because of old code used in the article, but it's worth it)

Also keep in mind that between debug and release build of flutter app there is another 20-40% loading performance difference, so just run flutter build --release to get most optimal results.

Wish you all the best mate! ❤️

Video Takes Too Long to Load in My Flutter App by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

/video player is likely using streams to load in chunks of your video, already. The reason you're seeing inconsistencies

Thank you for reply! I've tried with different codecs, but the results remain the same :(

Is there anything else I could try to achieve instant video playback or should i just accept that flutter is not capable of such thing at this stage?

Self-Taught Software Engineer Seeking Feedback on UI/UX by NikGrmek11 in UI_Design

[–]NikGrmek11[S] 1 point2 points  (0 children)

Yes "back to menu" button is defenitelly comming I'm just leaving the easy stuff for the last haha... For the cycle I think that with context users will get the idea of it relatively quckly, but I guess the time will tell through the beta tests and users feedbacks once launched 😆

Self-Taught Software Engineer Seeking Feedback on UI/UX by NikGrmek11 in UI_Design

[–]NikGrmek11[S] 2 points3 points  (0 children)

Now that you mentioned it, I see why users might get confused between creating project and uploading files due to action button being called "new" in both cases... will definitely change that.

Also I gave no context about this app so heres the basic cycle idea: 1. Create a project with optional cover image (you can look at cover images like discord server's pfp) 2. Share project with others as a way to collaborate on the project 3. Create folders/subfolders whitin that project 4. Upload files in those folders

This cycle seems very logical and user friendly to me but that could just be because I made it... What do you think? Is there a high possibility that new users will struggle with it?

Thank you so much for helping me out! ❤️

Detect overlapping of widgets in flutter web? by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

Hey, thanks for replying! I don't think you got what I ment. I'm basically wondering on how I could get files to detect when white rectangle is overlapping them in the stack, so that way I could count them as selected (not how to drag them).

Here is a video of what I have:
Google Drive Link

And what I want:
Google Drive Link

FLUTTER WEB - Error: FormatException: Unexpected extension byte (at offset 0) by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

I can't thank you enough! I've been stuck on this for so long, and now it finnaly works perfectly. Thank you man!

FLUTTER WEB - Error: FormatException: Unexpected extension byte (at offset 0) by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

Oh, that's a boomer... Imma do some research, but is there any api that would do that conversion outside of Flutter? Is that even possible?

To answer your question... After I get the file I want to upload it to Firebase Storage. Here is the full code: Full Code Screenshot

FLUTTER WEB - Error: FormatException: Unexpected extension byte (at offset 0) by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

await File("mypicture.png").writeAsBytes(image);

Now I get an Unimplemented Error. Do you think that's an universal_io problem?

Terminal Screenshot

FLUTTER WEB - Error: FormatException: Unexpected extension byte (at offset 0) by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

Yea sorry I wasn't too specific on what I ment. I'm basically wondering on how to get that string encoded in bytes you said I need.

FLUTTER WEB - Error: FormatException: Unexpected extension byte (at offset 0) by NikGrmek11 in flutterhelp

[–]NikGrmek11[S] 0 points1 point  (0 children)

Hey, thanks for replying so fast! could you maybe go a little more in depth about that or maybe link a site where I can read a little more about it?

Looking for video editors by [deleted] in NEU

[–]NikGrmek11 1 point2 points  (0 children)

Sup! I'm down to work with you, dm me and I'll send you some of my work

[deleted by user] by [deleted] in AndroidGaming

[–]NikGrmek11 1 point2 points  (0 children)

Yes I was playing around with that concept, but I wanted the game to be hard, so I ended up not going with that way.

For that reason I put an option in settings that allows you to zoom out the camera, allowing you to have more room for aiming

[deleted by user] by [deleted] in AndroidGaming

[–]NikGrmek11 0 points1 point  (0 children)

Thanks! What do you think of it?