GSYVideoPlayer icon indicating copy to clipboard operation
GSYVideoPlayer copied to clipboard

加载一个链接多次请求接口

Open cc519348051 opened this issue 1 year ago • 4 comments

问题描述:一个链接加载的过程 多次请求了接口

966652895539513d551c678690af59f

总共请求了4次 两次200 两次206 每次都是什么情况能帮忙分析下吗?

出现问题的视频流

https://cdn-testing-ali-2.crushonfeature.com/kvwghxr8fsxse5t881o8vrrhz3ln?auth_key=1714377916-0-0-59f14ffba7c06d919a8f97973bc694bb&Expires=1714377916&KeyName=brave-storage-private-cdn-signing-key&Signature=eEdQ93aG2jLkfrNrRANsVCZBbts

问题机型/系统:

Android 9; VOG-AL00 模拟器 真机也是如此

GSY依赖版本

例如 implementation 'com.shuyu:gsyVideoPlayer-java:8.5.0'

Demo中的复现步骤

直接加载这个链接

问题代码:(如果有) mPlayer.setUp("https://cdn-testing-ali-2.crushonfeature.com/kvwghxr8fsxse5t881o8vrrhz3ln?auth_key=1714377916-0-0-59f14ffba7c06d919a8f97973bc694bb&Expires=1714377916&KeyName=brave-storage-private-cdn-signing-key&Signature=eEdQ93aG2jLkfrNrRANsVCZBbts", true, ""); mPlayer.setLooping(true);

问题log(如果有)


xxxxxxx

cc519348051 avatar Apr 22 '24 09:04 cc519348051

image

CarGuo avatar Apr 22 '24 09:04 CarGuo

@CarGuo https://cdn-testing-ali-2.crushonfeature.com/kvwghxr8fsxse5t881o8vrrhz3ln?auth_key=1714377916-0-0-59f14ffba7c06d919a8f97973bc694bb&Expires=1714377916&KeyName=brave-storage-private-cdn-signing-key&Signature=eEdQ93aG2jLkfrNrRANsVCZBbts我这里链接可以直接打开的 没有报错

ghost avatar Apr 22 '24 10:04 ghost

@CarGuo 想了解的是 一个链接加载下来 为什么会有4次请求 前面两次code是200 后面两次是206 。后面两次206可以理解 但是两个200 不太明白 正常第一次200就拿到了视频的信息 为何还有一次200请求 第二次请求是做什么用的?

ghost avatar Apr 22 '24 13:04 ghost

不清楚,我这边是打不开链接

CarGuo avatar Apr 23 '24 03:04 CarGuo