Comments (24)
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.
But in the screenshots it's much faster. Why didn't you use it here too?
from previewseekbar.
I did, the sample is the same. Just different network conditions.
from previewseekbar.
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.
Network conditions? I have a good internet connection.
How about putting a short video inside the sample itself, instead?
from previewseekbar.
I'll try to find a shorter one, but this doesn't solve the slow loading problem.
from previewseekbar.
How come it works fine for you on the gif-screenshot on the repo main page? It seems smooth there...
from previewseekbar.
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.
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.
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.
Close what?
I don't understand.
from previewseekbar.
This issue. Since local playback doesn't have to do with it.
from previewseekbar.
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.
Nevermind, I just re-read the issue title and it makes sense to keep it open. Sorry for the misunderstanding.
from previewseekbar.
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.
@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.
@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.
oh ok.
from previewseekbar.
@AndroidDeveloperLB, did you think the first screenshot was from this sample?
from previewseekbar.
@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.
I'll try to add local video support this week.
from previewseekbar.
Finally had time to this. @AndroidDeveloperLB, can you check the sample again?
It was done in commit: e3f6db2
from previewseekbar.
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.
I only tested videos from the camera and screen recordings. I'll take a look at the toggle issue
from previewseekbar.
Related Issues (20)
- Sizes of each thumbnail HOT 5
- [Question] How to set color programmatically? HOT 1
- Handle LifeCycle HOT 1
- in some times,not all video have the preview thumb url, and in this case i want hide the framelayout when start track the progress ,can provide some to solve it, i use hidePreview ,but i seems like not work HOT 1
- setOnSeekBarChangeListener does not work? HOT 1
- Unable to resolve getDefaultScrubberColor method in PreviewTimeBar HOT 1
- example of using the PreviewSeekbar without exoplayer? HOT 1
- Return type json what should I do? HOT 1
- Update to AndroidX HOT 1
- Is there anyway to make the seek bar less sensitive?
- How to integrate with VTT files
- Migrate away from jcenter. HOT 3
- code
- Image loading Issue
- Translate project on kotlin HOT 1
- PreviewTimeBar not found
- onScrubMove callback is not being called HOT 1
- Change preview size HOT 1
- How to use multiple image links?
- DASH Thumbnail Image Set Support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from previewseekbar.