为什么视频播放器在这里而不是那里工作

问题描述

我做了Sandbox显示问题。在沙盒中,视频播放器正在运行,但是用下面的代码替换代码无效。如果我将System.out.println("Enter an Number"); n = scanner.nextInt(); while (n != 0) { // Calling printFactors method to print all // factors of N printFactors(n); System.out.println("Enter an Number"); n = scanner.nextInt(); } 移至src={filePa..,则可以正常运行,但没有字幕dunno

我编写了这段代码,它可以正常工作:

<video..

然后我尝试此操作,但它无法正常工作,播放器不会在日志中没有警告显示任何警告:

return (
    <div className="pg-driver-view">
        <div className="video-container">
            {this.renderLoading()}
            <video
                style={{ visibility }}
                controls
                type={`video/${fileType}`}
                onCanPlay={e => this.onCanPlay(e)}
                src={filePath}
            >
                Video playback is not supported by your browser.
            </video>
            
        </div>
    </div>
);

有什么主意吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)