Home > Archive > MSDN > December 2004 > help! Sound and the Office Animation Runtime package
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
help! Sound and the Office Animation Runtime package
|
|
| Anil Philip 2004-12-17, 3:55 am |
|
I have two problems related to Sound and the Office Runtime Animation
package.
I installed the Office Animation runtime so that my Win98 environment is now
equivalent to Powerpoint2002/2003. I have Internet Explorer 6.0. I took a
PowerPoint slideshow and did a "Save As Web Page" (NOT the single file
option). Looking at the folder containing the generated files, I see that
slide s0001 has s0001.htm and also there is a Javascript file script.js
containing utility functions. I recorded a narration for each slide however:
a) I do NOT want the narration to autostart when the web page is loaded
b) when the speaker icon is clicked to start narration, I want to
programatically kick off another task.
To implement the above:
1) I do NOT want the narration sound to automatically play. When the slide
loads on its first time (opening the page in a new browser), the sound does
not play. However if I do a Refresh (reload the page) or navigate between
the pages, the sound starts automatically. How do I prevent this?
perhaps a reload is handled differently from first time onLoad()? what call
in the htm and js files actually plays the sound?
2) I want to know what are the different state variables I can access to see
if sound is playing, or is paused, or is stopped.
I notice that <oa:audio> tags are generated in the generated HTML files (in
this case, s0001.htm). what are the parameters for these tags. When are the
tags called to play the sound? (if at all they actually affect playing).
I shall be accessing the state variables from the javascript file script.js.
When the ToggleVNarration() function is called when the speaker icon is
clicked, I want to be able to check the "play state" of narObj (to
do another task at this stage). For browsers before IE5.0 and others, rObj
is used instead and rObj.playState is used to check this. What instance
variables in narObj will give me this? As you can see in the code below, the
state is not examined for narObj.
// script.js generated by Powerpoint 2002/2003
function ToggleVNarration()
{
rObj=PPTSld.document.all("NSPlay")
if( rObj && !PPTSld.g_animUseRuntime ) {
if( (rObj.playState == 1)||(rObj.playState == 0) )
rObj.Play()
else if( rObj.playState == 2 )
rObj.Pause()
else
return;
}
else if( PPTSld.g_animUseRuntime )
{
narObj = PPTSld.document.all("narrationID")
if( narObj )
narObj.togglePause()
}
}
I have been trying to use the MS Script debugger and reading the generated
html code but its not apparent. Is there any documentation on this? I will
be surprised if this API is not documented. I did searches at
support.microsoft.com and msdn.microsoft.com - but perhaps I was not
searching properly. Please copy your reply to goodnewsforyou@yahoo.com
Appreciate any help.
thanks,
Anil Philip
---
for good news go to http://members.tripod.com/~goodnewsforyou/goodnews.html
| |
| Anil Philip 2004-12-18, 8:55 pm |
|
Still no replies - can anyone point me to where I can get the info?
Anil Philip wrote in message <#0BXnz#4EHA.1392@tk2msftngp13.phx.gbl>...
>I have two problems related to Sound and the Office Runtime Animation
>package.
>
>I installed the Office Animation runtime so that my Win98 environment is
now
>equivalent to Powerpoint2002/2003. I have Internet Explorer 6.0. I took a
>PowerPoint slideshow and did a "Save As Web Page" (NOT the single file
>option). Looking at the folder containing the generated files, I see that
>slide s0001 has s0001.htm and also there is a Javascript file script.js
>containing utility functions. I recorded a narration for each slide
however:
>a) I do NOT want the narration to autostart when the web page is loaded
>b) when the speaker icon is clicked to start narration, I want to
>programatically kick off another task.
>
>To implement the above:
>1) I do NOT want the narration sound to automatically play. When the slide
>loads on its first time (opening the page in a new browser), the sound does
>not play. However if I do a Refresh (reload the page) or navigate between
>the pages, the sound starts automatically. How do I prevent this?
>perhaps a reload is handled differently from first time onLoad()? what call
>in the htm and js files actually plays the sound?
>
>2) I want to know what are the different state variables I can access to
see
>if sound is playing, or is paused, or is stopped.
>I notice that <oa:audio> tags are generated in the generated HTML files (in
>this case, s0001.htm). what are the parameters for these tags. When are the
>tags called to play the sound? (if at all they actually affect playing).
>I shall be accessing the state variables from the javascript file
script.js.
>When the ToggleVNarration() function is called when the speaker icon is
>clicked, I want to be able to check the "play state" of narObj (to
>do another task at this stage). For browsers before IE5.0 and others, rObj
>is used instead and rObj.playState is used to check this. What instance
>variables in narObj will give me this? As you can see in the code below,
the
>state is not examined for narObj.
>
>// script.js generated by Powerpoint 2002/2003
>function ToggleVNarration()
>{
> rObj=PPTSld.document.all("NSPlay")
> if( rObj && !PPTSld.g_animUseRuntime ) {
> if( (rObj.playState == 1)||(rObj.playState == 0) )
> rObj.Play()
> else if( rObj.playState == 2 )
> rObj.Pause()
> else
> return;
> }
> else if( PPTSld.g_animUseRuntime )
> {
> narObj = PPTSld.document.all("narrationID")
> if( narObj )
> narObj.togglePause()
> }
>}
>
>I have been trying to use the MS Script debugger and reading the generated
>html code but its not apparent. Is there any documentation on this? I will
>be surprised if this API is not documented. I did searches at
>support.microsoft.com and msdn.microsoft.com - but perhaps I was not
>searching properly. Please copy your reply to goodnewsforyou@yahoo.com
>Appreciate any help.
>thanks,
>Anil Philip
>---
>for good news go to http://members.tripod.com/~goodnewsforyou/goodnews.html
>
>
>
| |
| Anil Philip 2004-12-19, 3:55 am |
|
From the following article it seems to be DHTML and HTML+TIME
<!--
oa\:* { BEHAVIOR: url(#MSOANIM#ANIM) url(#MSOTIME#TIME) }
oa\:par,oa\:seq,oa\:iterate { BEHAVIOR:url(#MSOTIME) }
oa\:video,oa\:audio {BEHAVIOR:url(#MSOTIME) url(#MSOTIME#MEDIA) }
-->
//--></script><!--[if vml]><script>g_vml = 1;
</script><![endif]--><![endif]><p:slidetransition advancetime="2015000"
speed="1" effect="fade" flag="1025"/><o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="61"/>
</o:shapelayout>
<p:animation number="-929479346"/><oa:par id="TimeNode0" dur="indefinite"
restart="never" p:nodeType="timingRoot">
<oa:seq id="TimeNode1" dur="indefinite" prev="document.onpptprev"
next="document.onpptnext" concurrent="enabled" nextAction="s "
p:nodeType="mainSeq">
<oa:par id="TimeNode2" begin="indefinite;TimeNode1.onbegin" fill="hold">
<oa:par id="TimeNode3" begin="0.0" fill="hold">
<oa:par id="TimeNode4" o:presetID="ppt_1" o:presetClass="mediacall"
o:presetSubType="0x0" begin="0.0" fill="hold" p:nodeType="afterEffect">
<oa:command id="TimeNode5" dur="0.001" fill="hold"
targetElement="narrationID" type="call" cmd="playFrom(0.0)"/>
</oa:par>
</oa:par>
<oa:par id="TimeNode6" begin="0.0" fill="hold">
<oa:par id="TimeNode7" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="afterEffect">
<oa:set id="TimeNode8" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_0_78" attributeName="style.visibility"
to="visible"/>
</oa:par>
<oa:par id="TimeNode9" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="withEffect">
<oa:set id="TimeNode10" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_78_108" attributeName="style.visibility"
to="visible"/>
</oa:par>
<oa:par id="TimeNode11" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="withEffect">
<oa:set id="TimeNode12" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_108_135" attributeName="style.visibility"
to="visible"/>
</oa:par>
</oa:par>
<oa:par id="TimeNode13" begin="0.5" fill="hold">
<oa:par id="TimeNode14" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="afterEffect">
<oa:set id="TimeNode15" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_135_165" attributeName="style.visibility"
to="visible"/>
</oa:par>
<oa:par id="TimeNode16" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="withEffect">
<oa:set id="TimeNode17" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_165_193" attributeName="style.visibility"
to="visible"/>
</oa:par>
<oa:par id="TimeNode18" o:presetID="ppt_1" o:presetClass="entrance"
o:presetSubType="0x0" begin="0.0" fill="hold" o:groupID="0"
p:nodeType="withEffect">
<oa:set id="TimeNode19" begin="0.499" dur="0.001" fill="hold"
targetElement="_x0000_s62467_193_226" attributeName="style.visibility"
to="visible"/>
</oa:par>
</oa:par>
</oa:par>
</oa:seq>
<oa:audio src="narration0022.mp3" o:srcRefType="shape"
o:srcRef="_x0000_s62472"
volume="50.0" endAfterSlide="1" hideWhenStopped="true" id="narrationID"
begin="indefinite" end="document.onpptprev;document.onstopaudio"
repeatCount="1.0" fill="hold" o:display="hidden"/>
</oa:par>
<![if ppt]>
<oa:buildParagraph targetElement="_x0000_s62467" groupID="0"
build="byParagraph"
buildLevel="1" reverse="false" buildAdvance="automatic" delay="0.0"
userSetAnimBgd="true"/>
<![endif]>
| |
|
|
|
|
|