简体   繁体   English

视频在 html 中没有音频(但没有静音)播放

[英]Video is playing without audio (but not muted) in html

I have the video tag as follows,我的视频标签如下,

 <div class="feature-image">
     <video width="550" height="300" controls>
           <source src="/static/resources/vid/my_video.mp4" type="video/mp4">
           <source src="/static/resources/vid/my_video.ogg" type="video/ogg">
                        {{'LBL_VIDEO_ERROR_MESSAGE' | translate }}
     </video>
  </div>

在此处输入图片说明 This is working fine in local but not in my test server.Do I need to do any thing in specific.这在本地运行良好,但在我的测试服务器中运行良好。我需要做任何特定的事情吗?

Try to set [muted] property to false value:尝试将[muted]属性设置为false值:

<video  [muted]="false">
    <source src="/static/resources/vid/my_video.mp4" type="video/mp4">
    <source src="/static/resources/vid/my_video.ogg" type="video/ogg">
                    {{'LBL_VIDEO_ERROR_MESSAGE' | translate }}
</video>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM