Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 无法全屏播放视频_Reactjs_Video_Embed - Fatal编程技术网

Reactjs 无法全屏播放视频

Reactjs 无法全屏播放视频,reactjs,video,embed,Reactjs,Video,Embed,我的代码: <embed style={{ width: '600px', height: '380px' }} wmode="transparent" allowFullScreen='true' src={this.state.play ? vSrc : ''} type="application/x-shockwave-flash"/> React代码使用标记播放视频。视频可以播放,但不能全屏显示。 如何解决此问题?

我的代码:

<embed style={{ width: '600px', height: '380px' }}
       wmode="transparent"
       allowFullScreen='true'
       src={this.state.play ? vSrc : ''}
       type="application/x-shockwave-flash"/>

React代码使用
标记播放视频。视频可以播放,但不能全屏显示。
如何解决此问题?

ps:我试过了,发现bug是attribute
allowfullscreen
novalue。当React呈现DOM时,
allowfullscreen
的值被忽略。我无法在render()DOM中设置它。

我找到了解决问题的方法。--我找到了解决问题的方法。--