def StopJob(transcoder_ip, job_guid): carbon = CarbonSocketLayer(transcoder_ip) Job = CarbonJob(carbon, job_guid) Job.Stop()
def RemoveJob(transcoder_ip, job_guid): carbon = CarbonSocketLayer(transcoder_ip) Job = CarbonJob(carbon, job_guid) return Job.Remove()
def GetJobSpeed(transcoder_ip, job_guid): carbon = CarbonSocketLayer(transcoder_ip) Job = CarbonJob(carbon, job_guid) return Job.GetSpeed()
def GetJobError(transcoder_ip, job_guid): carbon = CarbonSocketLayer(transcoder_ip) Job = CarbonJob(carbon, job_guid) return Job.GetError()
def GetJobState(transcoder_ip, job_guid): carbon = CarbonSocketLayer(transcoder_ip) Job = CarbonJob(carbon, job_guid) return Job.GetState(), str(Job.GetProgress())