The embodiment of the invention provides a screen throwing method and a screen throwing device, belonging to the technical field of data processing. The screen method, used for mobile terminals, including: creating two screen program components, one of the two screen program components, a cross screen display screen program component, and the other for a vertical screen display screen program component, receiving a long and wide size value of the car machine, and determining the size of the long and wide size of the received machine. The type of the car is determined. When the type of the car is determined to be a horizontal screen, the screen program component is called the horizontal screen. When the type of the machine is determined to be a vertical screen, the screen program component is displayed on the vertical screen, and the screen program components are used to send the screen data to the car machine. The screen projection method adjusts the screen type of the mobile terminal according to the screen type of the vehicle, and then screens the screen to avoid rotation of the screen and improve user experience.
【技术实现步骤摘要】
投屏方法及投屏装置
本专利技术涉及数据处理
,具体地,涉及一种投屏方法及投屏装置。
技术介绍
移动终端高清影音标准接口MHL是一种连接便携式电子装置的影音标准接口,MHL通过标准HDMI输入接口即可呈现在高清电视上。随着汽车销售量越来越多,利用现有的MHL技术可以将手机与汽车影音设备连接起来。MirrorLink是由国际性知名手机厂和汽车制造商联合发起建立的一种“车联网”标准,旨在规范智能手机和车载系统的有效连接,将手机等移动终端投屏到车机,以显示移动终端的显示内容。本申请专利技术人在实现本专利技术的过程中发现,现有技术的上述方案在进行投屏时,车机会出现旋屏的现象,具有影响用户使用体验的缺陷。
技术实现思路
本专利技术实施例的目的是提供一种投屏方法及投屏装置,该投屏方法根据车机的屏幕类型调整移动终端的屏幕类型后进行投屏,避免屏幕旋转,提高用户使用体验。本专利技术实施例提供一种投屏方法,用于移动终端,该方法包括:创建两个屏幕程序组件,所述两个屏幕程序组件中的一者为横屏显示屏幕程序组件,另一者为竖屏显示屏幕程序组件;接收车机的长与宽的尺寸值;根据接收的所述车机的长与宽的尺寸值确定所述车机的类型;当确定所述车机的类型为横屏时,调用所述横屏显示屏幕程序组件,当确定所述车机的类型为竖屏时,调用所述竖屏显示屏幕程序组件;以及,利用所调用的屏幕程序组件,向所述车机发送投屏数据。可选的,该方法还包括:在创建两个屏幕程序组件之前,向所述车机发送投屏请求;以及,接收所述车机响应于所述投屏请求发送的投屏指示,所述投屏指示指示所述车机是否允许所述移动终端进行投屏操作。本专利技术 ...
【技术保护点】
1.一种投屏方法,用于移动终端,该方法包括:创建两个屏幕程序组件,所述两个屏幕程序组件中的一者为横屏显示屏幕程序组件,另一者为竖屏显示屏幕程序组件;接收车机的长与宽的尺寸值;根据接收的所述车机的长与宽的尺寸值确定所述车机的类型;当确定所述车机的类型为横屏时,调用所述横屏显示屏幕程序组件,当确定所述车机的类型为竖屏时,调用所述竖屏显示屏幕程序组件;以及,利用所调用的屏幕程序组件,向所述车机发送投屏数据。
【技术特征摘要】
1.一种投屏方法,用于移动终端,该方法包括:创建两个屏幕程序组件,所述两个屏幕程序组件中的一者为横屏显示屏幕程序组件,另一者为竖屏显示屏幕程序组件;接收车机的长与宽的尺寸值;根据接收的所述车机的长与宽的尺寸值确定所述车机的类型;当确定所述车机的类型为横屏时,调用所述横屏显示屏幕程序组件,当确定所述车机的类型为竖屏时,调用所述竖屏显示屏幕程序组件;以及,利用所调用的屏幕程序组件,向所述车机发送投屏数据。2.根据权利要求1所述的方法,该方法还包括:在创建两个屏幕程序组件之前,向所述车机发送投屏请求;以及,接收所述车机响应于所述投屏请求发送的投屏指示,所述投屏指示指示所述车机是否允许所述移动终端进行投屏操作。3.一种投屏方法,用于车机,该方法包括:发送所述车机的长与宽的尺寸值;接收移动终端发送的投屏数据;以及显示所述接收的投屏数据。4.根据权利要求3所述的方法,该方法还包括:接收所述移动终端发送的投屏请求;以及,响应于所述投屏请求向移动终端发送投屏指示,该投屏指示指示所述车机是否允许所述移动终端进行投屏操作。5.一种投屏装置,用于移动终端,该装置包括:生成模块,用于创建两个屏幕程序组件,所述两个屏幕程序组件中的一者为横屏显示屏幕程序组件,另一者为竖屏显示屏幕程序组件;接收模块...
【专利技术属性】
技术研发人员:王华燕,
申请(专利权)人:乐视汽车北京有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。