Wow Kev!! You dirty, nasty hacker you! :lol: That looks great.
I'm sure that anyone getting into this thread probably has enough experience to get their hands a little dirty, digging in the database etc. I'm going to give this a try.
By the way, I noticed that the glitch you referred to with the pre-roll & post roll getting swapped, doesn't seem to have anything to do with starting/stopping the video during pre-roll. It looks like it is automatically rotating the ad to pre-roll and post roll each time you play it. When I got to the page initially, the ad was in post roll position, when I refreshed the page, it was still in post roll. When I played the clip again, it switched to pre-roll and every time I restarted the clip, it switched. But it seems to default to post roll on initial play.
This is really great Kev, thanks a bunch! :D
Now I'm sure that admin should be able to add a section to the "Edit Video" page in the admin panel where we can: [*]upload the flv ads into the flvideo folder (or alternatively select a clip that has already been uploaded and converted to flv - I think this would probably be a more sensible/practical option, since the video will already have received a title and description on upload)[*]Assign the flv ad/commercial to the video clip either as pre/post roll - Hit Submit and Presto! The script should then add the relevant info to the database and generate an updated XML playlist on completion.
This way each and every video can be assigned a separate ad/commercial. I guess some folks might want to be able to assign a single ad to all videos which would require another setting option, and others might want to "bulk assign" an ad/commercial to a bunch of other videos by checkbox (probably a bit more intensive to code, but would take things to a whole new level).
What do you say admin? Surely this can't be that hard to integrate into the next upgrade.




Reply With Quote
Bookmarks