akakiz / open-video-ads

Automatically exported from code.google.com/p/open-video-ads
0 stars 0 forks source link

autoPlay not working #133

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
"autoPlay" is not working correctly when Flowplayer playlists used.

The following config fails:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        <title>Open-Ads Test - Pre-Roll autoPlay:false</title>
    </head>
    <body>

<h3>Open-Ads Pre-Roll Test</h3>
This video shows a pre-roll ad with autoPlay set to "false"

<!--Begin FlowPlayer-->
<script type="text/javascript" 
src="http://themes.phpmotionwiz.com/player/flowplayer-
3.1.4.min.js"></script>
<a id="indexplayer" style="display:block;width:640px;height:370px;"></a>
        <script type="text/javascript">
            $f("indexplayer", {src:"http://themes.phpmotionwiz.com/player/flowplayer-
3.1.4.swf", wmode:'opaque'}, { 

                playlist: [
                { 
                    url: 
"http://themes.phpmotionwiz.com/uploads/player_thumbs/OVitzbrcrDvYYLBGmVVv.jpg",
                    scaling: 'scale'
                    }],

                plugins: { 
                        pseudo: { url: 
"http://themes.phpmotionwiz.com/player/flowplayer.pseudostreaming-3.1.3.swf" },
                        pseudoInstream: { url: 
"http://themes.phpmotionwiz.com/player/flowplayer.pseudostreaming-3.1.3.swf" },

                       openAdStreamer: {
                                "url": "/fp-http/OpenAdStreamer.swf",
//                                url: 
'http://themes.phpmotionwiz.com/player/OpenAdStreamer.swf',

                                  "autoPlay": false,

                                  "providers": {
                                    "http": "pseudo"
                                  },
            "debug": {
              "levels": "fatal, vast_template",
              "debugger": "firebug"
            },

                                  "shows": {
                                    "baseURL": 
"http://themes.phpmotionwiz.com/player/xmoov-flowplayer.php",
                                    "streams": [{
                                        "file": "OVitzbrcrDvYYLBGmVVv.flv",
                                        "duration": "00:01:00"
                                    }]
                                  },

                                  "ads": {
                                    "servers": [{
                                        "type": "OpenX",
                                        "apiAddress": 
"http://ads.sandtservices.net/www/delivery/fc.php"
                                    }],

                                    "disableControls": true,
                                    "allowRepetition": true,                                    

                                    "schedule": [
                                       {
                                        "zone": "18",
                                        "position": "pre-roll",
                                        "playOnce": true
                                       }
                                    ]
                                  }
                       },
                        controls: { url: 
"http://themes.phpmotionwiz.com/player/flowplayer.controls-3.1.4.swf",
                             // display properties such as sice, location and opacity
                                bottom: 0,
                                opacity: 0.95,
                                height: 24,
                                autoHide: 'always',
                             // styling properties
                                   backgroundColor: "#cccccc",
                                   timeBgColor: "#555555",
                                   timeColor: "#36baef",
                                   durationColor: "#ffffff",
                                   progressColor: "#0368A0",
                                   bufferColor: "#999999",
                                   buttonColor: "#0368A0",
                                   buttonOverColor: "#36baef",
                                   sliderColor: "#000000",
                                   volumeSliderColor: "#000000",
                                   tooltipColor: "#0368A0",
                                   tooltipTextColor: "#ffffff",
                                   borderRadius: "0px",

                            // controlbar specific settings
                               all: false,
                               play: true,
                               pause: true,
                               scrubber: true,
                               time: true,
                               volume: true,
                               mute:true,
                               fullscreen: false,
                            // tooltips
                               tooltips: {
                                buttons: true,
                                fullscreen: "Enter fullscreen mode"
                               }

                              } 
                } 
            });</script><!--End of FlowPlayer-->

    <p>Everything works fine until the pre-roll ad finishes. At that point you have to click the 
play button again to begin playback of the video.<br>
       You should only have to click Play once.</p>

    </body>
</html>

Original issue reported on code.google.com by paul.sch...@gmail.com on 15 Nov 2009 at 9:13

GoogleCodeExporter commented 9 years ago
Fixed with the new changes to the way Flowplayer playlists are loaded.

Original comment by paul.sch...@gmail.com on 10 Dec 2009 at 10:06