./lib/animoto/resources/jobs/directing_and_rendering.rb in animoto-1.3.1 vs ./lib/animoto/resources/jobs/directing_and_rendering.rb in animoto-1.5.0
- old
+ new
@@ -7,11 +7,12 @@
# @see Animoto::Support::StandardEnvelope::ClassMethods#unpack_standard_envelope
def self.unpack_standard_envelope body = {}
links = unpack_links(body)
super.merge({
:storyboard_url => links['storyboard'],
- :video_url => links['video']
+ :video_url => links['video'],
+ :stream_url => links['stream']
})
end
# The URL for the storyboard created for this job. This storyboard can be
# used into future rendering jobs to produce different formats, resolutions,
@@ -34,19 +35,27 @@
# @note this object may not have all the most recent attributes, namely the download_url
# attribute. Use {Client#reload!} to update the object.
# @return [Resources::Video]
attr_reader :video
+ # If available, the URL where the video can be watched 'live' via HTTP Live Streaming.
+ #
+ # @note this attribute may not be available when this job is created. If you poll the
+ # job while it's rendering, the URL will appear when the stream is available to view.
+ # @return [String]
+ attr_reader :stream_url
+
# @return [Jobs::DirectingAndRendering]
# @see Animoto::Jobs::Base#instantiate
def instantiate attributes = {}
@storyboard_url = attributes[:storyboard_url]
@storyboard = Animoto::Resources::Storyboard.new(:url => @storyboard_url) if @storyboard_url
@video_url = attributes[:video_url]
@video = Animoto::Resources::Video.new(:url => @video_url) if @video_url
+ @stream_url = attributes[:stream_url]
super
end
end
end
end
-end
\ No newline at end of file
+end