Skip to main content
Participating Frequently
February 1, 2007
Question

Inserting a Flash Video player

  • February 1, 2007
  • 3 replies
  • 340 views
Please help. I am trying to create a web page with a number of links to video clips. I have converted them all to FLV and wish to use the flash player to play them. My problem is that I do not want 10 players on the page, but I want the user to click on a link and then a player will open and play the video. Is this possible?
Thanks
This topic has been closed for replies.

3 replies

RGolfer
Inspiring
May 9, 2007
Hi John Doe

I have been trying to get a video to work from a database as well with no luck. Getting frustrated. I have tested to see that the database is working and all is fine but when I go to teh page using the "Go To Detail" page I get a blank white box. Can you give me a hane here? Here is the code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32" title="Toyo Tire Video CHannel">
<param name="movie" value="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" />
<param name="quality" value="high" />
<embed src="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed>
</object>

Just to add to this I got an answer which is posted to the bottom of another thread. (conversation with another forum user) Here's how it worked out for me:

Just figuered it out thanks to Paul. I knew it would be something simple. I don’t understand it of course but I made a separate column in the database this time with the file name less the .swf extension. When DW loads the player for some reason it removes the extension in the following lines when you place a video directly into the page. i.e. 'movie','/Video/VideoSpots/VerEN_East' as apposed to 'movie','/Video/VideoSpots/VerEN_East.swf' which is what my database was inserting.

Here are the changes I made:

NEW CODE

AC_FL_RunContent( 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','325','height','260','title','Toyo Video Channel','src','<%=(VideoPlaying.Fields.Item("mv_link2").Value)%>','quality','high','pluginspage',' http://www.macromedia.com/go/getflashplayer','movie','<%=(VideoPlaying.Fields.Item("mv_link2").Value)%>' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="325" height="260" title="Toyo Video Channel">

<param name="movie" value="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" />

<param name="quality" value="high" />

<embed src="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" width="325" height="260" autostart="false" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

</object>

</noscript>



OLD CODE

AC_FL_RunContent( 'codebase',' http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','325','height','260','title','Toyo Video Channel','src','<%=(VideoPlaying.Fields.Item("mv_link").Value)%>','quality','high','pluginspage',' http://www.macromedia.com/go/getflashplayer','movie','<%=(VideoPlaying.Fields.Item("mv_link").Value)%>' ); //end AC code

</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="325" height="260" title="Toyo Video Channel">

<param name="movie" value="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" />

<param name="quality" value="high" />

<embed src="<%=(VideoPlaying.Fields.Item("mv_link").Value)%>" width="325" height="260" autostart="false" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

</object>

</noscript>



I probably could probably just use one database field and just ad the .swf extension where needed eg <%=(VideoPlaying.Fields.Item("mv_link").Value)%>.swf but what the heck!

Not sure if there is a better way of doing this but this seems to work. If you have a simpler way of doing it please let me know.

Inspiring
February 2, 2007
insert the Flash movie in a dynamic page (PHP, ASP, ...) and pass the
video file name when calling the page. then you can pass the file name
using FlashVars to the player


LexFaure wrote:
> Please help. I am trying to create a web page with a number of links to video
> clips. I have converted them all to FLV and wish to use the flash player to
> play them. My problem is that I do not want 10 players on the page, but I want
> the user to click on a link and then a player will open and play the video. Is
> this possible?
> Thanks
>
Inspiring
February 1, 2007
Yes. Create each Flash file in its own page, and have one other page which
links to all the pages. The user can navigate using their browser.

HTH,

Piers