Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I am having problems starting a QT video when I click on a URL...



On Thursday, October 31, 2002, at 01:29 PM, Peter Kerr wrote:
> Billy Brown <email@hidden> asserted:
>
>> The problem is that you can't use a simple 'href=' to access RTSP.

Just because it works for you  for _some_ clients (ie. Macintoshes), 
don't automatically
assume that its being done the proper way.

What I probably should have said is:

    The problem is that you __shouldn't__ use a simple 'href=' to access 
RTSP.

The reasons are many, but here's a quick run-down
1)  Other media players installed on the client machine might have 
registered themselves to
      handle "rtsp" requests - using the proper HTML tags (as documented 
in QuickTime
      will help insure that the proper plugin "sees" the request)
2)  If you were using any QuickTime-specific codecs (ie. Sorenson, 
QDesign, etc.)
      then those definitely would not be playable on non-QuickTime 
players, so see #1
      above, and you want to make sure the rtsp url gets interpreted by 
QuickTime.

You should thoroughly read the QuickTime documentation on how to 
properly embed
QuickTime streaming content into a web browser, especially if you are 
desiring for the
content to be viewable cross-platform and compatible on users machines 
that might
actually have multiple media players installed (ie. QuickTime, Real, 
Windows Media, etc.)

http://developer.apple.com/quicktime/quicktimeintro/tools/embed.html
> <EMBED>
>
> The EMBED tag allows media file types other than those supported by 
> the browser natively, to be handled with an external application or 
> plugin. In this case, the external application will be QuickTime 
> Player and the plugin will be the QuickTime Plugin. The EMBED tag has 
> been supported in Netscape's Navigator since version 2.0 and in 
> Internet Explorer since version 3.0. The EMBED tag itself has yet to 
> be specified as an HTML standard. Therefore, browsers support various 
> attibutes in various versions. The list of EMBED Attributes is long 
> and twisted; here we will document the EMBED Attributes QuickTime 
> supports.

http://www.apple.com/quicktime/authoring/embed.html
> The <EMBED> tag allows media file types other than those directly 
> supported by the browser to be handled with an external application or 
> plugin. In this case, the external application is QuickTime Player and 
> the plugin is the QuickTime Plugin.
>
> With the release of Internet Explorer 5.5 SP2 and later, you must use 
> an <OBJECT> tag in addition to the <EMBED> tag for your web pages to 
> be compatible with both Netscape and Internet Explorer on Mac and 
> Windows systems.

Just so you know, the majority of the tags and so forth are optional, 
so don't panic.

To try to help you out, I'm providing some example HTML code, as well as
a sample "clicktoplay.mov" file and instructions how to create an 
rtsptext
ref movie.

Here is the sample HTML code (this should take care of the Internet 
Explorer
activeX issue as mentioned above since I'm also using the <OBJECT> tag:

<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
   CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab";>
   <param name="width" value="60">
   <param name="height" value="10">
   <param name="src" value="http://www.domain.com/clicktoplay.mov";>
   <param name="href=" value="http://www.domain.com/mystream_ref.mov";>
   <param name="autoplay" value="false">
   <param name="controller" value="false">

   <embed TARGET="MYSELF"
      src="http://www.domain.com/clicktoplay.mov";
      href="http://www.domain.com/mystream_ref.mov";
      width="60" height="10"
      pluginspage="http://www.apple.com/quicktime/download/index.html";
      AUTOPLAY="FALSE"
      CONTROLLER="FALSE">
   </embed>
</OBJECT>


Notice how it basically included the same information twice (once as an 
<embed></embed>
and then also as an <object></object>.

And now, create a "ClicktoPlay.jpg" picture (it could contain as simple 
as
the words "Click to Play" exported as a bitmap/jpeg), import this jpeg
into QuickTime Pro, and then save it out as a self-contained 1-frame
(jpeg video codec) self-contained (non-hinted) QuickTime Movie.  It
must be saved as a self-contained QT Movie - you can't simply take
the jpeg and rename it to have a .mov file extension.

Example (see the attached file to this email):

[demime 0.98b removed an attachment of type multipart/appledouble]
Now, copy "clicktoplay.mov" (a single-frame QT Movie file) to your web 
server so
that it is accessible via something like this:

    http;//www.domain.com/clicktoplay.mov

Next, you will want to create an 'rtsptext' file that has the actual 
rtsp url placed in it.
Do this by creating a text file named "mystream_ref.mov" that contains 
the following
line of text (for example):

    rtsp://qtss.domain.com/mystream.sdp

(be sure and substitute your actual QTSS domain and the name of your 
.sdp file)
Now, copy this text file to your web server, so that it is accessible 
via (example):

    http://www.domain.com/mystream_ref.mov

Lastly, your HTML might look something like this (within the 
<body></body> tags of
a web page:

<p>
   <B>Listen to the LIVE audio stream now:  </b>
   <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
   CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab";>
   <param name="width" value="60">
   <param name="height" value="10">
   <param name="src" value="http://www.domain.com/clicktoplay.mov";>
   <param name="href=" value="http://www.domain.com/mystream_ref.mov";>
   <param name="autoplay" value="false">
   <param name="controller" value="false">

   <embed TARGET="MYSELF"
      src="http://www.domain.com/clicktoplay.mov";
      href="http://www.domain.com/mystream_ref.mov";
      width="60" height="10"
      pluginspage="http://www.apple.com/quicktime/download/index.html";
      AUTOPLAY="FALSE"
      CONTROLLER="FALSE">
   </embed>
   </OBJECT>
</p>

Consider this merely as an example.  There are lots of variations, and 
other ways to
create QT Reference movies (besides the 'rtsptext' textfile method).  
However,I've
provided this as some sample code that you can play around with and to 
get you started.

--
Billy Brown
_______________________________________________
streaming-server-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/streaming-server-users
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.