MediaManager takes too much time to generate the media url

未关闭
#91 2 条评论 0 个 reaction 已指派 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 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

cloudinary/cloudinary_android 的其他 Issue

查看 cloudinary/cloudinary_android 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。