Module: Proctoring
- Defined in:
- lib/proctoring.rb,
lib/proctoring/engine.rb,
lib/proctoring/version.rb,
app/jobs/proctoring/application_job.rb,
app/helpers/proctoring/tokens_helper.rb,
app/models/proctoring/video_streaming.rb,
app/models/proctoring/application_record.rb,
app/helpers/proctoring/application_helper.rb,
app/mailers/proctoring/application_mailer.rb,
app/models/proctoring/video_streaming_room.rb,
app/helpers/proctoring/video_streamings_helper.rb,
app/helpers/proctoring/hundred_ms_service_helper.rb,
app/controllers/proctoring/application_controller.rb,
app/controllers/proctoring/video_streamings_controller.rb
Defined Under Namespace
Modules: ApplicationHelper, HundredMsServiceHelper, TokensHelper, VideoStreamingsHelper
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, VideoStreaming, VideoStreamingRoom, VideoStreamingsController
Constant Summary
collapse
- VERSION =
'2.0.2'.freeze
Class Method Summary
collapse
Class Method Details
.setup {|_self| ... } ⇒ Object
21
22
23
|
# File 'lib/proctoring/engine.rb', line 21
def self.setup(&block)
yield self
end
|
.turnserver_session_credentials ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
36
|
# File 'lib/proctoring/engine.rb', line 25
def self.turnserver_session_credentials
time = Time.zone.now.strftime("%s")
timeout = 15000
username = time.to_i + timeout
password = Base64.encode64 (OpenSSL::HMAC.digest("sha1", turn_secret, username.to_s))
turn_servers = [{
"urls" => "turn:#{media_server_url}:3478",
"username" => username,
"credential" => password.chomp
}]
turn_servers
end
|