Indigo Rose Software
  #1  
Old 09-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Sick of the Tick

Alright, I'm a little out of my element here. I have a couple Flash SWFs that are streamed from a server. I need to be able to tell how long someone has watched these videos. I've been doing a whole lot of math within SwishMax to get as close as I can, but it's a daunting task as there are a lot of variables when it comes to the HTTP protocol.

Anyhow, SwishVideo 2 was realeased recently, and it allows you to set events along the timeline of your movie. What I've done now, is used SwishVideo to create my SWF with an event that fires every 10 seconds. Inside SwishMax, I can detect the event, and fire an function accordingly.

What I currently have in place is a framed html page with a 1 pixel header and then the main frame that has my embedded SWF. When the event fires, I navigate my "hidden" header frame to an ASP page that rights the UserID, Movie, and the current events time to a database. So far, I'm very pleased with the results. I can tell (within10 seconds) how long someone has watched the video.

Here's the downer. Everytime the header frame navigates, IE makes that wonderful "TICK" sound. Anyone have any ideas on how to get around this? This is not a local thing, so registry manipulation is out. Maybe doing the navigation inside a DIV instead? Do all current browsers support DIV? This is where I'm out of my element, so anyone with any ideas... please post.
Reply With Quote
  #2  
Old 09-29-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
As far as I know you can't, I might be wrong.
Reply With Quote
  #3  
Old 09-29-2005
rhosk's Avatar
rhosk rhosk is offline
Indigo Rose Customer
 
Join Date: Aug 2003
Location: Maine, USA
Posts: 1,692
Well, as you assumed, you can't get around the "tick" sound. This is a (local) system setting.

Now when Flash fires a url, there's no sound. I'm not familiar with [Swish]. If it supports MovieClips(MC), you could have an embedded MC to do this navigation for you - and this would, in turn, lose the header frame. Not quite sure what/how you want, to accomplish this without seeing exactly what you're doing <sneering grin>.
__________________
Regards,

-Ron

Music | Video | Pictures
Reply With Quote
  #4  
Old 09-29-2005
yosik's Avatar
yosik yosik is offline
Indigo Rose Customer
 
Join Date: Jun 2002
Location: Israel
Posts: 1,863
Loading in DIV will get rid of the sound. Most modern browsers support \=DIV.
You could also load the necessary page using a Java script (this will occur hidden from view), assuming the the Jave Engine is installed.

Yossi
Reply With Quote
  #5  
Old 09-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Thanks for the replies.

I'd read that loading in a DIV would help my situation. Maybe I'll give it a whirl and see where it takes me.
Reply With Quote
  #6  
Old 09-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Hmmmm... This performs the needed function without a tick...
Anyone see any issues. It seems odd that you can execute an ASP script by setting it as the image source, but it works...

Code:
<img src="" height=0 width=0 border=0 name="myimage">

function LogIt(event)
{
   document.myimage.src = "http://www.thedomaon.com/rcigrvidmail/LogIt.asp?ID=user@anotherdomain.com&time=" + event;
}
Reply With Quote
  #7  
Old 09-29-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
FWIW Javascript is separate from the Java engine, you don't need to have any Java installed to run javascripts.
Reply With Quote
  #8  
Old 09-29-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
I thought it may be client side.. check: (Win XP)

1. Control Panel
2. Sounds and Audio Devices
3. Sounds (tab)
4. Find subheading Windows Explorer
5. Last one Start Navigation (delete the file path and click Apply then ok).

Did that work?
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #9  
Old 09-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
That'd probably work I-man, but this will need to be applied from an web server delivered page. I don't think I'm going to get that kind of access to a client machine

I think the img src solution is going to be my ticket, but I need to do some more testing.

Thanks everyone, it's so cool have this many brains working for a common cause, especially when it's mine
Reply With Quote
  #10  
Old 09-29-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
FWIW As far as I know when the "pros" do this, such as online advertisers and ad researchers, it's all based on logs. You have a separate page/file for each Flash movie and then they simply write a back end script which abstracts your web logs to see how long each user spent on each movie/page, how many visits or "restarts" to each movie, etc. It's easy to bind a user name to an IP when the page loads so that your back end script shows you either or both, you can sort the data in various meaningful ways, chart it over time, etc. FWIW I don't think it's particularly difficult to script up a back end like that in PHP/ASP, or even in AMS for that matter since the log analysis can be offline, local, whatever...

It's also nice because even if the Flash has been cached on their end, as long as they are on your Flash page, the logs show the connect/disconnect times. So that's a zero server load method. Or at least that's my understanding of it, but then again I'm hardly a toothpick chewing big city loggist with a gleaming belt buckle and leopard skin cadillac, so who knows...

It's a much superior solution in terms of server load, and I think that's why a lot of people go that route in terms of compiling usage statistics, i.e. it's a legacy from the days when you really had to keep your scripts clean to avoid loading the server. If you have 20 people viewing a flash movie which writes to a database every 10 seconds, you get 120 hits per minute, no big deal. But if you have 2,000 people viewing that Flash (not really that many actually) you would be generating 12,000 hits per minute which is a whole different show, especially for shared hosting accounts. The problem with putting up a script like that, unless you know 100% for sure you won't have more than "x" amount of users online at any given time, is that it's a potential hotspot. And you know what that means, right? HOTSPOT ARRIBA!!! EVERYBODY MAMBO!!! Do-dee-dee da doo-da dee-dee da!
Reply With Quote
  #11  
Old 09-29-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Nice insight Corey. In this case though, were talking a relatively low hit count so it shouldn't be a big deal either way.
Reply With Quote
  #12  
Old 09-30-2005
Corey's Avatar
Corey Corey is offline
Registered User
 
Join Date: Aug 2002
Posts: 9,746
OK. I don't mean to nitpick but did you remember to mambo?
Reply With Quote
  #13  
Old 09-30-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
A little bit a .... in my life, it's the mambo number 5.

Quote:
Originally Posted by Corey
OK. I don't mean to nitpick but did you remember to mambo?
Reply With Quote
  #14  
Old 10-03-2005
Intrigued's Avatar
Intrigued Intrigued is offline
Indigo Rose Customer
 
Join Date: Dec 2003
Location: Location! Location!
Posts: 6,058
Okay, how about muting the volume on the system?

:-D
__________________
Intrigued
www.amsuser.com
Reply With Quote
  #15  
Old 10-03-2005
Worm Worm is offline
Indigo Rose Customer
 
Join Date: Jul 2002
Location: USA
Posts: 3,937
Again, it's kinda a hard thing to do from a web browser. If it was inside AMS, no biggie.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 07:49 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software