scvinodkumar Posted March 2, 2009 Share Posted March 2, 2009 hi there, i have video site and i embeded the code in one of another site. and i also embed video from youtube and from other video sites. everything is working fine. if you click the youtube video for the first time it will start play and if you click the video again it will be redirected to youtube. how to do like that for my video site that i embeded code? Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/ Share on other sites More sharing options...
WolfRage Posted March 2, 2009 Share Posted March 2, 2009 Can you give an example page? Sounds like flash! Flash uses Action Script and can do all sorts of user interaction. That is what it was built for, doubtful it is any sort of direct PHP code. Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-774520 Share on other sites More sharing options...
scvinodkumar Posted March 2, 2009 Author Share Posted March 2, 2009 you can check here http://greenyogi.net/aes/Match/sociale/scvinobaby i have added my site videos as well as other site videos Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-774524 Share on other sites More sharing options...
WolfRage Posted March 3, 2009 Share Posted March 3, 2009 Sorry I did not get to check that out last night, but I will look it over tonight. I can not get to that site well I am at work. Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-775259 Share on other sites More sharing options...
WolfRage Posted March 3, 2009 Share Posted March 3, 2009 So I checked it out, this is a pure flash effect using action script. Do you want to see some action script that could simulate the effect, and do you have Flash? Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-775702 Share on other sites More sharing options...
DarkSuperHero Posted March 3, 2009 Share Posted March 3, 2009 Have you tried looking into the youtube api? Link: http://code.google.com/apis/youtube/overview.html Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-775712 Share on other sites More sharing options...
scvinodkumar Posted March 4, 2009 Author Share Posted March 4, 2009 yeah i want to see the flash effect. i have flash installed in my computer. please send Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-776081 Share on other sites More sharing options...
WolfRage Posted March 4, 2009 Share Posted March 4, 2009 Create a transparent button over the movie in this case. Then to that button add the AS2 code of: on(release) { getURL('www.example.com'); } This will take the user to the destination site. You could also make it smart and have it weight for two clicks. Just add a counter and if that counter reaches two then take the user to the link. Link to comment https://forums.phpfreaks.com/topic/147544-linking-video-just-like-youtube/#findComment-776247 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.