Sha256: 81033c886344ba995192d2cc00e510024d7b844361b8cfaeef440a720379cc29

Contents?: true

Size: 1.32 KB

Versions: 68

Compression:

Stored size: 1.32 KB

Contents

<%# referenced by both bit_maker and bit_core %>
<% if (slide.options || {})[:vimeo_id] %>
  <div class="responsive-video">
    <iframe src="//player.vimeo.com/video/<%= slide.options[:vimeo_id] %>?api=1" width="500" height="281" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
  </div>
  <% if current_participant %>
    <script>
      $(function() {
        var iframe = $(".responsive-video iframe[src='//player.vimeo.com/video/" + "<%= slide.options[:vimeo_id] %>" + "?api=1']")[0];
        var player = $f(iframe);
        player.addEvent("ready", function() {
          var eventClient = new EventCaptureClient("/event_capture/events");
          var payload = { currentUrl: window.location.href };
          player.addEvent("play", function() {
            eventClient.log({ kind: "videoPlay", payload: payload });
          });

          player.addEvent("pause", function() {
            eventClient.log({ kind: "videoPause", payload: payload });
          });

          player.addEvent("finish", function() {
            eventClient.log({ kind: "videoFinish", payload: payload });
          });
        });
      });
    </script>
  <% end %>
<% else %>
  <video controls>
    <source src="<%= slide.options['url'] %>" type="video/mp4">
    Your browser does not support the video tag.
  </video>
<% end %>

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.8 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.7 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.6 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.5 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.4 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.2 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.1 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.22.0 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.21.2 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.21.1 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.21.0 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.20.1 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.9 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.8 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.7 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.6 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.5 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.4 app/views/think_feel_do_engine/slides/_video.html.erb
think_feel_do_engine-3.19.3 app/views/think_feel_do_engine/slides/_video.html.erb