Grandstream GXV3140 GMI Guide User Manual
Page 26

Grandstream Networks, Inc.
GMI HTML SDK and API Guide
Page 26 of 43
www.grandstream.com
Last Updated: 09/2010
Figure: Play Example illustration
File: call-iframe.html
……
function
cb_play
(
result
)
{
//Process play result here
//alert(result['Response']);
}
function
mplay
(
url
)
{
GMIEngine.play
(
url,
1
, cb_play
)
;
}
……
<
h4
>
Or Watch
<
font
color
=
'yellow'
size
=
"5"
>
Their
Video
</
font
></
h4
>
<
div
>
<
input
id
=
"playvideo"
type
=
"button"
value
=
"
视
频
"
onclick="mplay
(
'video/recording.avi'
)
;"
/>
//For files on the same host, the url can be a relative path.
</
div
>
<
h4
>
Or Watch
<
font
color
=
'yellow'
size
=
"5"
>
The
TV
</
font
>
they like
</
h4
>
<
div
>
<
input
id
=
"playsound"
type
=
"button"
value
=
"
电
视
"
onclick="mplay
(
)
;"
/>
//For files on a different host, please use a full file path.
</
div
>