1 Reply Latest reply on May 3, 2011 1:23 AM by Gheorghe Blanariu

    using AppMeasurement with osmf

    gpleone70

      hi everybody,

       

      i'm working on a AS3 project including video reproduction managed with OSMF 1.5.

      Now i must implement analytics using AppMeasurement.swc.

      How use AppMeasurement to track data from my video?

       

      thanks all

       

      gpleone

        • 1. Re: using AppMeasurement with osmf
          Gheorghe Blanariu Adobe Employee

          Hi,

           

          You can dinamicly load the plugin. Here is a code snippet.

           

          var mediaFactory:MediaFactory = new MediaFactory();

          mediaFactory.addEventListener(MediaFactoryEvent.PLUGIN_LOAD, onPluginLoaded);

          mediaFactory.loadPlugin(new URLResource("http://yourServer.com/appMeasurement.swf?s.configURL=http%3A%2F%2Fwww.corp1.com%2Fasconfig .xml"));

           

          private function onPluginLoaded(event:MediaFactoryEvent):void

          {

          mediaElement = mediaFactory.createMediaElement(new URLResource("yourAsset");

          }

           

           

           

           

          The config file should look like this:

           

          <config>

               <account>jdoe</account>

               <debugTracking>true</debugTracking>

                <trackLocal>true</trackLocal>

                <account>jdoe</account>

               <visitorNamespace>corp1</visitorNamespace>

               <trackingServer>corp1.d1.sc.omtrdc.net</trackingServer>

               <pageName>OSMF Player</pageName>

               <Media>

                    <trackWhilePlaying>true</trackWhilePlaying>

                    <trackSeconds>15</trackSeconds>

                    <autoTrack>true</autoTrack>

                </Media>

          </config>

          
          
          
          

          For more info you should see the Omniture documentation.

           

           

          Hope this helps,

           

          Gelu