ga-wdi-exercises / project2

[project]
1 stars 30 forks source link

problem uploading pics and video #844

Closed malrese1 closed 7 years ago

malrese1 commented 7 years ago

im having a problem showing a video on the site

AndyWhitley commented 7 years ago

Could you please be a bit more specific about the error you are seeing and what you have tried so far to solve it?

malrese1 commented 7 years ago

trying to make a video my background

I tried so far putting a video folder in fj and adding

<video >
  <source src="movie.mp4" type="video/mp4">
  <source src="movie.ogg" type="video/ogg">
  Your browser does not support the video tag.
</video>
amaseda commented 7 years ago

If you're going to reference a locally-stored video in a Rails app, you need to put it somewhere in the /app/assets directory.

Take a look at this Stack Overflow answer that addresses the issue: http://stackoverflow.com/a/8146619

From there, you can try referencing the filename in the <video> tag as you did in your example.