如何阻止我的直播视频流广告?

时间:2015-10-12 11:38:09

标签: html

我正在使用简单的嵌入代码显示实时视频流:

<div class="player_div" align="center">
            <span>
                <script type="text/javascript" src="/resources/scripts/swfobject.js"></script>
                <div id="flashcontent"><embed type="application/x-shockwave-flash" src="/resources/scripts/eplayer.swf" width="772" height="500" style="undefined" id="eplayer" name="eplayer" quality="high" allowfullscreen="true" allowscriptaccess="always" wmode="transparent" flashvars="id=8390&amp;s=star11azza&amp;g=2&amp;a=1&amp;l=&amp;ea=&amp;pk=04aeb981954f677d0740e06bfc7d9d4efd076520b5ee71106e791f45402f0791"></div>
                <script type="text/javascript">
                    var isUpdated = true;

                    function closeUpdateText(test) {
                        isUpdated = true;
                    }

                    var so = new SWFObject("/resources/scripts/eplayer.swf", "eplayer", "772", "500", "9");
                    so.addParam('allowfullscreen','true');
                    so.addParam('allowscriptaccess','always');
                    so.addParam('wmode','transparent');
                    so.addParam('FlashVars', 'id=8390&s=star11azza&g=2&a=1&l=&ea=&pk=04aeb981954f677d0740e06bfc7d9d4efd076520b5ee71106e791f45402f0791');
                    so.write("flashcontent");

                    setTimeout("showUpdateText()", 3000);

                    function showUpdateText() {
                        if (!isUpdated) {
                            document.getElementById("flashcontent").innerHTML="<strong>UPDATE: Please clear your web cache for watching videos!</strong>";
                        }
                    }
                </script>
            </span>
        </div>

一些不需要的广告将在游戏开始时显示。

enter image description here  如何在不在用户浏览器中安装广告块的情况下以编程方式阻止此广告?任何的想法?

0 个答案:

没有答案