def ProcessVideoRPC(self, request, context): filePath, ext = ffmpeg.processVideo(request.filePath) return ct_pb2.File(filePath=filePath, ext=ext)
def ConvertVideoToWavRPCWithOffset(self, request, context): filePath, ext = ffmpeg.convertVideoToWavWithOffset( request.file.filePath, request.offset) return ct_pb2.File(filePath=filePath, ext=ext)
def DownloadEchoVideoRPC(self, request, context): echoprovider = EchoProvider() filePath, ext = echoprovider.getMedia(request) return ct_pb2.File(filePath=filePath, ext=ext)
def DownloadYoutubeVideoRPC(self, request, context): youtubeprovider = YoutubeProvider() filePath, ext = youtubeprovider.getMedia(request) return ct_pb2.File(filePath=filePath, ext=ext)
def DownloadKalturaVideoRPC(self, request, context): kalturaprovider = KalturaProvider() filePath, ext = kalturaprovider.getMedia(request) return ct_pb2.File(filePath=filePath, ext=ext)