moovatom 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +5 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +7 -0
- data/README.md +87 -0
- data/Rakefile +1 -0
- data/doc/Gemfile.html +94 -0
- data/doc/LICENSE_txt.html +110 -0
- data/doc/MoovAtom/MoovEngine.html +587 -0
- data/doc/MoovAtom.html +168 -0
- data/doc/Rakefile.html +92 -0
- data/doc/created.rid +7 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +72 -0
- data/doc/init_rb.html +54 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/moovatom/version_rb.html +52 -0
- data/doc/lib/moovatom_rb.html +70 -0
- data/doc/rdoc.css +763 -0
- data/init.rb +1 -0
- data/lib/moovatom/version.rb +3 -0
- data/lib/moovatom.rb +146 -0
- data/moovatom.gemspec +26 -0
- metadata +101 -0
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
Copyright (c) <2011> <Dominic Giglio>
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
4
|
+
|
5
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
6
|
+
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
Introduction
|
2
|
+
============
|
3
|
+
|
4
|
+
[MoovAtom](http://moovatom.com/ "MoovAtom Homepage") is an online video conversion and streaming service. The service insulates your videos from competitor's ads or links to inappropriate content. It offers customizable players that support hot linkable watermarks in addition to stream paths to your own player so you can control your videos, and your brand, on your own terms. Streaming is supported to all Apple mobile devices as well as most Android and Blackberry platforms. A unique QR Code is generated for each video for use in advertisements, allowing your viewers to simply "scan and play" your content. Advanced analytics and metrics provide valuable incite into how your viewers are watching you videos. The MoovAtom servers support both FTP access and direct uploads so huge file sizes are easy to handle. MoovAtom makes it easy to protect your copyrights, the streaming servers provide unparalleled protection over other services using progressive downloads to a user's browser cache.
|
5
|
+
|
6
|
+
|
7
|
+
API
|
8
|
+
===
|
9
|
+
|
10
|
+
[MoovEngine](http://www.moovatom.com/support/api/1.0 "MoovEngine API") is the API interface to MoovAtom's servers and your video content. This library has been written to provide an easier interface for Ruby and Rails developers. The MoovAtom API utilizes a RESTful XML implementation. Simple XML requests are posted to MoovAtom's servers and XML responses are returned containing the various details about and status of your videos.
|
11
|
+
|
12
|
+
|
13
|
+
Overview
|
14
|
+
========
|
15
|
+
This library is wrapped in a module named MoovAtom. Inside the module there is a single class named MoovEngine. So to instantiate a new object to communicate with the MoovAtom API you simply need to call:
|
16
|
+
|
17
|
+
<code>
|
18
|
+
require 'moovatom'
|
19
|
+
new_conn = MoovAtom::MoovEngine.new
|
20
|
+
</code>
|
21
|
+
|
22
|
+
Of course you can also simplify that code by using:
|
23
|
+
|
24
|
+
<code>
|
25
|
+
require 'moovatom'
|
26
|
+
include MoovAtom
|
27
|
+
new_conn = MoovEngine.new
|
28
|
+
</code>
|
29
|
+
|
30
|
+
This code allows you to create a new instance without needing to enter the module's scope each time.
|
31
|
+
|
32
|
+
Installing the gem is as simple as `gem install moovatom`. However, this library is in an extreme alpha state so it may be best to access the gem via this GitHub repo. You can include a gem from its GitHub by adding the following to your app's Gemfile:
|
33
|
+
|
34
|
+
<code>
|
35
|
+
gem 'moovatom', :git => "git://github.com/humanshell/moovatom.git"
|
36
|
+
</code>
|
37
|
+
|
38
|
+
There is a single module constant named `API_URL` that defines the URL to which the XML requests must be POST'd to. There are eight writable instance variables and one readable variable. The single readable variable is `@xml_response`. It's function is to hold the last response received from MoovAtom's servers. The other variables are as follows:
|
39
|
+
|
40
|
+
1. `@guid`
|
41
|
+
2. `@username`
|
42
|
+
3. `@userkey`
|
43
|
+
4. `@content_type`
|
44
|
+
5. `@title`
|
45
|
+
6. `@blurb`
|
46
|
+
7. `@sourcefile`
|
47
|
+
8. `@callbackurl`
|
48
|
+
|
49
|
+
These variables are used to communicate details about your account and your videos to MoovAtom's servers. You can define and pass them to the initialize method or set them after an object has been created with the usual accessor 'dot' notation:
|
50
|
+
|
51
|
+
<code>
|
52
|
+
require 'moovatom'
|
53
|
+
include MoovAtom
|
54
|
+
args = { :title => "My Super Video", :sourcefile => "http://example.com/supervideo.mp4", etc... }
|
55
|
+
new_conn = MoovEngine.new args
|
56
|
+
</code>
|
57
|
+
|
58
|
+
Or...
|
59
|
+
|
60
|
+
<code>
|
61
|
+
require 'moovatom'
|
62
|
+
include MoovAtom
|
63
|
+
new_conn = MoovEngine.new
|
64
|
+
new_conn.title = "My Super Video"
|
65
|
+
new_conn.sourcefile = "http://example.com/supervideo.mp4"
|
66
|
+
</code>
|
67
|
+
|
68
|
+
|
69
|
+
Encoding
|
70
|
+
========
|
71
|
+
Coming soon...
|
72
|
+
|
73
|
+
|
74
|
+
Status
|
75
|
+
======
|
76
|
+
Coming soon...
|
77
|
+
|
78
|
+
|
79
|
+
Details
|
80
|
+
=======
|
81
|
+
Coming soon...
|
82
|
+
|
83
|
+
|
84
|
+
Cancel
|
85
|
+
======
|
86
|
+
Coming soon...
|
87
|
+
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/doc/Gemfile.html
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: Gemfile [MoovAtom API Documentation]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="./js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="project-metadata">
|
36
|
+
|
37
|
+
|
38
|
+
<div id="fileindex-section" class="section project-section">
|
39
|
+
<h3 class="section-header">Files</h3>
|
40
|
+
<ul>
|
41
|
+
|
42
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
43
|
+
|
44
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
45
|
+
|
46
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
47
|
+
|
48
|
+
</ul>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
|
52
|
+
<div id="classindex-section" class="section project-section">
|
53
|
+
<h3 class="section-header">Class Index
|
54
|
+
<span class="search-toggle"><img src="./images/find.png"
|
55
|
+
height="16" width="16" alt="[+]"
|
56
|
+
title="show/hide quicksearch" /></span></h3>
|
57
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
58
|
+
<fieldset>
|
59
|
+
<legend>Quicksearch</legend>
|
60
|
+
<input type="text" name="quicksearch" value=""
|
61
|
+
class="quicksearch-field" />
|
62
|
+
</fieldset>
|
63
|
+
</form>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="./MoovAtom.html">MoovAtom</a></li>
|
68
|
+
|
69
|
+
<li><a href="./MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="documentation">
|
80
|
+
|
81
|
+
<p>source “<a href="http://rubygems.org">rubygems.org</a>”</p>
|
82
|
+
|
83
|
+
<p># Specify your gem’s dependencies in moovatom.gemspec gemspec</p>
|
84
|
+
|
85
|
+
</div>
|
86
|
+
|
87
|
+
<div id="validator-badges">
|
88
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
89
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
90
|
+
Rdoc Generator</a> 2</small>.</p>
|
91
|
+
</div>
|
92
|
+
</body>
|
93
|
+
</html>
|
94
|
+
|
@@ -0,0 +1,110 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
3
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
4
|
+
|
5
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
6
|
+
<head>
|
7
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
8
|
+
|
9
|
+
<title>File: LICENSE.txt [MoovAtom API Documentation]</title>
|
10
|
+
|
11
|
+
<link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
|
12
|
+
|
13
|
+
<script src="./js/jquery.js" type="text/javascript"
|
14
|
+
charset="utf-8"></script>
|
15
|
+
<script src="./js/thickbox-compressed.js" type="text/javascript"
|
16
|
+
charset="utf-8"></script>
|
17
|
+
<script src="./js/quicksearch.js" type="text/javascript"
|
18
|
+
charset="utf-8"></script>
|
19
|
+
<script src="./js/darkfish.js" type="text/javascript"
|
20
|
+
charset="utf-8"></script>
|
21
|
+
</head>
|
22
|
+
|
23
|
+
<body class="file">
|
24
|
+
<div id="metadata">
|
25
|
+
<div id="home-metadata">
|
26
|
+
<div id="home-section" class="section">
|
27
|
+
<h3 class="section-header">
|
28
|
+
<a href="./index.html">Home</a>
|
29
|
+
<a href="./index.html#classes">Classes</a>
|
30
|
+
<a href="./index.html#methods">Methods</a>
|
31
|
+
</h3>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
|
35
|
+
<div id="project-metadata">
|
36
|
+
|
37
|
+
|
38
|
+
<div id="fileindex-section" class="section project-section">
|
39
|
+
<h3 class="section-header">Files</h3>
|
40
|
+
<ul>
|
41
|
+
|
42
|
+
<li class="file"><a href="./Gemfile.html">Gemfile</a></li>
|
43
|
+
|
44
|
+
<li class="file"><a href="./LICENSE_txt.html">LICENSE.txt</a></li>
|
45
|
+
|
46
|
+
<li class="file"><a href="./Rakefile.html">Rakefile</a></li>
|
47
|
+
|
48
|
+
</ul>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
|
52
|
+
<div id="classindex-section" class="section project-section">
|
53
|
+
<h3 class="section-header">Class Index
|
54
|
+
<span class="search-toggle"><img src="./images/find.png"
|
55
|
+
height="16" width="16" alt="[+]"
|
56
|
+
title="show/hide quicksearch" /></span></h3>
|
57
|
+
<form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
|
58
|
+
<fieldset>
|
59
|
+
<legend>Quicksearch</legend>
|
60
|
+
<input type="text" name="quicksearch" value=""
|
61
|
+
class="quicksearch-field" />
|
62
|
+
</fieldset>
|
63
|
+
</form>
|
64
|
+
|
65
|
+
<ul class="link-list">
|
66
|
+
|
67
|
+
<li><a href="./MoovAtom.html">MoovAtom</a></li>
|
68
|
+
|
69
|
+
<li><a href="./MoovAtom/MoovEngine.html">MoovAtom::MoovEngine</a></li>
|
70
|
+
|
71
|
+
</ul>
|
72
|
+
<div id="no-class-search-results" style="display: none;">No matching classes.</div>
|
73
|
+
</div>
|
74
|
+
|
75
|
+
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
<div id="documentation">
|
80
|
+
|
81
|
+
<p>Copyright © <2011> <Dominic Giglio></p>
|
82
|
+
|
83
|
+
<p>Permission is hereby granted, free of charge, to any person obtaining a
|
84
|
+
copy of this software and associated documentation files (the “Software”),
|
85
|
+
to deal in the Software without restriction, including without limitation
|
86
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
87
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
88
|
+
Software is furnished to do so, subject to the following conditions:</p>
|
89
|
+
|
90
|
+
<p>The above copyright notice and this permission notice shall be included in
|
91
|
+
all copies or substantial portions of the Software.</p>
|
92
|
+
|
93
|
+
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
94
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
95
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
96
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
97
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
98
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
99
|
+
DEALINGS IN THE SOFTWARE.</p>
|
100
|
+
|
101
|
+
</div>
|
102
|
+
|
103
|
+
<div id="validator-badges">
|
104
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
105
|
+
<p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
|
106
|
+
Rdoc Generator</a> 2</small>.</p>
|
107
|
+
</div>
|
108
|
+
</body>
|
109
|
+
</html>
|
110
|
+
|