kaltura_settings.mustache 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <%
  2. # Copyright (C) 2011 - present Instructure, Inc.
  3. #
  4. # This file is part of Canvas.
  5. #
  6. # Canvas is free software: you can redistribute it and/or modify it under
  7. # the terms of the GNU Affero General Public License as published by the Free
  8. # Software Foundation, version 3 of the License.
  9. #
  10. # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
  11. # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
  12. # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
  13. # details.
  14. #
  15. # You should have received a copy of the GNU Affero General Public License along
  16. # with this program. If not, see <http://www.gnu.org/licenses/>.
  17. %>
  18. <%= fields_for :settings, OpenObject.new(settings) do |f| %>
  19. <table style="width: 500px;" class="formtable">
  20. <tr>
  21. <td colspan="2"><%= mt(:description, <<-TEXT, :kaltura_url => 'http://www.kaltura.com', :notification_url => 'http://your_canvas_domain/media_objects/kaltura_notifications')
  22. You will need an account either at [Kaltura.com](%{kaltura_url})
  23. or with a self-hosted instance of Kaltura.
  24. **Note:** once you have Kaltura configured within Canvas,
  25. you need to go to the Kaltura Management Console and under "Settings ->
  26. Integration Settings" enable server notifications with a
  27. Notification URL of:
  28. %{notification_url}
  29. Then check the boxes for "Add Entry" and "Delete Entry" in the "Sent by Server" column.
  30. TEXT
  31. %></td>
  32. </tr>
  33. <tr>
  34. <td colspan="2" class="sub">
  35. <h3>{{#t}}Domain Settings{{/t}}</h3>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td><%= f.blabel :domain, :en => "Domain" %></td>
  40. <td>
  41. <%= f.text_field :domain %>
  42. <div class="hint">{{#t}}For hosted accounts, use "www.kaltura.com"{{/t}}</div>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td><%= f.blabel :resource_domain, :en => "Resource Domain" %></td>
  47. <td>
  48. <%= f.text_field :resource_domain %>
  49. <div class="hint">{{#t}}For hosted accounts, use "cdn.kaltura.com"{{/t}}</div>
  50. </td>
  51. </tr>
  52. <tr>
  53. <td><%= f.blabel :rtmp_domain, :en => "RTMP Domain" %></td>
  54. <td>
  55. <%= f.text_field :rtmp_domain %>
  56. <div class="hint">{{#t}}For hosted accounts, use "www.kaltura.com"{{/t}}</div>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td colspan="2" class="sub">
  61. <h3>{{#t}}Account Settings{{/t}}</h3>
  62. <p>{{#t}}These values can be found in the Kaltura Management Console under "Settings -> Integration Settings"{{/t}}</p>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td><%= f.blabel :partner_id, :en => "Partner ID" %></td>
  67. <td><%= f.text_field :partner_id %></td>
  68. </tr>
  69. <tr>
  70. <td><%= f.blabel :subpartner_id, :en => "Sub Partner ID" %></td>
  71. <td><%= f.text_field :subpartner_id %></td>
  72. </tr>
  73. <tr>
  74. <td><%= f.blabel :secret_key, :en => "Administrator Secret" %></td>
  75. <td><%= f.text_field :secret_key %></td>
  76. </tr>
  77. <tr>
  78. <td><%= f.blabel :user_secret_key, :en => "User Secret" %></td>
  79. <td><%= f.text_field :user_secret_key %></td>
  80. </tr>
  81. <tr>
  82. <td colspan="2" class="sub">
  83. <h3>{{#t}}UI Conf IDs{{/t}}</h3>
  84. <p>{{#t}}For Kaltura-hosted customers, you can ask Kaltura to provide you with these ids. Self-hosted instances can find these values in the ui_confs table.{{/t}}</p>
  85. </td>
  86. </tr>
  87. <tr>
  88. <td><%= f.blabel :player_ui_conf, :en => "Player UI Conf ID" %></td>
  89. <td><%= f.text_field :player_ui_conf %></td>
  90. </tr>
  91. <tr>
  92. <td><%= f.blabel :kcw_ui_conf, :en => "KCW UI Conf ID" %></td>
  93. <td><%= f.text_field :kcw_ui_conf %></td>
  94. </tr>
  95. <tr>
  96. <td><%= f.blabel :upload_ui_conf, :en => "Uploader UI Conf ID" %></td>
  97. <td><%= f.text_field :upload_ui_conf %></td>
  98. </tr>
  99. <tr>
  100. <td colspan="2" class="sub">
  101. <h3>{{#t}}Canvas Settings{{/t}}</h3>
  102. </td>
  103. </tr>
  104. <tr>
  105. <td>
  106. <%= f.blabel :cache_play_list_seconds, :en => "Seconds to cache playlist URL" %>
  107. <p style="font-size: 0.8em;">{{#t}}Empty means cache indefinitely, 0 means don't cache.{{/t}}</p>
  108. </td>
  109. <td><%= f.text_field :cache_play_list_seconds %></td>
  110. </tr>
  111. <tr>
  112. <td colspan="2" class="sub">
  113. <h3>{{#t}}Misc. Settings{{/t}}</h3>
  114. </td>
  115. </tr>
  116. <tr>
  117. <td>
  118. <%= f.blabel :kaltura_sis, :en => "Write SIS data to Kaltura" %>
  119. <p style="font-size: 0.8em;">{{#t}}If checked user and course SIS data will be provided to Kaltura.{{/t}}</p>
  120. </td>
  121. <td><%= f.check_box :kaltura_sis %></td>
  122. </tr>
  123. <tr>
  124. <td><%= f.label :do_analytics, :en => "Send analytics events" %></td>
  125. <td><%= f.check_box :do_analytics, {}, 'yes', 'no' %></td>
  126. </tr>
  127. <tr>
  128. <td colspan="2" style="font-size: 0.8em;">{{#t}}e.g.{{/t}}<code>(#{domain}/api_v3/index.php?service=stats&action=collect&...)</code></td>
  129. </tr>
  130. <tr>
  131. <td><%= f.label :hide_rte_button, :en => "Hide the video icon in Rich Content Editor." %></td>
  132. <td><%= f.check_box :hide_rte_button, {}, 'yes', 'no' %></td>
  133. </tr>
  134. <tr>
  135. <td colspan="2" style="font-size: 0.8em;">{{#t}}(still there for conversations/SpeedGrader/Media Recordings homework submissions){{/t}}</td>
  136. </tr>
  137. <tr>
  138. <td><%= f.label :js_uploader, :en => "Use html5 (accessible) uploader" %></td>
  139. <td><%= f.check_box :js_uploader, {}, 'yes', 'no' %></td>
  140. </tr>
  141. </table>
  142. <% end %>