Skip to content

Audio and Video in Office 2010 is working in this version of PHPPresentation (repo available). #491

Open
@Laar2

Description

@Laar2

Update :

code available in this repo: https://github.com/Laar2/PHPPresentation

I am using PHPPresentation to create PPTX for Office 2010. When adding a video the PPTX must be repaired.
I compared some files and saw the following :

  • in the PPTX this file is missing : \ppt\media\image1.png . This image is used as the black background in the video .
  • in the ppt\slides_rels\slide1.xml.rels the reference to this image1.png is also missing
  • In the file ppt\slides\slide1.xml the <a:blip r:embed="rId4"/> must reference this image1.png
  • In the file ppt\slides\slide1.xml the <a:videoFile r:link="rId2"/> must reference a video : <Relationship Id="rId2" Type= "http://schemas.openxmlformats.org/officeDocument/2006/relationships/video" Target="../media/sintel_trailer-480p2.wmv"/>
  • In the file ppt\slides\slide1.xml the <p14:media xmlns:p14 = "http://schemas.microsoft.com/office/powerpoint/2010/main" r:embed="rId3"/> must reference a media file : <Relationship Id="rId3" Type="http://schemas.microsoft.com/office/2007/relationships/media" Target="../**media**/sintel_trailer-480p2.wmv"/>
  • <cNvPr> has a duplicate ID, make these unique
  • The entire <p:timing> bock is missing. the SPID values inside the timing block must match the ID of the second <cNvPr>

(the used IDs are only for clarifying ...)

So when the missing image is there, the references to the media are all ok and the controles are linked (shape-target) to the right ID, then it works OK in Office 2010.

Is there someone still working on PHPpresentation?

Sample_03_Image_manually_repaired.pptx
Sample_03_Image_needs_repair.pptx

all_files.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions