MediaManager takes too much time to generate the media url

Open
#91 2 comments 0 reactions 1 assignee View on GitHub

@yakirp is already working on this.

Since May 5, 2019.

Assessment

This issue has not been assessed yet.

Description

question

This is the tracing of a bindViewHolder in a recyclerView for displaying videos using ExoPlayer.
Where the methods to generate the URL's are taking a lot of time, which was unexpected.

A snippet of the code is here, this method is taking 20.41 ms which seems to be a lot for generating an URL.

    public static String getVideoPostTransformedUrl(String postUrl) {
        return MediaManager.get().url().
                transformation(new Transformation().streamingProfile("hd_portrait"))
                .resourceType("video").secure(true).generate(postUrl + ".m3u8");
    }
Screenshot 2019-04-02 at 4 00 34 PM

Is there something which we are doing wrong?

EDIT: Also the device from which this was is Oneplus 5

Dominant language
Java
Stars
69
Forks
60
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudinary/cloudinary_android

All issues in cloudinary/cloudinary_android

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.