I’ve moved from trying to bookmark my video to using the trim capability.
The relevant section of my code looks like this:
String p14Ns =
"http://schemas.microsoft.com/office/powerpoint/2010/main";
cur.beginElement(new QName(p14Ns, "media", "p14"));
cur.insertAttributeWithValue(new
QName(STRelationshipId.type.getName().getNamespaceURI(), "embed"),
prsEmbed.getId());
cur.beginElement(new QName(p14Ns, "trim", "p14"));
cur.insertAttributeWithValue(new QName(p14Ns, "st", "p14"),
df_time.format(so.getStart()*1000.0));
When I try to open the PPTX file in PowerPoint 2011 (Mac), I get an error that
the file contains content that is not recognized and will be removed. Except
for the trimming, everything then works fine.
Looking at the XML, the relevant portion looks like this:
<p:nvPr>
<a:videoFile r:link="rId5"/>
<p:extLst>
<p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">
<media r:embed="rId4">
<p14:trim p14:st="6741"
xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"/>
</media>
</p:ext>
</p:extLst>
</p:nvPr>
If I create the video trimming from within PowerPoint, I get XML which looks
like this:
<p:nvPr>
<a:videoFile r:link="rId1"/>
<p:extLst>
<p:ext uri="{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}">
<p14:media
xmlns:p14="http://schemas.microsoft.com/office/powerpoint/2010/main"
r:embed="rId2">
<p14:trim st="6468"/>
</p14:media>
</p:ext>
</p:extLst>
</p:nvPr>
Except for the differences in namespace handling, I don’t see the difference.
I confess that I am fairly naive when it comes to generating XML
programatically (I’m more used to using marshaling frameworks), so any advice
on what I could be doing wrong is welcome.
Thanks...
John Ruschmeyer
EOIR Mission Command Division
23 Christopher Way
Eatontown, NJ 07724
[email protected]<mailto:[email protected]>
732-759-6311 Office
732-995-2875 Cell
www.EOIR.com<http://www.eoir.com/>
[cid:CDF3A723-4E6F-4C7B-A132-7C29CAEAB829]
On Apr 8, 2015, at 12:27 PM, kiwiwings
<[email protected]<mailto:[email protected]>> wrote:
John Ruschmeyer wrote
Any idea which versions of PowerPoint support starting and stopping
mid-video?
You have to add the timing elements which are kinda recursive, for each
following presentation step.
I've got PowerPoint 2010 on my project laptop and the mid-video jumps were
working,
e.g. I had two videos on the same page:
1st click start from 5th second on first video
2nd click stop first video
3rd click start from 10th second on second video
4th click stop second video
I did the setting up in PowerPoint. The resulting video didn't have control
overlays on the video.
Furthermore I guess not all video formats are randomly accessable.
I would open the videos in Quicktime and see if it's possible to start
mid-video.
Andi