WO2023273084A1 - 传输画面数据的方法、装置、设备及存储介质 - Google Patents
传输画面数据的方法、装置、设备及存储介质 Download PDFInfo
- Publication number
- WO2023273084A1 WO2023273084A1 PCT/CN2021/128999 CN2021128999W WO2023273084A1 WO 2023273084 A1 WO2023273084 A1 WO 2023273084A1 CN 2021128999 W CN2021128999 W CN 2021128999W WO 2023273084 A1 WO2023273084 A1 WO 2023273084A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- screen
- ratio
- mode
- projection device
- local display
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000007667 floating Methods 0.000 claims abstract description 56
- 238000004590 computer program Methods 0.000 claims description 11
- 230000008859 change Effects 0.000 claims description 7
- 230000004048 modification Effects 0.000 claims description 7
- 238000012986 modification Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 claims description 6
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000013507 mapping Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000011282 treatment Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- 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
Definitions
- the present disclosure relates to the technical field of the Internet of Vehicles, in particular to the technical field of the Internet of Vehicles/mapping.
- Screen projection refers to projecting the display interface of one device A to another device B, so as to display the display interface of the device A on the screen of the device B.
- the display interface of devices such as smart phones and tablet computers can be projected to devices such as computers and televisions. Since the screens of computers and TVs are larger than those of smartphones and tablets, projecting the display interface of smartphones and tablets to computers and TVs can display the display interfaces of smartphones and tablets more clearly , making it easier for users to view.
- the present disclosure provides a method, device, equipment, storage medium and program product for transmitting picture data.
- a method for transmitting screen data including: obtaining the local display ratio of the local display interface and the screen ratio of the screen projection device; and combining the local display ratio and the screen ratio of the screen projection device Compare with a ratio threshold; when the local display ratio is greater than the ratio threshold and the screen ratio is smaller than the ratio threshold, or the local display ratio is smaller than the ratio threshold and the screen ratio is larger than the ratio threshold In this case, the display mode is changed through the floating window control; and the picture data corresponding to the local display interface after the display mode is changed is transmitted to the screen projection device.
- a device for transmitting screen data including: an acquisition module, configured to acquire the local display ratio of the local display interface and the screen ratio of the screen projection device; a determination module, configured to determine the local Whether the display ratio and the screen ratio of the screen projection device are greater than a ratio threshold; a modification module is used for the local display ratio is greater than the ratio threshold and the screen ratio is smaller than the ratio threshold, or the local display ratio is smaller than In the case of the ratio threshold and the screen ratio is greater than the ratio threshold, the display mode is changed through the floating window control; and the transmission module is used to transmit the picture data corresponding to the local display interface after the display mode is changed to the Screencasting device.
- Another aspect of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores information executable by the at least one processor. Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the method shown in the embodiments of the present disclosure.
- a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to make the computer execute the method shown in the embodiments of the present disclosure.
- a computer program product is provided, which is a computer program.
- the computer program is executed by a processor, the method shown in the embodiments of the present disclosure is implemented.
- FIG. 1 schematically shows an exemplary system architecture in which a method and an apparatus for transmitting picture data can be applied according to an embodiment of the present disclosure
- Fig. 2 schematically shows a flowchart of a method for transmitting picture data according to an embodiment of the present disclosure
- FIG. 3 schematically shows a flowchart of a method for changing a display mode through a floating window control according to an embodiment of the present disclosure
- Fig. 4 schematically shows a flowchart of a method for transmitting picture data according to another embodiment of the present disclosure
- Fig. 5 schematically shows a flowchart of a method for transmitting picture data according to another embodiment of the present disclosure
- Fig. 6 schematically shows a schematic diagram of a method for transmitting picture data according to another embodiment of the present disclosure
- Fig. 7 schematically shows a block diagram of an apparatus for transmitting picture data according to an embodiment of the present disclosure
- FIG. 8 shows a schematic block diagram of an example electronic device that may be used to implement embodiments of the present disclosure.
- FIG. 1 schematically shows an exemplary system architecture 100 to which the method and apparatus for transmitting picture data according to an embodiment of the present disclosure can be applied. It should be noted that, what is shown in FIG. 1 is only an example of the system architecture to which the embodiments of the present disclosure can be applied, so as to help those skilled in the art understand the technical content of the present disclosure, but it does not mean that the embodiments of the present disclosure cannot be used in other device, system, environment or scenario.
- a system architecture 100 may include a screen projection device 110 and a terminal device 120 .
- the screen projection device 110 includes a display screen 111 for displaying screen data input into the screen projection device 110 .
- the mobile terminal 121 includes a display screen 121 for displaying a local display interface.
- the screen projection device 110 may be various electronic devices with a display screen and supporting communication with other terminals, such as vehicle equipment, smart TVs, laptop computers and desktop computers, and so on.
- the terminal device 120 may be various electronic devices that have a display screen and support communication with other terminals, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
- Various communication client applications can be installed on the screen projection device 110 and the terminal device 120 , such as Internet of Vehicles applications, web browser applications, search applications, instant messaging tools, and the like.
- a wired or wireless connection may be established between the terminal device 120 and the screen projection device 110 .
- the wired connection can include, for example, USB (Universal Serial Bus, Universal Serial Bus) connection, HDMI (High Definition Multimedia Interface, high-definition multimedia interface) connection, etc.
- the wireless connection can include, for example, WLAN (Wireless Local Area Network, wireless local area network) connection , NFC (Near Field Communication, near field communication) connection, Bluetooth connection, etc.
- the terminal device 120 and the screen projection device 110 can interact with each other through the connection between them.
- the terminal device 120 can send the image of the interface displayed on the display screen 121 to the screen projection device 110 through the connection, and the screen projection device 110 receives the image from the screen projection device 110.
- the image may be displayed on the display screen 111 of the screen projection device 110, so as to realize screen projection.
- terminal devices and screen projection devices in FIG. 1 are only illustrative. According to the implementation requirements, there can be any number of terminal devices and screen projection devices.
- Fig. 2 schematically shows a flowchart of a method for transmitting picture data according to an embodiment of the present disclosure.
- the method 200 for transmitting picture data includes operations S210-S240.
- the method 200 can be executed, for example, by the terminal device shown above.
- the local display interface may be, for example, an interface displayed on a terminal device, including but not limited to an operating system interface, an application program interface, and the like.
- the local display ratio can be determined according to the width and height of the local display interface.
- the screen ratio of the screen projection device can be determined according to the width and height of the screen of the screen projection device (such as the display screen shown above).
- the ratio threshold may be predetermined according to actual needs.
- the ratio threshold may be set to 1.
- the local display ratio is greater than the ratio threshold and the screen ratio is smaller than the ratio threshold, or if the local display ratio is smaller than the ratio threshold and the screen ratio is greater than the ratio threshold, it means that the local display ratio does not match the screen ratio, so through the floating window
- the control changes the display mode to match the native aspect ratio to the screen ratio.
- both the local display ratio and the screen ratio are smaller than the ratio threshold, or both the local display ratio and the screen ratio are greater than the ratio threshold, or both the local display ratio and the screen ratio are equal to the ratio threshold, it means that the local display ratio and If the screen ratio matches, the current display mode will be maintained, and the operation of changing the display mode will not be performed.
- the picture data corresponding to the local display interface after the display mode is changed is transmitted to the screen projection device, so as to display the picture data through the screen projection device.
- the terminal device will project the screen data that does not match the screen ratio of the projection device to the screen of the projection device for display, which will cause the screen projection device
- the picture displayed on the screen is too small, the picture is missing and other problems.
- the display mode is changed according to the local display ratio and the screen ratio of the screen projection device, so that the screen data matching the screen ratio can be transmitted to the screen projection device, and the effect of screen projection is improved.
- Fig. 3 schematically shows a flowchart of a method for changing a display mode through a floating window control according to an embodiment of the present disclosure.
- the method 330 for changing a display mode through a floating window control includes operations S331-S334.
- the display modes may include, for example, a landscape mode and a portrait mode.
- the horizontal screen mode refers to a display mode adapted to when the device is placed horizontally.
- the portrait mode refers to a display mode adapted to when the device is placed vertically.
- operation S332 it is determined whether the current display mode is a landscape mode. In the case that the current display mode is the landscape mode, operation S333 is performed. In the case that the current display mode is the portrait mode, operation S334 is performed.
- the display mode is set to the portrait mode through the floating window control.
- the display mode is set to the landscape mode through the floating window control.
- the display mode can be set to a portrait mode or a landscape mode by calling a system application program interface (API) through the floating window control.
- API system application program interface
- the system application program interface may include setRequestedOrientation, for example.
- setting the display mode by using the floating window control to call the system application program interface is effective for various application programs and has good compatibility.
- the application program will lock the display mode and maintain the horizontal or vertical screen display.
- the related technology changes the display mode, it cannot take effect on the application program that locks the display mode.
- changing the display mode by creating and floating the window control and using the floating window control to call a system-level API conforms to the system specification, so it is applicable to applications that lock the display mode.
- Fig. 4 schematically shows a flowchart of a method for transmitting picture data according to another embodiment of the present disclosure.
- the method 400 for transmitting picture data includes operations S410-S450.
- a floating window control is created in the local display interface, and the floating window control is hidden.
- each page of the application program includes a PhoneWindow (mobile phone window), and the PhoneWindow is an object of the application layer and is a key to switch display modes.
- the floating window control may be based on PhoneWindow.
- the WindowManagerService window management service
- the color of the floating widget may be configured to be transparent and/or the size of the floating widget may be configured to be smaller than a size threshold to hide the floating widget.
- the local display scale and the screen scale of the screen projection device are compared with a scale threshold.
- the picture data corresponding to the local display interface after the display mode is changed is transmitted to the screen projection device, so as to display the picture data through the screen projection device.
- the display mode can be changed without perception, thereby improving user experience.
- Fig. 5 schematically shows a flowchart of a method for transmitting picture data according to another embodiment of the present disclosure.
- the method 500 for transmitting picture data includes operations S510-S5110.
- the connection may be a wired connection or a wireless connection.
- the wired connection may include, for example, a USB connection, an HDMI connection, etc.
- the wireless connection may include, for example, a WLAN connection, an NFC connection, a Bluetooth connection, and the like.
- the screen ratio of the screen projection device can be calculated according to the following formula:
- ratio1 is the screen ratio of the projection device
- width1 is the width of the screen of the projection device
- height1 is the height of the screen of the projection device.
- the local display ratio is calculated according to the width and height of the local display interface.
- the local display ratio of the local display interface can be calculated according to the following formula:
- ratio2 is the local display ratio
- width2 is the width of the local display interface
- height2 is the height of the local display interface
- operations S520-S530 can be performed first and then operations S540-S550 can be performed, or operations S540-S550 can be performed first and then operations S520-S530 can be performed, and operations S520-S530 and operations S540-S550 can be performed simultaneously implement.
- the present disclosure does not specifically limit the execution order of operations S520-S530 and operations S540-S550.
- operation S560 it is determined whether the screen ratio is greater than a ratio threshold. In case the screen ratio is greater than the ratio threshold, operation S570 is performed. In case the screen scale is less than or equal to the scale threshold, operation S580 is performed.
- operation S570 it is determined whether the local display scale is greater than a scale threshold. If the local display scale is greater than the scale threshold, perform operation S5110. In case the local display scale is less than or equal to the scale threshold, operation S590 is performed.
- the local display ratio is greater than a ratio threshold, it may be determined that the current display mode of the device is a portrait mode. If the local display ratio is smaller than the ratio threshold, it can be determined that the current display mode of the device is the landscape mode.
- system information may be read to obtain the current display mode, and corresponding changes may be made.
- operation S580 it is determined whether the local display scale is greater than a scale threshold. If the local display scale is greater than the scale threshold, perform operation S5100. If the local display scale is smaller than the scale threshold, perform operation S5110.
- operation S590 the display mode is set to the horizontal screen mode through the floating window control. Then perform operation S5110.
- operation S5100 the display mode is set to the portrait mode through the floating window control. Then perform operation S5110.
- the picture data corresponding to the local display interface is transmitted to the screen projection device through the connection, so as to display the picture data through the screen projection device.
- the terminal device may be a smart phone (hereinafter referred to as the mobile terminal), and the screen projection device may be an in-vehicle device (hereinafter referred to as the in-vehicle terminal).
- the resolution of the local display interface displayed on the mobile terminal is 720*1280 pixels
- the resolution of the screen on the vehicle terminal is 1280*720 pixels.
- the ratio threshold is 1.
- Fig. 6 schematically shows a schematic diagram of a method for transmitting picture data according to another embodiment of the present disclosure.
- the car-machine terminal establishes a connection with the mobile phone terminal, so as to realize the interconnection between the car-machine terminal and the mobile phone terminal.
- the mobile terminal sends the screen data to the vehicle terminal.
- the car terminal displays the screen data transmitted from the mobile phone.
- the mobile terminal creates a floating window control.
- the car terminal When operating S650, the car terminal synchronizes the resolution of the vehicle screen to the mobile terminal.
- the mobile phone calls the system API through the floating window control to switch the display mode of the screen.
- the mobile terminal transmits the picture data of the local display interface after switching the display mode to the vehicle terminal, so that the picture data matches the screen ratio of the vehicle screen.
- the in-vehicle terminal displays the screen data after changing the display mode on the screen.
- the method for transmitting picture data can automatically change the display mode, so that the picture data output from the mobile phone terminal to the vehicle terminal can match the screen ratio of the vehicle terminal, so that the picture displayed on the vehicle terminal is clearer.
- the process of changing the display mode does not require the user to perform cumbersome operations, which is more convenient.
- Fig. 7 schematically shows a block diagram of an apparatus for transmitting picture data according to an embodiment of the present disclosure.
- an apparatus 700 for transmitting picture data includes an acquisition module 710 , a determination module 720 , a modification module 730 and a transmission module 740 .
- the acquiring module 710 may be configured to acquire the local display ratio of the local display interface and the screen ratio of the screen projection device.
- the determining module 720 may be configured to determine whether the local display ratio and the screen ratio of the screen projection device are greater than a ratio threshold.
- the modification module 730 can be used to change the display mode through the floating window control when the local display ratio is greater than the ratio threshold and the screen ratio is smaller than the ratio threshold, or the local display ratio is smaller than the ratio threshold and the screen ratio is larger than the ratio threshold.
- the transmission module 740 can be used to transmit the picture data corresponding to the local display interface after changing the display mode to the screen projection device, so as to display the picture data through the screen projection device.
- the above-mentioned apparatus for transmitting screen data may further include a creating module, which may be used to create a floating window control in the local display interface, and hide the floating window control.
- a creating module which may be used to create a floating window control in the local display interface, and hide the floating window control.
- the creation module may include a first configuration submodule and/or a second configuration submodule.
- the first configuration submodule can be used to configure the color of the floating window control to be transparent.
- the second configuration submodule can be used to configure the size of the floating window control to be smaller than the size threshold.
- the display mode may include a landscape mode and a portrait mode
- the modifying module may include a first acquiring submodule and a setting submodule.
- the first acquiring submodule can be used to acquire the current display mode.
- the setting sub-module can be used to set the display mode to vertical screen mode through the floating window control when the current display mode is horizontal screen mode, and to set the display mode to vertical screen mode through the floating window control when the current display mode is vertical screen mode.
- the control sets the display mode to landscape mode.
- the setting sub-module may specifically be used to call a system application program interface through the floating window control to set the display mode as a portrait mode or a landscape mode.
- the acquisition module may include a second acquisition submodule and a first calculation submodule.
- the second acquiring submodule can be used to acquire the width and height of the local display interface.
- the first calculation submodule can be used to calculate the local display ratio according to the width and height of the local display interface.
- the acquisition module may include a third acquisition submodule and a second calculation submodule.
- the third obtaining sub-module may be used to obtain the width and height of the screen of the screen projection device.
- the second calculation sub-module can be used to calculate the screen ratio of the screen projection device according to the width and height of the screen.
- the above-mentioned apparatus for transmitting screen data may further include a connection module, which may be used to establish a connection with a screen projection device.
- the third acquisition sub-module can specifically be used to acquire the width and height of the screen of the screen projection device through connection.
- the transmission module can specifically be used to transmit screen data to the screen projection device through the connection.
- the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
- FIG. 8 shows a schematic block diagram of an example electronic device 800 that may be used to implement embodiments of the present disclosure.
- Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
- Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
- the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
- the device 800 includes a computing unit 801 that can execute according to a computer program stored in a read-only memory (ROM) 802 or loaded from a storage unit 808 into a random access memory (RAM) 803. Various appropriate actions and treatments. In the RAM 803, various programs and data necessary for the operation of the device 800 can also be stored.
- the computing unit 801, ROM 802, and RAM 803 are connected to each other through a bus 804.
- An input/output (I/O) interface 805 is also connected to the bus 804 .
- the I/O interface 805 includes: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, an optical disk, etc. ; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, and the like.
- the communication unit 809 allows the device 800 to exchange information/data with other devices over a computer network such as the Internet and/or various telecommunication networks.
- the computing unit 801 may be various general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of computing units 801 include, but are not limited to, central processing units (CPUs), graphics processing units (GPUs), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, digital signal processing processor (DSP), and any suitable processor, controller, microcontroller, etc.
- the computing unit 801 executes the various methods and processes described above, such as a method of transferring screen data.
- the method of transmitting frame data may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 808 .
- part or all of the computer program may be loaded and/or installed on the device 800 via the ROM 802 and/or the communication unit 809.
- the computer program When the computer program is loaded into RAM 803 and executed by computing unit 801, one or more steps of the method for transmitting picture data described above can be performed.
- the computing unit 801 may be configured to execute the method for transmitting screen data in any other suitable manner (for example, by means of firmware).
- Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips Implemented in a system of systems (SOC), load programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof.
- FPGAs field programmable gate arrays
- ASICs application specific integrated circuits
- ASSPs application specific standard products
- SOC system of systems
- CPLD load programmable logic device
- computer hardware firmware, software, and/or combinations thereof.
- programmable processor can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
- Program codes for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special purpose computer, or other programmable data processing devices, so that the program codes, when executed by the processor or controller, make the functions/functions specified in the flow diagrams and/or block diagrams Action is implemented.
- the program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
- a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device.
- a machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
- a machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing.
- machine-readable storage media would include one or more wire-based electrical connections, portable computer discs, hard drives, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
- RAM random access memory
- ROM read only memory
- EPROM or flash memory erasable programmable read only memory
- CD-ROM compact disk read only memory
- magnetic storage or any suitable combination of the foregoing.
- the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer.
- a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
- a keyboard and pointing device eg, a mouse or a trackball
- Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
- the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
- the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
- a computer system may include clients and servers.
- Clients and servers are generally remote from each other and typically interact through a communication network.
- the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
- steps may be reordered, added or deleted using the various forms of flow shown above.
- each step described in the present disclosure may be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种传输画面数据的方法、装置、设备、存储介质以及程序产品,涉及车联网技术领域,尤其涉及车机互联/映射技术领域。具体实现方案为:获取本地显示界面的本地显示比例和投屏设备的屏幕比例(S210);将本地显示比例和投屏设备的屏幕比例与比例阈值进行比较(S220);在本地显示比例大于比例阈值且屏幕比例小于比例阈值,或者本地显示比例小于比例阈值且屏幕比例大于比例阈值的情况下,通过悬浮窗控件更改显示模式(S230);以及将与更改显示模式后的本地显示界面对应的画面数据传输至投屏设备,以通过投屏设备展示画面数据(S240)。
Description
本申请要求于2021年6月29日提交的、申请号为202110731830.1的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本公开涉及车联网技术领域,尤其涉及车机互联/映射技术领域。
投屏是指将一个设备A的显示界面投射到另一个设备B中,从而在该设备B的屏幕中展示该设备A的显示界面。例如,可以将智能手机、平板电脑等设备的显示界面投射到电脑、电视等设备中。由于电脑、电视的屏幕相对于智能手机、平板电脑来说尺寸更大,因此将智能手机、平板电脑的显示界面投射到电脑、电视中,可以更为清晰地展示智能手机、平板电脑的显示界面,从而方便用户查看。
发明内容
本公开提供了一种传输画面数据的方法、装置、设备、存储介质以及程序产品。
根据本公开的一方面,提供了一种传输画面数据的方法,包括:获取本地显示界面的本地显示比例和投屏设备的屏幕比例;将所述本地显示比例和所述投屏设备的屏幕比例与比例阈值进行比较;在所述本地显示比例大于所述比例阈值且所述屏幕比例小于所述比例阈值,或者所述本地显示比例小于所述比例阈值且所述屏幕比例大于所述比例阈值的情况下,通过悬浮窗控件更改显示模式;以及将与更改显示模式后的本地显示界面对应的画面数据传输至所述投屏设备。
根据本公开的另一方面,提供了一种传输画面数据的装置,包括:获取模块,用于获取本地显示界面的本地显示比例和投屏设备的屏幕比例;确定模块,用于确定所述本地显示比例和所述投屏设备的屏幕比例是否大于比例阈值;更改模块,用于在所述本地显示比例大于所述比例阈值且所述屏幕比例小于所述比例阈值,或者所述本地显示比例小于所述比例阈值且所述屏幕比例大于所述比例阈值的情况下,通过悬浮窗控件更改显示模式;以及传输模块,用于将与更改显示模式后的本地显示界面对应的画面数据传 输至所述投屏设备。
本公开的另一个方面提供了一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本公开实施例所示的方法。
根据本公开实施例的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行本公开实施例所示的方法。
根据本公开实施例的另一方面,提供了一种计算机程序产品,计算机程序,所述计算机程序在被处理器执行时实现本公开实施例所示的方法。
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。
附图用于更好地理解本方案,不构成对本公开的限定。其中:
图1示意性示出了根据本公开实施例的可以应用传输画面数据的方法和装置的示例性系统架构;
图2示意性示出了根据本公开的实施例的传输画面数据的方法的流程图;
图3示意性示出了根据本公开的实施例的通过悬浮窗控件更改显示模式的方法的流程图;
图4示意性示出了根据本公开另一实施例的传输画面数据的方法的流程图;
图5示意性示出了根据本公开另一实施例的传输画面数据的方法的流程图;
图6示意性示出了根据本公开另一实施例的传输画面数据的方法的示意图;
图7示意性示出了根据本公开实施例的传输画面数据的装置的框图;
图8示出了可以用来实施本公开的实施例的示例电子设备的示意性框图。
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。 同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。
以下将结合图1对本公开提供的传输画面数据的方法和装置的示例性系统架构进行描述。
图1示意性示出了根据本公开实施例的可以应用传输画面数据的方法和装置的示例性系统架构100。需要注意的是,图1所示仅为可以应用本公开实施例的系统架构的示例,以帮助本领域技术人员理解本公开的技术内容,但并不意味着本公开实施例不可以用于其他设备、系统、环境或场景。
如图1所示,根据该实施例的系统架构100可以包括投屏设备110和终端设备120。其中,投屏设备110包括显示屏111,用于显示输入投屏设备110的画面数据。移动终端121包括显示屏121,用于显示本地显示界面。
投屏设备110可以是具有显示屏,且支持与其他终端进行通讯的各种电子设备,例如车机设备、智能电视、膝上型便携计算机和台式计算机等等。终端设备120可以是具有显示屏,并且支持与其他终端进行通讯的各种电子设备,包括但不限于智能手机、平板电脑、膝上型便携计算机和台式计算机等等。投屏设备110与终端设备120上可以安装有各种通讯客户端应用,例如车联网应用、网页浏览器应用、搜索类应用、即时通信工具等。
终端设备120与投屏设备110之间可以建立有线或无线的连接。其中,有线连接例如可以包括USB(Universal Serial Bus,通用串行总线)连接、HDMI(High Definition Multimedia Interface,高清多媒体接口)连接等,无线连接例如可以包括WLAN(Wireless Local Area Network,无线局域网)连接、NFC(Near Field Communication,近场通讯)连接、蓝牙连接等。终端设备120与投屏设备110可以通过彼此之间的连接实现交互,例如终端设备120可以将显示屏121中显示的界面的图像通过连接发送至投屏设备110,投屏设备110在接收到来自终端设备120的图像后,可以在投屏设备110的显示屏111中显示该图像,以实现投屏。
本领域技术人员可以理解,图1中的终端设备和投屏设备的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备和投屏设备。
下面结合图2对根据本公开实施例的传输画面数据的方法做进一步说明。
图2示意性示出了根据本公开的实施例的传输画面数据的方法的流程图。
如图2所示,该传输画面数据的方法200包括操作S210~S240。该方法200例如可 以由上文所示的终端设备执行。
其中,在操作S210,获取本地显示界面的本地显示比例和投屏设备的屏幕比例。
根据本公开的实施例,本地显示界面例如可以为终端设备中显示的界面,包括但不限于操作系统界面、应用程序界面等等。本地显示比例可以根据本地显示界面的宽和高来确定。投屏设备的屏幕比例可以根据投屏设备的屏幕(例如上文所示的显示屏)的宽和高来确定。
然后,在操作S220,将本地显示比例和投屏设备的屏幕比例与比例阈值进行比较。
根据本公开的实施例,比例阈值可以根据实际需要来预先确定。示例性地,本实施例中,比例阈值可以设置为1。
在操作S230,在本地显示比例大于比例阈值且屏幕比例小于比例阈值,或者本地显示比例小于比例阈值且屏幕比例大于比例阈值的情况下,通过悬浮窗控件更改显示模式。
根据本公开的实施例,若本地显示比例大于比例阈值且屏幕比例小于比例阈值,或者本地显示比例小于比例阈值且屏幕比例大于比例阈值,则表示本地显示比例与屏幕比例不匹配,因此通过悬浮窗控件更改显示模式以使本地显示比例与屏幕比例匹配。
根据本公开的实施例,若本地显示比例和屏幕比例均小于比例阈值,或者本地显示比例和屏幕比例均大于比例阈值,又或者本地显示比例和屏幕比例均等于比例阈值,则表示本地显示比例与屏幕比例匹配,则维持当前的显示模式,不执行更改显示模式的操作。
在操作S240,将与更改显示模式后的本地显示界面对应的画面数据传输至投屏设备,以通过投屏设备展示画面数据。
对于具有不同的屏幕比例的终端设备和投屏设备,在投屏时,终端设备会将与投屏设备屏幕比例不匹配的画面数据投射到投屏设备的屏幕上显示,从而会造成投屏设备屏幕中显示的画面过小、画面缺失等问题。
根据本公开的实施例,根据本地显示比例和投屏设备的屏幕比例,更改显示模式,从而可以向投屏设备传输与其屏幕比例匹配的画面数据,提高了投屏的效果。
下面结合图3对根据本公开实施例的通过悬浮窗控件更改显示模式的方法做进一步说明。
图3示意性示出了根据本公开的实施例的通过悬浮窗控件更改显示模式的方法的流 程图。
如图3所示,该通过悬浮窗控件更改显示模式的方法330包括操作S331~S334。
在操作S331,获取当前的显示模式。
根据本公开的实施例,显示模式例如可以包括横屏模式和竖屏模式。其中,横屏模式是指适应于设备横向放置时的显示模式。竖屏模式是指适应于设备竖直放置时的显示模式。
在操作S332,判断当前的显示模式是否为横屏模式。在当前的显示模式为横屏模式的情况下,执行操作S333。在当前的显示模式为竖屏模式的情况下,执行操作S334。
在操作S333,通过悬浮窗控件将显示模式设置为竖屏模式。
在操作S334,通过悬浮窗控件将显示模式设置为横屏模式。
根据本公开的实施例,可以通过悬浮窗控件调用系统应用程序接口(API)来将显示模式设置为竖屏模式或横屏模式。示例性地,本实施例中,系统应用程序接口例如可以包括setRequestedOrientation。
根据本公开的实施例,通过利用悬浮窗控件调用系统应用程序接口来设置显示模式,对于各种应用程序均有效,兼容性较好。
例如,在某些场景下,应用程序会锁定显示模式,保持横屏显示或竖屏显示,相关技术更改显示模式时,无法对锁定显示模式的应用程序生效。
根据本公开的实施例,通过创建并悬浮窗控件,并利用该悬浮窗控件调用系统层面的API更改显示模式,是符合系统规范的,因此,可以适用于锁定显示模式的应用程序。
图4示意性示出了根据本公开另一实施例的传输画面数据的方法的流程图。
如图4所示,该传输画面数据的方法400包括操作S410~S450。
在操作S410,在本地显示界面中创建悬浮窗控件,并隐藏悬浮窗控件。
根据本公开的实施例,以Android系统为例,Android系统中,应用程序的每个页面包含PhoneWindow(手机窗口),该PhoneWindow是应用层的对象,是切换显示模式的关键。本实施例中,悬浮窗控件可以基于PhoneWindow。基于此,可以通过悬浮窗控件可以请求Android系统底层的WindowManagerService(窗口管理服务)实现全局的显示模式变更。
根据本公开的实施例,可以将悬浮窗控件的颜色配置为透明以及/或者将悬浮窗控件的尺寸配置为小于尺寸阈值,来隐藏悬浮窗控件。
然后,在操作S420,获取本地显示界面的本地显示比例和投屏设备的屏幕比例。
在操作S430,将本地显示比例和投屏设备的屏幕比例与比例阈值进行比较。
在操作S440,在本地显示比例大于比例阈值且屏幕比例小于比例阈值,或者本地显示比例小于比例阈值且屏幕比例大于比例阈值的情况下,通过悬浮窗控件更改显示模式。
在操作S450,将与更改显示模式后的本地显示界面对应的画面数据传输至投屏设备,以通过投屏设备展示画面数据。
根据本公开的实施例,操作S420~S450例如可以参考上文所示内容,在此不再赘述。
根据本公开的实施例,通过创建并隐藏悬浮窗控件,并利用该隐藏的悬浮窗控件更改显示模式,可以实现无感知地更改显示模式,从而提高用户体验。
图5示意性示出了根据本公开另一实施例的传输画面数据的方法的流程图。
如图5所示,该传输画面数据的方法500包括操作S510~S5110。
在操作S510,建立与投屏设备的之间的连接。
根据本公开的实施例,该连接可以是有线连接也可以是无线连接。其中,有线连接例如可以包括USB连接、HDMI连接等,无线连接例如可以包括WLAN连接、NFC连接、蓝牙连接等。
在操作S520,通过连接获取投屏设备的屏幕的宽和高。
在操作S530,根据屏幕的宽和高,计算投屏设备的屏幕比例。
根据本公开的实施例,例如可以根据以下公式计算投屏设备的屏幕比例:
ratio1=width1/height1
其中,ratio1为投屏设备的屏幕比例,width1为投屏设备的屏幕的宽,height1为投屏设备的屏幕的高。
在操作S540,获取本地显示界面的宽和高。
在操作S550,根据本地显示界面的宽和高,计算本地显示比例。
根据本公开的实施例,例如可以根据以下公式计算本地显示界面的本地显示比例:
ratio2=width2/height2
其中,ratio2为本地显示比例,width2为本地显示界面的宽,height2为本地显示界面的高。
根据本公开的实施例,可以先执行操作S520~S530再执行操作S540~S550,也可以 先执行操作S540~S550再执行操作S520~S530,还可以使操作S520~S530和操作S540~S550可以同时执行。本公开对操作S520~S530和操作S540~S550之间的执行顺序不作具体限定。
然后,根据以下操作将本地显示比例和投屏设备的屏幕比例与比例阈值进行比较。
其中,在操作S560,确定屏幕比例是否大于比例阈值。在屏幕比例大于比例阈值的情况下,执行操作S570。在屏幕比例小于或等于比例阈值的情况下,执行操作S580。
在操作S570,确定本地显示比例是否大于比例阈值。在本地显示比例大于比例阈值的情况下,执行操作S5110。在本地显示比例小于或等于比例阈值的情况下,执行操作S590。
根据本公开的实施例,对于显示界面的宽和高不同的设备,若本地显示比例大于比例阈值,则可以确定设备当前的显示模式为竖屏模式。若本地显示比例小于比例阈值,则可以确定设备当前的显示模式为横屏模式。
根据本公开的另一些实施例,对于显示界面的宽和高相同的设备,可以读取系统信息来获取当前的显示模式,并进行相应的更改。
在操作S580,确定本地显示比例是否大于比例阈值。在本地显示比例大于比例阈值的情况下,执行操作S5100。在本地显示比例小于比例阈值的情况下,执行操作S5110。
在操作S590,通过悬浮窗控件将显示模式设置为横屏模式。然后执行操作S5110。
在操作S5100,通过悬浮窗控件将显示模式设置为竖屏模式。然后执行操作S5110。
在操作S5110,将本地显示界面对应的画面数据通过连接传输至投屏设备,以通过投屏设备展示画面数据。
下面参考图6,结合具体实施例对上文所示的传输画面数据的方法做进一步说明。本领域技术人员可以理解,以下示例实施例仅用于理解本公开,本公开并不局限于此。
示例性地,本实施例中,终端设备可以为智能手机(以下简称手机端),投屏设备可以为车机设备(以下简称车机端)。其中,手机端显示的本地显示界面的分辨率为720*1280像素,车机端的屏幕的分辨率为1280*720像素。另外,本实施例中,比例阈值为1。
图6示意性示出了根据本公开另一实施例的传输画面数据的方法的示意图。
如图6所示,在操作S610,车机端与手机端建立连接,以实现车机端与手机端之间的互联。
在操作S620,手机端向车机端发送画面数据。
在操作S630,车机端展示手机传来的画面数据。
在操作S640,手机端创建悬浮窗控件。
在操作S650,车机端将车机屏幕的分辨率同步至手机端。
在操作S660,手机端根据分辨率得到车机端屏幕的宽为1280像素,高为720像素,从而计算车机端的屏幕比例为1280∶720=16∶9,即该屏幕比例的比值大于比例阈值1。另外,手机端计算本地显示界面的本地显示比例为720∶1280=9∶16,即该本地显示比例的比值小于比例阈值1。从而可以确定车机端的屏幕比例与手机端本地显示比例不匹配。
在操作S670,手机端通过悬浮窗控件调用系统API以切换屏幕的显示模式。
然后,在操作S680,手机端传输切换显示模式后的本地显示界面的画面数据至车机端,从而使画面数据与车机屏幕的屏幕比例匹配。
在操作S690,车机端在屏幕中显示更改显示模式后的画面数据。
把手机端比例为16∶9的画面数据,展示在车机端比例为9∶16的屏幕上时,相关技术将画面数据在车机端的屏幕中居中缩小显示,造成车机端屏幕的空间浪费,并且导致画面过小、难以看清楚。虽然可以由用户在手机端进行操作来更改显示模式,但是步骤较为繁琐。另外,在驾驶车辆的场景中,用户对手机端进行操作是非常危险的。
根据本公开的实施例的传输画面数据的方法可以实现自动更改显示模式,使得手机端输出至车机端的画面数据可以匹配车机端的屏幕比例,从而使车机端显示的画面更为清晰。另外,更改显示模式的过程不需要用户进行繁琐的操作,更为方便。
图7示意性示出了根据本公开实施例的传输画面数据的装置的框图。
如图7所示,传输画面数据的装置700包括获取模块710、确定模块720、更改模块730和传输模块740。
获取模块710,可以用于获取本地显示界面的本地显示比例和投屏设备的屏幕比例。
确定模块720,可以用于确定本地显示比例和投屏设备的屏幕比例是否大于比例阈值。
更改模块730,可以用于在本地显示比例大于比例阈值且屏幕比例小于比例阈值,或者本地显示比例小于比例阈值且屏幕比例大于比例阈值的情况下,通过悬浮窗控件更改显示模式。
传输模块740,可以用于将与更改显示模式后的本地显示界面对应的画面数据传输 至投屏设备,以通过投屏设备展示画面数据。
根据本公开的实施例,上述传输画面数据的装置还可以包括创建模块,可以用于在本地显示界面中创建悬浮窗控件,并隐藏悬浮窗控件。
根据本公开的实施例,创建模块可以包括第一配置子模块和/或第二配置子模块。其中,第一配置子模块,可以用于将悬浮窗控件的颜色配置为透明。第二配置子模块,可以用于将悬浮窗控件的尺寸配置为小于尺寸阈值。
根据本公开的实施例,显示模式可以包括横屏模式和竖屏模式,更改模块可以包括第一获取子模块和设置子模块。其中,第一获取子模块,可以用于获取当前的显示模式。设置子模块,可以用于在当前的显示模式为横屏模式的情况下,通过悬浮窗控件将显示模式设置为竖屏模式,以及在当前的显示模式为竖屏模式的情况下,通过悬浮窗控件将显示模式设置为横屏模式。
根据本公开的实施例,设置子模块,具体可以用于通过悬浮窗控件调用系统应用程序接口来将显示模式设置为竖屏模式或横屏模式。
根据本公开的实施例,获取模块可以包括第二获取子模块和第一计算子模块。其中,第二获取子模块,可以用于获取本地显示界面的宽和高。第一计算子模块,可以用于计算根据本地显示界面的宽和高,计算本地显示比例。
根据本公开的实施例,获取模块可以包括第三获取子模块和第二计算子模块。其中,第三获取子模块,可以用于获取投屏设备的屏幕的宽和高。第二计算子模块,可以用于根据屏幕的宽和高,计算投屏设备的屏幕比例。
根据本公开的实施例,上述传输画面数据的装置还可以包括连接模块,可以用于建立与投屏设备的之间的连接。基于此,第三获取子模块,具体可以用于通过连接获取投屏设备的屏幕的宽和高。传输模块,具体可以用于通过连接向投屏设备传输画面数据。
根据本公开的实施例,本公开还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。
图8示出了可以用来实施本公开的实施例的示例电子设备800的示意性框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅 作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。
如图8所示,设备800包括计算单元801,其可以根据存储在只读存储器(ROM)802中的计算机程序或者从存储单元808加载到随机访问存储器(RAM)803中的计算机程序,来执行各种适当的动作和处理。在RAM 803中,还可存储设备800操作所需的各种程序和数据。计算单元801、ROM 802以及RAM 803通过总线804彼此相连。输入/输出(I/O)接口805也连接至总线804。
设备800中的多个部件连接至I/O接口805,包括:输入单元806,例如键盘、鼠标等;输出单元807,例如各种类型的显示器、扬声器等;存储单元808,例如磁盘、光盘等;以及通信单元809,例如网卡、调制解调器、无线通信收发机等。通信单元809允许设备800通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据。
计算单元801可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元801的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元801执行上文所描述的各个方法和处理,例如传输画面数据的方法。例如,在一些实施例中,传输画面数据的方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元808。在一些实施例中,计算机程序的部分或者全部可以经由ROM 802和/或通信单元809而被载入和/或安装到设备800上。当计算机程序加载到RAM 803并由计算单元801执行时,可以执行上文描述的传输画面数据的方法的一个或多个步骤。备选地,在其他实施例中,计算单元801可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行传输画面数据的方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、负载可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系 统、该至少一个输入装置、和该至少一个输出装置。
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本发公开中记载的各步骤可以并行地执行也可以顺序地执行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。
Claims (19)
- 一种传输画面数据的方法,包括:获取本地显示界面的本地显示比例和投屏设备的屏幕比例;将所述本地显示比例和所述投屏设备的屏幕比例与比例阈值进行比较;在所述本地显示比例大于所述比例阈值且所述屏幕比例小于所述比例阈值,或者所述本地显示比例小于所述比例阈值且所述屏幕比例大于所述比例阈值的情况下,通过悬浮窗控件更改显示模式;以及将与更改显示模式后的本地显示界面对应的画面数据传输至所述投屏设备。
- 根据权利要求1所述的方法,还包括:在所述本地显示界面中创建悬浮窗控件,并隐藏所述悬浮窗控件。
- 根据权利要求2所述的方法,其中,所述隐藏所述悬浮窗控件,包括:将所述悬浮窗控件的颜色配置为透明;以及/或者将所述悬浮窗控件的尺寸配置为小于尺寸阈值。
- 根据权利要求1所述的方法,其中,所述显示模式包括横屏模式和竖屏模式,所述通过所述悬浮窗控件更改显示模式包括:获取当前的显示模式;在所述当前的显示模式为横屏模式的情况下,通过所述悬浮窗控件将所述显示模式设置为竖屏模式;以及在所述当前的显示模式为竖屏模式的情况下,通过所述悬浮窗控件将所述显示模式设置为横屏模式。
- 根据权利要求4所述的方法,其中,所述通过所述悬浮窗控件将所述显示模式设置为竖屏模式或横屏模式包括:通过所述悬浮窗控件调用系统应用程序接口来将所述显示模式设置为竖屏模式或横屏模式。
- 根据权利要求1所述的方法,其中,所述获取本地显示界面的本地显示比例,包括:获取所述本地显示界面的宽和高;以及根据所述本地显示界面的宽和高,计算所述本地显示比例。
- 根据权利要求1所述的方法,其中,所述获取投屏设备的屏幕比例,包括:获取所述投屏设备的屏幕的宽和高;以及根据所述屏幕的宽和高,计算所述投屏设备的屏幕比例。
- 根据权利要求7所述的方法,还包括:建立与所述投屏设备的之间的连接;通过所述连接获取所述投屏设备的屏幕的宽和高;以及通过所述连接向所述投屏设备传输所述画面数据。
- 一种传输画面数据的装置,包括:获取模块,用于获取本地显示界面的本地显示比例和投屏设备的屏幕比例;确定模块,用于确定所述本地显示比例和所述投屏设备的屏幕比例是否大于比例阈值;更改模块,用于在所述本地显示比例大于所述比例阈值且所述屏幕比例小于所述比例阈值,或者所述本地显示比例小于所述比例阈值且所述屏幕比例大于所述比例阈值的情况下,通过悬浮窗控件更改显示模式;以及传输模块,用于将与更改显示模式后的本地显示界面对应的画面数据传输至所述投屏设备。
- 根据权利要求9所述的装置,还包括:创建模块,用于在所述本地显示界面中创建悬浮窗控件,并隐藏所述悬浮窗控件。
- 根据权利要求10所述的装置,其中,所述创建模块包括:第一配置子模块,用于将所述悬浮窗控件的颜色配置为透明;以及/或者第二配置子模块,用于将所述悬浮窗控件的尺寸配置为小于尺寸阈值。
- 根据权利要求9所述的装置,其中,所述显示模式包括横屏模式和竖屏模式,所述更改模块包括:第一获取子模块,用于获取当前的显示模式;以及设置子模块,用于在所述当前的显示模式为横屏模式的情况下,通过所述悬浮窗控件将所述显示模式设置为竖屏模式;以及在所述当前的显示模式为竖屏模式的情况下,通过所述悬浮窗控件将所述显示模式设置为横屏模式。
- 根据权利要求12所述的装置,其中,所述设置子模块,具体用于通过所述悬浮窗控件调用系统应用程序接口来将所述显示模式设置为竖屏模式或横屏模式。
- 根据权利要求9所述的装置,其中,所述获取模块包括:第二获取子模块,用于获取所述本地显示界面的宽和高;以及第一计算子模块,用于计算根据所述本地显示界面的宽和高,计算所述本地显示比例。
- 根据权利要求9所述的装置,其中,所述获取模块包括:第三获取子模块,用于获取所述投屏设备的屏幕的宽和高;以及第二计算子模块,用于根据所述屏幕的宽和高,计算所述投屏设备的屏幕比例。
- 根据权利要求15所述的装置,还包括:连接模块,用于建立与所述投屏设备的之间的连接;其中,所述第三获取子模块,具体用于通过所述连接获取所述投屏设备的屏幕的宽和高;以及所述传输模块,具体用于通过所述连接向所述投屏设备传输所述画面数据。
- 一种电子设备,包括:至少一个处理器;以及与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-8中任一项所述的方法。
- 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行根据权利要求1-8中任一项所述的方法。
- 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现根据权利要求1-8中任一项所述的方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110731830.1 | 2021-06-29 | ||
CN202110731830.1A CN113467737A (zh) | 2021-06-29 | 2021-06-29 | 传输画面数据的方法、装置、设备及存储介质 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023273084A1 true WO2023273084A1 (zh) | 2023-01-05 |
Family
ID=77874002
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2021/128999 WO2023273084A1 (zh) | 2021-06-29 | 2021-11-05 | 传输画面数据的方法、装置、设备及存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN113467737A (zh) |
WO (1) | WO2023273084A1 (zh) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113467737A (zh) * | 2021-06-29 | 2021-10-01 | 阿波罗智联(北京)科技有限公司 | 传输画面数据的方法、装置、设备及存储介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279953A (zh) * | 2016-12-30 | 2018-07-13 | 乐视汽车(北京)有限公司 | 投屏方法及投屏装置 |
CN110515579A (zh) * | 2019-08-28 | 2019-11-29 | 北京小米移动软件有限公司 | 投屏方法、装置、终端及存储介质 |
EP3786778A1 (en) * | 2019-08-28 | 2021-03-03 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for screen projection, terminal and storage medium |
CN112558825A (zh) * | 2019-09-26 | 2021-03-26 | 华为技术有限公司 | 一种信息处理方法及电子设备 |
CN113467737A (zh) * | 2021-06-29 | 2021-10-01 | 阿波罗智联(北京)科技有限公司 | 传输画面数据的方法、装置、设备及存储介质 |
-
2021
- 2021-06-29 CN CN202110731830.1A patent/CN113467737A/zh active Pending
- 2021-11-05 WO PCT/CN2021/128999 patent/WO2023273084A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108279953A (zh) * | 2016-12-30 | 2018-07-13 | 乐视汽车(北京)有限公司 | 投屏方法及投屏装置 |
CN110515579A (zh) * | 2019-08-28 | 2019-11-29 | 北京小米移动软件有限公司 | 投屏方法、装置、终端及存储介质 |
EP3786778A1 (en) * | 2019-08-28 | 2021-03-03 | Beijing Xiaomi Mobile Software Co., Ltd. | Method and device for screen projection, terminal and storage medium |
CN112558825A (zh) * | 2019-09-26 | 2021-03-26 | 华为技术有限公司 | 一种信息处理方法及电子设备 |
CN113467737A (zh) * | 2021-06-29 | 2021-10-01 | 阿波罗智联(北京)科技有限公司 | 传输画面数据的方法、装置、设备及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN113467737A (zh) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2962191B1 (en) | System and method for virtual displays | |
KR20130138143A (ko) | 디스플레이 미러링을 위한 시스템 및 방법 | |
US20110066971A1 (en) | Method and apparatus for providing application interface portions on peripheral computing devices | |
EP4135333A1 (en) | Image display method and apparatus, electronic device, and medium | |
US9319468B2 (en) | Information processing apparatus and information processing method | |
US9489883B2 (en) | Electronic apparatus and method of displaying image thereof | |
WO2023273084A1 (zh) | 传输画面数据的方法、装置、设备及存储介质 | |
CN110928509A (zh) | 显示控制方法、显示控制装置、存储介质、通信终端 | |
EP3704861B1 (en) | Networked user interface back channel discovery via wired video connection | |
CN115966166A (zh) | 分辨率控制方法、装置及存储介质 | |
CN115862528A (zh) | 拼接显示方法、装置、led拼控器、存储介质及系统 | |
US11996024B2 (en) | Display device and operating method thereof | |
US20220189027A1 (en) | Panorama Rendering Method, Electronic Device and Storage Medium | |
US20160086313A1 (en) | Streamlined Handling of Monitor Topology Changes | |
CN110990109A (zh) | 一种拼接屏回显方法、终端、系统及存储介质 | |
CN110719502A (zh) | 远程画面同步方法、装置、设备和系统 | |
CN114125135B (zh) | 一种视频内容呈现方法、装置、电子设备和存储介质 | |
KR102317091B1 (ko) | 영상 처리 장치 및 방법 | |
US20230315374A1 (en) | Distraction filtering mode for displays | |
US20220012074A1 (en) | Program and device for screen sharing | |
US11334309B2 (en) | Image display method, apparatus and computer readable storage medium | |
JP2014048921A (ja) | 表示装置、映像出力装置、その制御方法 | |
EP4207714A1 (en) | Page display method and electronic device | |
EP4184425A1 (en) | Image processing apparatus and operating method thereof | |
CN116095261A (zh) | 一种显示方法和显示设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 21948010 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |