JW FLV Media Player - Web Component (Full Version)

FrontPage Talk - Great Talk About Microsoft FrontP: http://www.frontpagetalk.com/forums/
- Taking FrontPage Further: http://www.frontpagetalk.com/forums/default.asp?catApp=3
- - FrontPage and Scripting: http://www.frontpagetalk.com/forums/appid_6/tt.htm



Message


jwdawg77 -> JW FLV Media Player - Web Component (6/22/2008 8:19:03 PM)

Hello, I have a Web Componet Question.

I have succesfully been using the JW FLV Media Player for quite some time. By inserting HTML into the Code section of a page and altering code and utilizing swfobject.js object and the flvplayer.swf in the same directory of the .flv file for playback. I have also been succesful in placing snippets of code into pages from YouTube, Vimeo, Flash Renders, etc ... When I have used the JW FLV player, I have always used it in the middle of the page.

My question is ... I would like to use it (JW FLV) "Justified" to the right of the page i.e. 420 x 236 and have text wrap around this object:
Do I Insert a <Web Component> such as a <Advanced Controls> <Java Applet> or <ActiveX Control> and then edit Parameters of the component?
I tried to do this but was unsuccesful.

I tried to create "Table within a Table" but then I could not get my text to wrap around the "Cell" table within the table. The FLV would play correctly within the cell but I could not get my text to wrap.

Here is an example page of what I am trying to do ... JW FLV Player - Text Wrap?

Here is my code for the JW FLV Player (Working)

<p id="player1" align="center"><a href="http://www.macromedia.com/go/getflashplayer">
<font size="2" face="Arial">Get the Flash Player</font></a></p>
<p align="center">
<script type="text/javascript">
var s1 = new SWFObject("flvplayer.swf","single","385","236","6");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","marc.flv");
s1.addVariable("image","marcpreview.jpg");
s1.addVariable("width","385");
s1.addVariable("height","236");
s1.write("player1");
</script>

Can somebody help me insert a Applet that I can succesfully configure to play the video in the code above ...
that way I can get my text to wrap around the Applet.

Or ... is there something I am missing? in creating a Table or Cell that would allow me to make a designated cell and wrap the text on the side and bottom.
Basic HTML Code?

- jw




TexasWebDevelopers -> RE: JW FLV Media Player - Web Component (6/26/2008 9:14:50 PM)

The javascript delays the writing of the .swf file until the page loads. The name of the file in your example is "player1". Normally, you would write the movie into a <DIV> tag but you are writing it into a paragraph tag....I'm not sure why you would want to do it that way.
This bit is where the movie actually "sits" on the page:
<p id="player1" align="center></p>
The "get flash player" link is "underneath" the movie if the movie loads correctly.
To get the movie to sit to the left you could change the align="center" to align="left" but that wouldn't help with your text wrap.
I would change your <P> tag to a <DIV>:
<DIV id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a></DIV>
Then use CSS to set the <DIV> with the parameters you want to get your text wrap, like:
<style type="text/css">
<!--
#player1 {
text-align:left;
background-color:#FFFFFF;
height:236px;
width:385px;
padding-bottom:10px;
padding-left:0px;
padding-right:10px;
padding-top:10px;
float:left;
}
-->
</style>

The actual code would sit inside a chunk of text:

texttext text etc. <DIV id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a></DIV> more texttext text etc.
And will wrap around the movie with a padding of 10 pixels on the top and bottom and right sides of the movie.

The style goes in between the <head> and </head> tags or in a separate style sheet.




Page: [1]

Valid CSS!




Forum Software powered by ASP Playground Advanced Edition 2.0.5
Copyright © 2000 - 2003 ASPPlayground.NET