Skip navigation
Lunner1983
Currently Being Moderated

A question about measuring video consumption in flash

Aug 16, 2012 4:37 AM

Hi all, a problem puzzled with me, that is whether the measurement swf could capture netstream info from the playback swf in the html page not in the AS environment, such as:

  

<script type="text/javascript">

             var swfVersionStr = "11.2.0";

             var params = {};

             params.name = "BASE";

             params.allowscriptaccess = "always";

             var attributes = {};

             attributes.id = "loadMonitor";

             attributes.name = "loadMonitor";

             swfobject.embedSWF(

                 "loadMonitor.swf", "flashMonitor",

                 "0%", "0%", swfVersionStr);

         </script>

         <div id="flashMonitor">if no Monitor display here</div>

       

         <script type="text/javascript">

             // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.

             var swfVersionStr = "11.2.0";

             // To use express install, set to playerProductInstall.swf, otherwise the empty string.

             var xiSwfUrlStr = "playerProductInstall.swf";

             var flashvars = {};

             var params = {};

             params.name = "BASE";

             params.quality = "high";

             params.bgcolor = "#ffffff";

             params.allowscriptaccess = "always";

             params.allowfullscreen = "true";

             var attributes = {};

             attributes.id = "loadPlayer";

             attributes.name = "loadPlayer";

             attributes.align = "middle";

             swfobject.embedSWF(

                 "loadPlayer.swf", "flashContent",

                 "100%", "100%",

                 swfVersionStr, xiSwfUrlStr,

                 flashvars, params, attributes);

             // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.

             swfobject.createCSS("#flashContent", "display:block;text-align:left;");

         </script>

  

In the example, loadMonitor.swf executes measurement function, and loadPlayer.swf executes playback function. But I found measurement cannt capture any netstream info.

The articlesaid they should belong to the same security context, but I cannt find more info about the description, could you help me? Thanks a lot.

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points