Examples of ExMCIMovie


Examples of org.apache.poi.hslf.record.ExMCIMovie

   * @param path
   *            the path or url to the movie
   * @return 0-based index of the movie
   */
  public int addMovie(String path, int type) {
    ExMCIMovie mci;
    switch (type) {
      case MovieShape.MOVIE_MPEG:
        mci = new ExMCIMovie();
        break;
      case MovieShape.MOVIE_AVI:
        mci = new ExAviMovie();
        break;
      default:
        throw new IllegalArgumentException("Unsupported Movie: " + type);
    }

    ExVideoContainer exVideo = mci.getExVideo();
    exVideo.getExMediaAtom().setMask(0xE80000);
    exVideo.getPathAtom().setText(path);

    int objectId = addToObjListAtom(mci);
    exVideo.getExMediaAtom().setObjectId(objectId);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.