Updated channel videos liks to 3gp format

This commit is contained in:
saurabhbhatia 2013-10-04 20:04:44 +08:00
parent 839743779b
commit b7ea756789
1 changed files with 7 additions and 2 deletions

View File

@ -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)