예제 #1
0
def StopJob(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    Job.Stop()
예제 #2
0
def RemoveJob(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.Remove()
예제 #3
0
def GetJobSpeed(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetSpeed()
예제 #4
0
def GetJobError(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetError()
예제 #5
0
def GetJobState(transcoder_ip, job_guid):
    carbon = CarbonSocketLayer(transcoder_ip)
    Job = CarbonJob(carbon, job_guid)
    return Job.GetState(), str(Job.GetProgress())