Author Topic: MOD: Embedded Videos Counting  (Read 5686 times)

LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
MOD: Embedded Videos Counting
« on: August 20, 2008, 08:37:15 PM »
A problem I've been having was people who embedded my videos.. phpmotion would have no idea when they where being played so it couldn't count them (and not increase the played count)

I looked into this and have solved it (full source will be available in a few days when I have cleaned up the php etc)

The Basic Idea is:

when embedding the file use the config option of flvplayer to give it all its options so flvplayer.swf with flashvars of "config=http://sitename.com/flvconfig.php?id=XX". This also makes the embedded code ALOT smaller

flvconfig.php is a php program which dynamiclly makes up the config files up depending on the id (and a few other options you can specify like the version or flvplayer and if you have bought a commercial licence of not)

It uses an option with flvplayer to do a callback so when the person presses play, another php script it called recorder.php

recorder.php gets its posted values and updates the database to increase the play count by 1

If anyone wants anything addtional please let me know and I'll add it in before I release it. (Free)


sbcjr

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 6209
  • I ♥ PHPmotion
    • PHPmotion Mods
Re: MOD: Embedded Videos Counting
« Reply #1 on: August 21, 2008, 05:29:12 AM »
Wow... looking good- I had been wanting to do this... thanks!

bootmaker

  • Guest
Re: MOD: Embedded Videos Counting
« Reply #2 on: August 21, 2008, 07:38:25 AM »
Good idea!

Will this work with the jw 4 player?


LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #3 on: August 21, 2008, 10:53:20 AM »
It should but its the last thing I have to test at the moment. with JW4 they changed a few thing around

LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #4 on: August 21, 2008, 12:46:31 PM »
Very nice idea for a mod, and I am interested in it when its done!

Would it be possible to have a seperate count for embedded videos?  Since an embedded video being played does not display any advertising for the site, it might be nice to know how many of the video plays are onsite and how many are off.


-Abram

Thanks.. I'll look into it...

jynx

  • V3 Beta Tester
  • Full Member
  • *
  • Posts: 274
    • BeFeatured
Re: MOD: Embedded Videos Counting
« Reply #5 on: August 24, 2008, 07:04:35 AM »
sounds good!  cant wait to use it

anointed

  • Jr. Member
  • **
  • Posts: 135
Re: MOD: Embedded Videos Counting
« Reply #6 on: August 24, 2008, 03:17:21 PM »
Add me to the list as well.
Would love to see this addon.

theebanr

  • Newbie
  • *
  • Posts: 77
    • Vakthaa.tv
Re: MOD: Embedded Videos Counting
« Reply #7 on: August 28, 2008, 01:23:57 AM »
Hey,

I have been waiting for this mod.. when is it coming???

LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #8 on: August 28, 2008, 01:48:30 AM »
Hey,

I have been waiting for this mod.. when is it coming???

Soon.. I have been working on the RSS Generator and the Video SItemap Generator and a MediaRSS Generator (yes there is another one coming (as Yahoo video want it in MediaRSS Format)
Might have the video counting files this weekend for everyone.

Thanks

theebanr

  • Newbie
  • *
  • Posts: 77
    • Vakthaa.tv
Re: MOD: Embedded Videos Counting
« Reply #9 on: September 05, 2008, 01:06:18 AM »
hi...

Still waiting.. any idea for the release???

LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #10 on: September 05, 2008, 01:47:27 AM »
hi...

Still waiting.. any idea for the release???

I got a problem with JW player V4.X with counting as you have to do it with javascript now :-( which makes the embedding interesting. MIght ignore that part at the moment and release it soon..

selecta

  • Jr. Member
  • **
  • Posts: 102
Re: MOD: Embedded Videos Counting
« Reply #11 on: September 05, 2008, 09:16:10 AM »
<object><embed src="http://www.bajantube.com/flvplayer.swf" quality="high" width="450" height="367" name="VideoPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" FlashVars="file=http://www.bajantube.com/uploads/t2ZDpMhszBrgRLcwlepG.flv&autostart=false&showfsbutton=false&logo=http://www.bajantube.com/image_s/playerlogo.png&link=http://www.bajantube.com/play.php?vid=1258&linktarget=_blank&backcolor=0xFFFFFF&stretching=fill&skin=http://www.bajantube.com/snel.swf&image=http://www.bajantube.com/uploads/thumbs/t2ZDpMhszBrgRLcwlepG.jpg"></embed></object>

this embed code works for me on ver 4, i dont think i use javascript


LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #12 on: September 05, 2008, 01:34:30 PM »
but you don't know if someone has actually played it.. you only know if someone has embedded it into their website......

locau

  • V3 Beta Tester
  • Full Member
  • *
  • Posts: 216
Re: MOD: Embedded Videos Counting
« Reply #13 on: September 06, 2008, 12:20:19 PM »
Is it possible to detect where from are they being embedded ? Wich sites has what ?

Thanks again for all your hard work!!!

LennonNZ

  • Hero Member
  • *****
  • Posts: 972
    • Bcast New Zealand
Re: MOD: Embedded Videos Counting
« Reply #14 on: September 07, 2008, 02:01:49 AM »
I have worked out how the V4.X can be done with the counting.. but the problem is making the embedding code working correctly.. alot of sites don't allow <script ...>.. Still working on it..

At the moment.. it just increases the count of the video so no way to know if its from being from another website or from the website itself..

Good idea.. thanks