cloudinary / cloudinary/cloudinary_android

MediaManager takes too much time to generate the media url

Aperta
#91 2 commenti 0 reazioni 1 assegnatario Rivendicata da @yakirp Vedi su GitHub
question
Lingua principale
Java
Stelle
68
Fork
60
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.