GithubHelp home page GithubHelp logo

Comments (2)

0xevan-m avatar 0xevan-m commented on July 20, 2024

返回视频的dns地址是根据什么规则来的呀,现在返回的域名经常变,导致小程序白名单设置跟不上。。。大佬有办法吗

大佬找到解决办法了吗?域名总变的问题 也发现了。

from parse-video.

wujunwei928 avatar wujunwei928 commented on July 20, 2024

视频地址是对应平台返回的,同一个平台也可能返回不同的播放域名,这个没法控制

可以考虑加一个下载的代理接口,可以看下是否可以,思路:
将已在小程序平台配置的域名设置一个白名单下发小程序;每次下载时,小程序判断域名是否在白名单,在白名单直接下载;否则将视频地址传给代理接口,代理接口读取视频内容,返回给小程序

from parse-video.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.