| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- //
- // TalkView.h
- // XMEye
- //
- // Created by Wangchaoqun on 15/7/4.
- // Copyright (c) 2015年 Megatron. All rights reserved.
- //
- /******
- *
- *对讲界面
- * 1、打开对讲前需要先关闭音频 FUN_MediaSetSound(_handle, 0, 0);
- * 2、按下开始对讲时,除了对讲接口,还需要关闭音频 FUN_MediaSetSound(_hTalk, 0, 0);
- * 3、松开对讲时,除了对讲接口,还需要打开音频 FUN_MediaSetSound(_hTalk, 100, 0);
- * 4、关闭对讲时,除了关闭对讲接口,还需要关闭音频 FUN_MediaSetSound(_hTalk, 0, 0);
- *
- *
- FUN_MediaSetSound 参数说明:
- 第一个参数是播放或者对讲句柄,关闭视频音频时需要传入视频播放句柄,关闭对讲音频时需要传入对讲句柄。
- 第二个参数是音量,1~100为打开,0为关闭音频。
- 第三个参数默认为0
- FUN_MediaSetSound(_handle, 0, 0);
- *
- */
- #import <UIKit/UIKit.h>
- @protocol TalKViewDelegate <NSObject>
- @optional
- /*! @berif 打开通话视图 */
- - (void)openTalkView;
- /*! @berif 关闭通话视图 */
- - (void)closeTalkView;
- /*! @berif 开始通话 */
- - (void)openTalk;
- /*! @berif 关闭通话 */
- - (void)closeTalk;
- @end
- @interface TalkView : UIView
- //开始对讲
- @property (nonatomic,retain) UIButton *talkButton;
- //关闭对讲
- @property (nonatomic,retain) UIButton *cannelButton;
- @property (nonatomic,retain) id<TalKViewDelegate> delegate;
- /*! @berif 显示视图 */
- - (void)showTheView;
- - (void)cannelTheView;//隐藏视图
- @end
|