| Package | yy.events |
| Class | public class ChannelMicListEvent |
| Inheritance | ChannelMicListEvent flash.events.Event |
| Property | Defined By | ||
|---|---|---|---|
| eventData : Object
事件信息保存变量
| ChannelMicListEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| CLEAR : String = YY_MICLIST_CLEAR [static]
麦序用户清除事件。麦序用户全部被清除的时候会触发。
| ChannelMicListEvent | ||
| CONTROLLED : String = YY_MICLIST_CONTROLLED [static]
控麦事件。管理员控麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行控麦操作的管理员的uid。
| ChannelMicListEvent | ||
| DISABLE_JOIN : String = YY_MICLIST_DISABLE_JOIN [static]
禁麦事件。管理员禁麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行禁麦操作的管理员的uid。
| ChannelMicListEvent | ||
| ENABLE_JOIN : String = YY_MICLIST_ENABLE_JOIN [static]
开麦事件。管理员开麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行开麦操作的管理员的uid。
| ChannelMicListEvent | ||
| MODE_CHANGED : String = YY_MICLIST_MODE_CHANGE [static]
频道模式变化事件。当频道模式发生变化的时候触发。
事件信息格式说明:
eventData.mode: int类型 当前的频道模式 0=自由模式,1=主席模式,2=麦序模式。
| ChannelMicListEvent | ||
| NOTIFICATION : String = YY_MICLIST_NOTIFICATION [static]
收到麦序提醒事件。当处在麦序第二位的时候才能收到此事件。。
事件信息格式说明:
eventData.adminUid: uint类型 发送提醒的管理员的uid。
| ChannelMicListEvent | ||
| RELEASED : String = YY_MICLIST_RELEASED [static]
放麦事件。管理员放麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行放麦操作的管理员的uid。
| ChannelMicListEvent | ||
| SPEAKING_STATE_CHANGED : String = YY_MICLIST_SPEAKING_STATE_CHANGED [static]
用户说话状态变化事件。用户开始说话和停止说话时会触发,同频道界面用户名前的绿点变化一致。
事件信息格式说明:
eventData.uid: uint类型 说话的用户uid。
eventData.speaking: Boolean类型 true=开始说话,false=停止说话。
| ChannelMicListEvent | ||
| TIME_CHANGED : String = YY_MICLIST_TIME_CHANGED [static]
麦首麦序时间变化事件。管理员修改麦首麦序时间的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行麦序时间加倍操作的管理员的uid。
eventData.uid: uint类型 麦首的用户uid。
eventData.seconds: uint类型 变化后的麦序时间,单位为秒。
| ChannelMicListEvent | ||
| USER_JOIN : String = YY_MICLIST_USER_JOIN [static]
麦序用户增加事件。当有用户加入到麦序时会触发。
事件信息格式说明:
eventData.uid: int类型 加入的用户uid。
| ChannelMicListEvent | ||
| USER_LEAVE : String = YY_MICLIST_USER_LEAVE [static]
麦序用户离开事件。当有用户离开麦序时会触发。
事件信息格式说明:
eventData.uid: int类型 离开的用户uid。
| ChannelMicListEvent | ||
| USER_LINKED : String = YY_MICLIST_USER_MIC_LINKED [static]
用户加入连麦列表事件。当有新的用户连麦的时候触发。
事件信息格式说明:
eventData.uid: uint类型 新加入连麦的用户uid。
| ChannelMicListEvent | ||
| USER_MOVE : String = YY_MICLIST_USER_MOVE [static]
麦序用户移动事件。麦序用户发生位置调整的时候会触发。
事件信息格式说明:
eventData.moveId: int类型 麦序中发生移动的用户uid。
eventData.toAfterId: int类型 移动到哪个用户后面,用户无法移动到第一个。
| ChannelMicListEvent | ||
| USER_UNLINKED : String = YY_MICLIST_USER_MIC_UNLINKED [static]
用户移出连麦列表事件。当有用户移出连麦的时候触发。
事件信息格式说明:
eventData.uid: uint类型 被移出连麦的用户uid。
| ChannelMicListEvent | ||
| eventData | property |
public var eventData:Object事件信息保存变量
| CLEAR | Constant |
public static const CLEAR:String = YY_MICLIST_CLEAR麦序用户清除事件。麦序用户全部被清除的时候会触发。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.CLEAR,onUserClear);
function onUserClear(evt:ChannelMicListEvent):void
{
trace("麦序用户被清除");
}
| CONTROLLED | Constant |
public static const CONTROLLED:String = YY_MICLIST_CONTROLLED控麦事件。管理员控麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行控麦操作的管理员的uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.CONTROLLED,onMicControlled);
function onMicControlled(evt:ChannelMicListEvent):void
{
trace("管理员"+evt.eventData.adminUid+"执行了控麦操作");
}
| DISABLE_JOIN | Constant |
public static const DISABLE_JOIN:String = YY_MICLIST_DISABLE_JOIN禁麦事件。管理员禁麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行禁麦操作的管理员的uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.DISABLE_JOIN,onMicDisableJoin);
function onMicDisableJoin(evt:ChannelMicListEvent):void
{
trace("管理员"+evt.eventData.adminUid+"执行了禁麦操作");
}
| ENABLE_JOIN | Constant |
public static const ENABLE_JOIN:String = YY_MICLIST_ENABLE_JOIN开麦事件。管理员开麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行开麦操作的管理员的uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.ENABLE_JOIN,onMicEnableJoin);
function onMicEnableJoin(evt:ChannelMicListEvent):void
{
trace("管理员"+evt.eventData.adminUid+"执行了开麦操作");
}
| MODE_CHANGED | Constant |
public static const MODE_CHANGED:String = YY_MICLIST_MODE_CHANGE频道模式变化事件。当频道模式发生变化的时候触发。
事件信息格式说明:
eventData.mode: int类型 当前的频道模式 0=自由模式,1=主席模式,2=麦序模式。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.MODE_CHANGED,onModeChanged);
function onModeChanged(evt:ChannelMicListEvent):void
{
trace("当前频道模式="+evt.eventData.mode);
}
| NOTIFICATION | Constant |
public static const NOTIFICATION:String = YY_MICLIST_NOTIFICATION收到麦序提醒事件。当处在麦序第二位的时候才能收到此事件。。
事件信息格式说明:
eventData.adminUid: uint类型 发送提醒的管理员的uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.NOTIFICATION,onRecvNotification);
function onRecvNotification(evt:ChannelMicListEvent):void
{
trace("收到来自"+evt.eventData.adminUid+"的麦序提醒");
}
| RELEASED | Constant |
public static const RELEASED:String = YY_MICLIST_RELEASED放麦事件。管理员放麦的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行放麦操作的管理员的uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.RELEASED,onMicReleased);
function onMicReleased(evt:ChannelMicListEvent):void
{
trace("管理员"+evt.eventData.adminUid+"执行了放麦操作");
}
| SPEAKING_STATE_CHANGED | Constant |
public static const SPEAKING_STATE_CHANGED:String = YY_MICLIST_SPEAKING_STATE_CHANGED用户说话状态变化事件。用户开始说话和停止说话时会触发,同频道界面用户名前的绿点变化一致。
事件信息格式说明:
eventData.uid: uint类型 说话的用户uid。
eventData.speaking: Boolean类型 true=开始说话,false=停止说话。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.SPEAKING_STATE_CHANGED,onSpeakingStateChanged);
function onSpeakingStateChanged(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"说话状态:"+evt.eventData.speaking);
}
| TIME_CHANGED | Constant |
public static const TIME_CHANGED:String = YY_MICLIST_TIME_CHANGED麦首麦序时间变化事件。管理员修改麦首麦序时间的时候触发。
事件信息格式说明:
eventData.adminUid: uint类型 执行麦序时间加倍操作的管理员的uid。
eventData.uid: uint类型 麦首的用户uid。
eventData.seconds: uint类型 变化后的麦序时间,单位为秒。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.TIME_CHANGED,onMicTimeChanged);
function onMicTimeChanged(evt:ChannelMicListEvent):void
{
trace("管理员"+evt.eventData.adminUid+"修改麦首"+evt.eventData.uid+"的麦序时间为"+evt.eventData.seconds+"秒");
}
| USER_JOIN | Constant |
public static const USER_JOIN:String = YY_MICLIST_USER_JOIN麦序用户增加事件。当有用户加入到麦序时会触发。
事件信息格式说明:
eventData.uid: int类型 加入的用户uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_JOIN,onUserJoin);
function onUserJoin(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"加入到了麦序中");
}
| USER_LEAVE | Constant |
public static const USER_LEAVE:String = YY_MICLIST_USER_LEAVE麦序用户离开事件。当有用户离开麦序时会触发。
事件信息格式说明:
eventData.uid: int类型 离开的用户uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_JOIN,onUserLeave);
function onUserLeave(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"离开麦序了");
}
| USER_LINKED | Constant |
public static const USER_LINKED:String = YY_MICLIST_USER_MIC_LINKED用户加入连麦列表事件。当有新的用户连麦的时候触发。
事件信息格式说明:
eventData.uid: uint类型 新加入连麦的用户uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_LINKED,onUserLinked);
function onUserLinked(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"加入连麦");
}
| USER_MOVE | Constant |
public static const USER_MOVE:String = YY_MICLIST_USER_MOVE麦序用户移动事件。麦序用户发生位置调整的时候会触发。
事件信息格式说明:
eventData.moveId: int类型 麦序中发生移动的用户uid。
eventData.toAfterId: int类型 移动到哪个用户后面,用户无法移动到第一个。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_MOVE,onUserMove);
function onUserMove(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"移动到"+evt.eventData.toAfterId+"后面");
}
| USER_UNLINKED | Constant |
public static const USER_UNLINKED:String = YY_MICLIST_USER_MIC_UNLINKED用户移出连麦列表事件。当有用户移出连麦的时候触发。
事件信息格式说明:
eventData.uid: uint类型 被移出连麦的用户uid。
使用示例:
YY.instance.channel.micList.addEventListener(ChannelMicListEvent.USER_UNLINKED,onUserUnlinked);
function onUserUnlinked(evt:ChannelMicListEvent):void
{
trace("用户"+evt.eventData.uid+"移出连麦");
}