save as html, movies with relative paths

H

hzgt9b

I have a ppt slide that contains (a link to) a movie (wmv), with a custom
animation on the movie. I need to convert this ppt slide to html, burn it to
disk and eventally release this to my client...

Problem(s)
1 - When I publish (ensuring that the "Show slide animation while browsing"
option is selected) to html, burn to disk and try to view the html slide from
a client's laptop, the movie does not play. Curiously, if I open the original
ppt slide on the client's laptop, the movie plays fine. Any idea what going
on here?

2 - Looking at the html and xml files - I noticed they contain hardcoded
paths to the movie files - I need these to be relative as I have now burned
them to a CD - and can't have references to the original movie's location
(its on a networked drive and I can't assume that all my clients will be able
to "reach" my network drive....)

Any help would be appreciated.
 
H

hzgt9b

I made modifications to the html on my PC so that the paths were relative the
folder that the html file was in... and it works fine on my PC!

Unfortunately, when I burn the html files to a disk, and open them on my
client laptop, the movie does not respond...

Any ideas why it would work on my PC but not run correctly off a disk?
 
H

hzgt9b

Ok, so here goes... (more on issue #2 in the original message)

When I convert my ppt to html, it creates a html slide in the same directory
with the same name and a folder with the same name (minus the extension) with
the word "_files" appended to the end of the dir name. So, I have a slide
named "Video Example", thus my file & dir names are: "Video Example.ppt",
"Video Example.html" and ".\Video Example_files". To discover where any hard
coded references to my wmv files were, I searched all the files in the
".\Video Example_files" for the string "wmv". I got there hits:
filelist.xml
pres.xml
slide0191.htm

filelist.xml:
Had one line referring to the wmv file and it looks to be relative
already... I didn't make any changes to this file
<o:File HRef="file0116.wmv" />

pres.xml:
Had one line referring to the wmv file:
<p:htmlpublishsettings browsersupport="v4" href="C:\myContent\Video
Example.htm" noloadinbrowser="t" />
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

slide0191.htm:
Had three lines referring to the wmv file.
1:
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///C:\myContent\Bloopers1.wmv"/></v:shape><![if !ppt]>
Changed to
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///..\Bloopers1.wmv"/></v:shape><![if !ppt]>
I did some monkeying around tried bogus values for the href value. No
matter what value I put here, the file played as expected. Does this
reference even get used?


2:
<param name=FileName value=file0116.wmv>
Since this already looked to be relative, I made no change here.

3:
<oa:video src="file0116.wmv" o:srcRefType="shape"
o:srcRef="_x0000_s324731"
targetElement="S1" volume="50.0" id="TimeNode6" begin="indefinite"
end="document.onpptnext;document.onpptprev" repeatCount="1.0"
fill="hold"
o:display="hidden"/>
Again, this already looked to be relative, I made no change here.


After making the above changes on my dev machine, the html files still can
be opened in IE (i.e. no error messages), but the movies still don't play.
Did I make the correct changes above?

Actually I did some tinkering on this also - it seems that if I don't have
the "Show slide animation while browsing" option checked when I convert the
ppt to html the movies play, but the custom actions don't work - done this
way it takes a single click to start the movie, but subsequent clicks don't
pause or stop the playback. Conversely, when I ensure that the "Show slide
animation while browsing" option is checked, the movie never starts playing
at all when I try to view it through IE. I'm quite baffleled by this...
anyone with some wisdom or experience on this? Your thoughts would be greatly
appreciated!


-Charles
 
H

hzgt9b

Sorry, all three of the files that I listed below are in the ".\Video
Example_files" folder - that's why I added the "..\" so that they could
reference the original HTML page...

Steve Rindsberg said:
Here's hoping somebody who follows PPT's html can work this out but this struck me as
wrong.
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

Shouldn't it be

href="Video Example.htm" etc

Ie, same directory as current html page, not the parent directory of same.
When I convert my ppt to html, it creates a html slide in the same directory
with the same name and a folder with the same name (minus the extension) with
the word "_files" appended to the end of the dir name. So, I have a slide
named "Video Example", thus my file & dir names are: "Video Example.ppt",
"Video Example.html" and ".\Video Example_files". To discover where any hard
coded references to my wmv files were, I searched all the files in the
".\Video Example_files" for the string "wmv". I got there hits:
filelist.xml
pres.xml
slide0191.htm

filelist.xml:
Had one line referring to the wmv file and it looks to be relative
already... I didn't make any changes to this file
<o:File HRef="file0116.wmv" />

pres.xml:
Had one line referring to the wmv file:
<p:htmlpublishsettings browsersupport="v4" href="C:\myContent\Video
Example.htm" noloadinbrowser="t" />
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

slide0191.htm:
Had three lines referring to the wmv file.
1:
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///C:\myContent\Bloopers1.wmv"/></v:shape><![if !ppt]>
Changed to
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///..\Bloopers1.wmv"/></v:shape><![if !ppt]>
I did some monkeying around tried bogus values for the href value. No
matter what value I put here, the file played as expected. Does this
reference even get used?


2:
<param name=FileName value=file0116.wmv>
Since this already looked to be relative, I made no change here.

3:
<oa:video src="file0116.wmv" o:srcRefType="shape"
o:srcRef="_x0000_s324731"
targetElement="S1" volume="50.0" id="TimeNode6" begin="indefinite"
end="document.onpptnext;document.onpptprev" repeatCount="1.0"
fill="hold"
o:display="hidden"/>
Again, this already looked to be relative, I made no change here.

After making the above changes on my dev machine, the html files still can
be opened in IE (i.e. no error messages), but the movies still don't play.
Did I make the correct changes above?

Actually I did some tinkering on this also - it seems that if I don't have
the "Show slide animation while browsing" option checked when I convert the
ppt to html the movies play, but the custom actions don't work - done this
way it takes a single click to start the movie, but subsequent clicks don't
pause or stop the playback. Conversely, when I ensure that the "Show slide
animation while browsing" option is checked, the movie never starts playing
at all when I try to view it through IE. I'm quite baffleled by this...
anyone with some wisdom or experience on this? Your thoughts would be greatly
appreciated!

-Charles

Steve Rindsberg said:
I made modifications to the html on my PC so that the paths were relative the
folder that the html file was in... and it works fine on my PC!

Unfortunately, when I burn the html files to a disk, and open them on my
client laptop, the movie does not respond...

Any ideas why it would work on my PC but not run correctly off a disk?

Not offhand, but post some snips of the modified HTML and maybe somebody will be
able to suss it out



:

I have a ppt slide that contains (a link to) a movie (wmv), with a custom
animation on the movie. I need to convert this ppt slide to html, burn it to
disk and eventally release this to my client...

Problem(s)
1 - When I publish (ensuring that the "Show slide animation while browsing"
option is selected) to html, burn to disk and try to view the html slide from
a client's laptop, the movie does not play. Curiously, if I open the original
ppt slide on the client's laptop, the movie plays fine. Any idea what going
on here?

2 - Looking at the html and xml files - I noticed they contain hardcoded
paths to the movie files - I need these to be relative as I have now burned
them to a CD - and can't have references to the original movie's location
(its on a networked drive and I can't assume that all my clients will be able
to "reach" my network drive....)


As to #2, the usual trick for making movie paths relative in PPT is:

Put the movie file in the same folder as the PPT itself
Then (and only then) insert the movie

Whether this works for PPT converted to HTML or not is left, as they say, as an
exercise for the interested reader. That'd be you. <g>

Let us know how it works out?


-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================





-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
 
M

Mike M.

...\ is different that .\. The first goes back up the folder tree one level.
The second is relative to the current folder.

Sorry, all three of the files that I listed below are in the ".\Video
Example_files" folder - that's why I added the "..\" so that they could
reference the original HTML page...

Steve Rindsberg said:
Here's hoping somebody who follows PPT's html can work this out but this struck me as
wrong.
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

Shouldn't it be

href="Video Example.htm" etc

Ie, same directory as current html page, not the parent directory of same.
When I convert my ppt to html, it creates a html slide in the same directory
with the same name and a folder with the same name (minus the extension) with
the word "_files" appended to the end of the dir name. So, I have a slide
named "Video Example", thus my file & dir names are: "Video Example.ppt",
"Video Example.html" and ".\Video Example_files". To discover where any hard
coded references to my wmv files were, I searched all the files in the
".\Video Example_files" for the string "wmv". I got there hits:
filelist.xml
pres.xml
slide0191.htm

filelist.xml:
Had one line referring to the wmv file and it looks to be relative
already... I didn't make any changes to this file
<o:File HRef="file0116.wmv" />

pres.xml:
Had one line referring to the wmv file:
<p:htmlpublishsettings browsersupport="v4" href="C:\myContent\Video
Example.htm" noloadinbrowser="t" />
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

slide0191.htm:
Had three lines referring to the wmv file.
1:
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///C:\myContent\Bloopers1.wmv"/></v:shape><![if !ppt]>
Changed to
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///..\Bloopers1.wmv"/></v:shape><![if !ppt]>
I did some monkeying around tried bogus values for the href value. No
matter what value I put here, the file played as expected. Does this
reference even get used?


2:
<param name=FileName value=file0116.wmv>
Since this already looked to be relative, I made no change here.

3:
<oa:video src="file0116.wmv" o:srcRefType="shape"
o:srcRef="_x0000_s324731"
targetElement="S1" volume="50.0" id="TimeNode6" begin="indefinite"
end="document.onpptnext;document.onpptprev" repeatCount="1.0"
fill="hold"
o:display="hidden"/>
Again, this already looked to be relative, I made no change here.

After making the above changes on my dev machine, the html files still can
be opened in IE (i.e. no error messages), but the movies still don't play.
Did I make the correct changes above?

Actually I did some tinkering on this also - it seems that if I don't have
the "Show slide animation while browsing" option checked when I convert the
ppt to html the movies play, but the custom actions don't work - done this
way it takes a single click to start the movie, but subsequent clicks don't
pause or stop the playback. Conversely, when I ensure that the "Show slide
animation while browsing" option is checked, the movie never starts playing
at all when I try to view it through IE. I'm quite baffleled by this...
anyone with some wisdom or experience on this? Your thoughts would be greatly
appreciated!

-Charles

:

 
H

hzgt9b

Right, the original (converted to HTML) page is "Video Example.htm" and
relative to the contents of the "Video Example_files" folder its path is
"..\Video Example.htm". All the html changes were made to files that are in
the "Video Example_files" folder which is below "Video Example_.html" in the
dir tree...

Regardless, For testing I put a copy of the movie in both folders to ensure
one of the references would be correct ;)

