|
|
|
@ -33,10 +33,9 @@ class Videos::BatchPublishService < ApplicationService
|
|
|
|
|
code_info = AliyunVod::Service.get_meta_code_info(video.uuid)
|
|
|
|
|
if code_info.present? && code_info.start_with?('h264', 'h265')
|
|
|
|
|
video.transcoded = true
|
|
|
|
|
#Rails.logger.info("####video.uuid:#{video.uuid}")
|
|
|
|
|
#result = AliyunVod::Service.get_play_info(video.uuid)
|
|
|
|
|
# Rails.logger.info("####video.result:#{result}")
|
|
|
|
|
#video.play_url = result['PlayInfoList']['PlayInfo'][0]['PlayURL']
|
|
|
|
|
result = AliyunVod::Service.get_play_info(video.uuid) rescue nil
|
|
|
|
|
play_url = result['PlayInfoList']['PlayInfo'][0]['PlayURL'] if result
|
|
|
|
|
video.play_url = play_url
|
|
|
|
|
else
|
|
|
|
|
AliyunVod::Service.submit_transcode_job(video.uuid, Video::NORMAL_TRANSCODE_GROUP_ID)
|
|
|
|
|
end
|
|
|
|
|