yangxiaop / wechatvideoplay Goto Github PK
View Code? Open in Web Editor NEW微信小程序播放腾讯视频
微信小程序播放腾讯视频
fn_pre, magic_str, video_type = filename.split('.')
这样的写法,js里面好像是不行的
var ss = filename.split('.');
fn_pre = ss[0]; magic_str=ss[1]; video_type = ss[2] ;
这样吧,分割出来传给变量
发现分片拿的时候似乎有问题,测试获取一部分视频可以正常获取,但是某些视频比如 vid 为 v0701dgxh96 的获取出来的path 是 undefined ..
./video Demo/utils/qqVideo.js中的第50行
fn_pre, magic_str, video_type = filename.split('.')
无法正常完成工作,加上中括号后可以了
[fn_pre, magic_str, video_type] = filename.split('.')
filename = [fn_pre, magic_str, str(i), video_type].join('.')
str(i) 中的str 好像没有定义
谢谢
请问作者 同样的逻辑 在小程序里面可以支持其他视频网站的播放吗?比如youku B站? 谢谢
一开始在【小程序开发工具】能获取到视频网址
但在手机微信上报这个错,打开【调试】不行,不检查域名也不行
后来在【小程序开发工具】不能获取到视频网址了
访问 123.6.26.156 的请求遭到拒绝 这是什么意思啊
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.