I thought I had this thing working at one time, but in doing some testing it now doesn't work. I have an embedded control that loads an flv video on the fly from the database in ASP.NET
I will say that it does works fine on my local machine but I can't figure out why it does not work on my webhost. I have made sure that all files are in the same directory (flash file, video skin, made sure the actionscript calls the right variable, and flv video is there). I've also made sure the data is the same in both places. I have passed in data for the video through the database as well as hard coded video path. Both work on the localhost but not on the web server.
I have attached the control code as well as what I see in the View Source on the webhost. I desperately need a solution before Friday 4/27.
If you need a better description let me know. I'm kind of frazzled right now and don't know if I've done a good job here.
Control code:
CreateFLVEmbeddedControl(p
hembed, Session("tootfile"), Session("width"), Session("height"))
Private Sub CreateFLVEmbeddedControl(B
yVal phembed As PlaceHolder, ByVal location As String, ByVal width As Integer, ByVal height As Integer)
Dim result As New HtmlGenericControl
phembed.Controls.Add(resul
t)
Dim embed As New HtmlGenericControl
result.Controls.Add(embed)
' Embed tag.
embed.TagName = "embed"
embed.Attributes.Add("widt
h", Session("width"))
embed.Attributes.Add("heig
ht", Session("height"))
embed.Attributes.Add("type
", "application/x-shockwave-f
lash")
embed.Attributes.Add("src"
, "tootvid.swf")
embed.Attributes.Add("Flas
hVars", "flvFileName=" + location + "")
' Object tag
result.TagName = "object"
result.Attributes.Add("cla
ssid", "clsid:D27CDB6E-AE6D-11cf-
96B8-44455
3540000")
result.Attributes.Add("cod
ebase", "
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
)
result.Attributes.Add("wid
th", Session("width"))
result.Attributes.Add("hei
ght", Session("height"))
'result.Attributes.Add("ID
", "flvPlayer")
result.Controls.Add(New LiteralControl("<param name=""movie"" value=""tootvid.swf""/>"))
result.Controls.Add(New LiteralControl("<param name=""quality"" value=""high""/>"))
result.Controls.Add(New LiteralControl("<param name=""bgcolor"" value=""""/>"))
result.Controls.Add(New LiteralControl("<param name=""FlashVars"" value=""flvFileName=" + location + """/>"))
End Sub
View Source HTML:
<object classid="clsid:D27CDB6E-AE
6D-11cf-96
B8-4445535
40000" codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0">
<embed width="800" height="600" type="application/x-shockw
ave-flash"
src="tootvid.swf" FlashVars="flvFileName=v_4
3_uw.flv">
</embed>
<param name="movie" value="tootvid.swf"/><para
m name="quality" value="high"/><param name="bgcolor" value=""/>
<param name="FlashVars" value="flvFileName=v_43_uw
.flv"/>
</object>