Super E-book library
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
PARTS:
Part 5
Part 6
Part 7
Part 8
Part 9
Part 10
Part 11
Part 12
Part 13
Part 14
Part 15
Part 16
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
The Adventures of Joel Pepper (page 359)
Access 2007 Bible (page 1094)
Volume 17, No. 489, May 14, 1831 (page 42)