I've been searching the net to get some lead on how to embed authentication parameters in rtsp url for Quicktime, but haven't had any success. I'm beginning to wonder if Quicktime has support for it at all. I've installed QT 7.7 and have tried the following two methods for embedding username and password:
<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='200' height='156' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
<param name='src' value='Loading.jpg'/>
<param name='href' value='rtsp://address/archive/d8138017caf5c1?username=abcd&password=xyz'/>
<param name='target' value='myself'/>
<param name='autohref' value='true'/>
<param name='controller' value='false'/>
<EMBED type='application/x-rtsp' pluginspage='http://www.apple.com/quicktime/download/' width='200' height='156' src='Loading.jpg' href='rtsp://172.21.57.125/archive/d8138017caf5c1?username=apiuser&password=cisco' target='myself' autohref='true' controller='false' loop='false'>
</EMBED>
</OBJECT>
In this case Quicktime fails to recognize the query parameters and brings up a dialog for username and password.
<OBJECT classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width='200' height='156' codebase='http://www.apple.com/qtactivex/qtplugin.cab'>
<param name='src' value='Loading.jpg'/>
<param name='href' value='rtsp://username:password#address/archive/d8138017caf5c1'/>
<param name='target' value='myself'/>
<param name='autohref' value='true'/>
<param name='controller' value='false'/>
<EMBED type='application/x-rtsp' pluginspage='http://www.apple.com/quicktime/download/' width='200' height='156' src='Loading.jpg' href='rtsp://username:password#172.21.57.125/archive/d8138017caf5c1' target='myself' autohref='true' controller='false' loop='false'>
</EMBED>
</OBJECT>
In the above case, Quicktime fails to play stating Server not found.
Is there a way to get authenticated rtsp streams to play in Quicktime ?
Related
I have this assignement where I have to used export for web in quicktime pro 7. Then copy/paste the read me.html file into the body (exactly as it is), which I did.
However, I keep getting 3 errors when I run my .html through W3C and cannot figure out how to correct it.
I realized there are probably better way to embed object but this is how they want us to do it for this assignment. Can anyone help me correct these 3 errors please.
Many thanks in advance.
<object width="350" height="278">
<param name="src" value="swiss/swiss-poster.jpg" />
<param name="href" value="swiss/swiss.mov" />
<param name="target" value="myself" />
<param name="controller" value="false" />
<param name="autoplay" value="false" />
<param name="scale" value="aspect" />
<embed width="350" height="278" type="video/quicktime" pluginspage="http://www.apple.com/quicktime/download/"
src="swiss/swiss-poster.jpg"
href="swiss/swiss.mov"
target="myself"
controller="false"
autoplay="false"
scale="aspect">
</embed>
</object>
Line 1 : Element object is missing one or more of the following attributes: data, type.
Line 14: Attribute href not allowed on element embed at this point.
scale="aspect">
Line 15: Stray end tag embed.
I just needed to embed a quicktime movie myself, and I looked to the Mozilla Developer Network for the syntax: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object
I believe that the data attribute would take the place of href in your params:
param name="href" value="swiss/swiss.mov" />
would be:
<param name="data" value="swiss/swiss.mov" />
and the type in this case would be "video/quicktime":
<param name="type" value="video/quicktime" />
There is also an <embed> reference at MDN (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed), but it covers only the HTML5 version of the element, which doesn't require a closing </embed> tag.
The reference at sitepoint (http://reference.sitepoint.com/html/embed) addresses the earlier syntax, and also says:
"embed isn’t part of any currently recognized standard (it is included in HTML5 which is not yet finalized), so if you use it, your page can’t possibly validate".
That suggests that with <embed> you should probably focus more on actual behavior in the browser than the W3C's validation tool.
I'm triyng to use your audio player just in the home page of this site:
http://www.piscinafrancavilla.com/wordpress/
the home page is with super size... I need to put the audio with autoplay... I know that i should edit the header.php and put the condition
<?php if(is_home()) {?>
for use your plugin what is the rest of the script?
Do you think that is the right way???
Please help me
Best regards
Eric
Use embed tag on your homepage as
<object width="199" height="59">
<param name="src"
value="song.mp3">
<param name="autoplay" value="true">
<param name="controller" value="true">
<param name="bgcolor" value="#333333">
<embed TYPE="application/x-mlayer2"
src="song.mp3" autostart="true"
loop="false" width="199" height="59" controller="true"
bgcolor="#333333"></embed>
</object>
Just change the src values (there are two) to the absolute URL of the music file you are wanting to insert.
I dont know much about how the flash object works , but I am embedding a video in Dreamweaver ,and there is a white background on the background.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="360" height="240" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
Set the wmode property to transparent.
However, be sure to test it. From Adobe Support:
Not every web browser handles transparency in the same way. Be sure to test your SWF file in all browsers that you want to enable your audience to use. Most Linux browsers do not support Flash transparency. This table lists several browsers that support transparency.
I am trying to add a video tag to a Sharepoint 2007 website with no success.
I created a new Content Editor webpart and injected this code:
http://pastebin.ca/2076724
<video id="movie" width="320" height="240" preload controls>
<source src="/videos/test.ogv" type='video/ogg; codecs="theora, vorbis"' />
<object id="MediaPlayer" width="320" height="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
standby="Loading Windows Media Player components..." type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://www.domain.com/videos/test.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="http://www.domain.com/videos/test.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"></EMBED>
</OBJECT>
</video>
The controls are loaded, the video is found when doing Save Video (so no broken link), but the video does not play.
What I did is do Save Page As to my local disk, and tada: It works.
I fiddled with the code several times. I noticed that Sharepoint does alter the code a bit but the same code works when locally so..
I also do not have the HTML5 doctype in my website. (neither locally).
Ideas?
What MIME type is Sharepoint serving the video as? It should be video/ogg, here's a Technet article on how to configure MIME types in IIS6.
I'd like to make a log4j output file that is XML and give it a root element.
Hence, I'd like it to start with a tag and end with a tag.
What do I put in my log4j.xml to make this happen?
Right now, all I have is this:
<appender name="FILE" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="logs/file.log" />
<param name="Append" value="false" />
<param name="MaxFileSize" value="5000KB" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%m%n" />
</layout>
</appender>
Change that PatternLayout to an org.apache.log4j.xml.XMLLayout.
Have a look at the api of XMLLayout:
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/xml/XMLLayout.html
It clearly explains that you need to include the resulting xml output within another document (by using xml entity). So in your parent document you can place a root element of your choice.
This will also allow you to use chain saw.