Discussion:
help! Sound and Office Animation runtime sequences
(too old to reply)
Anil Philip
2004-12-19 01:43:53 UTC
Permalink
Hello,
How do I ensure that the sound in the sequence does not play upon
load/reload?

thanks,
Anil
-----

<!--
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="seek"
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]>
Anil Philip
2004-12-19 01:50:10 UTC
Permalink
some background info:

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 ***@yahoo.com
Appreciate any help.
thanks,
Anil Philip
---
for good news go to http://members.tripod.com/~goodnewsforyou/goodnews.html
Anil Philip
2004-12-27 01:59:27 UTC
Permalink
Still no replies?
Any Microsoft developers out there?
I apologize for posting to so many newsgroups, but I did not get any reply
in the powerpoint group so I was unsure in which group, I would get an
answer.
-
Anil
Post by Anil Philip
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
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.
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
Appreciate any help.
thanks,
Anil Philip
---
for good news go to
http://members.tripod.com/~goodnewsforyou/goodnews.html
cybarber
2004-12-28 13:08:50 UTC
Permalink
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement or a
script section which has something like:

narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)

find that and you should be able to control the narration start.



<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"/>
Hello,
How do I ensure that the sound in the sequence does not play upon
load/reload?

thanks,
Anil
-----

<!--
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="seek"
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]>
Anil Philip
2005-01-01 19:41:49 UTC
Permalink
Thanks for replying :) - my only reply!
I could not find any beginElement() call.
The closest I found was the, see below, cmd="playFrom(0.0)". However to me,
that seems to be position in sound file, rather than when to start playing.

Do you know how I can find out the parameters to the oa:audio ? If so, then
there may be some parameter like autostart="false".
-
Anil

<p:animation number="-1653102814"/><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="seek"
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>
</oa:seq>
<oa:audio src="" o:srcRefType="shape" o:srcRef="_x0000_s58375"
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>
Post by cybarber
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement or a
narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)
find that and you should be able to control the narration start.
<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"/>
cybarber
2005-01-02 22:16:36 UTC
Permalink
All can be found on the HTML+TIME (XHTML+SMIL) website at MSDN.microsoft.com

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/reference/time2/htime_node_entry.asp

(If you set begin to indefinite(begin=ïndefinite") you need to start it at
some point by using audioID.beginElement(), you can do this by setting it
as an eventhandler like when you click a button or mouseover something
etc. )

"Anil Philip" <***@yahoo.com> schreef in bericht news:%***@TK2MSFTNGP14.phx.gbl...
Thanks for replying :) - my only reply!
I could not find any beginElement() call.
The closest I found was the, see below, cmd="playFrom(0.0)". However to me,
that seems to be position in sound file, rather than when to start playing.

Do you know how I can find out the parameters to the oa:audio ? If so, then
there may be some parameter like autostart="false".
-
Anil

<p:animation number="-1653102814"/><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="seek"
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>
</oa:seq>
<oa:audio src="" o:srcRefType="shape" o:srcRef="_x0000_s58375"
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>
Post by cybarber
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement or a
narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)
find that and you should be able to control the narration start.
<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"/>
Anil Philip
2005-01-03 03:09:02 UTC
Permalink
ok, shall try calling beginElement() in the Jscript generated file. I did
read the html+time stuff before but did not find the <p:animation> nor the
<oa:audio> packages documented at all.
thanks,
Anil
Post by cybarber
All can be found on the HTML+TIME (XHTML+SMIL) website at
MSDN.microsoft.com
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/reference/time2/htime_node_entry.asp
Post by cybarber
(If you set begin to indefinite(begin=ïndefinite") you need to start it at
some point by using audioID.beginElement(), you can do this by setting it
as an eventhandler like when you click a button or mouseover something
etc. )
Thanks for replying :) - my only reply!
I could not find any beginElement() call.
The closest I found was the, see below, cmd="playFrom(0.0)". However to me,
that seems to be position in sound file, rather than when to start playing.
Do you know how I can find out the parameters to the oa:audio ? If so, then
there may be some parameter like autostart="false".
-
Anil
<p:animation number="-1653102814"/><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="seek"
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">
Post by cybarber
<oa:command id="TimeNode5" dur="0.001" fill="hold"
targetElement="narrationID" type="call" cmd="playFrom(0.0)"/>
</oa:par>
</oa:par>
</oa:par>
</oa:seq>
<oa:audio src="" o:srcRefType="shape" o:srcRef="_x0000_s58375"
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>
Post by cybarber
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement
or
Post by cybarber
a
Post by cybarber
narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)
find that and you should be able to control the narration start.
<oa:audio src="narration0022.mp3" o:srcRefType="shape"
o:srcRef="_x0000_s62472"
volume="50.0" endAfterSlide="1" hideWhenStopped="true"
id="narrationID"
Post by cybarber
Post by cybarber
begin="indefinite" end="document.onpptprev;document.onstopaudio"
repeatCount="1.0" fill="hold" o:display="hidden"/>
Anil Philip
2005-01-03 03:11:00 UTC
Permalink
Hello,
Problem: Possible bug. Windows XP SP2 does not play audio objects that used
to work in Windows98 with Office Animation Runtime installed....

