There are basically only 3 places I'll link videos from. YouTube, Google Video, and eventually some .swf files of my own.
Sample codes:
YouTube
Code: Select all
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/dnfUlIXiSuQ"></param><embed src="http://www.youtube.com/v/dnfUlIXiSuQ" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
Google Video:
Code: Select all
<embed style="width:400px; height:326px;" id="VideoPlayback" align="middle" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?videoUrl=http%3A%2F%2
Fvp.video.google.com%2Fvideodownload%3Fversion%3D0%26secureu
rl%3DkwAAAOzmuT1Qofk3r1RXwlIG_LOpOwLO-ttnDp5bqnTtfYN-Os4L
7uFMimgba_IieQXHThi0UYS9EvJckwN-lXNQK1wbsrslqPj1bMSi6xlYrTpF5
x7ZgmEn5I2jLeYcDz0Xix4JelHrlDoZgD1tDfX7NTGsewmAeIJ1foA64II1_
93d49ESWC9_5xwRwDnum4HtoaOotAnHwuuaeDTl5qmPsc8%26sigh%3
DAKkhOEC8xZ_0lGiCB6FUGo0zS8I%26begin%3D0%26len%3D137932
%26docid%3D-82974780013461890&thumbnailUrl=http%3A%2F%2Fvi
deo.google.com%2FThumbnailServer%3Fcontentid%3D76f8a15dee194
dac%26second%3D5%26itag%3Dw320%26urlcreated%3D1143846704
%26sigh%3DtENKasd3JxSZDHR_UXDnFsXKesg&playerId=-8297478001
3461890" allowScriptAccess="sameDomain" quality="best" bgcolor="#ffffff" scale="noScale" wmode="window" salign="TL" FlashVars="playerMode=embedded"> </embed>
(I added line breaks so it would stay in the frame.)
I think maybe the easiest way to do what I'd like it to do is a variable-based substitution. In the php page it would have something like [videohere] in the box the video goes in, and in another part it sets [videohere] as a variable (with the information pulled from a comma delimited text file or something. Maybe a database?)
I think the scrolling list could go in a seperate HTML page in an iFrame (in the space I mentioned earlier), and the links would be something like mysite.not/media/player.php?id=1, mysite.not/media/player.php?id=42, etc... The movie played depends on the ID number.
The video embed code, ID numbers, and comments could probably be all stored in a database.
I think a variable system woudl work well for this because it will work for Windows Media, RealPlayer, Flash, and other streaming formats.
Only 2 problems:
1. I don't know if such a system is possible with PHP (it probably can be done, though.)
2. I don't know how to code it.
Think this will work?