MediaManager takes too much time to generate the media url

オープン
#91 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@yakirp がすでに取り組んでいます。

2019年5月5日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
Java
スター
69
フォーク
60
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudinary/cloudinary_android のほかの issue

cloudinary/cloudinary_android の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。