Details: I am finding that my Powerpoint 2003 presentation - When I 'Save
For Web' (NOT single web page) with the powerpoint presentation options
previously set to No Slide Transition and also No Animation; I record a
narration for the slide and try to bring up the html presentation in the
browser (IE 6.029), there is no sound when I click the Narration speaker
icon button.
The narrations were saved as Linked, not embedded.
It works on Windows 98 with the Office animation Runtime. Looking through
script.js that is generated, I find a possible bug in ToggleVNarration(),
the code that is called when the icon button is clicked.
if(rObj.playstate) & !g_anim...
this condition becomes true! (but rObj is NOT supported because when I
modify the code to put a rObj.Play(), nothing, no sound...)

where rObj is the document("NSPlay") is for Netscape and pre-IE5.5 browsers,
see below. In MS Script Editor, apparently rObj is not supported by XP
because it says rObj.playstate is undefined when I try to 'Watch' for it in
debug mode.
--in the HTML generatedfile--
<![if !ppt]><OBJECT ID="NSPlay" WIDTH=0 HEIGHT=0
CLASSID="CLSID:2179C5D3-EBFF-11CF-B6FD-00AA00B4E220"
CODEBASE="http://www.microsoft.com/netshow/download/en/nsasfinf.cab#Version=
2,0,0,912">
<PARAM NAME="FileName" VALUE="narration0027.mp3">
<PARAM NAME="ControlType" value="0">
<PARAM NAME="AutoStart" value="FALSE">
</OBJECT>
-----------------------------

this is ridiculous! I am tearing my hair out...
thanks,
Anil Philip

----in script.js in the generated files folder--------
function ToggleVNarration()
{
rObj=PPTSld.document.all("NSPlay")
-BUG?-->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()
}
}
---
for good news go to http://members.tripod.com/~goodnewsforyou/goodnews.html
Anil Philip
2005-01-02 13:56:33 UTC
Permalink
<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>
I changed the begin=0.0 to begin=indefinite. Now the sound does not
autostart. However it does not start during slideshow either.
thanks,
Anil
---------
Post by cybarber
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement or a
narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)
find that and you should be able to control the narration start.
<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"/>
Hello,
How do I ensure that the sound in the sequence does not play upon
load/reload?
thanks,
Anil
-----
<!--
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="seek"
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">
Post by cybarber
<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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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]>
cybarber
2005-01-02 22:18:50 UTC
Permalink
Of course it doesn't start, that is the whole point of setting begin to
indefinite.

use beginElement() or beginElementAt() to start it.

You would better study a bit more the basics of HTML+TIME at MSDN.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors/reference/time2/htime_node_entry.asp






"Anil Philip" <***@yahoo.com> schreef in bericht news:%***@tk2msftngp13.phx.gbl...
<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>
I changed the begin=0.0 to begin=indefinite. Now the sound does not
autostart. However it does not start during slideshow either.
thanks,
Anil
---------
Post by cybarber
The audio element has its begin as begin="indefinite" so it will not start
playing upon page onload.
If it does then some where else there is either a declarative statement or a
narrationID.beginElement() (at least that is the way it is done in
xhtml+smil(html+time)
find that and you should be able to control the narration start.
<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"/>
Hello,
How do I ensure that the sound in the sequence does not play upon
load/reload?
thanks,
Anil
-----
<!--
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="seek"
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">
Post by cybarber
<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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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"
Post by cybarber
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]>
Anil Philip
2005-01-03 04:19:01 UTC
Permalink
When I insert the call
narObj = PPTSld.document.all("narrationID")
narObj.beginElement(0.0);

there is no sound when the button is clicked that calls this function. I
tried playFrom(0.0) but no luck. However when I run slideshow fullscreen,
then the sound plays. I put debugger; statements in the code to see what
call would make the sound play. However, there is no beginElement() call -
and in debugger mode (MS Script editor), the sound does not play. However I
do notice some 'filter' statements - eg. SlideObj.filters.revealtrans.Play()

<p:animation number="-2051169155"/><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="seek"
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>
</oa:seq>
<oa:audio src="sound139.wav" o:srcRefType="shape" o:srcRef="_x0000_s70665"
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>
Post by cybarber
Of course it doesn't start, that is the whole point of setting begin to
indefinite.
use beginElement() or beginElementAt() to start it.
You would better study a bit more the basics of HTML+TIME at MSDN.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/reference/time2/htime_node_entry.asp
cybarber
2005-01-06 23:11:52 UTC
Permalink
use beginElement() and not beginElement(0.0)
When I insert the call
narObj = PPTSld.document.all("narrationID")
narObj.beginElement(0.0);

