Updated channel videos liks to 3gp format
This commit is contained in:
parent
839743779b
commit
b7ea756789
|
@ -81,13 +81,18 @@ class Panel::Video::BackEnd::ChannelVideosController < OrbitBackendController
|
||||||
|
|
||||||
|
|
||||||
@client_videos.videos.each do |video|
|
@client_videos.videos.each do |video|
|
||||||
url = video.player_url
|
# url = video.player_url
|
||||||
title = video.title
|
title = video.title
|
||||||
description = video.description
|
description = video.description
|
||||||
author = video.author.name
|
author = video.author.name
|
||||||
channel_name = channel.channel_name
|
channel_name = channel.channel_name
|
||||||
|
video.media_content.each do |m|
|
||||||
|
if m.mime_type == "video/3gpp"
|
||||||
|
@url = m.url
|
||||||
|
end
|
||||||
|
end
|
||||||
# category_id = category.id.to_s
|
# category_id = category.id.to_s
|
||||||
@data << { title: title, description: description, url: url, author: author, channel_name: channel_name}
|
@data << { title: title, description: description, url: @url, author: author, channel_name: channel_name}
|
||||||
end
|
end
|
||||||
|
|
||||||
render :json => JSON.pretty_generate(@data)
|
render :json => JSON.pretty_generate(@data)
|
||||||
|
|
Loading…
Reference in New Issue