Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Passing data into your stats

1 reply [Last post]
Reply

Hi,

I have successfully setup and integrated video using secure signing, coded .NET C# (i can share code if anyone wants it?)

This is great, but i need to track who views each video (registered members) so i need to pass a memberID variable when calling the player that is stored with the log and can then be either recalled when parsing the stats as xml, or seen in the stats on BOTR admin.

I have written my own logging system which tracks views by members etc. but this can only be based on page views and media downlaods, not actual plays due to the player embedding.

any thoughts as how to achieve this would be most appreciated!

this is pivotal to using the system. Great stuff so far, apart from the lack of .net support. Thanks,

Howard

Reply

It isn't possible to store views per viewer into our analytics, there simply isn't anything in our datamodel to accomodate this.

If your main concern is tracking videos *views* and already have your own logging back-end it is probably best to use the API of our player.

The player API documentation can be found here: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12540/javascript-api-reference

As the setting up for the player is already done, all you need to do is something along the lines of:

<script type='text/javascript'>
jwplayer('player').onPlay(function() { alert('Player is playing'); });
</script>

Here you can change the alert by some sort of function that would send a play event with the right parameters to your logging system. You could also use events like onComplete to log events that finish etc.

The player API will of course only be available if you use the javascript embed method.

Post new comment

  • Allowed HTML tags: <code> <blockquote> <em> <strong> <strike> <ul> <li> <ol>
  • You may post code using <code>...</code> .
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options