CN114143371B - Screen projection method and device, storage medium and electronic equipment - Google Patents
Screen projection method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN114143371B CN114143371B CN202111362461.XA CN202111362461A CN114143371B CN 114143371 B CN114143371 B CN 114143371B CN 202111362461 A CN202111362461 A CN 202111362461A CN 114143371 B CN114143371 B CN 114143371B
- Authority
- CN
- China
- Prior art keywords
- screen
- service
- throwing
- proxy
- content providing
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000005266 casting Methods 0.000 claims abstract description 46
- 238000012790 confirmation Methods 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 13
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 6
- 238000012545 processing Methods 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
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/1407—General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/4104—Peripherals receiving signals from specially adapted client devices
- H04N21/4126—The peripheral being portable, e.g. PDAs or mobile phones
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Transforming Electric Information Into Light Information (AREA)
Abstract
The application discloses a screen projection method, a screen projection device, a storage medium and electronic equipment, and relates to the technical field of Internet of things, wherein the method comprises the following steps: starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network; when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to target equipment. The application can improve the screen throwing function of the equipment and improve the user experience.
Description
Technical Field
The application relates to the technical field of the Internet of things, in particular to a screen projection method, a screen projection device, a storage medium and electronic equipment.
Background
With the development of technology, the projection screen is becoming more popular, and the program is being viewed through the projection screen, which is one of the current mainstream viewing modes, for example, online video on a mobile phone can be viewed through the projection screen on a set top box or a television.
At present, some related technologies have screen-casting services based on DLNA protocol, which are limited to screen-casting in a local area network, and a screen-casting end and a receiving end are not in the same local area network but can not cast the screen; some related technologies are based on private protocols and can only screen limited free content through a cloud server, and screen cannot be screened for a large number of resources in ecology of content providing applications.
Therefore, the limitation of local area network or private protocol exists at present, so that the problem of weaker screen-throwing function of most devices is caused, and the user experience is poor.
Disclosure of Invention
The embodiment of the application provides a scheme which can effectively improve the screen throwing function of equipment and improve the user experience.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the application, a screen projection method comprises the following steps: starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network; when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to target equipment.
In one embodiment, the service information includes a service acquisition address; when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, triggering the screen throwing agent service to throw a screen to a target device, and comprising the following steps: when the content providing application receives the service acquisition address, the content providing application accesses the service acquisition address to obtain service description information of the screen-casting proxy service; the content providing application acquires the screen throwing parameters according to the service description information and sends the screen throwing parameters to the screen throwing proxy service; and the screen-throwing proxy service sends the screen-throwing parameters to the target equipment so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
In one embodiment, the service description information includes a proxy service name and parameter indication information; the content providing application obtains the screen throwing parameters according to the service description information, and the content providing application comprises the following steps: the content providing application displays a confirmation page including a name to which the proxy service name matches; and when a confirmation operation is received in the confirmation interface, the content providing application acquires the screen projection parameters corresponding to the parameter indication information.
In one embodiment, the service description information further includes a service access address; the sending the screen-throwing parameter to the screen-throwing proxy service comprises the following steps: and sending the screen throwing parameters to the screen throwing proxy service through the service access address.
In one embodiment, the content providing application displays a confirmation page including a name to which the proxy service name matches, comprising: the proxy service obtains the device information of the target device through a cloud; the content providing application displays a confirmation page including a name to which the proxy service name matches, the name being generated from the device information.
In one embodiment, the screen-projection proxy service sends the screen-projection parameter to the target device, so that the target device plays the screen-projection content according to the screen-projection parameter, and the method includes: the screen projection proxy service sends the screen projection parameters to a cloud end, and the cloud end sends the screen projection parameters to the target equipment, so that the target equipment plays the screen projection content according to the screen projection parameters.
In one embodiment, the content providing application initiates the drop service for the content, the drop parameter including a play address of the content.
According to one embodiment of the present application, a screen projection device, the device comprises: the system comprises a starting module, a local screen-throwing agent service and a control module, wherein the starting module is used for starting the local screen-throwing agent service, and the screen-throwing agent service monitors a broadcast packet on a local network; the broadcasting module is used for broadcasting a target broadcasting packet on the local network by taking the screen throwing service as a digital media controller when a local content providing application starts the screen throwing service; the feedback module is used for providing application feedback service description information for the content by the screen-casting proxy service analog digital media receiver when the screen-casting proxy service monitors the target broadcast packet; and the screen throwing module is used for returning screen throwing parameters to the screen throwing agent service according to the service description information when the content providing application receives the service description information so as to throw the screen to the target equipment through the screen throwing agent service.
According to another embodiment of the present application, a storage medium has a computer program stored thereon, which when executed by a processor of a computer, causes the computer to perform the method according to the embodiment of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
In the embodiment of the application, a local screen-throwing proxy service is started, and monitors a broadcast packet on a local network; when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to target equipment.
In this way, the local screen-throwing agent service interacts with the screen-throwing service started by the content providing application, and the screen-throwing agent service can obtain the screen-throwing parameters of the content providing application, so that the local screen-throwing agent service can throw the screen to the target equipment based on the screen-throwing agent service, and on one hand, the screen-throwing agent service can break through the limitation of the local area network to throw the screen across the network, particularly can throw the screen remotely, and on the other hand, the screen-throwing agent service can throw the screen to massive resources in the content providing application. Furthermore, the screen throwing function of the equipment is effectively improved, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic diagram of a system to which embodiments of the application may be applied.
Fig. 2 shows a flow chart of a screen projection method according to an embodiment of the application.
Fig. 3 shows a block diagram of a screen-casting device according to an embodiment of the application.
Fig. 4 shows a block diagram of an electronic device according to an embodiment of the application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to fall within the scope of the application.
In the description that follows, specific embodiments of the application will be described with reference to steps and symbols performed by one or more computers, unless otherwise indicated. Thus, these steps and operations will be referred to in several instances as being performed by a computer, which as referred to herein performs operations that include processing units by the computer that represent electronic signals that represent data in a structured form. This operation transforms the data or maintains it in place in the memory system of the computer, which may be reconfigured or otherwise altered in ways well known to those skilled in the art. The data structure maintained by the data is the physical location of the memory, which has specific characteristics defined by the data format. However, the principles of the present application are described in the foregoing text and are not meant to be limiting, and those of skill in the art will appreciate that various of the steps and operations described below may also be implemented in hardware.
FIG. 1 shows a schematic diagram of a system 100 in which embodiments of the application may be applied. As shown in fig. 1, the system 100 may include a cloud server 101, a local terminal 102, and a target device 103. The local terminal 102 and the target device 103 may be any computer device, such as a computer, a mobile phone, a smart watch, and a home appliance. The cloud server 101 may be a server providing cloud services. In one example, the local terminal 102 is a user terminal and the target device 103 is a smart television. It will be appreciated that embodiments of the application may also be applied in other suitable systems.
In one implementation of this example, the local terminal 102 may: starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network; when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to the target equipment 103.
In one embodiment, the screen-projection proxy service sends the screen-projection parameters to a cloud (e.g., cloud server 101), and the cloud sends the screen-projection parameters to the target device 103, so that the target device 103 plays the screen-projection content according to the screen-projection parameters.
Fig. 2 schematically shows a flow chart of a screen projection method according to an embodiment of the application. The main implementation body of the screen projection method may be any device, for example, the local terminal 102 shown in fig. 1.
As shown in fig. 2, the screen projection method may include steps S210 to S240.
Step S210, starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network; step S220, when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; step S230, if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and step S240, when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to the target equipment.
The screen-throwing proxy service is a proxy service for proxy of local screen-throwing service, the local can start screen-throwing proxy software in the background, the screen-throwing proxy software can run a screen-throwing proxy service in the local, and the screen-throwing proxy service can monitor broadcast packets broadcast on a local network connected locally after being started.
The content providing application may be an application that provides on-screen content such as video, for example, a video playing application app of the target platform. Digital media Controller (DIGITAL MEDIA Controller), a digital media Controller in the digital living NETWORK ALLIANCE (DLNA, DIGITAL LIVING NETWORK ALLIANCE) protocol. The target broadcast packet, i.e., a specific broadcast packet broadcast after the start of the screen-cast service, may be a device search packet, for example, a device search packet in a simple service discovery protocol: ssdp-discover package.
When a screen-casting service is started in the content providing application, the screen-casting service serves as a digital media controller to broadcast a target broadcast packet on a local network, and at the moment, a screen-casting proxy service in the local network can monitor the target broadcast packet.
The digital media receiver (DIGITAL MEDIA RENDERER) is a digital media receiver in the digital living NETWORK ALLIANCE (DLNA, DIGITAL LIVING NETWORK ALLIANCE) protocol. The service information is that the screen-throwing agent service can provide the service information corresponding to the service. The on-screen proxy service may provide application feedback service information to the content after monitoring the targeted broadcast packet.
The screen projection parameters are parameters required by projecting the content, such as parameters of a playing address of the content. When the content providing application receives the service information, the screen throwing parameter indicated by the service information is returned to the screen throwing agent service according to the service information, and the screen throwing agent service can be triggered to throw the screen to the target equipment based on the screen throwing parameter.
In this way, based on steps S210 to S240, the local screen-throwing agent service interacts with the screen-throwing service started by the content providing application, and the screen-throwing agent service can obtain the screen-throwing parameters of the content providing application, so that the local screen-throwing agent service can throw the screen to the target device based on the screen-throwing agent service, and on one hand, the screen-throwing agent service can break through the limitation of the local area network to throw the screen across the network, and particularly can throw the screen remotely, and on the other hand, the screen-throwing agent service can throw the screen to massive resources in the content providing application. Furthermore, the screen throwing function of the equipment is effectively improved, and the user experience is improved.
Specific examples of the steps performed when performing the screen projection are described below.
In step S210, a local on-screen proxy service is started, which listens for broadcast packets on the local network.
The screen-throwing proxy service is a proxy service for proxy of local screen-throwing service, the local can start screen-throwing proxy software in the background, the screen-throwing proxy software can run a screen-throwing proxy service in the local, and the screen-throwing proxy service can monitor broadcast packets broadcast on a local network connected locally after being started.
In one embodiment, the local on-screen proxy service may be automatically started when the local terminal is started, in one embodiment, the local on-screen proxy service may be triggered to be started when the content providing application is started, and in one embodiment, the local on-screen proxy service may be manually started by a user.
In step S220, when a local content providing application starts a screen casting service, the screen casting service broadcasts a target broadcast packet as a digital media controller on the local network.
The content providing application may be an application that provides on-screen content such as video, for example, a video playing application app of the target platform. The digital media Controller (DIGITAL MEDIA Controller), i.e. the digital media Controller in the digital living NETWORK ALLIANCE (DLNA, DIGITAL LIVING NETWORK ALLIANCE) protocol, the target broadcast packet is a specific broadcast packet broadcast after the screen-casting service is started.
In one embodiment, after a user opens a content providing application, content to be screen-dropped is selected, and a screen-dropped service may be triggered for the content through a screen-dropped control.
In one embodiment, the targeted broadcast packet may be a device search packet, such as a device search packet in the simple service discovery protocol: ssdp-discover package. In one embodiment, the target broadcast packet may be a broadcast packet carrying specific trigger information, such as specific string information.
In step S230, if the on-screen proxy service monitors the target broadcast packet, the on-screen proxy service analog-digital media receiver provides application feedback service information to the content.
When the screen-casting proxy service analog digital media receiver provides application feedback service information to the content, the screen-casting proxy service can respond to the target broadcast packet to respond to be a digital media receiver device and provide own service information.
In one embodiment, the service information may be a service acquisition address, and the content providing application may access the address to obtain information such as service description information, in such a way that the information such as service description information may be flexibly configured by the service acquisition address. In one embodiment, the service information may be service information including information such as service description information.
In step S240, when the content providing application receives the service information, the screen-throwing parameter is returned to the screen-throwing agent service according to the service information, and the screen-throwing agent service is triggered to throw the screen to the target device.
In one embodiment, the service information includes a service acquisition address; step S240, when the content providing application receives the service information, returns a screen-throwing parameter to the screen-throwing agent service according to the service information, and triggers the screen-throwing agent service to throw a screen to a target device, including:
When the content providing application receives the service acquisition address, the content providing application accesses the service acquisition address to acquire service description information of the screen-casting proxy service; the content providing application acquires the screen throwing parameters according to the service description information and sends the screen throwing parameters to the screen throwing proxy service; and the screen-throwing proxy service sends the screen-throwing parameters to the target equipment so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
The service information may be a service acquisition address directly, where the content providing application accesses the service acquisition address and may obtain service description information of the screen-throwing agent service therefrom, where the service description information is specific description information of a service that may be provided by the screen-throwing agent service, and the specific description information may include information such as parameter indication information. The parameter indicates information such as service type (e.g. urn: schemas-upnp-org: service: AVTransport: 1), description information (which may be a URL describing parameters for invoking the service, such as AVTransport uri, etc.), etc.
The video application can obtain the screen projection parameters matched with the service description information according to the service description information (for example, the screen projection parameters corresponding to the service type and the description information can be obtained according to the parameter indication information, for example, the playing address of the content to be projected can be obtained according to the indication of the AVTransportURI), the matched screen projection parameters are sent to the screen projection proxy service, the screen projection proxy service can further send the screen projection parameters to the target equipment, and the target equipment can play the content projected according to the screen projection parameters.
In one embodiment, the service description information includes a proxy service name and parameter indication information; the content providing application obtains the screen throwing parameters according to the service description information, and the content providing application comprises the following steps: the content providing application displays a confirmation page including a name to which the proxy service name matches; and when a confirmation operation is received in the confirmation interface, the content providing application acquires the screen projection parameters corresponding to the parameter indication information.
The proxy service name may indicate a standard of the name, the content providing application may display a confirmation page including a name to which the proxy service name is matched according to the proxy service name, the user may perform a confirmation operation by clicking or sliding on a confirmation interface, and then the content providing application acquires the screen projection parameter indicated by the parameter indication information. This allows for reliable proxy screening under user confirmation.
In one embodiment, the service description information further includes a service access address; the sending the screen-throwing parameter to the screen-throwing proxy service comprises the following steps: and sending the screen throwing parameters to the screen throwing proxy service through the service access address. The service access address is the address of the access proxy service, and the screen projection parameter can be reliably sent to the screen projection proxy service through accessing the service access address.
In one embodiment, the content providing application displays a confirmation page including a name to which the proxy service name matches, comprising: the proxy service obtains the device information of the target device through a cloud; the content providing application displays a confirmation page including a name to which the proxy service name matches, the name being generated from the device information.
The device information, such as the device name or model of the target device to be screened, may identify the target device. The proxy service name may specify a policy that the displayed name is made up of device information of the target device to be screened, for example, specify that the displayed name is made up of the name of the target device to be screened and service self function information. After the proxy service obtains the device information of the target device from the cloud, a confirmation page including the name matched with the proxy service name can be displayed after the displayed name is generated according to the proxy service name. Therefore, the screen projection accuracy can be further improved, and the user can determine the accuracy of the target equipment.
In one embodiment, the confirmation page may display a plurality of names respectively formed by the names of the target devices to be screened, so that the user may selectively screen the proxy.
In one embodiment, the screen-projection proxy service sends the screen-projection parameter to the target device, so that the target device plays the screen-projection content according to the screen-projection parameter, and the method includes: the screen projection proxy service sends the screen projection parameters to a cloud end, and the cloud end sends the screen projection parameters to the target equipment, so that the target equipment plays the screen projection content according to the screen projection parameters.
The screen projection proxy service can interact with remote target equipment through the cloud, and remotely transmits the screen projection parameters to the target equipment through the cloud, so that the target equipment plays the screen projection content according to the screen projection parameters.
In a further embodiment, in all the foregoing embodiments, the content providing application initiates a screen-casting service for the content, and the screen-casting parameter includes a play address of the content. The target device can further perform direct screen-casting playing on the content corresponding to the screen-casting service according to the playing address.
In order to facilitate better implementation of the screen projection method provided by the embodiment of the application, the embodiment of the application also provides a screen projection device based on the screen projection method. The meaning of the nouns is the same as that of the screen projection method, and specific implementation details can be referred to the description of the method embodiment. Fig. 3 shows a block diagram of a screen-casting device according to an embodiment of the application.
As shown in fig. 3, the screen projection device 300 may include a start module 310, a broadcast module 320, a feedback module 330, and a screen projection module 340.
The starting module 310 may be configured to start a local screen-drop proxy service, where the screen-drop proxy service listens for broadcast packets on a local network; the broadcasting module 320 may be used to broadcast a target broadcast packet on the local network as a digital media controller when a local content providing application starts a screen-casting service; the feedback module 330 may be configured to provide application feedback service information to the content by the on-screen proxy service analog-to-digital media receiver when the on-screen proxy service monitors the target broadcast packet; the screen-throwing module 340 may be configured to return a screen-throwing parameter to the screen-throwing agent service according to the service description information when the content providing application receives the service information, so as to throw a screen to a target device through the screen-throwing agent service.
In one embodiment, the service information includes a service acquisition address; the screen projection module 340 includes: a service access unit, configured to, when the content providing application receives the service acquisition address, access the service acquisition address by the content providing application, and obtain service description information of the screen-casting proxy service; the service sending unit is used for the content providing application to acquire the screen projection parameters according to the service description information and send the screen projection parameters to the screen projection proxy service; and the screen-throwing processing unit is used for sending the screen-throwing parameters to the target equipment by the screen-throwing proxy service so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
In one embodiment, the service description information includes a proxy service name and parameter indication information; the service sending unit comprises a screen throwing parameter obtaining subunit, which is used for: the content providing application displays a confirmation page including a name to which the proxy service name matches; and when a confirmation operation is received in the confirmation interface, the content providing application acquires the screen projection parameters corresponding to the parameter indication information.
In one embodiment, the service description information further includes a service access address; the service transmitting unit comprises a screen projection parameter transmitting subunit, and is used for: and sending the screen throwing parameters to the screen throwing proxy service through the service access address.
In one embodiment, the proxy service obtains device information of the target device through a cloud; the screen throwing parameter acquisition subunit is used for: the content providing application displays a confirmation page including a name to which the proxy service name matches, the name being generated from the device information.
In one embodiment, the screen projection processing unit is configured to: the screen projection proxy service sends the screen projection parameters to a cloud end, and the cloud end sends the screen projection parameters to the target equipment, so that the target equipment plays the screen projection content according to the screen projection parameters.
In one embodiment, the content providing application initiates the drop service for the content, the drop parameter including a play address of the content.
In this way, based on the screen-throwing device 300, the local screen-throwing agent service interacts with the screen-throwing service started by the content providing application, and the screen-throwing agent service can obtain the screen-throwing parameters of the content providing application, so that the local screen-throwing agent service can throw the screen to the target device based on the screen-throwing agent service, and on one hand, the screen-throwing agent service can break through the limitation of the local area network to throw the screen across the network, in particular can throw the screen remotely, and on the other hand, the screen-throwing agent service can throw the screen to massive resources in the content providing application. Furthermore, the screen throwing function of the equipment is effectively improved, and the user experience is improved.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit in accordance with embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the present application further provides an electronic device, which may be a terminal or a server, as shown in fig. 4, which shows a schematic structural diagram of the electronic device according to the embodiment of the present application, specifically:
The electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 4 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components. Wherein:
The processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user page, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 executes the computer programs stored in the memory 402, so as to implement various functions, for example, the processor 401 may perform the following steps:
Starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network; when a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network; if the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content; and when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, and triggering the screen throwing agent service to throw a screen to target equipment.
In one embodiment, the service information includes a service acquisition address; when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, triggering the screen throwing agent service to throw a screen to a target device, and comprising the following steps: when the content providing application receives the service acquisition address, the content providing application accesses the service acquisition address to obtain service description information of the screen-casting proxy service; the content providing application acquires the screen throwing parameters according to the service description information and sends the screen throwing parameters to the screen throwing proxy service; and the screen-throwing proxy service sends the screen-throwing parameters to the target equipment so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
In one embodiment, the service description information includes a proxy service name and parameter indication information; the content providing application obtains the screen throwing parameters according to the service description information, and the content providing application comprises the following steps: the content providing application displays a confirmation page including a name to which the proxy service name matches; and when a confirmation operation is received in the confirmation interface, the content providing application acquires the screen projection parameters corresponding to the parameter indication information.
In one embodiment, the service description information further includes a service access address; the sending the screen-throwing parameter to the screen-throwing proxy service comprises the following steps: and sending the screen throwing parameters to the screen throwing proxy service through the service access address.
In one embodiment, the content providing application displays a confirmation page including a name to which the proxy service name matches, comprising: the proxy service obtains the device information of the target device through a cloud; the content providing application displays a confirmation page including a name to which the proxy service name matches, the name being generated from the device information.
In one embodiment, the screen-projection proxy service sends the screen-projection parameter to the target device, so that the target device plays the screen-projection content according to the screen-projection parameter, and the method includes: the screen projection proxy service sends the screen projection parameters to a cloud end, and the cloud end sends the screen projection parameters to the target equipment, so that the target equipment plays the screen projection content according to the screen projection parameters.
In one embodiment, the content providing application initiates the drop service for the content, the drop parameter including a play address of the content.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present application also provides a storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps of any one of the methods provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that can be achieved by the methods provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the application is not limited to the embodiments which have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.
Claims (9)
1. A screen projection method, comprising:
Starting a local screen-throwing proxy service, wherein the screen-throwing proxy service monitors a broadcast packet on a local network, and is a proxy service for proxy of the local screen-throwing service;
When a local content providing application starts a screen throwing service, the screen throwing service is used as a digital media controller to broadcast a target broadcast packet on the local network;
If the screen-casting proxy service monitors the target broadcast packet, the screen-casting proxy service analog digital media receiver provides application feedback service information for the content;
when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, triggering the screen throwing agent service to throw a screen to target equipment, wherein the service information comprises a service acquisition address;
When the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, triggering the screen throwing agent service to throw a screen to a target device, and comprising the following steps: when the content providing application receives the service acquisition address, the content providing application accesses the service acquisition address to obtain service description information of the screen-casting proxy service; the content providing application acquires the screen throwing parameters according to the service description information and sends the screen throwing parameters to the screen throwing proxy service; and the screen-throwing agent service sends the screen-throwing parameters to the target equipment so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
2. The method of claim 1, wherein the service description information includes proxy service name and parameter indication information;
The content providing application obtains the screen throwing parameters according to the service description information, and the content providing application comprises the following steps:
The content providing application displays a confirmation page including a name to which the proxy service name matches;
And when a confirmation operation is received in the confirmation page, the content providing application acquires the screen throwing parameter corresponding to the parameter indication information.
3. The method of claim 1, wherein the service description information further comprises a service access address; the sending the screen-throwing parameter to the screen-throwing proxy service comprises the following steps:
And sending the screen throwing parameters to the screen throwing proxy service through the service access address.
4. The method of claim 2, wherein the content providing application displaying a confirmation page including the name to which the proxy service name matches, comprises:
the proxy service obtains the device information of the target device through a cloud;
The content providing application displays a confirmation page including a name to which the proxy service name matches, the name being generated from the device information.
5. The method of claim 1, wherein the screen-casting proxy service sends the screen-casting parameters to the target device to cause the target device to play the screen-casting content according to the screen-casting parameters, comprising:
The screen projection proxy service sends the screen projection parameters to a cloud end, and the cloud end sends the screen projection parameters to the target equipment, so that the target equipment plays the screen projection content according to the screen projection parameters.
6. The method of any of claims 1 to 5, wherein the content providing application initiates the drop service for the content, the drop parameter comprising a play address of the content.
7. A screen projection device, comprising:
The system comprises a starting module, a local screen-throwing proxy service and a control module, wherein the starting module is used for starting the local screen-throwing proxy service, the screen-throwing proxy service monitors a broadcast packet on a local network, and the screen-throwing proxy service is a proxy service for proxy of the local screen-throwing service;
The broadcasting module is used for broadcasting a target broadcasting packet on the local network by taking the screen throwing service as a digital media controller when a local content providing application starts the screen throwing service;
The feedback module is used for providing application feedback service information for the content by the screen-casting proxy service analog digital media receiver when the screen-casting proxy service monitors the target broadcast packet;
The screen projection module is used for returning screen projection parameters to the screen projection proxy service according to the service information when the content providing application receives the service information so as to project a screen to the target equipment through the screen projection proxy service, wherein the service information comprises a service acquisition address; when the content providing application receives the service information, returning a screen throwing parameter to the screen throwing agent service according to the service information, triggering the screen throwing agent service to throw a screen to a target device, and comprising the following steps: when the content providing application receives the service acquisition address, the content providing application accesses the service acquisition address to obtain service description information of the screen-casting proxy service; the content providing application acquires the screen throwing parameters according to the service description information and sends the screen throwing parameters to the screen throwing proxy service; and the screen-throwing agent service sends the screen-throwing parameters to the target equipment so that the target equipment plays the screen-throwing content according to the screen-throwing parameters.
8. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 6.
9. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111362461.XA CN114143371B (en) | 2021-11-17 | 2021-11-17 | Screen projection method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111362461.XA CN114143371B (en) | 2021-11-17 | 2021-11-17 | Screen projection method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114143371A CN114143371A (en) | 2022-03-04 |
CN114143371B true CN114143371B (en) | 2024-07-05 |
Family
ID=80390209
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111362461.XA Active CN114143371B (en) | 2021-11-17 | 2021-11-17 | Screen projection method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114143371B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114885217A (en) * | 2022-06-14 | 2022-08-09 | 中国电信股份有限公司 | Video playing method and device, electronic equipment and nonvolatile storage |
WO2024007719A1 (en) * | 2022-07-07 | 2024-01-11 | 海信视像科技股份有限公司 | Display device, and control method for display device |
CN118317123A (en) * | 2024-06-07 | 2024-07-09 | 北京翼辉信息技术有限公司 | Remote screen-throwing method, proxy service module, mobile terminal equipment and storage medium |
CN118524147A (en) * | 2024-07-23 | 2024-08-20 | 新云网科技集团股份有限公司 | Interactive screen control method, device, equipment and medium for intelligent classroom system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542904A (en) * | 2021-07-12 | 2021-10-22 | 北京奇艺世纪科技有限公司 | Video screen projection playing method and device, electronic equipment and storage medium |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2013008186A (en) * | 2011-06-24 | 2013-01-10 | Kddi Corp | Content display system, submission terminal, browsing terminal, content display method, and program |
US8756348B2 (en) * | 2011-09-14 | 2014-06-17 | Barco N.V. | Electronic tool and methods for meetings |
CN105897521A (en) * | 2015-12-15 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | Screen projection method |
CN110876080B (en) * | 2018-08-30 | 2021-07-20 | 华为技术有限公司 | Video screen projection method and device, computer equipment and storage medium |
CN110381345B (en) * | 2019-07-05 | 2020-12-15 | 华为技术有限公司 | Screen projection display method and electronic equipment |
CN110602087B (en) * | 2019-09-10 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Intelligent screen projection method and device, intelligent terminal and server |
CN112839238B (en) * | 2019-11-22 | 2023-03-24 | 腾讯科技(深圳)有限公司 | Screen projection playing method and device and storage medium |
CN111552450A (en) * | 2020-04-30 | 2020-08-18 | 深圳市鸿合创新信息技术有限责任公司 | Screen projection method and device |
CN111988660A (en) * | 2020-08-06 | 2020-11-24 | 锐捷网络股份有限公司 | DLNA equipment screen projection method, gateway, terminal and system |
CN112911374B (en) * | 2021-02-01 | 2023-03-28 | 深圳创维-Rgb电子有限公司 | DLNA (digital Living network alliance) -based screen projection method and system |
-
2021
- 2021-11-17 CN CN202111362461.XA patent/CN114143371B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542904A (en) * | 2021-07-12 | 2021-10-22 | 北京奇艺世纪科技有限公司 | Video screen projection playing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114143371A (en) | 2022-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114143371B (en) | Screen projection method and device, storage medium and electronic equipment | |
CN101170675B (en) | Method and system for managing J2ME application in network TV system | |
US20020032754A1 (en) | Method and apparatus for profiling in a distributed application environment | |
CN109857427A (en) | Configure update method and Related product | |
CN103391479A (en) | Method, device, terminal and system for customizing updated series | |
CN112492372B (en) | Comment message display method and device, electronic equipment, system and storage medium | |
WO2020187183A1 (en) | Program pushing and playing method, display device, mobile device, and system | |
CN108377396A (en) | A kind of live streaming method for recording, device and equipment | |
JP2007310596A (en) | Service providing device, computer program and recording medium | |
CN107396136A (en) | A kind of video data acquisition methods, device, server and medium | |
US6671730B1 (en) | Data gateway unit and data gateway method | |
CN110798701B (en) | Video update pushing method and terminal | |
CN114339419A (en) | Method, device and storage medium for pull processing of video stream | |
CN102209116A (en) | Method and device for acquiring Internet protocol television program information, and television | |
CN113312237A (en) | Information feedback method and device, electronic equipment and storage medium | |
US9819718B2 (en) | Method for managing apparatus and information distributing apparatus | |
CN112188245B (en) | Front-end camera real-time video-on-demand method and device and electronic equipment | |
CN112711518B (en) | Log uploading method and device | |
CN114025184A (en) | Video live broadcast method and electronic equipment | |
CN102246459A (en) | Method for updating interactive information, device, server and terminal | |
CN112131029A (en) | Broadcast processing method, apparatus, computer device and storage medium | |
CN114007090B (en) | Video live broadcast establishing method and device, storage medium and electronic equipment | |
CN109729419A (en) | Pushing video preloads method, apparatus, electronic equipment and storage medium | |
CN114422965B (en) | Information interaction method and device, storage medium and electronic equipment | |
CN117255332B (en) | Bluetooth connection control method and device, storage medium and electronic equipment |
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 |