wx.createInnerAudioContext()安卓端和开发工具不能播放m3u8格式的音频流,ios正常
js:
data: { poster: '', name: 'demo', author: 'demo', src: 'http://xxx.xxx.xxx/c_7322/7322.m3u8', status: 'play.png', play:false, height:wx.getSystemInfoSync().windowHeight - 124 + 'px' }, o nReady: function (){ this .audioCtx = wx.createInnerAudioContext(); this .audioCtx.src = this .data.src; this .audioCtx.autoplay = true ; }, audioPlay: function () { var that = this ; this .audioCtx.play();
|
wxml:
< image src = "/images/{{status}}" bindtap = "{{play?'audioPause':'audioPlay'}}" ></ image > |