Leahcim
Leahcim

Reputation: 42049

Playing video stored in S3 or Dropbox in Rails application

I uploaded an audio file to Dropbox and put a link to it in my Rails application. When I clicked the link, it automatically opened an audio player. However, when I tried the same with video, it didn't work, either in S3 or Dropbox (which uses S3). Is there a way to play video from Dropbox or S3 in a Rails application?

Upvotes: 0

Views: 565

Answers (1)

siannopollo
siannopollo

Reputation: 1466

I think the reason the audio file opened in the browser and not the video is more a function of your browser and not your Rails app. If you want to control the display of those things you will need to use <video> tags for videos, and <audio> tags for audio. You can find references for both of those here and here.

Upvotes: 1

Related Questions