Search in sources :

Example 1 with PptPage

use of com.herewhite.sdk.domain.PptPage in project whiteboard-android by netless-io.

the class PptResourceCacheActivity method insertPPT.

public void insertPPT(MenuItem item) {
    logAction();
    mRoom.putScenes(SCENE_DIR, new Scene[] { new Scene("page2", new PptPage("https://white-pan.oss-cn-shanghai.aliyuncs.com/101/image/alin-rusu-1239275-unsplash_opt.jpg", 600d, 600d)) }, 0);
    mRoom.setScenePath(SCENE_DIR + "/page2");
}
Also used : PptPage(com.herewhite.sdk.domain.PptPage) Scene(com.herewhite.sdk.domain.Scene)

Example 2 with PptPage

use of com.herewhite.sdk.domain.PptPage in project whiteboard-android by netless-io.

the class RoomActivity method insertPPT.

public void insertPPT(MenuItem item) {
    logAction();
    mRoom.putScenes(SCENE_DIR, new Scene[] { new Scene("page2", new PptPage("https://white-pan.oss-cn-shanghai.aliyuncs.com/101/image/alin-rusu-1239275-unsplash_opt.jpg", 600d, 600d)) }, 0);
    mRoom.setScenePath(SCENE_DIR + "/page2");
}
Also used : PptPage(com.herewhite.sdk.domain.PptPage) Scene(com.herewhite.sdk.domain.Scene)

Example 3 with PptPage

use of com.herewhite.sdk.domain.PptPage in project whiteboard-android by netless-io.

the class Converter method getPpt.

private ConvertedFiles getPpt(ConversionInfo info, ConvertType type) {
    int fileLength = info.getConvertedFileList().length;
    String[] sliderURLs = new String[fileLength];
    Scene[] scenes = new Scene[fileLength];
    ConvertedFiles files = new ConvertedFiles();
    files.setTaskId(taskId);
    files.setType(convertType(type));
    for (int i = 0; i < fileLength; i++) {
        PptPage pptPage = info.getConvertedFileList()[i];
        pptPage.setSrc(info.getPrefix() + pptPage.getSrc());
        sliderURLs[i] = pptPage.getSrc();
        scenes[i] = new Scene(String.valueOf(i + 1), pptPage);
    }
    files.setSlideURLs(sliderURLs);
    files.setScenes(scenes);
    return files;
}
Also used : ConvertedFiles(com.herewhite.sdk.domain.ConvertedFiles) PptPage(com.herewhite.sdk.domain.PptPage) Scene(com.herewhite.sdk.domain.Scene)

Example 4 with PptPage

use of com.herewhite.sdk.domain.PptPage in project whiteboard-android by netless-io.

the class ConverterV5 method getPpt.

private ConvertedFiles getPpt(ConversionInfo info, ConvertType type) {
    int length = info.getConvertedFileList().length;
    String[] sliderURLs = new String[length];
    Scene[] scenes = new Scene[length];
    for (int i = 0; i < length; i++) {
        PptPage pptPage = info.getConvertedFileList()[i];
        sliderURLs[i] = pptPage.getSrc();
        scenes[i] = new Scene(String.valueOf(i + 1), pptPage);
    }
    ConvertedFiles files = new ConvertedFiles();
    files.setTaskId(taskUuid);
    files.setType(type);
    files.setSlideURLs(sliderURLs);
    files.setScenes(scenes);
    return files;
}
Also used : ConvertedFiles(com.herewhite.sdk.domain.ConvertedFiles) PptPage(com.herewhite.sdk.domain.PptPage) Scene(com.herewhite.sdk.domain.Scene)

Aggregations

PptPage (com.herewhite.sdk.domain.PptPage)4 Scene (com.herewhite.sdk.domain.Scene)4 ConvertedFiles (com.herewhite.sdk.domain.ConvertedFiles)2