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