We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7b4f5 commit 3913a83Copy full SHA for 3913a83
lib/podlove-web-player-rails/view_helpers.rb
@@ -15,6 +15,19 @@ def podloveaudio(options = {})
15
16
return raw html + "\n" + javascript_tag(script)
17
end
18
+
19
+ def podlovevideo(options = {})
20
+ html = "<video id='player'>"
21
+ html << "<source src='#{options[:src]}' type='#{options[:type]}'></source>"
22
+ html << "</video>"
23
24
+ options.delete(:src)
25
+ options.delete(:type)
26
27
+ script = "$('#player').podlovewebplayer(#{options.to_json});"
28
29
+ return raw html + "\n" + javascript_tag(script)
30
+ end
31
32
33
0 commit comments