Module: FlyAdmin::VideosHelper
- Defined in:
- app/helpers/fly_admin/videos_helper.rb
Instance Method Summary collapse
- #converted_percents(video) ⇒ Object
-
#video_title(title) ⇒ Object
without extension.
Instance Method Details
#converted_percents(video) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/fly_admin/videos_helper.rb', line 3 def converted_percents(video) percents = 0 4.times do |i| percents+=((video.encode_mask >> i) & 1)*25 end percents.to_i end |
#video_title(title) ⇒ Object
without extension
11 12 13 |
# File 'app/helpers/fly_admin/videos_helper.rb', line 11 def video_title(title) File.basename(title, File.extname(title))[0..200] end |