SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 172 | Next

Richard Wagner

"Professional iPhone and iPod touch Programming: Building Applications for Mobile Safari"


You link a video or audio file to your Web page using an embed element. The embed element is
defined as:
target=???myself??? height=???84??? width=???84??? scale=???1???/>
At the time of this writing, using embed with a poster image and specifying a relative URL for the href
attribute produced inconsistent results. I recommend using an absolute path.
The href and type define the source and MIME type of the video file. The src attribute allows you
to optionally define a poster image to display in the embed block. If no src attribute is displayed, then
a QuickTime box is displayed. The height and width are used to determine the dimensions of the
poster image.
Figure 6-17: MakeRefMovie
Chapter 6: Advanced Programming Topics: Canvas and Video
152
Because iPhone and iPod touch do not support inline playback, media playback does not begin until the
user enters movie playback mode. As a result, to play the video, a user clicks the play button displayed
on the embed element to enter playback mode. The target=???myself??? attribute-value pair is used for
this linkage.
Here??™s a code snippet from a page that references both video and audio media:


Pages:
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184