Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

help! Sound and the Office Animation Runtime package
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




Report this thread to moderator Post Follow-up to this message
Old Post
Anil Philip
12-17-04 08:55 AM


Re: help! Sound and the Office Animation Runtime package
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
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Anil Philip
12-19-04 01:55 AM


Re: help! Sound and the Office Animation Runtime package
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]>




Report this thread to moderator Post Follow-up to this message
Old Post
Anil Philip
12-19-04 08:55 AM


Re: help! Sound and the Office Animation Runtime package
http://msdn.microsoft.com/library/d...uthor/behaviors
/reference/time2/time_dom_ovw.asp


Anil Philip wrote in message ...
>From the following article it seems to be DHTML and HTML+TIME



Report this thread to moderator Post Follow-up to this message
Old Post
Anil Philip
12-19-04 08:55 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

MSDN archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:41 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.