NAME
Games::TF2::Server::SourceTV - Watch a Team Fortress 2 server through its SourceTV
SYNOPSIS
use Games::TF2::Server::SourceTV;
my $server = Games::TF2::Server::SourceTV->new(
address => '192.168.1.10:27020',
tables => 'server.dem',
password => 'tv secret',
);
$server->subscribe( 'events', 'chat' );
foreach my $event ( $server->poll(1000) ) {
say ref $event;
}
DESCRIPTION
A connection to a server's SourceTV port (tv_port) as a spectator (TFNET_SPECTATOR of libtfnet). Everything is that of Games::TF2::Server: the constructor's arguments (password is the tv_password), polling, subscriptions and the state.
A spectator has no entity of its own and no controls: subscribe('self') throws Games::TF2::Demo::Error::State, and a spectator on a game port is refused with Argument.
SourceTV sends the game with its tv_delay.
AUTHOR
davenonymous <perl@davenonymous.com>
COPYRIGHT AND LICENSE
Copyright 2026 davenonymous
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.