提交 61af97d7 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新video示例

上级 584375d8
......@@ -205,10 +205,14 @@
playStrategy: 0,
_playStrategy: 2,
header: {
'User-Agent': 'header test'
'User-Agent': 'User-Agent test',
'header': 'header test',
'cookie': 'cookie test'
} as UTSJSONObject,
_header: {
'User-Agent': 'header test2'
'User-Agent': 'User-Agent test2',
'header': 'header test2',
'cookie': 'cookie test2'
} as UTSJSONObject,
// API
pos: 10,
......@@ -373,7 +377,7 @@
},
setHeader: function (header : UTSJSONObject) {
this.header = header;
console.log("header -> " + this.header)
console.log("header -> " + JSON.stringify(this.header))
},
// 事件
onPlay: function (res : UniEvent) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册