Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个视频元素,它要么通过流显示视频和音频,要么只显示音频。如果它只输出音频,我需要显示一个临时图像。视频元素的“海报”属性是否有效?还是仅在视频开始播放之前显示?
有没有办法检测视频元素是否只输出音频?
几个建议:
getVideoTracks()
videoHeight