All URIs are relative to https://api.bombbomb.com/v2
Method | HTTP request | Description |
---|---|---|
get_video_encoding_status | GET /videos/{videoId}/status | Video Encoding Status |
get_video_recorder | GET /videos/live/getRecorder | Get Live Video Recorder HTML |
mark_live_recording_complete | POST /videos/live/markComplete | Completes a live recording |
sign_upload | POST /video/signedUpload | Generate Signed Url |
update_video_thumbnail_v2 | PUT /videos/thumbnail | Upload thumbnail |
VideoEncodingStatusResponse get_video_encoding_status(video_id)
Video Encoding Status
Get information about the current state of encoding for a given video id.
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::VideosApi.new
video_id = "video_id_example" # String | The video's id.
begin
#Video Encoding Status
result = api_instance.get_video_encoding_status(video_id)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling VideosApi->get_video_encoding_status: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
video_id | String | The video's id. |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
VideoRecorderMethodResponse get_video_recorder(opts)
Get Live Video Recorder HTML
Returns an object with a number of properties to help you put a video recorder on your site. This is to be used in conjunction with the VideoRecordedLive call one the user has confirmed in your UI that the video is how they want it.
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::VideosApi.new
opts = {
width: 56, # Integer | The width of the recorder to present.
video_id: "video_id_example" # String | The id of the video to record
}
begin
#Get Live Video Recorder HTML
result = api_instance.get_video_recorder(opts)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling VideosApi->get_video_recorder: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
width | Integer | The width of the recorder to present. | [optional] |
video_id | String | The id of the video to record | [optional] |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
VideoPublicRepresentation mark_live_recording_complete(video_id, filename, title)
Completes a live recording
Used in conjunction with the live recorder method to mark a video recording as complete.
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::VideosApi.new
video_id = "video_id_example" # String | The id of the video to mark as done.
filename = "filename_example" # String | The filename that was chosen as the final video.
title = "title_example" # String | The title to give the video
begin
#Completes a live recording
result = api_instance.mark_live_recording_complete(video_id, filename, title)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling VideosApi->mark_live_recording_complete: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
video_id | String | The id of the video to mark as done. | |
filename | String | The filename that was chosen as the final video. | |
title | String | The title to give the video |
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json
String sign_upload(policy, opts)
Generate Signed Url
Generates a signed url to be used for video uploads.
# load the gem
require 'bombbomb'
api_instance = BombBomb::VideosApi.new
policy = BombBomb::SignUploadRequest.new # SignUploadRequest | The policy to sign
opts = {
v4: true # BOOLEAN | Whether to do v4 signing
}
begin
#Generate Signed Url
result = api_instance.sign_upload(policy, opts)
p result
rescue BombBomb::ApiError => e
puts "Exception when calling VideosApi->sign_upload: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
policy | SignUploadRequest | The policy to sign | |
v4 | BOOLEAN | Whether to do v4 signing | [optional] |
String
No authorization required
- Content-Type: application/json
- Accept: application/json
update_video_thumbnail_v2(video_id, thumbnail, opts)
Upload thumbnail
Upload a new video thumbnail
# load the gem
require 'bombbomb'
# setup authorization
BombBomb.configure do |config|
# Configure OAuth2 access token for authorization: BBOAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = BombBomb::VideosApi.new
video_id = "video_id_example" # String | The id of the video
thumbnail = "thumbnail_example" # String | The thumbnail being uploaded
opts = {
custom: true # BOOLEAN | The default email to use.
}
begin
#Upload thumbnail
api_instance.update_video_thumbnail_v2(video_id, thumbnail, opts)
rescue BombBomb::ApiError => e
puts "Exception when calling VideosApi->update_video_thumbnail_v2: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
video_id | String | The id of the video | |
thumbnail | String | The thumbnail being uploaded | |
custom | BOOLEAN | The default email to use. | [optional] |
nil (empty response body)
- Content-Type: application/x-www-form-urlencoded
- Accept: application/json