Code Monkey home page Code Monkey logo

Comments (24)

rubensousa avatar rubensousa commented on July 23, 2024

The sample just contains an example of how to use it with ExoPlayer. It's not the perfect solution, that's why I created the section "Improvements" in the Readme: https://github.com/rubensousa/PreviewSeekBar#improvements

The point of open sourcing this library was releasing the morphing view and getting ideas for better solutions on how to download the video thumbnails.

Local opens an Activity to test the PreviewSeekBar with a simple view.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

But in the screenshots it's much faster. Why didn't you use it here too?

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

I did, the sample is the same. Just different network conditions.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

I'll close this since I've answered your question. If you come up with a better solution for loading the thumbnails, let me know.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

Network conditions? I have a good internet connection.
How about putting a short video inside the sample itself, instead?

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

I'll try to find a shorter one, but this doesn't solve the slow loading problem.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

How come it works fine for you on the gif-screenshot on the repo main page? It seems smooth there...

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

Like I said, my guess is different network conditions (latency or server with high load, I don't know). It works faster in my emulator.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

Can you please add a way inside the project, to show a built in video, so that it will be possible to know if that's really the cause to this issue ? The video file could even be on the device instead of inside the app.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

Yes, I can do that. I'll replace the current local action to load a video from the storage.
I'll close this once I replace the current stream with a better one.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

Close what?
I don't understand.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

This issue. Since local playback doesn't have to do with it.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

Why close it? We don't know for sure what's the reason for it being slow. I asked if you can use a local file, to check if the issue is because of slow connection or not.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

Nevermind, I just re-read the issue title and it makes sense to keep it open. Sorry for the misunderstanding.

from previewseekbar.

kford55 avatar kford55 commented on July 23, 2024

There are two gifs in the README, the fast one is google play movies, the slower one is this library. Just make sure you're comparing against the right one :)

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

@kford55 Oh, so you say it's because of using a server that has a good connection, not just the client (and I have a good connection and a good phone).

from previewseekbar.

kford55 avatar kford55 commented on July 23, 2024

@AndroidDeveloperLB nope just making sure that you are comparing the correct screenshots. This isn't the same implementation as Google Play movies, so we can't compare speed with this library to speed of Google Play Movies.

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

oh ok.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

@AndroidDeveloperLB, did you think the first screenshot was from this sample?

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

@rubensousa I thought that it shows how well the library can perform. I'm still not sure about this, because it doesn't handle a local video file yet. Only from the Internet, which could cause it to be slow, because it needs to fetch the thumbnail from a video.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

I'll try to add local video support this week.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

Finally had time to this. @AndroidDeveloperLB, can you check the sample again?
It was done in commit: e3f6db2

from previewseekbar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on July 23, 2024

seems to work, but for some reason it couldn't open many mp4 files (all WhatsApp videos went gray). The one I created from the camera was ok.
BTW, the "toggle" doesn't seem to work well. Usually it appears and disappears right away.

from previewseekbar.

rubensousa avatar rubensousa commented on July 23, 2024

I only tested videos from the camera and screen recordings. I'll take a look at the toggle issue

from previewseekbar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.