For Deepak Sonawane
Deepak wrote:
We need both <object > and <embed > tags to get browser compatibility. Internet Explorer uses <object> tag, but Firefox and Netscape can't see it and recognize just <embed>. We set parameters by using <param > tags, and inside <embed > tag. Code example above have added parameter name "movie" and value "player.swf". You can add any other parameter on the same way. Complete list of supported parameters for JW FLV Player you can see at their Flash vars page.
My problem or issue is I have the JW Player player Object/Embed code pasted into an itemtemplate within a data list. Well, let me tell my whole story. I have the flv files stored locally in the inetpub/www root folder. I have a referene to the video stored in a database table. I am displaying the video based on search criteria a user submitted. Now....My problem or issue is I have the JW Player player Object/Embed code pasted into an itemtemplate within a data list. This plays perfectly in Internet Explorer. The t-sql should bring back 4 recors with video and it does. However, the video will not play in Google Chrome, Safari nor Firefox. After reading the post from Deeoak regarding the object and embed tags I understand why the video won't play. My question is can this be coded in a manner to make the video play in Internet Explorer as it does and also in the other browsers? I read that it is better to use the SWFobject with java script to get cross browser compatibility. So, I created the code using the SWFobject code and again pasted it into the itemtemplate. The falsh now plays in all browsers but only one flv video displays now instead of the 4 with the object/embed method. My preference would be to get the object/embed code working or modified to work in the other browsers I listed. but if that's not possible what am I doing wrong to prevent the 3 other videos from displaying using the SWFobject/Javascript code. My code listing is below for the SWFObject but again. if the code can be slightly modified to make the object/embed work across browsers that would be better. Any help you can provide is greatly appreciated.
<asp:DataList ID="DataList1" runat="server" DataKeyField="eid" DataSourceID="SqlDataSource1">
eid:<ItemTemplate> <asp:Label ID="eidLabel" runat="server" Text='<%# Eval("eid") %>' />
<br />
addtofavorite:
<asp:Label ID="addtofavoriteLabel" runat="server" Text='<%# Eval("addtofavorite") %>' />
<br />
ddshareworkout:
<asp:Label ID="ddshareworkoutLabel" runat="server" Text='<%# Eval("ddshareworkout") %>' /> <br />
ddnewworkout:
<asp:Label ID="ddnewworkoutLabel" runat="server" Text='<%# Eval("ddnewworkout") %>' />
<br />
demolink:
<asp:Label ID="demolinkLabel" runat="server" Text='<%# Eval("demolink") %>' />
<br />
<script src="swfobject.js" type="text/javascript">
</script>
<div ID="mediaspace">
This text will be replaced
</div>
<script type="text/javascript">
so.addParam(
so.addParam(
so.addParam(
so.addVariable(
so.write(
var so = new SWFObject('player.swf', 'mpl', '320', '240', '9');'allowfullscreen', 'true');'allowscriptaccess', 'always');'wmode', 'opaque');'file', '<%# Eval("demolink") %>'); 'mediaspace');</script>