當前位置: 首頁>>代碼示例>>Java>>正文


Java EaseShowVideoActivity類代碼示例

本文整理匯總了Java中com.easemob.easeui.ui.EaseShowVideoActivity的典型用法代碼示例。如果您正苦於以下問題:Java EaseShowVideoActivity類的具體用法?Java EaseShowVideoActivity怎麽用?Java EaseShowVideoActivity使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


EaseShowVideoActivity類屬於com.easemob.easeui.ui包,在下文中一共展示了EaseShowVideoActivity類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: onBubbleClick

import com.easemob.easeui.ui.EaseShowVideoActivity; //導入依賴的package包/類
@Override
protected void onBubbleClick() {
    VideoMessageBody videoBody = (VideoMessageBody) message.getBody();
       EMLog.d(TAG, "video view is on click");
       Intent intent = new Intent(context, EaseShowVideoActivity.class);
       intent.putExtra("localpath", videoBody.getLocalUrl());
       intent.putExtra("secret", videoBody.getSecret());
       intent.putExtra("remotepath", videoBody.getRemoteUrl());
       if (message != null && message.direct == EMMessage.Direct.RECEIVE && !message.isAcked
               && message.getChatType() != ChatType.GroupChat) {
           message.isAcked = true;
           try {
               EMChatManager.getInstance().ackMessageRead(message.getFrom(), message.getMsgId());
           } catch (Exception e) {
               e.printStackTrace();
           }
       }
       activity.startActivity(intent);
}
 
開發者ID:huijimuhe,項目名稱:monolog-android,代碼行數:20,代碼來源:EaseChatRowVideo.java

示例2: onBubbleClick

import com.easemob.easeui.ui.EaseShowVideoActivity; //導入依賴的package包/類
@Override
protected void onBubbleClick() {
    VideoMessageBody videoBody = (VideoMessageBody) message.getBody();
       EMLog.d(TAG, "video view is on click");
       Intent intent = new Intent(context, EaseShowVideoActivity.class);
       intent.putExtra("localpath", videoBody.getLocalUrl());
       intent.putExtra("secret", videoBody.getSecret());
       intent.putExtra("remotepath", videoBody.getRemoteUrl());
       if (message != null && message.direct == EMMessage.Direct.RECEIVE && !message.isAcked
               && message.getChatType() == ChatType.Chat) {
           message.isAcked = true;
           try {
               EMChatManager.getInstance().ackMessageRead(message.getFrom(), message.getMsgId());
           } catch (Exception e) {
               e.printStackTrace();
           }
       }
       activity.startActivity(intent);
}
 
開發者ID:easemob,項目名稱:easeui,代碼行數:20,代碼來源:EaseChatRowVideo.java

示例3: onBubbleClick

import com.easemob.easeui.ui.EaseShowVideoActivity; //導入依賴的package包/類
@Override
protected void onBubbleClick() {
    VideoMessageBody videoBody = (VideoMessageBody) message.getBody();
    EMLog.d(TAG, "video view is on click");
    Intent intent = new Intent(context, EaseShowVideoActivity.class);
    intent.putExtra("localpath", videoBody.getLocalUrl());
    intent.putExtra("secret", videoBody.getSecret());
    intent.putExtra("remotepath", videoBody.getRemoteUrl());
    if (message != null && message.direct == EMMessage.Direct.RECEIVE && !message.isAcked
            && message.getChatType() != ChatType.GroupChat) {
        message.isAcked = true;
        try {
            EMChatManager.getInstance().ackMessageRead(message.getFrom(), message.getMsgId());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    activity.startActivity(intent);
}
 
開發者ID:nggirl,項目名稱:EaseChatDemo,代碼行數:20,代碼來源:EaseChatRowVideo.java


注:本文中的com.easemob.easeui.ui.EaseShowVideoActivity類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。