Skip to main content
Participant
September 13, 2006
Question

Using Flash Media player to play files run from a database

  • September 13, 2006
  • 3 replies
  • 293 views
Hello all,

I have a dynamic webpage which is connected to a MySQL database displaying dynamic information stored in a MySQL table.

One additional field I have added is a 'video' field in which the path to a flash video file is displayed.

I have a number of user (each user corresponds to a row in the table) pictures which are stored in a folder, but the paths to which are stored in the database.Using Dreamweaver, I can drag the dynamic binding onto the image place holder and then it will lift the corresponding image from the table, but the flash video player doesn't seem to allow me to do this.

I would like to do something similar for flash videos, but I'm not sure how to do it. Whenever I add a flash movie through the media player I need to specify the path - which will change depending on what entry in the table is being viewed.

I have created my websites only with dreamweaver and can't program which probably explains why I've got no idea what to do. Hope I made sense - will gladly clarify or send you my code.

Any help would be greatly appreciated.

Thanks

Adam


This topic has been closed for replies.

3 replies

Inspiring
September 15, 2006
Make sure that your database has the full path and that you are tetsing in
the browser. You won't be able to see anything in DW

--
Paul Whitham
Certified Dreamweaver MX2004 Professional
Adobe Community Expert - Dreamweaver

Valleybiz Internet Design
www.valleybiz.net

"fool" <webforumsuser@macromedia.com> wrote in message
news:eec8i6$9f3$1@forums.macromedia.com...
> Thanks - I inserted the media player which came with Dreamweaver 8 and
> the
> following code was generated:
>
> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
> codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
> rsion=8,0,0,0" width="130" height="98" id="FLVPlayer">
> <param name="movie" value="FLVPlayer_Progressive.swf" />
> <param name="salign" value="lt" />
> <param name="quality" value="high" />
> <param name="scale" value="noscale" />
> <param name="FlashVars"
> value="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi3&au
> toPlay=false&autoRewind=false" />
> <embed src="FLVPlayer_Progressive.swf"
> flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi
> 3&autoPlay=false&autoRewind=false" quality="high" scale="noscale"
> width="130"
> height="98" name="FLVPlayer" salign="LT"
> type="application/x-shockwave-flash"
> pluginspage=" http://www.macromedia.com/go/getflashplayer" />
> </object>
>
> I attempted to replace 'videos/naomi3' (the file is at video/naomi.flv)
> with
> <?php echo $row_d['video']; ?>(this is the field of the sql table in which
> the
> location to the flv file is located, but nothing happened (no video
> appeared).
>
> The mysql table is set up properly as I can view image files which are
> linked
> to by paths in the MySQL table so the problem can't be that.
>
> Thanks
>


foolAuthor
Participant
September 15, 2006


Thanks Paul!

It was a problem with the way I had set up mySQL databases. I re-tested on the browser and realised this. It now works.

Have a great weekend all!
foolAuthor
Participant
September 14, 2006
Thanks - I inserted the media player which came with Dreamweaver 8 and the following code was generated:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="130" height="98" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi3&autoPlay=false&autoRewind=false" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Corona_Skin_1&streamName=videos/naomi3&autoPlay=false&autoRewind=false" quality="high" scale="noscale" width="130" height="98" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage=" http://www.macromedia.com/go/getflashplayer" />
</object>

I attempted to replace 'videos/naomi3' (the file is at video/naomi.flv) with <?php echo $row_d['video']; ?>(this is the field of the sql table in which the location to the flv file is located, but nothing happened (no video appeared).

The mysql table is set up properly as I can view image files which are linked to by paths in the MySQL table so the problem can't be that.

Thanks
Inspiring
September 14, 2006
fool wrote:
> Hello all,
>
> I have a dynamic webpage which is connected to a MySQL database displaying
> dynamic information stored in a MySQL table.
>
> One additional field I have added is a 'video' field in which the path to a
> flash video file is displayed.
>
> I have a number of user (each user corresponds to a row in the table) pictures
> which are stored in a folder, but the paths to which are stored in the
> database.Using Dreamweaver, I can drag the dynamic binding onto the image
> place holder and then it will lift the corresponding image from the table, but
> the flash video player doesn't seem to allow me to do this.
>
> I would like to do something similar for flash videos, but I'm not sure how to
> do it. Whenever I add a flash movie through the media player I need to specify
> the path - which will change depending on what entry in the table is being
> viewed.
>
> I have created my websites only with dreamweaver and can't program which
> probably explains why I've got no idea what to do. Hope I made sense - will
> gladly clarify or send you my code.
>
> Any help would be greatly appreciated.
>
> Thanks
>
> Adam
>
>
>
>
you need to develop your owne flash video player to to that.

look at this url http://www.mutationevent.com/projects/fvpPlayer/

they use javascript to load .flv file ;)