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");
}
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");
}
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;
}
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;
}
Aggregations