I want to embed a video in an asp page. I am using this code
<embed autoplay="false" controller="true" loop="false" name="JF Video"
pluginspage="http://www.apple.com/quicktime/download/"
src="https://www.anylink.com/english/video/videoname.mp4" height="250" border="1" width="320">
problem is that autoplay=false is not working as is starts playing automatically as page loads and this video is not getting played in firefox ? I have wasted more than 5 hours in it.
What is the solution of this problem and if there is any other better way to play video in asp web page [no html5 tag], please let me know.
Thanks in advance.
Make use of the object tag and replace your code with this.
<object name="Video" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/quicktime/download/" standby="Loading Quicktime components..." width="400" height="200" > <param name="src" value="https://www.anylink.com/english/video/videoname.mp4"></param> <param name="autoplay" value="false"></param> <param name="controller" value="true"></param> <param name="enablejavascript" value="true"></param> <param name="playCount" value="1"></param> <param name="starttime" value="0"></param> <embed name="Video" pluginspage="http://www.apple.com/quicktime/download/" type="video/quicktime" src="https://www.anylink.com/english/video/videoname.mp4" autoplay="false" controller="true" enablejavascript="true" starttime="0" width="400" height="200"></embed> </object>
Related
I'm trying to hide the logo and title on the YouTube embed player. I'm taking a URL from a database and not directly writing it in code. I'm also using a datalist to show the results. Can someone tell me what I should do? I googled for a solution but most suggestions is for hiding the logo and title when YouTube video url is directly written in code.
Here's what I tried:
1
<object width="200" height="200">
<param name="movie" value='<%#DataBinder.Eval(Container.DataItem, "url") %>'></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src='<%#DataBinder.Eval(Container.DataItem, "url") %>'
type="application/x-shockwave-flash" allowscriptaccess="always"
allowfullscreen="true" width="260" height="232">
</embed>
</object>
2
<iframe width="260" height="230" src="<%#DataBinder.Eval(Container.DataItem, "url") %>"
frameborder="0" allowfullscreen></iframe>
You can try out the various combinations of YouTube embedded player parameters using this live demo.
Based on what you describe, modestbranding=1 will probably give you what you want.
You need to add in the player parameters to the end of your iframe src using standard URL parameter syntax, which in your example is stored in #DataBinder.Eval(Container.DataItem, "url").
I have a Silverlight Application , and i hosted it in a asp webpage..like this:
<iframe width="908" height="600">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
width="908" height="600">
<param name="source" value="ClientBin/Gsilver3.xap" />
<param name="onError" value="onSilverlightError" />
<param name="background" value="transparent" />
<param name="minRuntimeVersion" value="4.0.50826.0" />
<param name="autoUpgrade" value="true" />
<%--<param name="windowless" value="true" />--%>
</a>
</object>
</iframe>
notice the iframe tag, i used this tag to get rid of the solution that my menu is disappearing behind the SL ,but my problem is when the page is opened . there is nothing is shown..jus a blank page..what should i do to let my SL works..Thanks.
The iframe tag isn't really meant to be used as an actual container element, moreso an inline frame containing contents from an outside source.
What you could do is create another page that only contains your Silverlight plugin, and then set the 'src' attribute of the iframe to the page that contains your Silverlight plugin.
<iframe height="908" width="600" src="NewSilverlightPage.aspx"></iframe>
I've been searching for a way to prevent the download of a PDF and I finally found one in HTML5. The code is really simple and is
<embed src="filename.pdf#toolbar=0&navpanes=0&scrollbar=0" width="500" height="375">
The things that suppress the adobe options is #toolbar=0&navpanes=0&scrollbar=0.
My question is, is there a way to do this in non-html5 code? I've tried the following:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
width="99%" height="99%" id="pdf" style="position:absolute; z-index:-1;">
<param name="movie" value="filename.pdf#toolbar=0&navpanes=0&scrollbar=0">
<param name="quality" value="high">
<param name="wmode" value="opaque" />
<param name="Enabled" value="1" />
<param name="toolbar" value="0" />
<param name="navpanes" value="0" />
<param name="scrollbar" value="0" />
<param name="bgcolor" value="##FFFFFF">
<embed nav src="filename.pdf#toolbar=0&navpanes=0&scrollbar=0" quality="high" bgcolor="##FFFFFF" width="99%" height="99%"
name="2003map" align="" type="pdf">
</embed>
</object>
I am not 100% but try adding the values also into the <embed>
<embed nav src="filename.pdf" quality="high" bgcolor="##FFFFFF" width="99%" height="99%"
name="2003map" align="" type="pdf"
toolbar="0" navpanes="0" scrollbar="0"
</embed>
This doubling of info works for wmode so may very well work here too :)
as your users are using a client side engine to render the PDF document there is no way to stop them downloading or saving it. at some point or way the document arrives at the client machine. in case of html it's always easy to have all resources you serve to be saved.
you have to render it on the server if you don't what your pdf as pdf in any case on your client's machine.
you can use an obfuscated flash in combination with Flash Pdf viewer just like scribd and have the pdf's path hidden but this is not 100% secure, because the resource remains accessible, but you can return it as binary from a server side after your viewer swf has identified itself.
I need to put a Flash Object in my website developed on MVC2 .NET, however the third party who made it just gave me an html with this code.HTML errors apart I don't know how to put it on ASP.NET. Can you help me?
<table width="608" border="0" cellpadding="0" cellspacing="0" bgcolor="#F4F4F4">
<tr>
<td height="412">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="runtime" width="608" height="412" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="runtime.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="FlashVars" value="Runtime_settingPath=modules/main/setting.xml&Runtime_isRemote=false&Runtime_init_module=module1&Runtime_init_scene=scene1.swf" />
<EMBED src="runtime.swf" FlashVars="Runtime_settingPath=modules/main/setting.xml&Runtime_isRemote=false&Runtime_init_module=module1&Runtime_init_scene=scene1.swf" quality=high bgcolor=#CCCCCC WIDTH="608" HEIGHT="412" NAME="runtime" swLiveConnect="true" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</object>
</td>
</tr>
</table>
See Embed video on a asp.net-mvc website question and the answers. The SWF Object works very well.
I used the JW FLV player together with this explanation: http://codevoyeur.com/Articles/15/ASP.NET-MVC-HtmlHelper-Extensions-for-the-JW-FLV-Media-Player.aspx in several asp.net mvc sites.
You can paste that in an MVC View. Views can have plain old HTML code.
I don't see how this is any different than embed a flash object in a page. Any error you may be getting is definitely unrelated to it being in asp.net MVC.
I did. It doesn't work. May be some of the tags might be wrong. However I'm not a flash expert. I could tell you that the HTML they sent me has 43 errors according to the HTML Validator.
We are not the ones to complain about it ;). Put it in the simplest html page, and send it back as a test case that it doesn't work.
I know the things im missing here are tiny but yet im missing them...heres what im doing
I just copied Flex builder's generated html from the tags, and pasted in an ASP .NET page, the page shows up no errors , I can see a grey rectable the size of my flex file but there's nothing in it its blank .... and I am stumped why ???? Why when it's showing up perfectly fine via the HTML file that flex generates. I need help someone please enlighten me :(
My Code:
----------
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="SlidemFX" width="796px" height="900px"
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="SlidemFX.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="sameDomain" />
<embed src="SlidemFX.swf" quality="high" bgcolor="#869ca7"
width="796px" height="900px" name="SlidemFX" align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.adobe.com/go/getflashplayer">
</embed>
</object>
You'll need to put the Flex application itself in the right location relative to your ASP page.