CN114691067A - Screen projection method and electronic equipment - Google Patents
Screen projection method and electronic equipment Download PDFInfo
- Publication number
- CN114691067A CN114691067A CN202011642279.5A CN202011642279A CN114691067A CN 114691067 A CN114691067 A CN 114691067A CN 202011642279 A CN202011642279 A CN 202011642279A CN 114691067 A CN114691067 A CN 114691067A
- Authority
- CN
- China
- Prior art keywords
- user
- display
- application
- display content
- equipment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 158
- 230000008569 process Effects 0.000 claims abstract description 108
- 238000004590 computer program Methods 0.000 claims description 24
- 230000006978 adaptation Effects 0.000 claims description 9
- 238000012545 processing Methods 0.000 claims description 5
- 238000007726 management method Methods 0.000 description 35
- 238000004891 communication Methods 0.000 description 25
- 238000010586 diagram Methods 0.000 description 15
- 230000006870 function Effects 0.000 description 10
- 238000013500 data storage Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 4
- 238000005266 casting Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1423—Digital output to display device ; Cooperation and interconnection of the display device with other functional units controlling a plurality of local displays, e.g. CRT and flat panel display
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/1454—Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5055—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
-
- G—PHYSICS
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09G—ARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
- G09G2358/00—Arrangements for display data security
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
技术领域technical field
本申请涉及终端技术领域,尤其涉及一种投屏方法及电子设备。The present application relates to the field of terminal technologies, and in particular, to a screen projection method and an electronic device.
背景技术Background technique
目前,电子设备可以安装并运行应用程序,且该电子设备可以获取该应用程序的显示内容在本端的显示器中进行显示。但逐渐地,这种单一的显示方式已经难以满足用户的需求,各种更加多样化的显示方式应运而生,其中,投屏便是一种重要的显示方式。At present, an electronic device can install and run an application program, and the electronic device can acquire the displayed content of the application program and display it on the display of the local end. However, gradually, this single display mode has been unable to meet the needs of users, and various more diversified display modes have emerged as the times require, among which screen projection is an important display mode.
现有技术中,第一设备可以获取到某个应用程序的进程对应的显示内容,且第一设备可以显示该显示内容,也可以将该显示内容投屏至第二设备,从而在第二设备的显示屏显示该显示内容。In the prior art, the first device can obtain the display content corresponding to the process of a certain application, and the first device can display the display content, and can also project the display content to the second device, so that the second device can display the display content. the display shows the display.
但由于第一设备的用户与观看第二设备的显示屏的用户可能并不相同,比如第一设备可能是某个用户的手机,而第二设备可能是公司会议室的公共显示屏,因此第一设备的用户通常不希望观看第二设备的用户通过第二设备看到一些隐私的内容,而在现有的投屏方式中,第一设备和第二设备所能够显示的内容相同,从而可能导致第一设备的用户的隐私泄露,安全性较低。However, since the user of the first device may not be the same as the user viewing the display screen of the second device, for example, the first device may be a user's mobile phone, and the second device may be the public display screen of the company conference room. The user of one device usually does not want the user of the second device to see some private content through the second device, and in the existing screen projection method, the first device and the second device can display the same content, which may As a result, the privacy of the user of the first device is leaked, and the security is low.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本申请提供一种投屏方法及电子设备,从而提高投屏显示的安全性。In view of this, the present application provides a screen projection method and electronic device, so as to improve the security of screen projection display.
为了实现上述目的,第一方面,本申请实施例提供投屏方法,包括:In order to achieve the above purpose, in the first aspect, an embodiment of the present application provides a screen projection method, including:
第一设备获取第一应用程序的第一进程对应的第一显示内容;The first device acquires the first display content corresponding to the first process of the first application;
所述第一设备基于所述第一进程对应的第一用户标识,确定第二设备;The first device determines the second device based on the first user identifier corresponding to the first process;
所述第一设备将所述第一显示内容投屏至所述第二设备的显示屏上进行显示。The first device projects the first display content to a display screen of the second device for display.
其中,第一应用程序可以是第一设备中任一个应用程序。在一些实施例中,第一应用程序可以包括系统应用程序,该系统应用程序用于提供电子设备运行或与用户交互所必须的软件环境,如桌面应用和系统用户界面应用。在另一些实施例中,第一应用程序可以包括用户应用程序,该用户应用程序可以由用户安装并向该用户提供增值服务,如通信应用和游戏等。The first application may be any application in the first device. In some embodiments, the first application may include a system application for providing a software environment necessary for the electronic device to operate or interact with a user, such as desktop applications and system user interface applications. In other embodiments, the first application may include a user application, which may be installed by the user and provide the user with value-added services, such as communication applications and games.
需要说明的是,本实施例中的用户标识可以是指电子设备的操作系统中的用户标识。It should be noted that, the user identifier in this embodiment may refer to the user identifier in the operating system of the electronic device.
在本申请实施例中,第一设备可以获取第一应用程序的第一进程对应的第一显示内容,并基于第一进程对应的第一用户标识确定第二设备。由于第一进程与第一用户标识对应,而第二设备是基于第一用户标识确定的,因此可以将第一进程的第一显示内容,投屏至第二设备进行显示,也即是,第一设备能够通过第一用户标识,控制在第二设备进行投屏显示的内容,减少了不加区别地将第一应用程序的所有显示内容都投屏至第二设备的问题,提高了显示的安全性。In this embodiment of the present application, the first device may acquire the first display content corresponding to the first process of the first application, and determine the second device based on the first user identifier corresponding to the first process. Since the first process corresponds to the first user ID, and the second device is determined based on the first user ID, the first display content of the first process can be projected to the second device for display, that is, the first One device can control the content displayed on the second device through the first user identification, which reduces the problem of indiscriminately projecting all the displayed content of the first application to the second device, and improves the display quality. safety.
可选地,所述方法还包括:Optionally, the method further includes:
所述第一设备获取所述第一应用程序的第二进程对应的第二显示内容,所述第二进程与第二用户标识对应,所述第二用户标识与所述第一设备对应;acquiring, by the first device, second display content corresponding to a second process of the first application, the second process corresponding to a second user identifier, and the second user identifier corresponding to the first device;
所述第一设备在所述第一设备的显示屏上显示所述第二显示内容。The first device displays the second display content on a display screen of the first device.
例如,第一用户标识可以表示为userid=10,即用户10;第二用户标识可以表示为userid=0,即用户0。For example, the first user identifier may be represented as userid=10, that is, user 10; the second user identifier may be represented as userid=0, that is, user 0.
用户可以通过多个用户标识,来控制在多个不同设备进行显示的显示内容,提高了显示的灵活性和安全性。另外,由于第一设备在运行第一应用程序时,是将第一应用程序的第一进程对应的第一显示内容在第二设备进行显示,并将第一应用程序的第二进程对应的第二显示内容在第一设备或第三设备进行显示,这两个进程之间是独立的,那么第一设备便可以将第一显示内容和第二显示内容,分别针对第二设备和第一设备(或第三设备)的显示屏进行适配,从而分别在第二设备和第一设备(或第三设备)显示第一显示内容和第二显示内容,对于用户而言,能够在两个设备中同时显示第一应用程序,提高了显示性能和用户体验。The user can control the display content displayed on multiple different devices through multiple user IDs, which improves the flexibility and security of the display. In addition, when the first device runs the first application, the first display content corresponding to the first process of the first application is displayed on the second device, and the first display content corresponding to the second process of the first application is displayed on the second device. The second display content is displayed on the first device or the third device, and the two processes are independent, then the first device can assign the first display content and the second display content to the second device and the first device respectively. (or the third device) the display screen is adapted to display the first display content and the second display content on the second device and the first device (or the third device) respectively. The first application program is simultaneously displayed in the middle, which improves the display performance and user experience.
可选地,所述第一用户标识与所述第二用户标识相同,所述第一进程与所述第二进程为同一进程,所述第一显示内容与所述第二显示内容相同。Optionally, the first user identifier is the same as the second user identifier, the first process and the second process are the same process, and the first display content is the same as the second display content.
第一设备可以将第一用户标识与第二标识进行比较。当第一用户标识与第二用户标识不同时,可以确定当前投屏为异源投屏。当第一用户标识与第二用户标识相同时,当前投屏为同源投屏,第一进程与第二进程为同一进程,那么第一显示内容与第二显示内容相同。The first device may compare the first user identification with the second identification. When the first user identification is different from the second user identification, it may be determined that the current screen projection is a heterogeneous screen projection. When the first user ID and the second user ID are the same, the current screen projection is the same source screen projection, the first process and the second process are the same process, then the first display content and the second display content are the same.
可选地,所述第一设备基于所述第一进程对应的第一用户标识,确定第二设备,包括:Optionally, the first device determines the second device based on the first user identifier corresponding to the first process, including:
所述第一设备基于所述第一用户标识,从存储的至少一个用户标识与至少一个设备标识之间的对应关系中,确定所述第二设备的设备标识,所述至少一个用户标识包括所述第一用户标识,所述至少一个设备标识包括所述第二设备的设备标识;Based on the first user identifier, the first device determines the device identifier of the second device from the stored correspondence between at least one user identifier and at least one device identifier, and the at least one user identifier includes all the user identifiers. the first user identifier, the at least one device identifier includes the device identifier of the second device;
所述第一设备根据所述第二设备的设备标识确定所述第二设备。The first device determines the second device according to the device identification of the second device.
需要说明的是,用户标识和设备标识之间的对应关系,可以由第一设备事先确定。在一些实施例中,第一设备可以先确定投屏显示的第二设备,再确定与第二设备对应的第一用户标识,然后将第二设备的设备标识与第一用户标识对应存储,从而使得在获取到第一用户标识对应的第一进程的第一显示内容时,可以基于第一用户标识,确定对应的第二设备。It should be noted that, the correspondence between the user identifier and the device identifier may be determined in advance by the first device. In some embodiments, the first device may first determine the second device displayed on the screen, and then determine the first user identifier corresponding to the second device, and then store the device identifier of the second device corresponding to the first user identifier, thereby Therefore, when the first display content of the first process corresponding to the first user identifier is acquired, the corresponding second device can be determined based on the first user identifier.
在一些实施例中,第一设备可以在接收到用户的投屏操作时,查找第二设备。如果第一设备查找到多个电子设备,则可以向用户展示包括设备列表,该设备列表包括该多个电子设备的设备标识,并在基于该多个电子设备标识中的至少一个设备标识接收到用户的确定操作时,将该至少一个设备标识对应的电子设备确定为第二设备。In some embodiments, the first device may search for the second device when receiving the user's screen casting operation. If the first device finds a plurality of electronic devices, it may present a device list to the user, where the device list includes the device identifiers of the plurality of electronic devices, and when the device identifiers are received based on at least one of the plurality of electronic device identifiers During the user's determination operation, the electronic device corresponding to the at least one device identifier is determined as the second device.
在一些实施例中,第一设备可以基于第二设备的设备标识,从存储的至少一个设备标识与至少一个用户标识之间的对应关系中,确定第一用户标识。在一些实施例中,第一设备可以向用户提供用户列表,该用户列表包括至少一个用户标识,并在基于任一用户标识接收到用户的确定操作时,将该用户标识确定为第一用户标识。在一些实施例中,第一设备也可以接收用户提交的第一用户标识。In some embodiments, the first device may determine the first user identity from the stored correspondence between the at least one device identity and the at least one user identity based on the device identity of the second device. In some embodiments, the first device may provide a user list to the user, the user list includes at least one user identification, and when receiving a user's determination operation based on any user identification, determine the user identification as the first user identification . In some embodiments, the first device may also receive the first user identification submitted by the user.
可选地,所述第一设备获取所述第一进程对应的第一显示内容,包括:Optionally, obtaining, by the first device, first display content corresponding to the first process, including:
所述第一设备获取第一应用程序的第一进程对应的第三显示内容;obtaining, by the first device, third display content corresponding to the first process of the first application;
所述第一设备从所述第一应用程序的应用程序本体中获取与所述第二设备对应的显示样式数据;The first device acquires display style data corresponding to the second device from the application body of the first application;
所述第一设备基于与所述第二设备对应的显示样式数据,对所述第三显示内容进行适配处理,得到所述第一显示内容。The first device performs adaptation processing on the third display content based on display style data corresponding to the second device to obtain the first display content.
第一设备可以从第一应用程序的应用程序本体中获取与第二设备对应的显示样式数据,而不需要事先预置针对各种设备的显示样式数据,降低了投屏显示的成本。The first device can obtain the display style data corresponding to the second device from the application body of the first application program, without the need to preset display style data for various devices in advance, which reduces the cost of screen projection display.
可选地,在所述第一设备获取第一应用程序的第一进程对应的第一显示内容之前,所述方法还包括:Optionally, before the first device acquires the first display content corresponding to the first process of the first application, the method further includes:
所述第一设备基于所述第一用户标识,创建所述第一进程。The first device creates the first process based on the first user identification.
可选地,所述第一设备基于所述第一用户标识,创建所述第一进程,包括:Optionally, the first device creates the first process based on the first user identifier, including:
所述第一设备若确定所述第一用户标识对应的用户存在,则从与所述第一用户标识对应的用户空间中获取所述第一应用程序的用户数据;If the first device determines that the user corresponding to the first user identifier exists, obtain the user data of the first application from the user space corresponding to the first user identifier;
基于所述第一应用程序的所述用户数据,创建所述第一进程。The first process is created based on the user data of the first application.
第一设备可以判断存储的用户标识列表中是否包括第一用户标识,如果是则可以确定第一用户标识对应的用户存在,否则可以确定第一用户标识对应的用户不存在。且若第一用户标识对应的用户不存在,则第一设备可以基于第一用户标识创建该用户,然后再基于第一用户标识创建第一进程。The first device may determine whether the stored user identification list includes the first user identification, and if so, may determine that the user corresponding to the first user identification exists; otherwise, may determine that the user corresponding to the first user identification does not exist. And if the user corresponding to the first user identifier does not exist, the first device may create the user based on the first user identifier, and then create the first process based on the first user identifier.
需要说明的是,第一设备可以包括多个用户空间,各用户空间相互隔离。用户空间中可以包括应用数据。在一些实施例中,应用数据可以包括用户数据,用户数据可以是由第一设备在运行应用程序时针对用户产生的数据,比如即时通讯应用的聊天记录、相机拍摄的图片等。其中,应用程序本体存储可以在该多个用户空间之外的指定存储空间,且该指令存储空间可以由该多个用户空间对应的用户共享。或者,在一些实施例中,应用数据还可以包括应用程序本体,第一设备可以基于不同的用户标识,在各用户标识对应的用户空间中安装应用程序。其中,同一应用程序在不同用户空间中的用户数据可以不同,从而使得第一设备可以同时独立运行同一应用程序的多个进程。例如,第一设备中用于安装应用程序的指令存储空间的地址为“/data/app”,且第一设备包括两个用户空间,该两个用户空间的地址分别为“/data/user/0”和“/data/user/10”,其中,“/data/user/0”为用户0的用户空间,“/data/user/10”为用户10的用户空间。每个用户空间中均包括某通讯应用的用户数据,因此第一设备可以同时独立地运行该通讯应用的两个进程,对于用户而言,可以在第一设备运行两个该通讯应用,每个通讯应用中可以登录不同的应用账户。It should be noted that the first device may include multiple user spaces, and the user spaces are isolated from each other. Application data can be included in user space. In some embodiments, the application data may include user data, and the user data may be data generated for the user when the first device runs the application program, such as chat records of the instant messaging application, pictures taken by the camera, and the like. The application body storage may be in a designated storage space other than the multiple user spaces, and the instruction storage space may be shared by users corresponding to the multiple user spaces. Alternatively, in some embodiments, the application data may further include an application program body, and the first device may install the application program in the user space corresponding to each user identification based on different user identifications. The user data of the same application in different user spaces may be different, so that the first device can independently run multiple processes of the same application at the same time. For example, the address of the instruction storage space for installing the application program in the first device is "/data/app", and the first device includes two user spaces, and the addresses of the two user spaces are "/data/user/ 0" and "/data/user/10", where "/data/user/0" is the user space of user 0, and "/data/user/10" is the user space of user 10. Each user space includes user data of a communication application, so the first device can run two processes of the communication application independently at the same time. For the user, two communication applications can be run on the first device, each Different app accounts can be logged into the messaging app.
在一些实施例中,第一设备可以按照与基于第一用户标识创建第一进程相似的方式,基于第二用户标识创建该应用程序的第二进程。In some embodiments, the first device may create a second process of the application based on the second user identification in a similar manner to creating the first process based on the first user identification.
可选地,所述第一设备包括第一手机,所述第二设备包括电脑、车载设备、智能电视或第二手机。当然,在实际应用中,第二设备也可以包括其他设置有显示器的电子设备。Optionally, the first device includes a first mobile phone, and the second device includes a computer, a vehicle-mounted device, a smart TV, or a second mobile phone. Of course, in practical applications, the second device may also include other electronic devices provided with a display.
第二方面,本申请实施例提供一种投屏装置,该投屏装置可以应用于电子设备中,且该投屏装置可以上述第一方面中任一项所述的方法。In a second aspect, an embodiment of the present application provides a screen projection device, the screen projection device can be applied to an electronic device, and the screen projection device can use any of the methods described in the first aspect above.
第三方面,本申请实施例提供一种电子设备,包括:存储器和处理器,存储器用于存储计算机程序;处理器用于在调用计算机程序时执行上述第一方面中任一项所述的方法。In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor, where the memory is used to store a computer program; the processor is used to execute the method described in any one of the first aspects when the computer program is invoked.
第四方面,本申请实施例提供一种芯片系统,所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述第一方面中任一项所述的方法。In a fourth aspect, an embodiment of the present application provides a chip system, the chip system includes a processor, the processor is coupled to a memory, and the processor executes a computer program stored in the memory, so as to implement any one of the above first aspects. one of the methods described.
其中,所述芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip or a chip module composed of multiple chips.
第五方面,本申请实施例提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述第一方面中任一项所述的方法。In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the method described in any one of the foregoing first aspects.
第六方面,本申请实施例提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行上述第一方面中任一项所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method described in any one of the first aspects above.
可以理解的是,上述第二方面至第六方面的有益效果可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that, for the beneficial effects of the foregoing second aspect to the sixth aspect, reference may be made to the relevant descriptions in the foregoing first aspect, and details are not described herein again.
附图说明Description of drawings
图1为本申请实施例所提供的一种电子设备的结构示意图;1 is a schematic structural diagram of an electronic device provided by an embodiment of the application;
图2为本申请实施例所提供一种投屏系统的结构示意图;FIG. 2 is a schematic structural diagram of a screen projection system provided by an embodiment of the present application;
图3为本申请实施例所提供的一种投屏场景的示意图;FIG. 3 is a schematic diagram of a screen projection scene provided by an embodiment of the present application;
图4为本申请实施例所提供的另一种投屏场景的示意图;FIG. 4 is a schematic diagram of another screen projection scenario provided by an embodiment of the present application;
图5为本申请实施例所提供另一种投屏系统的结构示意图;FIG. 5 is a schematic structural diagram of another screen projection system provided by an embodiment of the present application;
图6为本申请实施例提供的一种应用程序的软件架构的示意图;6 is a schematic diagram of a software architecture of an application program provided by an embodiment of the present application;
图7为本申请实施例所提供的一种投屏方法的流程图;FIG. 7 is a flowchart of a screen projection method provided by an embodiment of the present application;
图8为本申请实施例所提供的另一种投屏场景的示意图;FIG. 8 is a schematic diagram of another screen projection scenario provided by an embodiment of the present application;
图9为本申请实施例所提供的另一种投屏场景的示意图;FIG. 9 is a schematic diagram of another screen projection scenario provided by an embodiment of the present application;
图10为本申请实施例所提供的另一种电子设备的结构示意图。FIG. 10 is a schematic structural diagram of another electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供的投屏方法可以应用于手机、平板电脑、可穿戴设备、车载设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)等电子设备上,本申请实施例对电子设备的具体类型不作任何限制。The screen projection method provided by the embodiments of the present application can be applied to mobile phones, tablet computers, wearable devices, in-vehicle devices, notebook computers, ultra-mobile personal computers (UMPC), netbooks, and personal digital assistants (personal digital assistants). , PDA) and other electronic devices, the embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
请参照图1,为本申请所提供的一种电子设备100的结构示意图。电子设备100可以是下述中的第一设备、第二设备、第三设备、第四设备或第五设备,电子设备100可以是包括处理器110、存储器120和通信模块130等。Please refer to FIG. 1 , which is a schematic structural diagram of an electronic device 100 provided by the present application. The electronic device 100 may be the following first device, second device, third device, fourth device or fifth device, and the electronic device 100 may include a
其中,处理器110可以包括一个或多个处理单元,存储器120用于存储程序代码和数据。在本申请实施例中,处理器110可执行存储器120存储的计算机执行指令,用于对电子设备100的动作进行控制管理。The
通信模块130可以用于电子设备100的各个内部模块之间的通信、或者电子设备100和其他外部电子设备之间的通信等。示例性的,如果电子设备100通过有线连接的方式和其他电子设备通信,通信模块130可以包括接口等,例如USB接口,USB接口可以是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备。The
或者,通信模块130可以包括音频器件、射频电路、蓝牙芯片、无线保真(wirelessfidelity,Wi-Fi)芯片、近距离无线通讯技术(near-field communication,NFC)模块等,可以通过多种不同的方式实现电子设备100与其他电子设备之间的交互。Alternatively, the
可选地,电子设备100还可以包括显示屏(display device)140,显示屏140可以显示人机交互界面中的图像或视频等。可选地,显示屏140可以包括物理显示屏、虚拟显示屏、无线显示屏(wi-fi display)等等。Optionally, the electronic device 100 may further include a display device (display device) 140, and the
可选地,电子设备100还可以包括外设设备150,例如鼠标、键盘、扬声器、麦克风等。Optionally, the electronic device 100 may further include
应理解,除了图1中列举的各种部件或者模块之外,本申请实施例对电子设备100的结构不做具体限定。在本申请另一些实施例中,电子设备100还可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It should be understood that, except for the various components or modules listed in FIG. 1 , the embodiment of the present application does not specifically limit the structure of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may further include more or less components than shown, or combine some components, or separate some components, or arrange different components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
请参照图2,为本申请实施例所提供的一种投屏系统的结构示意图,该投屏系统可以包括第四设备200和第五设备300。Please refer to FIG. 2 , which is a schematic structural diagram of a screen projection system provided by an embodiment of the present application. The screen projection system may include a
第四设备300可以包括第一应用层210、第一应用管理服务层220、第一窗口管理服务(window manager service,WMS)层230、第一显示管理服务(display manager service,DMS)层240、第一显示层250和第一编码层260。The
第一应用层210可以包括本端显示样式数据211、至少一个投屏显示样式数据212和第一应用数据213。本端显示样式数据211和投屏显示样式数据212,可以是第四设备200事先根据第四设备200本端和第五设备300的显示屏的物理特征预置的,从而使得同一显示内容可以分别在本端和第五设备200正常显示并呈现不同的显示样式,其中,物理特征可以包括分辨率和每英寸点数(dots per inch,DPI)中的至少一个。本端显示样式数据211可以包括第一桌面(launcher)214和第一系统用户界面(system UI)215。投屏显示样式数据212可以包括第二桌面(可以称为cast_launcher)216和第二系统用户界面(可以称为cast_system UI)217。第一桌面214和第二桌面216可以是同一个应用,也可以是不同的应用,用于针对不同的设备提供不同的桌面样式,如横屏、竖屏、屏幕尺寸、屏幕比例等。第一系统用户界面215和第二系统用户界面217可以是同一个应用,也可以是不同的应用,用于针对不同的设备提供不同的UI样式,如状态栏、通知栏、导航栏和音量UI等。其中,第一桌面214和第二桌面216。第一应用数据213可以包括应用程序(application)的应用程序本体(如相机、图库、即时通讯应用和音视频应用等)和该应用程序的用户数据(如文档、照片、音乐、视频和聊天记录等)。The first application layer 210 may include local display style data 211 , at least one screen projection display style data 212 and first application data 213 . The local display style data 211 and the screen projection display style data 212 may be preset by the
第一应用管理服务层220可以包括第一应用管理服务模块221。第一应用管理服务模块221可以用于对应用的运行状态进行管理。在一些实施例中,第一应用管理服务模块221可以通过活动组件管理服务(activity manager service,AMS)对应用程序的活动组件等组件的生命周期进行管理,比如启动、结束和调度活动组件。其中,活动组件是应用程序的一种重要组件,该应用程序的活动组件可以都运行在该应用程序的进程中。The first application management service layer 220 may include a first application management service module 221 . The first application management service module 221 may be used to manage the running state of the application. In some embodiments, the first application management service module 221 may manage the life cycle of components such as activity components of the application program through an activity manager service (activity manager service, AMS), such as starting, ending and scheduling the activity components. The active component is an important component of the application, and the active components of the application may all run in the process of the application.
第一窗口管理服务层230可以包括第一逻辑显示屏(display content)231和第二逻辑显示屏232。第一逻辑显示屏231和第二逻辑显示屏232可以分别与第四设备200本端的显示屏和第五设备300的显示屏对应。以第一逻辑显示屏231为例,第一逻辑显示屏231可以根据各活动组件的窗口和子窗口中的所包括的信息,确定在第四设备200本端的显示屏进行显示的显示内容。The first window management service layer 230 may include a first logical display (display content) 231 and a second logical display 232 . The first logical display screen 231 and the second logical display screen 232 may correspond to the display screen of the
第一显示管理服务层240可以用于管理显示屏(包括第四设备200本端的显示屏和第五设备300的显示屏)的生命周期。显示适配器可以与第一显示管理服务层240耦合,该显示适配器可以用于发现显示屏并确定该显示屏的物理特征,还可以根据该显示屏的物理特征对显示内容进行处理,从而使该显示内容适应该物理特征,即该显示适配器可以对显示屏提供适配功能。第一显示管理服务层240可以将所检测到的显示屏的物理特征提供给其他层(如第一窗口管理服务层230),以便于其他层基于该物理特征执行与显示相关的操作。在一些实施例中,显示适配器可以包括本端显示适配器(local display adapter)241、虚拟显示适配器(overlay display adapter或virtual display adapter)242和无线显示适配器(wifi display adapter)243中的至少一个,其中,本端显示适配器241可以用于为物理显示屏(或称主显示屏)提供适配功能,虚拟显示适配器242可以用于为虚拟显示屏提供适配功能,且虚拟显示适配器242可以由第四设备300在检测到投屏设备(如第五设备300)时创建的,无线显示器可以用于为无线显示器提供适配功能。在本申请实施例中,本端显示适配器241即可以为对第四设备200本端的显示屏提供适配功能,无线显示适配器243即可以为第五设备300的显示屏提供适配功能。The first display management service layer 240 may be used to manage the life cycle of the display screen (including the display screen at the local end of the
第一显示层250可以通过图像合成服务(如surface flinger),将对应某个显示屏的需要显示的数据进行合成和渲染,并将得到的显示内容(如图像)发送至显示屏进行显示。The first display layer 250 can synthesize and render the data to be displayed corresponding to a certain display screen through an image synthesis service (such as surface flinger), and send the obtained display content (such as an image) to the display screen for display.
第一编码层260可以用于对将要发送至第五设备300的显示内容进行编码。The first encoding layer 260 may be used to encode the display content to be sent to the
第五设备300可以包括第二显示层310和第一解码层320。其中,第一解码层320可以将经第一编码层260编码的显示内容进行解码,并将解码后的显示内容发送给第二显示层310,第二显示层310可以按照执行与第一显示层250相似或相同的步骤,从而显示该显示内容。The
在一些实施例中,第四设备200可以通过异源投屏同时在本端显示一个界面,并在其设备投屏显示另一个界面。具体地,以第四设备200通过异源投屏的方式在第五设备300进行投屏显示为例。第四设备200通过第一显示管理服务层240发现第三设备300的显示屏的物理特征,并根据该显示屏的物理特征在本端查找与第五设备300对应的投屏显示样式数据212。第四设备200分别通过本端显示样式数据211在本端显示一个桌面,通过投屏显示样式数据212在第五设备300显示另一个桌面。当某应用程序运行时,第四设备200可以通过第一应用管理服务层220管理该应用程序的进程,其中一个应用程序对应一个进程。第四设备200还可以通过第一窗口管理服务层230确定该进程对应的显示内容是在哪个显示屏显示。如果该进程对应的显示内容是在第五设备300的显示屏显示,则通过第一无线显示适配器243,对该显示内容进行处理,使得该显示内容适于在第五设备300的显示屏显示。之后,第四设备200可以通过第一编码层260对经过适配的显示内容进行编码,将编码后的显示内容发送至第五设备300。第五设备300可以通过第一解码层320对接收的显示内容进行解码,并通过第二显示层310将解码后的显示内容在显示屏进行显示。In some embodiments, the
其中,异源投屏是一种投屏方式。异源投屏方式是指一个电子设备在另一电子设备投屏显示一部分显示内容,且在该另一电子设备所显示的显示内容与在该电子设备本端显示的显示内容不相同。另一种投屏方式为同源投屏,是指一个电子设备将该电子设备本端的显示内容直接投屏至另一电子设备进行显示,即这两个电子设备所显示的显示内容相同。Among them, heterologous screen projection is a screen projection method. Heterogeneous screen projection means that one electronic device projects a part of the display content on another electronic device, and the display content displayed on the other electronic device is different from the display content displayed on the local end of the electronic device. Another screen projection method is homologous screen projection, which means that one electronic device directly projects the display content of the electronic device to another electronic device for display, that is, the display content displayed by the two electronic devices is the same.
请参照图3,为本申请实施例提供的一种同源投屏显示的场景示意图。在该场景中,第四设备200为手机,第五设备300包括智能电视和笔记本电脑中的至少一个。手机当前显示的是视屏播放画面,且手机将该视频播放画面投屏至智能电视和笔记本电脑中的至少一个,从而使得智能电视和笔记本电脑中的至少一个也显示该视频播放画面。Please refer to FIG. 3 , which is a schematic diagram of a scene of a homologous screen projection display provided by an embodiment of the present application. In this scenario, the
请参照图4,为本申请实施例所提供的一种异源投屏显示的场景示意图。在该场景中,第四设备200为手机,第五设备300包括笔记本电脑和车载设备中的一个。手机当前显示的是视频播放画面,另外手机还在笔记本电脑投屏显示了一个聊天界面。类似的,手机可以也可以在车载设备投屏显示音乐播放画面。Please refer to FIG. 4 , which is a schematic diagram of a scenario of a heterogeneous screen projection display provided by an embodiment of the present application. In this scenario, the
可以看出,在上述实施例中至少会存在以下几个问题:首先,由于同一应用程序对应一个进程,而一个进程对应一个用户,第四设备200可以将该进程的显示内容在第四设备200或第五设备300的显示屏进行显示,即第四设备200通过投屏显示和本端显示的显示内容是相同的,而由于第一设备的用户与观看第二设备的显示屏的用户可能并不相同,比如第一设备可能是某个用户的手机,第二设备可能是公司会议室的公共显示屏,因此第一设备的用户可能不希望观看第二设备的用户通过第二设备看到一些隐私的内容,可能会导致用户隐私泄露,安全性较低。其次,由于不同的设备的显示屏的物理特征(如分辨率和DPI)不同,也就需要不同的显示样式,第四设备200难以同时将同一进程的显示内容针对不同的显示屏进行适配,因此在进行异源投屏时,第四设备200和第五设备300难以同时显示同一个应用程序,且在将该应用程序的显示内容从第四设备200切换至第五设备300或从第五设备300切换至第四设备200进行显示时,可能会导致该应用程序重新加载,显示性能和用户体验较差。另外,第四设备200需要事先针对不同的电子设备设置不同的投屏显示样式数据,提高了投屏的成本。It can be seen that there are at least the following problems in the above-mentioned embodiment: First, since the same application corresponds to one process, and one process corresponds to one user, the
为解决上述至少部分技术问题,本申请实施例提供了另一种投屏系统。请参照图5,为本申请实施例所提供的另一种投屏系统的结构示意图,该投屏系统可以包括第一设备400和至少一个投屏设备(图5中示出了第二设备500和第三设备600),该投屏设备中可以设置有显示器。To solve at least some of the above technical problems, embodiments of the present application provide another screen projection system. Please refer to FIG. 5 , which is a schematic structural diagram of another screen projection system provided by an embodiment of the application. The screen projection system may include a
第一设备400可以包括第二应用层410、第二应用管理服务层420、用户设置(usercontroller)模块422、用户管理(user manager service)模块423、设备管理模块424、数据存储(setting provider)模块425、第二窗口管理服务层430、第二显示管理服务层440、第三显示层450和编码层(图5示出了第二编码层460和第三编码层470)。The
第二应用层410可以包括多个用户空间,每个用户空间可以包括应用数据和显示样式数据。每个用户空间可以分别对应一个用户,如图5中示出了第一用户空间411、第二用户空间413和第三用户空间415,其中,第一用户空间411对应的用户标识(userid)为0(即userid=0),第一用户空间411包括第二应用数据412C,第二用户空间413对应的用户标识为10(即userid=10),第一用户空间413包括第三应用数据414C,第三用户空间415对应的用户标识为11(userid=11),第一用户空间415包括第四应用数据416C。每个应用数据可以与图2中的第一应用数据213相似。每个显示样式数据可以与图2中的第四设备200的本端显示样式数据211或投屏显示样式数据212相似,每个显示样式数据可以对应一个投屏显示的设备,如图5中示出了第一显示样式数据412、第二显示样式数据414和第三显示样式数据416,其中,第一显示样式数据412对应第一设备400本端,第一显示样式数据412包括第三桌面412A和第三系统用户界面412B,第二显示样式数据414对应第二设备500,第二显示样式数据414包括第四桌面414A和第四系统用户界面414B,第三显示样式数据416对应第三设备600,第三显示样式数据416包括第三桌面416A和第三系统用户界面416B。由于每个用户空间可以分别对应一个用户,因此第一设备400在运行某个应用程序时,可以运行多个进程,以对应多个用户,相应的,投屏显示时,可以在不同设备的显示屏显示不同进程(即不同用户)对应的显示内容。The second application layer 410 may include a plurality of user spaces, and each user space may include application data and display style data. Each user space may correspond to a user respectively, as shown in FIG. 5 , the first user space 411 , the second user space 413 and the third user space 415 , wherein the user ID (userid) corresponding to the first user space 411 is 0 (ie userid=0), the first user space 411 includes the second application data 412C, the user ID corresponding to the second user space 413 is 10 (ie userid=10), the first user space 413 includes the third application data 414C, The user ID corresponding to the third user space 415 is 11 (userid=11), and the first user space 415 includes fourth application data 416C. Each application data may be similar to the first application data 213 in FIG. 2 . Each display style data may be similar to the local display style data 211 or the screen projection display style data 212 of the
需要说明的是,本申请实施例中的用户标识可以是指电子设备的操作系统中的用户标识。例如,userid=0可以表示该操作系统中的主用户(即用户0),userid=10和userid=11可以表示该操作系统中的子用户(即用户10和用户11)。It should be noted that, the user identifier in the embodiment of the present application may refer to the user identifier in the operating system of the electronic device. For example, userid=0 may represent the main user (ie, user 0) in the operating system, and userid=10 and userid=11 may represent sub-users (ie, user 10 and user 11) in the operating system.
还需要说明的是,第一设备400可以包括多个用户空间,各用户空间相互隔离。用户空间中可以包括应用数据。在一些实施例中,应用数据可以包括用户数据(如图5中的第二应用数据412C所示),用户数据可以是由第一设备400在运行应用程序时针对用户产生的数据,比如即时通讯应用的聊天记录、相机拍摄的图片等。在一些实施例中,应用数据还可以包括应用程序本体,第一设备可以基于不同的用户标识,在各用户标识对应的用户空间中安装应用程序;或者,在另一些实施例中,应用数据不包括应用程序本体,应用程序本体存储在该多个用户空间之外的指定存储空间,且该指令存储空间可以由该多个用户空间对应的用户共享。其中,同一应用程序在不同用户空间中的用户数据可以不同,从而使得第一设备400可以同时独立运行同一应用程序的多个进程。例如,第一设备400中用于安装应用程序的指令存储空间的地址为“/data/app”,且第一设备包括两个用户空间,该两个用户空间的地址分别为“/data/user/0”和“/data/user/10”,其中,“/data/user/0”为用户0的用户空间,“/data/user/10”为用户10的用户空间。每个用户空间中均包括某通讯应用的用户数据,因此第一设备400可以同时独立地运行该通讯应用的两个进程,对于用户而言,可以在第一设备400运行两个该通讯应用,每个通讯应用中可以登录不同的应用账户。It should also be noted that the
在一些实施例中,各用户空间可以不包括显示样式数据,而是如图6所示,应用程序本体700可以包括应用桌面样式710和应用系统用户界面样式720等多种类型的显示样式数据,每个显示样式数据中可以包括针对不同设备进行适配的样式。如图6所示,应用桌面样式710包括手机桌面样式710A、电脑桌面样式710B和车载桌面样式710C,从而使得该应用程序700的桌面能够在手机、电脑和车载设备的显示屏正常显示。相似的,应用系统用户界面样式720可以包括手机系统用户界面样式720A、电脑系统用户界面样式720B和车载桌面样式720C,从而使得该应用程序700的系统用户界面能够在手机、电脑和车载设备的显示屏正常显示。也即是,第一设备400可以不再针对不同设备预先设置不同的显示样式数据,而是可以从各应用程序中获取针对不同设备的显示样式,从而降低显示的成本。In some embodiments, each user space may not include display style data, but as shown in FIG. 6 , the
用户设置模块422可以用于对用户或设备进行配置,包括响应用户的相关操作,从而将某个用户标识与某个设备标识的对应关系存储至数据模块425,即将该用户标识和设备标识进行绑定。The user setting module 422 can be used to configure the user or the device, including responding to the relevant operation of the user, so as to store the corresponding relationship between a certain user identification and a certain device identification in the data module 425, that is, to bind the user identification and the device identification. Certainly.
用户管理模块423可以用于对用户进行管理,比如可以包括登录、退出以及对某个用户标识进行变更等。The user management module 423 may be used to manage users, for example, may include logging in, logging out, and changing a certain user ID.
设备管理模块424可以用于对进行投屏的电子设备进行管理,例如可以包括获取设备标识和删除设备标识等。The device management module 424 can be used to manage the electronic device that performs screen projection, for example, it can include acquiring and deleting the device identification and the like.
数据存储模块425可以用于存储用户标识与设备标识之间的对应关系。当然,在实际应用中,数据存储模块425还可以存储其他与用户或设备相关的信息。The data storage module 425 may be used to store the correspondence between the user ID and the device ID. Of course, in practical applications, the data storage module 425 may also store other information related to users or devices.
第二应用管理服务层420可以包括第二应用管理服务模块421,第二应用管理服务模块421可以与图2中的第一应用管理服务模块221相似。在一些实施例中,第二应用管理服务模块421可以用于从数据存储模块425查找某个设备标识对应的用户标识或者某个用户标识对应的电子设备标识。The second application management service layer 420 may include a second application management service module 421, and the second application management service module 421 may be similar to the first application management service module 221 in FIG. 2 . In some embodiments, the second application management service module 421 may be configured to search for a user ID corresponding to a certain device ID or an electronic device ID corresponding to a certain user ID from the data storage module 425 .
第二窗口管理服务层430可以包括多个逻辑显示屏,每个逻辑显示屏可以对应一个真实或虚拟的显示屏,每个逻辑显示屏可以与图2中的第一逻辑显示屏231或第二逻辑显示屏232相似。比如在图3中,第二窗口管理服务层430包括第三逻辑显示屏431、第四逻辑显示屏,其中,第一逻辑显示屏431与第一设备400本端的显示屏对应,第二逻辑显示屏432可以与第二设备500的显示屏对应,第三逻辑显示屏433可以与第三设备600的显示屏对应。The second window management service layer 430 may include multiple logical display screens, each logical display screen may correspond to a real or virtual display screen, and each logical display screen may be the same as the first logical display screen 231 or the second logical display screen in FIG. 2 . Logic display 232 is similar. For example, in FIG. 3 , the second window management service layer 430 includes a third logical display screen 431 and a fourth logical display screen, wherein the first logical display screen 431 corresponds to the display screen on the local end of the
第二显示管理服务层440可以与图2中的第一显示管理服务层240相似。The second display management service layer 440 may be similar to the first display management service layer 240 in FIG. 2 .
第二本端显示适配器441可以与第一本端显示适配器241相似,第二虚拟显示适配器442可以与第一虚拟显示适配器242相似,第二无线显示适配器443可以与第一无线显示适配器243相似。The second local display adapter 441 may be similar to the first local display adapter 241 , the second virtual display adapter 442 may be similar to the first virtual display adapter 242 , and the second wireless display adapter 443 may be similar to the first wireless display adapter 243 .
第三显示层450、第四显示层510和第三设备600中的第五显示层610,可以与图2中的第一显示层241相似。The third display layer 450 , the fourth display layer 510 and the fifth display layer 610 in the
第二编码层460和第三编码层470可以与图2中的第一编码层260相似。The second coding layer 460 and the third coding layer 470 may be similar to the first coding layer 260 in FIG. 2 .
第二解码层520和第三解码层620可以与图2中的第一解码层320相似。The second decoding layer 520 and the third decoding layer 620 may be similar to the first decoding layer 320 in FIG. 2 .
在一些实施例中,第一设备400可以包括第一手机,第二设备500或第三设备600可以包括第二手机、电脑、车载设备或智能电视。In some embodiments, the
在本申请实施例中,第一设备可以获取第一应用程序的第一进程对应的第一显示内容,并基于第一进程对应的第一用户标识确定第二设备。由于第一进程与第一用户标识对应,而第二设备是基于第一用户标识确定的,因此可以将第一进程的第一显示内容,投屏至第二设备进行显示,也即是,第一设备能够通过第一用户标识,控制在第二设备进行投屏显示的内容,减少了不加区别地将第一应用程序的所有显示内容都投屏至第二设备的问题,提高了显示的安全性。In this embodiment of the present application, the first device may acquire the first display content corresponding to the first process of the first application, and determine the second device based on the first user identifier corresponding to the first process. Since the first process corresponds to the first user ID, and the second device is determined based on the first user ID, the first display content of the first process can be projected to the second device for display, that is, the first One device can control the content displayed on the second device through the first user identification, which reduces the problem of indiscriminately projecting all the displayed content of the first application to the second device, and improves the display quality. safety.
下面以具体地实施例对本申请的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present application will be described in detail below with specific examples. The following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
请参照图7,为本申请实施例所提供的一种投屏方法的流程图。需要说明的是,该方法并不以图7以及以下所述的具体顺序为限制,应当理解,在其它实施例中,该方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。该方法包括如下步骤:Please refer to FIG. 7 , which is a flowchart of a screen projection method provided by an embodiment of the present application. It should be noted that the method is not limited to the specific sequence shown in FIG. 7 and the following. It should be understood that, in other embodiments, the sequence of some steps of the method may be exchanged according to actual needs, or some of the steps may be exchanged. It can also be omitted or deleted. The method includes the following steps:
S701,第一设备确定投屏显示的第二设备。S701, the first device determines the second device to be displayed on the screen.
第一设备可以通过无线或有线的方式,与第二设备建立通信连接,从而将第二设备作为投屏显示的另一个设备。The first device may establish a communication connection with the second device in a wireless or wired manner, so as to use the second device as another device for screen projection.
在一些实施例中,第一设备可以在接收到用户的投屏操作时,查找第二设备。如果第一设备查找到多个电子设备,则可以向用户展示包括设备列表,该设备列表包括该多个电子设备的设备标识,并在基于该多个电子设备标识中的至少一个设备标识接收到用户的确定操作时,将该至少一个设备标识对应的电子设备确定为第二设备。In some embodiments, the first device may search for the second device when receiving the user's screen casting operation. If the first device finds a plurality of electronic devices, it may present a device list to the user, where the device list includes the device identifiers of the plurality of electronic devices, and when the device identifiers are received based on at least one of the plurality of electronic device identifiers During the user's determination operation, the electronic device corresponding to the at least one device identifier is determined as the second device.
当然,在实际应用中,第一设备也可以通过其他方式来确定第二设备,本申请实施例对第一设备确定投屏显示的第二设备的方式不做具体限定。Of course, in practical applications, the first device may also determine the second device in other manners, and the embodiments of the present application do not specifically limit the manner in which the first device determines the second device to be displayed on the screen.
在一些实施例中,若第一设备确定了第二设备,第一设备可以通过第二显示管理服务层获取第二设备的显示屏的物理特征,以便于后续在第二设备进行投屏显示。In some embodiments, if the first device determines the second device, the first device may obtain the physical characteristics of the display screen of the second device through the second display management service layer, so as to facilitate subsequent screen projection display on the second device.
S702,第一设备确定与第二设备对应的第一用户标识。S702, the first device determines a first user identifier corresponding to the second device.
在一些实施例中,第一设备可以基于第二设备的设备标识,从存储的至少一个设备标识与至少一个用户标识之间的对应关系中,确定第一用户标识。在一些实施例中,第一设备可以向用户提供用户列表,该用户列表包括至少一个用户标识,并在基于任一用户标识接收到用户的确定操作时,将该用户标识确定为第一用户标识。在一些实施例中,第一设备也可以接收用户提交的第一用户标识。In some embodiments, the first device may determine the first user identity from the stored correspondence between the at least one device identity and the at least one user identity based on the device identity of the second device. In some embodiments, the first device may provide a user list to the user, the user list includes at least one user identification, and when receiving a user's determination operation based on any user identification, determine the user identification as the first user identification . In some embodiments, the first device may also receive the first user identification submitted by the user.
其中,第一设备可以通过第二应用管理服务层,从第一设备中的数据存储模块,获取与第二设备对应的第一用户标识。The first device may obtain the first user identifier corresponding to the second device from the data storage module in the first device through the second application management service layer.
当然,在实际应用中,第一设备也可以通过其他方式来确定与第二设备对应的第一用户标识。本申请实施例对第一设备确定与第二设备对应的第一用户标识的方式不做具体限定。Of course, in practical applications, the first device may also determine the first user identifier corresponding to the second device in other ways. This embodiment of the present application does not specifically limit the manner in which the first device determines the first user identifier corresponding to the second device.
需要说明的是,在实际应用中,可以不必限定S701和S702的执行次序,即第一设备可以先后确定第二设备和第一用户标识,也可以同时确定第二设备和第一用户标识。It should be noted that, in practical applications, it is not necessary to limit the execution order of S701 and S702, that is, the first device may determine the second device and the first user ID successively, or may simultaneously determine the second device and the first user ID.
S703,第一设备判断第一用户标识与第一设备对应的第二用户标识是否相同。如果不同否则确定是异源投屏,执行S704;如果相同则确定是同源投屏,执行S710。S703: The first device determines whether the first user identifier is the same as the second user identifier corresponding to the first device. If it is different, otherwise it is determined that it is a heterogeneous screen projection, and S704 is performed; if it is the same, it is determined that it is a same-source screen projection, and S710 is performed.
由前述可知,不同用户具有不同的用户数据,而当第一设备在运行不同的用户数据中的应用程序时所获取到的显示内容也会不同,因此第一设备可以将第一用户标识与第二用户标识进行比较。如果第一设备对应的第二用户标识与第二设备对应的第一用户标识相同,则可能用户需要在第一设备和第二设备的显示屏同步显示相同的显示内容,因此可以进行同源投屏。如果第一设备对应的第二用户标识与第二设备对应的第一用户标识不同,则可能用户需要在不同设备的显示屏分别显示不同的显示内容,因此可以进行异源投屏。It can be seen from the foregoing that different users have different user data, and the display content obtained by the first device when running applications in different user data will also be different, so the first device can associate the first user ID with the first user ID. Two user IDs are compared. If the second user ID corresponding to the first device is the same as the first user ID corresponding to the second device, it may be that the user needs to display the same display content synchronously on the display screens of the first device and the second device, so homologous casting can be performed. Screen. If the second user ID corresponding to the first device is different from the first user ID corresponding to the second device, it may be that the user needs to display different display contents on the display screens of different devices, so hetero-source screen projection can be performed.
S704,第一设备判断第一用户标识对应的用户是否存在。如果否则执行S505,如果是则执行S706。S704, the first device determines whether a user corresponding to the first user identifier exists. If otherwise, execute S505, and if so, execute S706.
由前述可知,第一用户标识可能并不是由第一设备从存储的用户列表中获取到的,比如可能是由第一设备在开始投屏之后接收用户提交得到,因此,第一设备可以判断第一用户标识是否存在与该用户列表中。如果是则可以确定第一用户标识对应的用户是已经存在的用户,否则可以确定第一用户标识对应的用户不存在。It can be seen from the foregoing that the first user ID may not be obtained by the first device from the stored user list, for example, it may be obtained by the first device after receiving the user's submission after the screen projection is started. Therefore, the first device can determine the first user ID. Whether a user ID exists in the user list. If yes, it can be determined that the user corresponding to the first user identifier is an existing user; otherwise, it can be determined that the user corresponding to the first user identifier does not exist.
在一些实施例中,若第一设备确定第一用户标识对应的用户不存在,也可以不执行S705,而是提示用户重新提交一个用户标识。In some embodiments, if the first device determines that the user corresponding to the first user identification does not exist, it may not execute S705, but prompt the user to resubmit a user identification.
S705,第一设备基于第一用户标识创建用户。S705, the first device creates a user based on the first user identifier.
其中,第一设备可以将第一用户标识存储至用户列表,还可以将第一用户标识与第二设备的设备标识存储至用户标识与设备标识之间的对应关系中。The first device may store the first user identifier in the user list, and may also store the first user identifier and the device identifier of the second device in the correspondence between the user identifier and the device identifier.
在一些实施例中,第一设备可以创建与第一用户标识对应的用户空间。In some embodiments, the first device may create a user space corresponding to the first user identification.
其中,第一设备可以通过用户管理模块创建用户,通过用户设置模块将所创建的用户与第二设备进行绑定,即将第一用户标识与第二设备的设备标识对应存储至数据存储模块。The first device may create a user through the user management module, and bind the created user to the second device through the user setting module, that is, store the first user ID and the device ID of the second device in the data storage module.
在一些实施例中,S704和S705可以省略,即第一设备可以在确定第二设备和第一用户标识对应的情况下,直接执行S706。In some embodiments, S704 and S705 may be omitted, that is, the first device may directly execute S706 when it is determined that the second device corresponds to the first user identifier.
在一些实施例中,第一设备也可以先执行S704判断第一用户标识对应的用户是否存在。如果第一用户标识对应的用户存在再执行S703判断第一用户标识与第一设备对应的第二用户标识是否相同。如果第一用户标识对应的用户不存在则执行S705基于第一用户标识创建用户,然后在执行S703。In some embodiments, the first device may also first execute S704 to determine whether a user corresponding to the first user identifier exists. If the user corresponding to the first user identifier exists, then execute S703 to determine whether the first user identifier is the same as the second user identifier corresponding to the first device. If the user corresponding to the first user identifier does not exist, perform S705 to create a user based on the first user identifier, and then perform S703.
通过前述步骤,第一设备确定了第二设备以及与第二设备对应的第一用户标识,且第一设备也确定第一设备本端对应的第二用户标识,即第一设备可以确定不同的用户标识以及不同的用户标识所对应的电子设备,那么在后续步骤中,第一设备便可以确定某一显示内容对应哪个用户标识,进而确定在哪个电子设备的显示屏显示该显示内容。Through the foregoing steps, the first device determines the second device and the first user identifier corresponding to the second device, and the first device also determines the second user identifier corresponding to the local end of the first device, that is, the first device can determine different User IDs and electronic devices corresponding to different user IDs, then in subsequent steps, the first device can determine which user ID a certain display content corresponds to, and then determine which electronic device display screen to display the display content on.
S706,第一设备基于第一用户标识,创建第一应用程序的第一进程。S706, the first device creates a first process of the first application based on the first user identifier.
其中,第一应用程序可以是任意的应用程序。在一些实施例中,第一应用程序可以包括系统应用程序,该系统应用程序用于提供电子设备运行或与用户交互所必须的软件环境,比如第一应用程序可以包括桌面应用和系统用户界面应用中的至少一个。在另一些实施例中,第一应用程序可以包括用户应用程序,该用户应用程序可以由用户安装并向该用户提供增值服务,如通信应用和游戏等。第一设备可以按照预设的应用管理策略,对各应用程序进行管理,比如创建或关闭第一应用程序。Wherein, the first application program may be any application program. In some embodiments, the first application may include a system application, and the system application is used to provide a software environment necessary for the electronic device to operate or interact with the user. For example, the first application may include a desktop application and a system user interface application. at least one of the. In other embodiments, the first application may include a user application, which may be installed by the user and provide the user with value-added services, such as communication applications and games. The first device may manage each application program according to a preset application management policy, such as creating or closing the first application program.
在一些实施例中,第一设备可以从与第一用户标识对应的用户空间中获取第一应用程序的用户数据,基于第一应用程序的用户数据,创建第一进程。其中,第一设备可以从指定存储空间或第一用户标识对应用户空间获取该应用程序的应用程序本体,从与第一用户标识对应的用户空间中获取第一应用程序的用户数据,然后基于获取到的应用程序本体和用户数据,创建第一进程。In some embodiments, the first device may acquire user data of the first application from the user space corresponding to the first user identifier, and create the first process based on the user data of the first application. The first device may obtain the application body of the application from the specified storage space or the user space corresponding to the first user ID, obtain the user data of the first application from the user space corresponding to the first user ID, and then obtain the user data of the first application from the user space corresponding to the first user ID. To the application ontology and user data, create the first process.
在一些实施例中,第一设备可以将第一进程的进程标识和第一用户标识,存储至进程标识与用户标识之间的对应关系中。In some embodiments, the first device may store the process identifier of the first process and the first user identifier in the corresponding relationship between the process identifier and the user identifier.
在一些实施例中,第一设备还可以基于第二用户标识,按照创建第一进程相似第二方式,创建第一应用程序的第二进程,第二用户标识可以与第一设备对应。In some embodiments, the first device may also create a second process of the first application based on the second user identifier in a second manner similar to creating the first process, and the second user identifier may correspond to the first device.
例如,第一设备可以针对应用A创建进程1和进程2,其中,进程1与用户1对应,进程2与用户10对应,对于用户而言,第一设备运行了两个相同的应用A,且可以在每个应用A中登录不同的应用账户。For example, the first device may create process 1 and
S707,第一设备获取第一应用程序的第一进程对应的第一显示内容。S707: The first device acquires the first display content corresponding to the first process of the first application program.
第一设备可以通过第二窗口管理服务层,从第一进程中包括的各活动组件对应的窗口和子窗口,获取得到第一显示内容。在一些实施例中,第一设备可以获取这些窗口和子窗口中的第三显示内容,然后基于这些窗口和子窗口的位置和尺寸,将获取到的多个第三内容进行合并和渲染,从而得到第一显示内容。The first device may obtain the first display content from the windows and sub-windows corresponding to each active component included in the first process through the second window management service layer. In some embodiments, the first device may acquire the third display contents in the windows and sub-windows, and then combine and render the acquired third contents based on the positions and sizes of the windows and sub-windows, so as to obtain the third display contents. A display content.
需要说明的是,在实际应用中,第一设备也可以通过其他方式来获取第一进程对应的第一显示内容,本申请实施例对第一设备获取第一应用程序的第一进程对应的第一显示内容的方式不做具体限定。It should be noted that, in practical applications, the first device may also obtain the first display content corresponding to the first process in other ways. In this embodiment of the present application, the first device obtains the first display content corresponding to the first process of the first application program. - The manner of displaying the content is not specifically limited.
在一些实施例中,第一设备可以按照与S707相似的方式,获取第一应用程序的第二进程对应的第二显示内容。In some embodiments, the first device may acquire the second display content corresponding to the second process of the first application in a manner similar to S707.
S708,第一设备基于第一进程对应的第一用户标识,确定第二设备。S708, the first device determines the second device based on the first user identifier corresponding to the first process.
由于第一设备在运行第一应用程序时,可能会基于不同的用户标识,运行不同的进程,如果存在多个用户标识,则可能会运行多个进程,而不同的用户标识也会对应不同的设备,因此为了确定将第一应用程序的第一显示内容在本端显示还是进行投屏显示,减少将第一应用程序的显示内容不加区别地都投屏至某个外部设备而导致用户隐私泄露的问题,提高显示的安全性,第一设备可以基于第一进程对应的第一用户标识,确定第二设备的设备标识,基于第二设备的设备标识确定第二设备。Since the first device may run different processes based on different user IDs when running the first application, if there are multiple user IDs, multiple processes may be run, and different user IDs will also correspond to different Therefore, in order to determine whether to display the first display content of the first application program on the local end or perform screen projection display, it can reduce the user privacy caused by indiscriminately projecting the display content of the first application program to an external device. In order to improve the security of the display, the first device can determine the device identification of the second device based on the first user identification corresponding to the first process, and determine the second device based on the device identification of the second device.
在一些实施例中,第一设备可以从存储的至少一个用户标识与至少一个设备标识之间的对应关系中,获取第一用户标识对应的电子设备标识对应的电子设备标识,将该设备标识对应设备确定为第二设备。其中,至少一个用户标识可以包括第一用户标识,至少一个设备标识可以包括第二设备的设备标识。In some embodiments, the first device may obtain the electronic device identification corresponding to the electronic device identification corresponding to the first user identification from the stored correspondence between the at least one user identification and the at least one device identification, and the device identification corresponds to The device is determined to be the second device. Wherein, at least one user identification may include a first user identification, and at least one device identification may include a device identification of a second device.
需要说明的是,本申请实施例对第一设备获取第一进程对应的第一显示内容,以及第一设备基于第一进程对应的第一用户标识确定第二设备的次序不做具体限定。比如在一些实施例中,第一设备可以先基于第一用户标识确定第二设备,再先获取第一进程对应的第一显示内容。It should be noted that this embodiment of the present application does not specifically limit the order in which the first device obtains the first display content corresponding to the first process and the first device determines the second device based on the first user identifier corresponding to the first process. For example, in some embodiments, the first device may first determine the second device based on the first user identifier, and then first obtain the first display content corresponding to the first process.
在一些实施例中,第一设备可以获取第一应用程序的第一进程对应的第三显示内容,从第一应用程序的应用程序本体(或用户数据)中获取与第二设备对应的显示样式数据,基于与第二设备对应的显示样式数据,对第三显示内容进行适配处理,得到第一显示内容。也即是,第一设备可以不必再事先针对不同的电子设备设置不同的投屏显示样式数据,降低了投屏的成本。In some embodiments, the first device may acquire the third display content corresponding to the first process of the first application, and acquire the display style corresponding to the second device from the application body (or user data) of the first application The data, based on the display style data corresponding to the second device, perform adaptation processing on the third display content to obtain the first display content. That is, the first device does not need to set different screen projection display style data for different electronic devices in advance, which reduces the cost of screen projection.
其中,第一设备可以从第二显示管理服务层获取第二设备的显示屏的物理特征,然后该物理特征,获取与第二设备对应的显示样式数据,通过与第二设备对应的第二虚拟显示适配器该显示样式数据对第三显示内容进行适配处理,得到第一显示内容。当然,在实际应用中的,第一设备也可以通过其他方式来获取与第二设备对应的显示样式数据,比如,第一设备也可以基于第二设备的设备标识来获取与第二设备对应的显示样式数据。Wherein, the first device can obtain the physical features of the display screen of the second device from the second display management service layer, and then the physical features can obtain the display style data corresponding to the second device, through the second virtual device corresponding to the second device. The display adapter adapts the display style data to the third display content to obtain the first display content. Of course, in practical applications, the first device can also obtain the display style data corresponding to the second device in other ways. For example, the first device can also obtain the display style data corresponding to the second device based on the device identifier of the second device. Display style data.
在一些实施例中,第一设备可以按照与S708相似的方式,基于第二进程对应的第二用户标识,确定与第二用户标识对应的电子设备。且在一些实施例中,与第二用户标识对应的电子设备可以是第一设备。In some embodiments, the first device may determine the electronic device corresponding to the second user identification based on the second user identification corresponding to the second process in a manner similar to S708. And in some embodiments, the electronic device corresponding to the second user identification may be the first device.
S709,第一设备将第一显示内容投屏至第二设备的显示屏进行显示。S709, the first device projects the first display content to a display screen of the second device for display.
由于第一显示内容是与第一应用程序的第一进程对应的,第二设备是基于第一进程对应的第一用户标识确定的,因此第一设备在运行第一应用程序时,如果确定第一进程时与第一用户标识对应的,就可以将第一进程对应的第一显示内容投屏至基于第一用户标识确定的第二设备显示,即第一设备可以通过第一用户标识,控制在第二设备进行投屏显示的内容,减少了不加区别地将第一应用程序的所有显示内容都投屏至第二设备的问题,提高了显示的安全性。Since the first display content corresponds to the first process of the first application, and the second device is determined based on the first user ID corresponding to the first process, when the first device runs the first application, if it determines the first When a process corresponds to the first user ID, the first display content corresponding to the first process can be projected to the second device determined based on the first user ID for display, that is, the first device can use the first user ID to control Projecting the content displayed on the screen on the second device reduces the problem of indiscriminately projecting all the displayed content of the first application to the second device, and improves the security of the display.
其中,第一设备可以通过第二编码层,对第一显示内容进行编码,并将编码后的第一显示内容发送至第二设备,第二设备通过第二解码层对接收到的数据进行解码,得到第一显示内容,然后通过第四显示层控制显示器显示第一显示内容。The first device can encode the first display content through the second encoding layer, and send the encoded first display content to the second device, and the second device can decode the received data through the second decoding layer , obtain the first display content, and then control the display to display the first display content through the fourth display layer.
S710,第一设备将第一设备当前显示的第二显示内容投屏至第二设备的显示屏进行显示。S710, the first device projects the second display content currently displayed by the first device to a display screen of the second device for display.
当第一用户标识与第二用户标识相同时,当前的投屏可以是同源投屏,第一进程与第二进程是同一进程,那么第一设备可以将第一设备当前显示的第二显示内容,投屏至第二设备的显示屏进行显示。When the first user ID is the same as the second user ID, the current screencasting can be the same source screencasting, the first process and the second process are the same process, then the first device can display the second display currently displayed by the first device The content is projected to the display screen of the second device for display.
在一些实施例中,第一设备可以在第一设备本端显示第二显示内容。当然,若第二用户标识不是与第一设备对应,而是与另一个第三设备对应,那么第一设备可以按照与S708相似的方式,将第二显示内容投屏至第三设备进行显示。也即是,用户可以通过多个用户标识,来控制在多个不同设备进行显示的显示内容,提高了显示的灵活性和安全性。另外,由于第一设备在运行第一应用程序时,是将第一应用程序的第一进程对应的第一显示内容在第二设备进行显示,并将第一应用程序的第二进程对应的第二显示内容在第一设备或第三设备进行显示,这两个进程之间是独立的,那么第一设备便可以将第一显示内容和第二显示内容,分别针对第二设备和第一设备(或第三设备)的显示屏进行适配,从而分别在第二设备和第一设备(或第三设备)显示第一显示内容和第二显示内容,对于用户而言,能够在两个设备中同时显示第一应用程序,提高了显示性能和用户体验。In some embodiments, the first device may display the second display content on the local end of the first device. Of course, if the second user identifier does not correspond to the first device but corresponds to another third device, then the first device may project the second display content to the third device for display in a manner similar to S708. That is, the user can control the display content displayed on multiple different devices through multiple user IDs, which improves the flexibility and security of the display. In addition, when the first device runs the first application, the first display content corresponding to the first process of the first application is displayed on the second device, and the first display content corresponding to the second process of the first application is displayed on the second device. The second display content is displayed on the first device or the third device, and the two processes are independent, then the first device can assign the first display content and the second display content to the second device and the first device respectively. (or the third device) the display screen is adapted to display the first display content and the second display content on the second device and the first device (or the third device) respectively. The first application program is simultaneously displayed in the middle, which improves the display performance and user experience.
在一些实施例中,第一设备可以不根据第二设备的显示屏的物理特征对第一显示内容的风格样式进行适配,使得第一设备和第二设备在显示第一应用程序时的风格保持一致。In some embodiments, the first device may not adapt the style of the first display content according to the physical characteristics of the display screen of the second device, so that the style of the first device and the second device when the first application is displayed be consistent.
例如,请参照图8,第一设备400为手机,第二设备500为电脑。手机当前显示某通讯应用,其显示内容为用户设置界面1,该显示内容来源于该通讯应用的进程1且进程1与用户0对应。手机还将该通讯应用的另一显示内容投屏至电脑的显示屏进行显示。该另一显示内容为用户设置界面2,该另一显示内容来源于该通讯应用的进程2且该进程2与用户10对应。其中,手机中的该通讯应用登录的应用账户为asd1,笔记本电脑中的该通讯应用登录的应用账户为qwe1,手机的显示界面与手机投屏在笔记本电脑的显示界面风格一致。请参照图9,图9和图8中手机显示的内容相同。用户基于笔记本电脑所显示的用户设置界面,点击了左下角的聊天图标,因此手机切换至聊天界面,基于该聊天界面生成显示内容1,并基于笔记本电脑的设备标识从该通讯应用中应用程序本体中,获取到与笔记本电脑对应的显示样式数据,按照该显示样式数据对显示内容1进行了适配处理,得到显示内容2,手机将显示内容2投屏至笔记本电脑,从而在笔记本电脑的显示屏显示该聊天界面,且该聊天界面的尺寸与笔记本电脑的显示屏幕的屏幕尺寸相匹配,更利于笔记本电脑与用户进行交互。For example, referring to FIG. 8 , the
需要说明的是,各应用程序的开发人员,可以事先生成对应多种设备的显示样式数据,并将多种设备的显示样式数据封装在该应用程序的应用程序本体或用户数据中。It should be noted that the developer of each application can generate display style data corresponding to various devices in advance, and encapsulate the display style data of the various devices in the application body or user data of the application.
在本申请实施例中,第一设备可以获取第一应用程序的第一进程对应的第一显示内容,并基于第一进程对应的第一用户标识确定第二设备。由于第一进程与第一用户标识对应,而第二设备是基于第一用户标识确定的,因此可以将第一进程的第一显示内容,投屏至第二设备进行显示,也即是,第一设备能够通过第一用户标识,控制在第二设备进行投屏显示的内容,减少了不加区别地将第一应用程序的所有显示内容都投屏至第二设备的问题,提高了显示的安全性。In this embodiment of the present application, the first device may acquire the first display content corresponding to the first process of the first application, and determine the second device based on the first user identifier corresponding to the first process. Since the first process corresponds to the first user ID, and the second device is determined based on the first user ID, the first display content of the first process can be projected to the second device for display, that is, the first One device can control the content displayed on the second device through the first user identification, which reduces the problem of indiscriminately projecting all the displayed content of the first application to the second device, and improves the display quality. safety.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated to different functional units, Module completion, that is, dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment may be integrated in one processing unit, or each unit may exist physically alone, or two or more units may be integrated in one unit, and the above-mentioned integrated units may adopt hardware. It can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing from each other, and are not used to limit the protection scope of the present application. For the specific working processes of the units and modules in the above-mentioned system, reference may be made to the corresponding processes in the foregoing method embodiments, which will not be repeated here.
基于同一发明构思,本申请实施例还提供了一种电子设备,该电子设备可以是前述中的第一设备、第二设备或第三设备。图10为本申请实施例提供的电子设备1000的结构示意图,如图10所示,本实施例提供的电子设备包括:存储器1010和处理器1020,存储器1010用于存储计算机程序;处理器1020用于在调用计算机程序时执行上述方法实施例所述的方法。Based on the same inventive concept, an embodiment of the present application further provides an electronic device, and the electronic device may be the aforementioned first device, second device or third device. FIG. 10 is a schematic structural diagram of an
本实施例提供的电子设备可以执行上述方法实施例,其实现原理与技术效果类似,此处不再赘述。The electronic device provided in this embodiment can execute the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
基于同一发明构思,本申请实施例还提供了一种芯片系统。该所述芯片系统包括处理器,所述处理器与存储器耦合,所述处理器执行存储器中存储的计算机程序,以实现上述方法实施例所述的方法。Based on the same inventive concept, an embodiment of the present application also provides a chip system. The chip system includes a processor coupled with a memory, and the processor executes a computer program stored in the memory, so as to implement the method described in the above method embodiments.
其中,该芯片系统可以为单个芯片,或者多个芯片组成的芯片模组。Wherein, the chip system may be a single chip, or a chip module composed of multiple chips.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例所述的方法。Embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in the foregoing method embodiment is implemented.
本申请实施例还提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得终端执行时实现上述方法实施例所述的方法。The embodiments of the present application further provide a computer program product, when the computer program product runs on the electronic device, the terminal executes the method described in the above method embodiments.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质至少可以包括:能够将计算机程序代码携带到拍照装置/电子设备的任何实体或装置、记录介质、计算机存储器、只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。If the above-mentioned integrated units are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can be implemented by a computer program to instruct the relevant hardware. The computer program can be stored in a computer-readable storage medium, and the computer program When executed by a processor, the steps of each of the above method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file or some intermediate form, and the like. The computer-readable storage medium may include at least: any entity or device capable of carrying computer program codes to the photographing device/electronic device, recording medium, computer memory, read-only memory (ROM), random access Memory (random access memory, RAM), electrical carrier signals, telecommunication signals, and software distribution media. For example, U disk, mobile hard disk, disk or CD, etc. In some jurisdictions, under legislation and patent practice, computer readable media may not be electrical carrier signals and telecommunications signals.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the foregoing embodiments, the description of each embodiment has its own emphasis. For parts that are not described or described in detail in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed apparatus/device and method may be implemented in other manners. For example, the apparatus/equipment embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or Components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It is to be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described feature, integer, step, operation, element and/or component, but does not exclude one or more other The presence or addition of features, integers, steps, operations, elements, components and/or sets thereof.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in the specification of this application and the appended claims, the term "if" may be contextually interpreted as "when" or "once" or "in response to determining" or "in response to detecting ". Similarly, the phrases "if it is determined" or "if the [described condition or event] is detected" may be interpreted, depending on the context, to mean "once it is determined" or "in response to the determination" or "once the [described condition or event] is detected. ]" or "in response to detection of the [described condition or event]".
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In addition, in the description of the specification of the present application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and should not be construed as indicating or implying relative importance.
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。References in this specification to "one embodiment" or "some embodiments" and the like mean that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically emphasized otherwise. The terms "including", "including", "having" and their variants mean "including but not limited to" unless specifically emphasized otherwise.
以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。The above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the above-mentioned embodiments, those of ordinary skill in the art should understand that: it is still possible to implement the above-mentioned implementations. The technical solutions described in the examples are modified, or some or all of the technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011642279.5A CN114691067B (en) | 2020-12-31 | 2020-12-31 | Screen projection method and electronic device |
EP21913828.6A EP4250088A4 (en) | 2020-12-31 | 2021-12-09 | Screen projection method and electronic device |
PCT/CN2021/136848 WO2022143087A1 (en) | 2020-12-31 | 2021-12-09 | Screen projection method and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011642279.5A CN114691067B (en) | 2020-12-31 | 2020-12-31 | Screen projection method and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114691067A true CN114691067A (en) | 2022-07-01 |
CN114691067B CN114691067B (en) | 2025-04-25 |
Family
ID=82135563
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011642279.5A Active CN114691067B (en) | 2020-12-31 | 2020-12-31 | Screen projection method and electronic device |
Country Status (3)
Country | Link |
---|---|
EP (1) | EP4250088A4 (en) |
CN (1) | CN114691067B (en) |
WO (1) | WO2022143087A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024037332A1 (en) * | 2022-08-15 | 2024-02-22 | 华为技术有限公司 | Screen mirroring method, electronic device and system |
WO2025001347A1 (en) * | 2023-06-30 | 2025-01-02 | 荣耀终端有限公司 | Full-screen window dragging method and related device |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116489440A (en) * | 2023-05-05 | 2023-07-25 | 维沃移动通信有限公司 | Screen projection method, device, equipment, medium and product |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091359A1 (en) * | 2003-10-24 | 2005-04-28 | Microsoft Corporation | Systems and methods for projecting content from computing devices |
CN105573484A (en) * | 2015-05-07 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Projection method and terminal |
WO2017097088A1 (en) * | 2015-12-07 | 2017-06-15 | 努比亚技术有限公司 | Multi-screen projection control method and system, terminal device, and computer storage medium |
US20180082054A1 (en) * | 2016-09-19 | 2018-03-22 | Nasdaq, Inc. | Client Device Information for Controlling Access to Web Applications |
CN110515573A (en) * | 2018-05-21 | 2019-11-29 | 腾讯科技(深圳)有限公司 | Throw screen method, apparatus, system and computer equipment |
CN111324437A (en) * | 2020-02-17 | 2020-06-23 | 青岛海信传媒网络技术有限公司 | Kernel function calling method of operating system and computer equipment |
CN111880912A (en) * | 2020-06-29 | 2020-11-03 | 维沃移动通信(杭州)有限公司 | Method and device for controlling electronic equipment and electronic equipment |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7716273B2 (en) * | 2003-10-24 | 2010-05-11 | Microsoft Corporation | Systems and methods for projecting content from computing devices |
US7590750B2 (en) * | 2004-09-10 | 2009-09-15 | Microsoft Corporation | Systems and methods for multimedia remoting over terminal server connections |
CN111131870B (en) * | 2019-11-25 | 2021-06-08 | 腾讯科技(深圳)有限公司 | Multi-terminal interaction method and device, storage medium and computer equipment |
-
2020
- 2020-12-31 CN CN202011642279.5A patent/CN114691067B/en active Active
-
2021
- 2021-12-09 EP EP21913828.6A patent/EP4250088A4/en active Pending
- 2021-12-09 WO PCT/CN2021/136848 patent/WO2022143087A1/en unknown
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050091359A1 (en) * | 2003-10-24 | 2005-04-28 | Microsoft Corporation | Systems and methods for projecting content from computing devices |
CN105573484A (en) * | 2015-05-07 | 2016-05-11 | 宇龙计算机通信科技(深圳)有限公司 | Projection method and terminal |
WO2017097088A1 (en) * | 2015-12-07 | 2017-06-15 | 努比亚技术有限公司 | Multi-screen projection control method and system, terminal device, and computer storage medium |
US20180082054A1 (en) * | 2016-09-19 | 2018-03-22 | Nasdaq, Inc. | Client Device Information for Controlling Access to Web Applications |
CN110515573A (en) * | 2018-05-21 | 2019-11-29 | 腾讯科技(深圳)有限公司 | Throw screen method, apparatus, system and computer equipment |
CN111324437A (en) * | 2020-02-17 | 2020-06-23 | 青岛海信传媒网络技术有限公司 | Kernel function calling method of operating system and computer equipment |
CN111880912A (en) * | 2020-06-29 | 2020-11-03 | 维沃移动通信(杭州)有限公司 | Method and device for controlling electronic equipment and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024037332A1 (en) * | 2022-08-15 | 2024-02-22 | 华为技术有限公司 | Screen mirroring method, electronic device and system |
WO2025001347A1 (en) * | 2023-06-30 | 2025-01-02 | 荣耀终端有限公司 | Full-screen window dragging method and related device |
Also Published As
Publication number | Publication date |
---|---|
WO2022143087A1 (en) | 2022-07-07 |
EP4250088A4 (en) | 2024-06-12 |
CN114691067B (en) | 2025-04-25 |
EP4250088A1 (en) | 2023-09-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2022143087A1 (en) | Screen projection method and electronic device | |
CN106060378B (en) | Apparatus and method for setting up a shooting module | |
US10275581B2 (en) | Method and apparatus for sharing content between electronic devices | |
EP3197059B1 (en) | Method for controlling sim card and sd card and electronic device implementing the same | |
US9538445B2 (en) | Communication method and apparatus for electronic device in mobile communication system | |
KR102107132B1 (en) | Access point connection method of electronic apparatus and electronic appparatus thereof | |
WO2021115038A1 (en) | Application data processing method and related apparatus | |
CN107329717B (en) | Processing method, display method and display system of screen display information | |
US10257873B2 (en) | Method and electronic device for providing tethering service | |
CN104869305A (en) | Method for processing image data and apparatus for the same | |
US10999501B2 (en) | Electronic device and method for controlling display of panorama image | |
CN107113352A (en) | The method and its electronic equipment of shared screen | |
CN114629932A (en) | Collaboration method between electronic devices and electronic device | |
CN111656347B (en) | Project display method and terminal | |
US10284614B2 (en) | Method for downloading contents of electronic device and electronic device thereof | |
CN114095764B (en) | Screen projection method and electronic device | |
CN115562570B (en) | Data migration method, system and electronic device | |
CN114339966B (en) | Interface control method, device, media and electronic equipment for data transmission | |
US9980132B2 (en) | Method for detecting messages and call request and electronic device adapted thereto | |
CN113286349A (en) | Personal hotspot connection method, device, terminal and storage medium | |
CN115599929B (en) | File management method and electronic device | |
CN117714585B (en) | Cross-equipment collaborative shooting method, electronic equipment and storage medium | |
CN119166088B (en) | Data transmission system and data transmission method applied to electronic equipment | |
CN116669027B (en) | Authentication method, system, terminal device and bluetooth device | |
US20150063171A1 (en) | Method and apparatus for transmitting multimedia data during call origination in communication terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |