Search in sources :

Example 1 with ConferenceChangeModeContent

use of cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent in project android-chat by wildfirechat.

the class BaseConferenceFragment method onReceiveMessage.

@Override
public void onReceiveMessage(List<Message> messages, boolean hasMore) {
    if (AVEngineKit.Instance().getCurrentSession() != null && AVEngineKit.Instance().getCurrentSession().isConference()) {
        for (Message msg : messages) {
            if (msg.content instanceof ConferenceChangeModeContent) {
                ConferenceChangeModeContent content = (ConferenceChangeModeContent) msg.content;
                onChangeModeRequest(content.getCallId(), content.isAudience());
            }
        }
    }
}
Also used : Message(cn.wildfirechat.message.Message) ConferenceChangeModeContent(cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent)

Example 2 with ConferenceChangeModeContent

use of cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent in project android-chat by wildfirechat.

the class ConferenceParticipantListFragment method requestChangeMode.

private void requestChangeMode(String conferenceId, String userId, boolean audience) {
    ConferenceChangeModeContent content = new ConferenceChangeModeContent(conferenceId, audience);
    Conversation conversation = new Conversation(Conversation.ConversationType.Single, userId);
    ChatManager.Instance().sendMessage(conversation, content, null, 0, null);
}
Also used : ConferenceChangeModeContent(cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent) Conversation(cn.wildfirechat.model.Conversation)

Aggregations

ConferenceChangeModeContent (cn.wildfire.chat.kit.voip.conference.message.ConferenceChangeModeContent)2 Message (cn.wildfirechat.message.Message)1 Conversation (cn.wildfirechat.model.Conversation)1