module BBC::Redux::EndPoints

@private

Constants

HOST

Public Class Methods

dvbsubs(id, key, fname = nil) click to toggle source

Make dvb subs media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 14
def self.dvbsubs(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/dvbsubs/#{(fname || '%s.xml') % id}"
end
flv(id, key, fname = nil) click to toggle source

Make FLV media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 23
def self.flv(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/Flash_v1.0/#{(fname || '%s.flv') % id}"
end
h264_hi(id, key, fname = nil) click to toggle source

Make h264_hi media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 41
def self.h264_hi(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/h264_mp4_hi_v1.1/" \
       + (fname || '%s-h264lg.mp4') % id
end
h264_lo(id, key, fname = nil) click to toggle source

Make h264_lo media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 51
def self.h264_lo(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/h264_mp4_lo_v1.0/" \
       + (fname || '%s-h264sm.mp4') % id
end
mp3(id, key, fname = nil) click to toggle source

Make mp3 media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 32
def self.mp3(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/MP3_v1.0/#{(fname || '%s.mp3') % id}"
end
ts(id, key, fname = nil) click to toggle source

Make ts media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 61
def self.ts(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/ts/#{(fname || '%s.mpegts') % id}"
end
ts_stripped(id, key, fname = nil) click to toggle source

Make stripped ts media file end point @param id [String] asset identifier @param key [String] string value of a valid access key @param fname [String] template for the file name @return [String] The end point

# File lib/bbc/redux/end_points.rb, line 70
def self.ts_stripped(id, key, fname = nil)
  HOST + "/asset/media/#{id}/#{key}/strip/" \
       + (fname || '%s-stripped.mpegts') % id
end