Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using thumbnail from URL image #87

Open
mikebgrep opened this issue Sep 10, 2022 · 0 comments
Open

Using thumbnail from URL image #87

mikebgrep opened this issue Sep 10, 2022 · 0 comments

Comments

@mikebgrep
Copy link

mikebgrep commented Sep 10, 2022

I think I can make PR for this future but first I need to know if I overrite this method will do the trick using Bitmap image = BitmapFactory.decodeStream(url.openConnection().getInputStream()); and scale it later with another function

public FullscreenVideoView thumbnail(int thumbnailResId) {
      if (this.thumbnailImageView != null) {
          Bitmap thumbnail = BitmapScaler.scaleImage(this.getResources(), thumbnailResId);
          this.thumbnailImageView.setImageBitmap(thumbnail);
          this.args.thumbnailResId = thumbnailResId;
      }

      return this;
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant