Please ignore , the casting is ok, there is a bug in
playlistsubscriberstream, the play engine does not set the bytesSent to
playlistsubscriberstream, only to itself this works
public long getBytesSent() {
return engine.bytesSent;
}
Dan Rossi wrote:
> Hi this may be a simple java question, as i'm not a java guy, when i try
> and cast this i get the default values returned any ideas ?
>
> IPlaylistSubscriberStream streamLog = (IPlaylistSubscriberStream) stream;
> IPlaylistSubscriberStreamStatistics stat =
> streamLog.getStatistics();
> System.out.println(stat.getBytesSent());
>
> I get zero which is the default value, is it creating a new instance /
> cloning or something ?
>
> This is all thats needed now for the logging system ive setup to work I
> think, more about that here
>
> http://jira.red5.org/browse/APPSERVER-140
>
>
>
> _______________________________________________
> Red5 mailing list
> [email protected]
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org