Looping videos in rails application