Expand my Community achievements bar.

SOLVED

Flash implementation reference?

Avatar

Level 1

Hi 

I am reading the "instructions to measure video that are displayed in the Flash Player." on http://microsite.omniture.com/t2/help/en_US/sc/appmeasurement/video/index.html#Flash_Video_Playback but this is chaotic and seems incomplete. For example the ActionScript Sample Code page uses parameters like:

    s.charSet = "UTF-8";
    s.currencyCode = "USD";

    s.trackClickMap = true;

that are not defined anywhere.The currencyCode is not even public property of the AppMeasurement class.

 

Is there any complete Flash implementation reference?

 

Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi Arun, milestones are sent automatically based on the video length, so they should be sent in without any action on your part. It might be easiest to take a look at the code and server calls from this example player to make sure you are configured correctly: http://microsite.omniture.com/t2/help/en_US/beta/code/video/milestone/ 

You could copy the code from the Media.monitor and then use breakpoints to make sure each milestone is reached:

s.Media.monitor = function (s,media){ if (media.event == "MILESTONE") { if (media.milestone == 25) {

View solution in original post

5 Replies

Avatar

Employee

Hi Daniel,

I tested the Flash video instructions you linked and found some issues, so we've made several updates. Would you mind taking another look at those instructions to see if it fixes your issue?

Also, the Flash implementation reference is available at http://microsite.omniture.com/t2/help/en_US/sc/appmeasurement/flash/oms_sc_appmeasure_flash.pdf

Thanks,

Jacob

Avatar

Level 1

Jacob Hammons wrote...

Hi Daniel,

I tested the Flash video instructions you linked and found some issues, so we've made several updates. Would you mind taking another look at those instructions to see if it fixes your issue?

Also, the Flash implementation reference is available at http://microsite.omniture.com/t2/help/en_US/sc/appmeasurement/flash/oms_sc_appmeasure_flash.pdf

Thanks,

Jacob

 

Hi,

I am trying to integrate AppMeasurement library in our project but above mentioned documentation is not very clear as mentioned and we are having difficulties. Can someone answer me following questions-

  1. how to destroy/dispose the appmeasure class in case of auto track.
  2. How to rename the player name and stream name in case of auto track.

Also in another post https://developer.omniture.com/en_US/forum/general-topic-forum/more-control-on-autotracknetstreams someone has asked a question which is my concern as well. Can someone answer this ASAP.

Avatar

Employee

Hi Arun, you won't be able to control the stream name or player name directly from your player if you use autotrack, though you can upload classifications to replace the automatic values.

However, if your player has well documented event handlers (as does netstream), manual tracking is straightforward and I think you'll like it better in the long term. Here is a general idea of what you'd do (I haven't implemented netstream):

1. Add an event stream monitor, here is an example: http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac-1201e73713000d1f624-8000.html

2. Using player events, call Media.open, Media.play, Media.stop, and Media.close at the appropriate times. For example, subscribe to NetStream.Play.Start and call Media.Open, Media.Play. Subscribe to NetStream.Play.Stop and NetStream.Buffer.Empty and call Media.Stop, and so on. http://help.adobe.com/en_US/as3/dev/WS901d38e593cd1bac-3d11a09612fffaf8447-8000.html

Tracking this way provides you full control over the video name and player name, and you'll have the framework to track additional events using Media.monitor. Here is a blog post that should helphttp://blogs.adobe.com/digitalmarketing/analytics/understanding-video-measurement-implementation/

Avatar

Level 1

Hi Jacob,

Thanks for your reply. I did manual implementation and as you mentioned and written in documentation, I implemented functions open,play,stop and close at appropriate player events. Since my configuration has milestones as well, I have segmented video and called media.stop before calling media.play for new segment. My implementation is like this -

Load: 

Media.open("mediaName", mediaLength, "mediaPlayerName")
Media.play("mediaName", mediaOffset, segmentNum, "segmentName", segmentDur)

Pause:

Media.stop("mediaName", mediaOffset)

Buffer:

Media.stop("mediaName", mediaOffset)

Resume:

Media.play("mediaName", mediaOffset, segmentNum, "segmentName", segmentDur)
 

End:

Media.stop("mediaName", mediaOffset)
Media.close("mediaName");

MileStone reached -

Media.stop - for previous segment.
Media.play - for new segment.

However I can see beacons being sent at each milestone but milestone event is missing from it. for example if in config I have defined event7 for 25% milestone, event7 is missing from beacon url.. Can you help me with this. I have tried to search for any help but cannot find anything.

Avatar

Correct answer by
Employee

Hi Arun, milestones are sent automatically based on the video length, so they should be sent in without any action on your part. It might be easiest to take a look at the code and server calls from this example player to make sure you are configured correctly: http://microsite.omniture.com/t2/help/en_US/beta/code/video/milestone/ 

You could copy the code from the Media.monitor and then use breakpoints to make sure each milestone is reached:

s.Media.monitor = function (s,media){ if (media.event == "MILESTONE") { if (media.milestone == 25) {