Mike M. said:
...\ is different that .\. The first goes back up the folder tree one level.
The second is relative to the current folder.

Sorry, all three of the files that I listed below are in the ".\Video
Example_files" folder - that's why I added the "..\" so that they could
reference the original HTML page...

Steve Rindsberg said:
Here's hoping somebody who follows PPT's html can work this out but this struck me as
wrong.

Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

Shouldn't it be

href="Video Example.htm" etc

Ie, same directory as current html page, not the parent directory of same.


When I convert my ppt to html, it creates a html slide in the same directory
with the same name and a folder with the same name (minus the extension) with
the word "_files" appended to the end of the dir name. So, I have a slide
named "Video Example", thus my file & dir names are: "Video Example.ppt",
"Video Example.html" and ".\Video Example_files". To discover where any hard
coded references to my wmv files were, I searched all the files in the
".\Video Example_files" for the string "wmv". I got there hits:
filelist.xml
pres.xml
slide0191.htm

filelist.xml:
Had one line referring to the wmv file and it looks to be relative
already... I didn't make any changes to this file
<o:File HRef="file0116.wmv" />

pres.xml:
Had one line referring to the wmv file:
<p:htmlpublishsettings browsersupport="v4" href="C:\myContent\Video
Example.htm" noloadinbrowser="t" />
Changed it to be a relative reference:
<p:htmlpublishsettings browsersupport="v4" href="..\Video Example.htm"
noloadinbrowser="t" />

