Search in sources :

Example 16 with Job

use of org.storymaker.app.model.Job in project storymaker by StoryMaker.

the class PreviewPublisher method startRender.

public void startRender() {
    Timber.d("startRender");
    Job videoRenderJob = new Job(mContext, mPublishJob.getProjectId(), mPublishJob.getId(), JobTable.TYPE_RENDER, SITE_KEY, VideoRenderer.SPEC_KEY);
    mController.enqueueJob(videoRenderJob);
}
Also used : Job(org.storymaker.app.model.Job) PublishJob(org.storymaker.app.model.PublishJob)

Example 17 with Job

use of org.storymaker.app.model.Job in project storymaker by StoryMaker.

the class S3Publisher method startUpload.

public void startUpload() {
    Timber.d("startUpload");
    Job newJob = new Job(mContext, mPublishJob.getProjectId(), mPublishJob.getId(), JobTable.TYPE_UPLOAD, Auth.SITE_S3, null);
    mController.enqueueJob(newJob);
}
Also used : Job(org.storymaker.app.model.Job) PublishJob(org.storymaker.app.model.PublishJob)

Example 18 with Job

use of org.storymaker.app.model.Job in project storymaker by StoryMaker.

the class StoryMakerPublisher method startUpload.

public void startUpload() {
    Timber.d("startUpload");
    // FIXME hardcoded to youtube?
    Job newJob = new Job(mContext, mPublishJob.getProjectId(), mPublishJob.getId(), JobTable.TYPE_UPLOAD, Auth.SITE_YOUTUBE, null);
    mController.enqueueJob(newJob);
}
Also used : Job(org.storymaker.app.model.Job) PublishJob(org.storymaker.app.model.PublishJob)

Example 19 with Job

use of org.storymaker.app.model.Job in project storymaker by StoryMaker.

the class StoryMakerPublisher method startRender.

public void startRender() {
    Timber.d("startRender");
    // TODO should detect if user is directly publishing to youtube so we don't double publish to there
    Job videoRenderJob = new Job(mContext, mPublishJob.getProjectId(), mPublishJob.getId(), JobTable.TYPE_RENDER, null, VideoRenderer.SPEC_KEY);
    mController.enqueueJob(videoRenderJob);
}
Also used : Job(org.storymaker.app.model.Job) PublishJob(org.storymaker.app.model.PublishJob)

Example 20 with Job

use of org.storymaker.app.model.Job in project storymaker by StoryMaker.

the class YoutubePublisher method startUpload.

@Override
public void startUpload() {
    Timber.d("startUpload()");
    Job newJob = new Job(mContext, mPublishJob.getProjectId(), mPublishJob.getId(), JobTable.TYPE_UPLOAD, Auth.SITE_YOUTUBE, null);
    mController.enqueueJob(newJob);
}
Also used : Job(org.storymaker.app.model.Job) PublishJob(org.storymaker.app.model.PublishJob)

Aggregations

Job (org.storymaker.app.model.Job)20 PublishJob (org.storymaker.app.model.PublishJob)20 Project (org.storymaker.app.model.Project)2 IOException (java.io.IOException)1 ProjectTable (org.storymaker.app.model.ProjectTable)1 ArchiveUploader (org.storymaker.app.publish.sites.ArchiveUploader)1 AudioRenderer (org.storymaker.app.publish.sites.AudioRenderer)1 FacebookUploader (org.storymaker.app.publish.sites.FacebookUploader)1 FlickrUploader (org.storymaker.app.publish.sites.FlickrUploader)1 S3Uploader (org.storymaker.app.publish.sites.S3Uploader)1 SSHUploader (org.storymaker.app.publish.sites.SSHUploader)1 SoundCloudUploader (org.storymaker.app.publish.sites.SoundCloudUploader)1 StoryMakerUploader (org.storymaker.app.publish.sites.StoryMakerUploader)1 YoutubeUploader (org.storymaker.app.publish.sites.YoutubeUploader)1