mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-18 17:27:50 -05:00
28 lines
654 B
ActionScript
28 lines
654 B
ActionScript
package org.osmf.net.httpstreaming
|
|
{
|
|
import org.osmf.net.NetStreamMetricsBase;
|
|
|
|
public class HTTPNetStreamMetrics extends NetStreamMetricsBase
|
|
{
|
|
|
|
private var httpNetStream:HTTPNetStream;
|
|
|
|
public function HTTPNetStreamMetrics(param1:HTTPNetStream)
|
|
{
|
|
super(param1);
|
|
httpNetStream = param1;
|
|
}
|
|
|
|
public function get downloadRatio() : Number
|
|
{
|
|
return httpNetStream.downloadRatio;
|
|
}
|
|
|
|
public function getBitrateForIndex(param1:int) : Number
|
|
{
|
|
return this.resource.streamItems[param1].bitrate;
|
|
}
|
|
}
|
|
}
|
|
|