第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

在mac 谷歌瀏覽器下,提示錯(cuò)誤play() failed because the user didn't interact with the document first.

? ?componentDidMount()?{
????????$("#player").jPlayer({
????????????ready:??function(){
????????????????$(this).jPlayer("setMedia",?{
????????????????????'mp3':?'spacer.gifhttp://oj4t8z2d5.bkt.clouddn.com/%E9%AD%94%E9%AC%BC%E4%B8%AD%E7%9A%84%E5%A4%A9%E4%BD%BF.mp3',
????????????????}).jPlayer('play');
????????????},
????????????supplied:?"mp3",
????????????vmode:?"window",
????????????size:{
????????????????width:"640px",
????????????????height:"396px",
????????????????cssClass:"jp-video-360p"
??????????????},
????????});
????????$('#player').bind($.jPlayer.event.timeupdate,?e?=>?{
????????????this.setState({
????????????????progress:?Math.round(e.jPlayer.status.currentTime)
????????????})
????????})
????}?


正在回答

1 回答

這是chrome瀏覽器在今年4月份的自動(dòng)播放策略,在頁(yè)面沒(méi)有產(chǎn)生用戶交互時(shí)時(shí)不能進(jìn)行自動(dòng)播放的,可以先讓用戶點(diǎn)擊再進(jìn)行播放

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
使用React構(gòu)建一款音樂(lè)播放器
  • 參與學(xué)習(xí)       26493    人
  • 解答問(wèn)題       156    個(gè)

從零開始使用React構(gòu)建一款音樂(lè)播放器

進(jìn)入課程

在mac 谷歌瀏覽器下,提示錯(cuò)誤play() failed because the user didn't interact with the document first.

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)