there is no sound when the button is clicked that calls this function. I
tried playFrom(0.0) but no luck. However when I run slideshow fullscreen,
then the sound plays. I put debugger; statements in the code to see what
call would make the sound play. However, there is no beginElement() call -
and in debugger mode (MS Script editor), the sound does not play. However I
do notice some 'filter' statements - eg. SlideObj.filters.revealtrans.Play()

<p:animation number="-2051169155"/><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="seek"
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>
</oa:seq>
<oa:audio src="sound139.wav" o:srcRefType="shape" o:srcRef="_x0000_s70665"
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>
Post by cybarber
Of course it doesn't start, that is the whole point of setting begin to
indefinite.
use beginElement() or beginElementAt() to start it.
You would better study a bit more the basics of HTML+TIME at MSDN.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
/reference/time2/htime_node_entry.asp
Anil Philip
2005-01-08 20:48:51 UTC
Permalink
Cybarber,
thank you! I re-read the html+time articles and I had to use
beginElement(0.0) otherwise it gives an error - wrong number of arguments or
invalid parameters. Also, I added begin="indefinite" so it would not play on
reload. However I must say that none of these is documents unlike what you
said - office:activation. I did a search for relevant documentation on it in
msdn but could not find any.
thanks,
Anil
Post by cybarber
use beginElement() and not beginElement(0.0)
When I insert the call
narObj = PPTSld.document.all("narrationID")
narObj.beginElement(0.0);
there is no sound when the button is clicked that calls this function. I
tried playFrom(0.0) but no luck. However when I run slideshow fullscreen,
then the sound plays. I put debugger; statements in the code to see what
call would make the sound play. However, there is no beginElement() call -
and in debugger mode (MS Script editor), the sound does not play. However I
do notice some 'filter' statements - eg.
SlideObj.filters.revealtrans.Play()
Post by cybarber
<p:animation number="-2051169155"/><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="seek"
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">
Post by cybarber
<oa:command id="TimeNode5" dur="0.001" fill="hold"
targetElement="narrationID" type="call" cmd="playFrom(0.0)"/>
</oa:par>
</oa:par>
</oa:par>
</oa:seq>
<oa:audio src="sound139.wav" o:srcRefType="shape"
o:srcRef="_x0000_s70665"
Post by cybarber
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>
Post by cybarber
Of course it doesn't start, that is the whole point of setting begin to
indefinite.
use beginElement() or beginElementAt() to start it.
You would better study a bit more the basics of HTML+TIME at MSDN.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
Post by cybarber
/reference/time2/htime_node_entry.asp
Anil Philip
2005-01-08 21:11:35 UTC
Permalink
And I also had to set a flag in the generated powerpoint script.js
g_showInBrowser = true;
Post by Anil Philip
Cybarber,
thank you! I re-read the html+time articles and I had to use
beginElement(0.0) otherwise it gives an error - wrong number of arguments or
invalid parameters. Also, I added begin="indefinite" so it would not play on
reload. However I must say that none of these is documents unlike what you
said - office:activation. I did a search for relevant documentation on it in
msdn but could not find any.
thanks,
Anil
Post by cybarber
use beginElement() and not beginElement(0.0)
When I insert the call
narObj = PPTSld.document.all("narrationID")
narObj.beginElement(0.0);
there is no sound when the button is clicked that calls this function. I
tried playFrom(0.0) but no luck. However when I run slideshow fullscreen,
then the sound plays. I put debugger; statements in the code to see what
call would make the sound play. However, there is no beginElement() call -
and in debugger mode (MS Script editor), the sound does not play.
However
Post by Anil Philip
I
Post by cybarber
do notice some 'filter' statements - eg.
SlideObj.filters.revealtrans.Play()
Post by cybarber
<p:animation number="-2051169155"/><oa:par id="TimeNode0"
dur="indefinite"
Post by Anil Philip
Post by cybarber
restart="never" p:nodeType="timingRoot">
<oa:seq id="TimeNode1" dur="indefinite" prev="document.onpptprev"
next="document.onpptnext" concurrent="enabled" nextAction="seek"
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">
Post by cybarber
<oa:command id="TimeNode5" dur="0.001" fill="hold"
targetElement="narrationID" type="call" cmd="playFrom(0.0)"/>
</oa:par>
</oa:par>
</oa:par>
</oa:seq>
<oa:audio src="sound139.wav" o:srcRefType="shape"
o:srcRef="_x0000_s70665"
Post by cybarber
volume="50.0" endAfterSlide="1" hideWhenStopped="true"
id="narrationID"
Post by Anil Philip
Post by cybarber
begin="indefinite" end="document.onpptprev;document.onstopaudio"
repeatCount="1.0" fill="hold" o:display="hidden"/>
</oa:par>
Post by cybarber
Of course it doesn't start, that is the whole point of setting begin to
indefinite.
use beginElement() or beginElementAt() to start it.
You would better study a bit more the basics of HTML+TIME at MSDN.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/behaviors
Post by Anil Philip
Post by cybarber
/reference/time2/htime_node_entry.asp
Loading...