congHu / DD_Monitor-android-kotlin

DD监控室,安卓版,Kotlin
MIT License
84 stars 3 forks source link

报告1.1.8的一个状况 #1

Open gandayfreedm468 opened 3 years ago

gandayfreedm468 commented 3 years ago

我是小米play的用户。原来使用1.1.7,发现有闪退.今天来您github,发现有更新,然后直接更新为1.1.8后,发现1.1.7的闪退问题已经解决,然后在收看直播时,不管怎么切换原画或流畅等,都会黑屏。 这个现象没有找到崩溃日志。 手机录制的当时的视频(通过手机转存微信发给自己然后电脑上下载并转存百度网盘的,所以你下载下来的视频名会有标有WeChat的原因): 链接:https://pan.baidu.com/s/1XHM7gQL_NskJN1o4rCPaUA 提取码:3yt3

congHu commented 3 years ago

请问您是之前群里发的小米play、安卓8.1的用户吗?我这边没有复现您的问题,我怀疑是您的网络环境访问b站api时出了一些问题。您可以访问一下这个api地址,http://api.live.bilibili.com/room/v1/Room/playUrl?cid=2233&platform=web&qn=80 其中cid=2233可以替换成其他的直播间id,可以拿手机wifi、流量都试一下,或者说拿其他手机/其他电脑都试一下。然后可以把测试结果贴在下面,可以帮助我找到问题所在。 非常感谢您的反馈!

gandayfreedm468 commented 3 years ago

cid用的是21345362 {"code":19001012,"message":"调用bvc-play-url-one出错","ttl":1,"data":{"current_quality":0,"accept_quality":null,"current_qn":0}}

ps:电脑上用蓝叠安卓模拟器安装并使用是正常观看的。 我没在5群,我是4群的,之前的是委托神君提交给您的。 我在的位置是美国加利福利亚州。 系统为小米play MIUI 11.20.1.9开发版 Android 8.1.0 处理器为联发科P35 八核 最高2.3Ghz WiFi上网

啊再次追记:刚刚使用手机流量上网,正常的,阿勒。。。这个状况好奇怪啊 看来是我的问题, 手机流量上cid为21345362那个测试地址之后结果为: {"code":0,"message":"0","ttl":1,"data":{"current_quality":3,"accept_quality":["4","3"],"current_qn":150,"quality_description":[{"qn":10000,"desc":"原画"},{"qn":150,"desc":"高清"}],"durl":[{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/382824/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617360749\u0026len=0\u0026oi=1733148898\u0026pt=web\u0026qn=150\u0026trid=23d331948ff144a6a3004b9dd2bfbbbc\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=225d3515303d14d04196dfe36580465c\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=1","length":0,"order":1,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/828161/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617360749\u0026len=0\u0026oi=1733148898\u0026pt=web\u0026qn=150\u0026trid=23d331948ff144a6a3004b9dd2bfbbbc\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=7d8992d88717639053ea47c390102695\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=2","length":0,"order":2,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/247271/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617360749\u0026len=0\u0026oi=1733148898\u0026pt=web\u0026qn=150\u0026trid=23d331948ff144a6a3004b9dd2bfbbbc\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=bf57c709302b72a641d1403234567f71\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=3","length":0,"order":3,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/977130/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617360749\u0026len=0\u0026oi=1733148898\u0026pt=web\u0026qn=150\u0026trid=23d331948ff144a6a3004b9dd2bfbbbc\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=48aa4dea76fe393c52695554c3a445a3\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=4","length":0,"order":4,"stream_type":0,"p2p_type":0}]}}

congHu commented 3 years ago

原来是在海外啊。那么现在您还可以试试几个方案:

  1. http改成https试一下(估计用处不大)。
  2. 有人说在海外可以用的几个dns地址,可以通畅地访问国内的网站。具体可以去搜一下。
  3. 直接用回国加速器。
  4. 不排除B站可能有一些机制,是用来阻止大量脚本从海外IP访问B站的。因为是未登录状态获取的直播数据,而且您还是海外IP,所以我推测有这种可能性。

