Class: StreamAPI::Embed

Inherits:
Object
  • Object
show all
Defined in:
lib/streamapi/embed.rb

Class Method Summary collapse

Class Method Details

.to_html(private_host_id, public_host_id, site_id, theme) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/streamapi/embed.rb', line 4

def self.to_html(private_host_id, public_host_id, site_id, theme)
  embed_code = "    <embed \n      height=\"\#{theme['height'] }\" \n      width=\"\#{theme['width'] }\" \n      wmode=\"\" \n      type=\"application/x-shockwave-flash\" \n      bgcolor=\"#000000\" \n      quality=\"high\" \n      scale=\"noscale\" \n      allowfullscreen=\"true\" \n      allowscriptaccess=\"always\" \n      flashvars=\n      \"authField2Label=Display Name:\n      &authField1Label=UserName:\n      &siteID=\#{site_id}\n      &layoutPath=\#{theme['layout_path']}\n      &skinPath=\#{theme['skin_path']}\n      &publicHostID=\#{public_host_id}\n      &privateHostID=\#{private_host_id}\n      &authType=key\n      &userType=204&\" \n      src=\"http://static.streamapi.com/flash/loader.swf?app=custom.swf\" />\n  EOF\n  \n  embed_code\nend\n"