Class: UrlHandler::Wowza

Inherits:
Object
  • Object
show all
Defined in:
lib/url_handler/wowza.rb

Class Method Summary collapse

Class Method Details

.patternsObject



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/url_handler/wowza.rb', line 4

def self.patterns
  {
    'rtmp' => {
      'video' => "<%=prefix%>:<%=media_id%>/<%=stream_id%>/<%=filename%>",
      'audio' => "<%=prefix%>:<%=media_id%>/<%=stream_id%>/<%=filename%>",
    },
    'http' => {
      'video' => "<%=prefix%>:<%=media_id%>/<%=stream_id%>/<%=filename%>.<%=extension%>/playlist.m3u8",
      'audio' => "<%=prefix%>:<%=media_id%>/<%=stream_id%>/<%=filename%>.<%=extension%>/playlist.m3u8",
    }
  }
end