OpenTok-API
view release on metacpan or search on metacpan
lib/OpenTok/API.pm view on Meta::CPAN
for the session and you think the first client connecting may not be in that region.
=item * C<< 'p2p.preference' => 'enabled' >>
The properties option includes any following key value pairs. Currently only the following property exists:
p2p.preference (String) . Whether the session's streams will be transmitted directly between peers. You can set the following possible values:
"disabled" (the default) . The session's streams will all be relayed using the OpenTok servers. More than two clients can connect to the session.
"enabled" . The session will attempt to transmit streams directly between clients. If peer-to-peer streaming fails (either when streams are
initially published or during the course of a session), the session falls back to using the OpenTok servers for relaying streams.
(Peer-to-peer streaming uses UDP, which may be blocked by a firewall.) For a session created with peer-to-peer streaming enabled,
only two clients can connect to the session at a time. If an additional client attempts to connect,
the TB object on the client dispatches an exception event.
By removing the server, peer-to-peer streaming decreases latency and improves quality.
Note that the properties object previously included settings for multiplexing and server-side echo suppression.
However, these features were deleted in OpenTok v0.91.48. (Server-side echo suppression was replaced with the
acoustic echo cancellation feature added in OpenTok v0.91.18.)
=back
=cut
sub create_session {
( run in 0.250 second using v1.01-cache-2.11-cpan-4d50c553e7e )