Ruby on Rails Wednesday, May 28, 2014

I tried copy/pasting a sample video.js script straight from tutorial in
a js file titled play_time.js in /assets/javascript that looks like
this:

<!doctype html>
<head>
<title>Video.JS Example</title>
<link href="//vjs.zencdn.net/4.1/video-js.css" rel="stylesheet">
<script src="//vjs.zencdn.net/4.1/video.js"></script>
</head>
<body>
<div style="width:700px;margin:0px auto;">
<video id="example_video_1" class="video-js
vjs-default-skin"
controls preload="auto" width="640" height="264"
poster="http://video-js.zencoder.com/oceans-clip.png"
data-setup='{"controls":true}'>
<source
src="http://video-js.zencoder.com/oceans-clip.mp4" type='video/mp4' />
<source
src="http://video-js.zencoder.com/oceans-clip.webm" type='video/webm' />
<source
src="http://video-js.zencoder.com/oceans-clip.ogv" type='video/ogg' />
</video>
</div>
</body>

I then referenced the file using a tag in my /view like this:

<% javascript_include_tag "play_time" %>

Nothing renders?!!!

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2f47826711ab4827a123773f64ba5525%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment