Live Data Feeds

  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Joined: Mar 12, 2008
  • Posts: 58
  • Loc: South Australia
  • Status: Offline

Post May 30th, 2009, 1:01 am

Hi all,
Was just wondering if anyone knows much about how live data and transmission works.

By this i mean within a browser. When i think of this sort of thing i think of the use of AJAX methods, but for a browser to run AJAX code so often does not seem feasible.

Can anyone delve into the mechanics of this for me, or point me in the right direction?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 30th, 2009, 1:01 am

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 30th, 2009, 9:40 am

What type of source are you using for video? Do you intend to stream something like a live feed from a camera equipped with firewire or what?

EDIT: Few more questions...what's the server OS? Are you on your own dedicated machine?
I'd love to change the world, but they won't give me the source code.
  • ben_sigma
  • Beginner
  • Beginner
  • User avatar
  • Joined: Mar 12, 2008
  • Posts: 58
  • Loc: South Australia
  • Status: Offline

Post May 30th, 2009, 11:10 pm

No not any form of media...maybe i explained very wrong.

What i mean is data in the form of say an instant chat for example.

When person 1 (Jenny) starts typing the person 2's(jake) IM client says
"jenny is typing a message..."

For this to happen within a web page chat rather than a IM client Jakes page would have to constantly be checking for updates to the database would it not??

If so for things to happen almost seamlessly jakes browser would be running an awful lot of querries.

Is there a way that the database can push data through to jakes page when requested to by jennys page?

I hope this made sense. It did to me. :-\
  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Joined: Jul 25, 2005
  • Posts: 2735
  • Loc: Nashville, TN
  • Status: Offline

Post May 31st, 2009, 7:16 am

Ooh, my bad here. I was assuming video. Sorry.

In a nutshell, you wouldn't have to communicate the message from one user to the other directly. The 'typing' user would just have to notify the server and the other users would receive the message from polling the server.

Work up a few google searches surrounding the Comet methodology. It's spawned off a couple of solutions like cometd and Orbited (cool demo) that are worthy of a look.

If you're into something more hands-on, then start off by googling something like 'PHP Ajax polling' (of course, substitute the language of your choice in for PHP). You may have to filter out results dealing with polls. You can try adding the -poll switch to your query and see what that does for you as well.
I'd love to change the world, but they won't give me the source code.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 164 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.