MediaManager takes too much time to generate the media url

Đang mở
#91 2 bình luận 0 reaction 1 người được giao Xem trên GitHub

@yakirp đang làm issue này rồi.

Từ ngày 5/5/2019.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
Java
Star
69
Fork
60
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudinary/cloudinary_android

Tất cả issue của cloudinary/cloudinary_android

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.