Connect to a Channel
Last updated
Last updated
© Copyright 2024 ALO.ai, Inc. • All Rights Reserved
Traditional two-way radios (also know as walkie-talkies) use channels as a way to partition radio communication. Unlike tradition 2-way radios that have a limited number of channels due to frequency constraints, ĀLO can support a virtually unlimited number of channels, We decided to use the term channel as the place where one or more people communicate in ĀLO.
To connect to an video service channel you call the connect(channel)
method:
Once connected there will be events notifying you about streams that are being published in the channel. See Rendering Streams for more information.
Property
Type
Description
channel
Defines which channel to connect to in the Video Service
Event
Description
onJoinChannel
As the connection to the Video Service is established events showing the following statuses will be dispatched: AloVideo.CHANNEL_STATUS_JOINING, AloVideo.CHANNEL_STATUS_JOINED, AloVideo.STATUS_FAILED.
onInvalidAuthenticationToken
When you receive this event it signifies that you need to generate a new authentication token and reconnect to the channel. See setUserAuthToken()