コード例 #1
0
 def appConnect(self, conn, params):
     ApplicationAdapter.appConnect(self, conn, params)
     print 'Python appConnect:', conn, params
     self.measureBandwidth(conn)
     if isinstance(conn, IStreamCapableConnection):
         print 'Python setting bandwidth limits'
         sbc = SimpleConnectionBWConfig()
         sbc.getChannelBandwidth()[IBandwidthConfigure.OVERALL_CHANNEL] = 1024 * 1024
         sbc.getChannelInitialBurst()[IBandwidthConfigure.OVERALL_CHANNEL] = 128 * 1024
         conn.setBandwidthConfigure(sbc)
     
     return 1
コード例 #2
0
 def appConnect(self, conn, params):
     ApplicationAdapter.appConnect(self, conn, params)
     print 'Python appConnect:', conn, params
     return 1
コード例 #3
0
 def appStart(self, app):
     ApplicationAdapter.appStart(self, app)
     print 'Python appStart', app
     self.appScope = app
     return 1
コード例 #4
0
ファイル: main.py プロジェクト: DanielPei/red5-examples
 def appConnect(self, conn, params):
     ApplicationAdapter.appConnect(self, conn, params)
     print 'Python appConnect:', conn, params
     return 1
コード例 #5
0
ファイル: main.py プロジェクト: DanielPei/red5-examples
 def appStart(self, app):
     ApplicationAdapter.appStart(self, app)
     print 'Python appStart', app
     self.appScope = app
     return 1