everybit 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +17 -44
- data/everybit.gemspec +1 -1
- data/lib/everybit/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -23,7 +23,7 @@ Or install it yourself with the usual gem install command:
|
|
23
23
|
|
24
24
|
## Usage
|
25
25
|
|
26
|
-
Detailed documentation for communicating with the Everybit Streaming Media API is available [here](http://
|
26
|
+
Detailed documentation for communicating with the Everybit Streaming Media API is available [here](http://dev.everybit.co/docs/). The information in this readme is only a brief introduction. If you have a specific problem with this gem you can [open an issue](https://github.com/everybit/everybit-ruby/issues) or, for more specific help with using the API in general, you can visit our dedicated [support site](https://everybit.zendesk.com/home).
|
27
27
|
|
28
28
|
### Preparation
|
29
29
|
|
@@ -41,7 +41,7 @@ You can also view and change the base URL to which the gem will submit your medi
|
|
41
41
|
Everybit.api_base
|
42
42
|
# => 'https://api.everybit.co'
|
43
43
|
|
44
|
-
Everybit.api_base = '
|
44
|
+
Everybit.api_base = 'https://api.example.com'
|
45
45
|
# => 'https://api.example.com'
|
46
46
|
```
|
47
47
|
|
@@ -83,10 +83,10 @@ video.status # this is the status of the request, not the video itself
|
|
83
83
|
# => true
|
84
84
|
|
85
85
|
video[:uuid] # => 'UUID_OF_VIDEO'
|
86
|
-
video[:processing] # => true
|
87
|
-
video[:progress] # =>
|
88
|
-
video[:completed] # => false
|
89
|
-
video[:completed_date] # =>
|
86
|
+
video[:processing] # => true|false
|
87
|
+
video[:progress] # => 0-100
|
88
|
+
video[:completed] # => true|false
|
89
|
+
video[:completed_date] # => date|nil
|
90
90
|
```
|
91
91
|
|
92
92
|
#### Details
|
@@ -122,7 +122,7 @@ video[:original_file] # => path to original file uploaded during create requ
|
|
122
122
|
video[:player_url] # => url to the video's player
|
123
123
|
video[:media_info] # => {HASH OF DETAILED MEDIA INFO}
|
124
124
|
video[:player_attributes] # => {HASH OF CUSTOMIZABLE PLAYER ATTRIBUTES}
|
125
|
-
video[:versions] # =>
|
125
|
+
video[:versions] # => {HASH OF EACH VERSION CREATED DURING ENCODING}
|
126
126
|
```
|
127
127
|
|
128
128
|
#### Create
|
@@ -190,47 +190,20 @@ video_updates = {
|
|
190
190
|
tags: ['updated', 'tags'],
|
191
191
|
visibility: 'public|protected|private',
|
192
192
|
player_attributes: {
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
sharing_enabled: true,
|
199
|
-
show_email_share: true,
|
200
|
-
show_embed_share: true,
|
201
|
-
show_social_share: true,
|
202
|
-
auto_play: false,
|
203
|
-
scaling: "fit",
|
204
|
-
fade_in_speed: 0,
|
205
|
-
fade_out_speed: 0,
|
206
|
-
start_time: 0.000,
|
207
|
-
duration: 0.000,
|
208
|
-
show_controls: true,
|
193
|
+
volume_slider_color: '#ffffff',
|
194
|
+
time_color: '#ffffff',
|
195
|
+
buffer_background_color: '#f9f9f9',
|
196
|
+
progress_background_color: '#bb0000',
|
197
|
+
show_play_button: true,
|
209
198
|
auto_hide_controls: true,
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
background_gradient: "low",
|
215
|
-
time_color: "#01DAFF",
|
216
|
-
duration_color: "#FFFFFF",
|
217
|
-
progress_color: "#015B7A",
|
218
|
-
progress_gradient: "medium",
|
219
|
-
buffer_color: "#6C9CBC",
|
220
|
-
buffer_gradient: "none",
|
221
|
-
slider_color: "#000000",
|
222
|
-
slider_gradient: "none",
|
223
|
-
button_color: "#889AA4",
|
224
|
-
button_over_color: "#92B2BD",
|
225
|
-
volume_slider_color: "#000000",
|
226
|
-
volume_color: "#000000",
|
227
|
-
volume_slider_gradient: "none",
|
228
|
-
time_background_color: "#555555",
|
229
|
-
time_border_color: "#FFFFFF"
|
199
|
+
auto_play: false,
|
200
|
+
show_embed_code: true,
|
201
|
+
template_name: 'default',
|
202
|
+
streaming_type: 'progressive|streaming'
|
230
203
|
}
|
231
204
|
}
|
232
205
|
|
233
|
-
video = Everybit::Video.update(
|
206
|
+
video = Everybit::Video.update(video_updates)
|
234
207
|
```
|
235
208
|
|
236
209
|
The response from an update request is the same as a details response, except it will contain your updated details.
|
data/everybit.gemspec
CHANGED
data/lib/everybit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: everybit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -78,7 +78,7 @@ dependencies:
|
|
78
78
|
description: This gem defines methods for controlling your media through Everybit's
|
79
79
|
API.
|
80
80
|
email:
|
81
|
-
-
|
81
|
+
- dom@everybit.co
|
82
82
|
executables:
|
83
83
|
- everybit-console
|
84
84
|
extensions: []
|