get thumbnail from video URL but it takes more than 5 seconds to load data on recycler view

get thumbnail from video URL but it takes more than 5 seconds to load data on recycler view

Content Index :

get thumbnail from video URL but it takes more than 5 seconds to load data on recycler view
Tag : android , By : paolodm
Date : January 12 2021, 01:40 AM

To fix this issue This line is probably the one slowing down the loading process. The worst case is that it may throw an OOM Exception
ThumbnailUtils.createVideoThumbnail(imagePath, MediaStore.Video.Thumbnails.MINI_KIND);
            Video video = new Video();


    public void onBindViewHolder(YourAdapter.ItemViewHolder holder, int position) {
        Video v = videoItemHashset.get(position);

                .load(Uri.fromFile(new File(v.getVideoPath())))

        holder.mPosition = position;///in case you're going to need it for playing the video at that position

No Comments Right Now !

Boards Message :
You Must Login Or Sign Up to Add Your Comments .

Share : facebook icon twitter icon

ExtJS 4.2 first time to load some complex view takes a few seconds

Tag : extjs , By : Gabriel
Date : March 29 2020, 07:55 AM
hop of those help? I have an Application with a Nav Menu, on each Nav item clicked a Tab is created with it's corresponding view. , If you want to mask the tab panel then:
var tabpanel = me.getMainTab();
// add a new tab

How to load first 20 contact to recycler view and use OnScrollListener to load more to recycler view

Tag : android , By : user121405
Date : March 29 2020, 07:55 AM
Any of those help First add 20 item in Arraylist of Contact.on Scroll end add more item's and call adapter.notifyDataSetChanged() . This is the code to detect scroll end.
mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {

public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
    super.onScrolled(recyclerView, dx, dy);

    visibleItemCount = mRecyclerView.getChildCount();
    totalItemCount = mLayoutManager.getItemCount();
    firstVisibleItem = mLayoutManager.findFirstVisibleItemPosition();

    if (loading) {
        if (totalItemCount > previousTotal) {
            loading = false;
            previousTotal = totalItemCount;
    if (!loading && (totalItemCount - visibleItemCount) 
        <= (firstVisibleItem + visibleThreshold)) {
        // End has been reached

        Log.i("Yaeye!", "end called");

        // Add more items into contact Arraylist and call notifyDataSetChanged()

        loading = true;
LinearLayoutManager mLayoutManager;
mLayoutManager = new LinearLayoutManager(this);

Access 2007 Conditional Formating on Datasheet View takes several seconds to load

Tag : ms-access , By : Mario Tristan
Date : March 29 2020, 07:55 AM
To fix this issue This is my second question here, so I hope I ask the right way this time. , You can force Access to process all records:
Do Until Me.Recordset.EOF

Puppeteer takes too many seconds to load the data

Tag : javascript , By : user92243
Date : March 29 2020, 07:55 AM
seems to work fine When you hit "/", it does a lot of stuff including the following:
It opens creates a new temporary chrome profile. Launches the chrome with certain flags and options. Creates a new tab. Loads the target url. Wait for some events to fire. Evaluates your code. Closes the browser. Sends your data.

Recycler view takes 30s to load and also lags while scrolling

Tag : java , By : Mr. Tacos
Date : March 29 2020, 07:55 AM
this will help I have followed this tutorial ("https://www.youtube.com/watch?v=Yt15bySZTf0") and generate a list of videos available in my mobile storage and sdcard, but when I run the app, it takes about 30 sec to load to the first activity, that is list of all available videos and also when the recycler view is available and i start scrolling, the scrolling is quiet lagging, please help me to solve this problem, Following is the code of my app , glide dependency
implementation 'com.github.bumptech.glide:glide:3.8.0'
Related Posts Related QUESTIONS :
  • Flutter doctor does not see vs code ,VS code does not detect flutter/bin
  • How to build aar in flutter
  • Is displayMetrix xdpi and ydpi accurate?
  • How to detect doubletap on a View?
  • how to play an encrypted file in Android
  • Android: keytool error on the command line when locating debug.keystore
  • Android paint/canvas issue; drawing smooth curves
  • Problems with starting an activity in onStart
  • Performance of map overlay in conjunction with ItemizedOverlay is very poor
  • How to change android indeterminate ProgressBar color?
  • How do I change the Mobile Country Code (MCC) in the Android Emulator?
  • Stop Progressbar manual scrolling in Android
  • Android: download large file
  • Android : uploaded .apk file to server but cant download that .apk file
  • How do I distribute Android app to beta tester without using Market
  • Android Unable to launch the Inbox from a notification
  • Android: Ringer mode changed to silent doesn't stop the phone vibrating
  • Change the side the text appears on a radio button
  • Check the memory usage anp cpu and power of an application in android
  • What is the String 'volumeName' argument of MediaStore.Audio.Playlists.Members.getContentUri referring to?
  • Playing Multiple sounds at the same time in Android
  • Android: how to change the time in emulator?
  • close the soft key pad when i click on other views in android
  • Setting the position within a spinner
  • How to play ringtone/alarm sound in Android
  • How to adjust text font size to fit textview
  • "Android 2.x" vs "Google APIs" for Android AVD Setup
  • How to center buttons on screen horizontally and vertically plus equidistant apart?
  • Discrete seekbar in Android app?
  • Gradle Build Fails - Illegal exception table range in class file com/google/wireless/android/sdk/stats/GradleBuildMemory
  • register has type Long (High Half) but expected Long (Low Half)
  • Is it good idea to use Dispatcher.Main with delay( )?
  • WebView and Advanced View is Not loading partiucalr URL
  • How to show three dots at the end of text view
  • Is it possible to run macros within Android Studio project?
  • Adding a button with default appearance but changed background color
  • What is best way to show notification at a certain time in Android?
  • Jetifier not working when library uses android component and app uses androidx component
  • How can I write the contents of an image in a filesystem
  • Retrieve a list of images from the Database and display them using a ListView?
  • java.lang.SecurityException: my location requires permission ACCESS_FINE_LOCATION or ACCESS_COARSE_LOCATION
  • Timer/hourglass wont stop
  • How can I make AndroidX the default library for new Android projects?
  • Is it okay to delete buildToolsVersion android studio because of a warning in the Asyncstorage library?
  • Can I call a class that doesn't have an activity withIntent?
  • Android TextView fontFamily not working when set via TextAppearance
  • Unable to find nearby places
  • Is there any way to launch my application right away without 'Ok Google"?
  • Places api set location biased based on current location
  • Layout Preview is not displaying layout when Material Design is added
  • How do I resolve this diamond problem in Kotlin?
  • How to update the custom value in a view model object
  • How to stop refreshing/re-creating activity when updating Firebase data using setValue?
  • Manifest Permissions vs App Setttings Permissions
  • NumberFormatException in Try-Catch while converting String to Int
  • How to pass observable fields through include tag?
  • Next button on Android keyboard not submitting form
  • Does Firestore support automatic functions for updates?
  • Why app crashing because of a missing dimension (for google maps) only when I apply changes?
  • How to make a grouping, ordering and sorting: Kotlin collection
  • shadow
    Privacy Policy - Terms - Contact Us © scrbit.com