Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
820 views
in Technique[技术] by (71.8m points)

video.js - VIDEOJS:错误:TypeError:无法读取未定义的属性“ getChild”(VIDEOJS: ERROR: TypeError: Cannot read property 'getChild' of undefined [closed])

I am working on videojs player.I create custom button component and that button is added on left corner side on player.I control all button using tv remotes.I face problem when I move from playToggle button to custom caption button on left corner side.Custom button get focusable but show below error in console.

(我正在使用videojs播放器。我创建了自定义按钮组件,并在播放器的左上角添加了该按钮。我使用电视遥控器控制所有按钮。当我从playToggle按钮转到左上角的自定义标题按钮时遇到问题。自定义按钮变得可聚焦,但在控制台中显示以下错误。)

VIDEOJS: ERROR: TypeError: Cannot read property 'getChild' of undefined at t.

(VIDEOJS:错误:TypeError:无法读取t处未定义的属性“ getChild”。)

(VM624 index.min.js:1) at HTMLButtonElement.i.dispatcher (VM624 index.min.js:1)

(HTMLButtonElement.i.dispatcher上的(VM624 index.min.js:1)(VM624 index.min.js:1))

I consoling below code, console.log(player.getChild("controlBar").getChild("ExtendedControlBar").getChild("ToggleCaption"));

(我安慰下面的代码,console.log(player.getChild(“ controlBar”)。getChild(“ ExtendedControlBar”)。getChild(“ ToggleCaption”));)

print right array but throw error.

(打印正确的数组,但抛出错误。)

  ask by bdevloper translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...