tt.createVideoContext

2020-02-12 10:34 更新
基礎(chǔ)庫 1.18.0 開始支持本方法,低版本需做兼容處理。這是一個(gè)同步方法。

根據(jù) video 組件 id 創(chuàng)建可以控制組件的上下文VideoContext對(duì)象。


參數(shù)

tt.createVideoContext(id, [component]);

參數(shù)說明:

參數(shù)名類型默認(rèn)值必填說明
idstringttml 中組件的 id
componentObject在自定義組件下,當(dāng)前組件實(shí)例的 this,以操作組件內(nèi) video 組件


返回值

VideoContext


以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)