获取视频播放地址

dev_video
cxt 5 years ago
parent 1fba76f8e7
commit 5b19b952b6

@ -48,6 +48,7 @@ namespace :video do
result = AliyunVod::Service.get_play_info(video.uuid)
puts result
play_url = data[:PlayInfoList][:PlayInfo][:PlayURL]
puts play_url
# play_url = (result.dig('PlayInfoList', 'PlayInfo') || []).first&.[]('PlayURL')
video.update!(play_url: play_url) if play_url.present?

Loading…
Cancel
Save