ArdiArtani / Google-Drive-Player-Script

Grab google drive streaming links (redirector.googlevideo.com/videoplayback?..)
https://ardiartani.github.io/Google-Drive-Player-Script/
MIT License
321 stars 232 forks source link

How to add Ads to Jwplayer (Tutorial) #81

Closed ecchirealm closed 6 years ago

ecchirealm commented 6 years ago

Sign up with Exoclick (Pre Roll Ads) Use my Reffereal Link If You Guys Want! https://www.exoclick.com/signup/?login=Raween Then Go To In Stream Ads. Choose your preffered setttings and click next. Use This Code To Implement The Code into Index.php.

<div id="my-video"></div>
<script type="text/javascript">
    jwplayer("my-video").setup({
        /**** ADVERTISING SECTION STARTS HERE ****/
        advertising: {
            client: "vast",
            schedule: {
                "myAds": {
                    "offset": "pre",
                    "tag": "https://syndication.exoclick.com/splash.php?idzone=xxxxxxxx(yourid)"
                }
            }
        },
        /**** ADVERTISING SECTION ENDS HERE ****/
        file: "http://example.com/main_video.mp4",
        width: "580",
        height: "370"
    });
</script>

Only implement the "ADVERTISING SECTION STARTS HERE" into index.php, or you'll get an error, just copy paste don't worry about proper indentation. If this helped you please consider choosing my reffereal link it'll help a lot, love the script, and hope you guys keep uploading.