ps:我用亚马逊加州(ip: 54.183.209.68)访问了这个地址,结果也是正常的。下面附上我的测试结果

ubuntu@ip-172-31-5-240:~$ wget -O - 'http://api.live.bilibili.com/room/v1/Room/playUrl?cid=21345362&platform=web&qn=80'
--2021-04-02 10:29:39--  http://api.live.bilibili.com/room/v1/Room/playUrl?cid=21345362&platform=web&qn=80
Resolving api.live.bilibili.com (api.live.bilibili.com)... 148.153.46.90, 148.153.45.10, 148.153.64.18, ...
Connecting to api.live.bilibili.com (api.live.bilibili.com)|148.153.46.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1862 (1.8K) [application/json]
Saving to: ‘STDOUT’

-                     0%[                    ]       0  --.-KB/s               {"code":0,"message":"0","ttl":1,"data":{"current_quality":3,"accept_quality":["4","3"],"current_qn":150,"quality_description":[{"qn":10000,"desc":"原画"},{"qn":150,"desc":"高清"}],"durl":[{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/115048/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617362980\u0026len=0\u0026oi=918016324\u0026pt=web\u0026qn=150\u0026trid=92472fb74cd24ce78fd28f764f59c3bd\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=33a91846cb0c00cca56960a567ae53db\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=1","length":0,"order":1,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/884276/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617362980\u0026len=0\u0026oi=918016324\u0026pt=web\u0026qn=150\u0026trid=92472fb74cd24ce78fd28f764f59c3bd\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=18243805a49843314b9b56cfa60ab96e\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=2","length":0,"order":2,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/184088/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617362980\u0026len=0\u0026oi=918016324\u0026pt=web\u0026qn=150\u0026trid=92472fb74cd24ce78fd28f764f59c3bd\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=6e163cce435b4d10d59a047463091f9a\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=3","length":0,"order":3,"stream_type":0,"p2p_type":0},{"url":"http://d1--cn-gotcha05.bilivideo.com/live-bvc/101249/live_411812743_59597385_1500.flv?cdn=cn-gotcha05\u0026expires=1617362980\u0026len=0\u0026oi=918016324\u0026pt=web\u0026qn=150\u0026trid=92472fb74cd24ce78fd28f764f59c3bd\u0026sigparams=cdn,expires,len,oi,pt,qn,trid\u0026sign=00ef3938fecf9d0da569039d9d752ff6\u0026ptype=0\u0026src=9\u0026sl=1\u0026order=4","length":0,"order":4,"stream_type":0-                   100%[===================>]   1.82K  --.-KB/s    in 0s      

2021-04-02 10:29:40 (233 MB/s) - written to stdout [1862/1862]

还有是nslookup结果

Non-authoritative answer: api.live.bilibili.com canonical name = interface-v6.biliapi.com. interface-v6.biliapi.com canonical name = interface.biliapi.com. Name: interface.biliapi.com Address: 148.153.56.162 Name: interface.biliapi.com Address: 148.153.46.90 Name: interface.biliapi.com Address: 148.153.45.10 Name: interface.biliapi.com Address: 148.153.64.18 Name: interface.biliapi.com Address: 148.153.56.163

- 国内(华南)

conghu@CongdeMacBook-Pro ~ % nslookup api.live.bilibili.com Server: 103.27.24.1 Address: 103.27.24.1#53

Non-authoritative answer: api.live.bilibili.com canonical name = interface.biliapi.com. Name: interface.biliapi.com Address: 110.43.34.72 Name: interface.biliapi.com Address: 139.159.241.37 Name: interface.biliapi.com Address: 139.159.252.156 Name: interface.biliapi.com Address: 139.159.246.60 Name: interface.biliapi.com Address: 110.43.33.147 Name: interface.biliapi.com Address: 110.43.33.166 Name: interface.biliapi.com Address: 139.9.62.5 Name: interface.biliapi.com Address: 139.159.227.6 Name: interface.biliapi.com Address: 110.43.34.66 Name: interface.biliapi.com Address: 110.43.34.184