Firefox, Chrome, Safari have grey background for MP4 HTML5 video

前端 未结 3 1023
北海茫月
北海茫月 2021-01-02 03:51

Any video (that I can make) with a white background becomes grey in Firefox, Chrome, and Safari (it is white in IE). Well, on my Windows machine it is grey, on my Android ph

3条回答
  •  温柔的废话
    2021-01-02 04:03

    After a long search and tests here is a working solution

    Solution :

    CSS

    .brightness{
        filter: url("data:image/svg+xml;utf8,#brightness"); /* Firefox 3.5+ */
        -webkit-filter:brightness(108.5%); /* Chrome 19+ & Safari 6+ */
    }
    

    HTML

    https://jsfiddle.net/27L5nvg4/1/


    Solution Demonstration

    .brightness{
        filter: url("data:image/svg+xml;utf8,#brightness"); /* Firefox 3.5+ */
        -webkit-filter:brightness(108.5%); /* Chrome 19+ & Safari 6+ */
    }


    Problem Demonstration


    Alternative Workarounds :

    Try using an other html video player http://html5video.org/wiki/HTML5_Video_Player_Comparison

    You can change you page background to gray for firefox etc. to match your video

    Also if it's just the women talking you can use gif animation with audio

    Capture Firefox :

    http://i.stack.imgur.com/tWWqm.jpg

提交回复
热议问题