HelloCsl

Results 17 comments of HelloCsl

@ameisewang 表示遇到同样的问题,但是这是什么原理啊?FFmpeg 编译各种坑.

@LCJustin 可否整理个 demo ?我这边还没遇到过

@YanxuLi 我使用过程没遇到这样的问题,可以上传个 demo 看看吗?

这里没有问题的,sOffsetStep 初始情况下记录的是计步器当前的步数,计算当前步数公式就是 `当前步数 = 当前计步器的步数 - 开始记录时候计步器的步数`,但是开关机之后,计步器的步数会清 0 的,如果还是使用之前的 sOffsetStep 去计算步数肯定是有问题的,所以需要首次步数回调的时候进行修正,使得修正后的首次计算的步数还是上一次的步数(这次的步数回调仅仅用于修正数据),` lastSensorOffsetStep(上次记录的值) ==修正=> lastSensorOffsetStep = currentSensorOffset(重置后) - currentStep(上次计算的步数)`。所以说代码没问题的 @chenpdsu 。另外不得不吐槽,这个库的变量有用的没用的一大堆,也没什么注释,命名也是看得一愣一愣得,实在是难看懂

I want to download this file https://v.redd.it/b5fdxaieg8y11/HLSPlaylist.m3u8, but get exception `com.liulishuo.filedownloader.exception.FileDownloadGiveUpRetryException: fetched length[xxxx] != content length[xxxx]`, how can i escape this probleam? @rantianhua

> @rantianhua I think one detail is being omitted here. FileDownloader sets `Accept-encoding: gzip` in the request > ![asdas](https://user-images.githubusercontent.com/2316222/54331356-c612a100-466d-11e9-8e5c-ff6f0f77c4b2.png) > > To which server responds with `Content-Length` of gzipped data...

@spicyboiledfish if you are using react-native >=0.47 , you should try to delete this `SvgPackage#createJSModules` method