This application provides an implementation method for projecting mobile applications to TV. The smart mobile terminal and set-top box are connected to the Internet respectively. The smart mobile terminal and the set-top box are connected to websocket in the server respectively. Both the smart mobile terminal and the set-top box are equipped with target mobile applications. The mobile terminal transmits control instructions for the target mobile application to the server through websocket; when the server receives the control instructions of the smart mobile terminal, it forwards the control instructions to the set-top box; when the set-top box hears the control instructions forwarded by the server, according to the control instructions forwarded by the server. The control instruction carries out corresponding operations on the target mobile application and displays the operation results through TV. It not only solves the problem of too small screen of smart mobile terminal, but also solves the problem of inconvenient operation of mobile application on TV.
【技术实现步骤摘要】
一种移动应用投影到电视的实现方法及系统
本专利技术涉及互联网
,更具体的,涉及一种移动应用投影到电视的实现方法及系统。
技术介绍
随着以智能手机为代表的智能移动设备的发展,移动应用也随之兴起,人们使用智能移动设备安装的各种类型的移动应用玩游戏、进行购物、浏览新闻资讯等。但是一般智能移动设备屏幕往往不够大,使用遥控器操作电视玩游戏等活动又存在操作不方便的问题。人们希望将对移动应用的操作放到手机上,而显示则放到电视上。现有技术中通过在手机上安装手机遥控器,手机遥控器通过手机操作电视以模拟完成遥控器对电视机的操作。但是需要通过数据线以及安装相应的软件,通过数据线的连接将手机的画面传输到电视上。这样做做法明显的缺点是:1.需要数据线的支持,需要安装相应的软件支持;2.数据线长度有限,对用户体验不佳。
技术实现思路
有鉴于此,本专利技术提供了一种移动应用投影到电视的实现方法及系统,既解决了智能移动终端屏幕过小的问题,又解决了在电视上操作移动应用不方便的问题。为了实现上述专利技术目的,本专利技术提供的具体技术方案如下:一种移动应用投影到电视的实现方法,包括:智能移动终端和机顶盒分别连接到互联网;所述智能移动终端和所述机顶盒分别连接到服务器中的websocket,所述智能移动终端和所述机顶盒中都安装有目标移动应用;所述智能移动终端通过websocket向所述服务器发送对所述目标移动应用的控制指令;所述服务器接收到所述智能移动终端的所述控制指令时,向所述机顶盒转发所述控制指令;所述机顶盒监听到所述服务器转发的所述控制指令时,根据所述控制指令对所述目标移动应用进行相应操作 ...
【技术保护点】
1.一种移动应用投影到电视的实现方法,其特征在于,包括:智能移动终端和机顶盒分别连接到互联网;所述智能移动终端和所述机顶盒分别连接到服务器中的websocket,所述智能移动终端和所述机顶盒中都安装有目标移动应用;所述智能移动终端通过websocket向所述服务器发送对所述目标移动应用的控制指令;所述服务器接收到所述智能移动终端的所述控制指令时,向所述机顶盒转发所述控制指令;所述机顶盒监听到所述服务器转发的所述控制指令时,根据所述控制指令对所述目标移动应用进行相应操作,并将操作结果通过电视进行显示。
【技术特征摘要】
1.一种移动应用投影到电视的实现方法,其特征在于,包括:智能移动终端和机顶盒分别连接到互联网;所述智能移动终端和所述机顶盒分别连接到服务器中的websocket,所述智能移动终端和所述机顶盒中都安装有目标移动应用;所述智能移动终端通过websocket向所述服务器发送对所述目标移动应用的控制指令;所述服务器接收到所述智能移动终端的所述控制指令时,向所述机顶盒转发所述控制指令;所述机顶盒监听到所述服务器转发的所述控制指令时,根据所述控制指令对所述目标移动应用进行相应操作,并将操作结果通过电视进行显示。2.根据权利要求1所述的方法,其特征在于,所述智能移动终端和所述机顶盒分别连接到服务器中的websocket,包括:所述智能移动终端根据服务器的url和所述智能移动终端的标识,创建所述智能移动终端的websocket对象,并根据所述智能移动终端的websocket对象向所述服务器发送websocket连接请求,当接收到所述服务器反馈的websocket连接成功信息时,所述智能移动终端连接到所述服务器中的websocket;所述机顶盒根据所述服务器的url和所述机顶盒的标识,创建所述机顶盒的websocket对象,并根据所述机顶盒的websocket对象向所述服务器发送websocket连接请求,当接收到所述服务器反馈的websocket连接成功信息时,所述机顶盒连接到所述服务器中的websocket。3.根据权利要求1所述的方法,其特征在于,在所述智能移动终端通过websocket向所述服务器发送对所述目标移动应用的控制指令之前,所述方法还包括:所述智能移动终端获取所述机顶盒的设备标识。4.根据权利要求3所述的方法,其特征在于,所述智能移动终端获取所述机顶盒的设备标识,包括:所述智能移动终端通过扫描所述机顶盒的图形码获取所述机顶盒的设备标识。5.根据权利要求3所述的方法,其特征在于,所述智能移动终端通过websocket向所述服务器发送对所述目标移动应用的控制指令,包括:所述智能移动终端在对所述目标移动应用进行操作时,通过websocket向所述服务器发送对所述目标移动...
【专利技术属性】
技术研发人员:徐佳宏,刘苏,华道伟,
申请(专利权)人:深圳市茁壮网络股份有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。