Connect to a Channel

Channels

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.

Connecting

To connect to an video service channel you call the connect(channel) method:

Property

Type

Description

channel

Defines which channel to connect to in the Video Service

aloVideo.connect(videoChannel);

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()

Once connected there will be events notifying you about streams that are being published in the channel. See Rendering Streams for more information.

Last updated

Logo

© Copyright 2024 ALO.ai, Inc. • All Rights Reserved