slide0191.htm:
Had three lines referring to the wmv file.
1:
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///C:\myContent\Bloopers1.wmv"/></v:shape><![if !ppt]>
Changed to
<p:placeholder type="object" position="2" size="half"/><p:eek:nmouseclick
action="playMedia"/><p:media type="mci" length="53586"
href="file:///..\Bloopers1.wmv"/></v:shape><![if !ppt]>
I did some monkeying around tried bogus values for the href value. No
matter what value I put here, the file played as expected. Does this
reference even get used?


2:
<param name=FileName value=file0116.wmv>
Since this already looked to be relative, I made no change here.

3:
<oa:video src="file0116.wmv" o:srcRefType="shape"
o:srcRef="_x0000_s324731"
targetElement="S1" volume="50.0" id="TimeNode6" begin="indefinite"
end="document.onpptnext;document.onpptprev" repeatCount="1.0"
fill="hold"
o:display="hidden"/>
Again, this already looked to be relative, I made no change here.

After making the above changes on my dev machine, the html files still can
be opened in IE (i.e. no error messages), but the movies still don't play.
Did I make the correct changes above?

Actually I did some tinkering on this also - it seems that if I don't have
the "Show slide animation while browsing" option checked when I convert the
ppt to html the movies play, but the custom actions don't work - done this
way it takes a single click to start the movie, but subsequent clicks don't
pause or stop the playback. Conversely, when I ensure that the "Show slide
animation while browsing" option is checked, the movie never starts playing
at all when I try to view it through IE. I'm quite baffleled by this...
anyone with some wisdom or experience on this? Your thoughts would be greatly
appreciated!

-Charles

:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top