CN114449350A - Play switching method of display equipment and computer equipment - Google Patents

Play switching method of display equipment and computer equipment Download PDF

Info

Publication number
CN114449350A
CN114449350A CN202011231061.0A CN202011231061A CN114449350A CN 114449350 A CN114449350 A CN 114449350A CN 202011231061 A CN202011231061 A CN 202011231061A CN 114449350 A CN114449350 A CN 114449350A
Authority
CN
China
Prior art keywords
equipment
display
information
playing
control
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.)
Pending
Application number
CN202011231061.0A
Other languages
Chinese (zh)
Inventor
刘晓忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Priority to CN202011231061.0A priority Critical patent/CN114449350A/en
Publication of CN114449350A publication Critical patent/CN114449350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/436Interfacing a local distribution network, e.g. communicating with another STB or one or more peripheral devices inside the home
    • H04N21/4363Adapting the video stream to a specific local network, e.g. a Bluetooth® network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a play switching method of display equipment and computer equipment, wherein the method comprises the following steps: detecting display equipment corresponding to the control equipment; when the display equipment corresponding to the control equipment is switched, equipment information of the first equipment is determined; starting the first device based on the device information, and determining the playing information of the second device; and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information. When the position area of the control equipment is switched, the playing information of the second display equipment in the position area before switching is acquired, and the playing information is sent to the first display equipment in the position area after switching, so that the first display equipment continuously displays the video played by the second display equipment.

Description

Play switching method of display equipment and computer equipment
Technical Field
The present invention relates to the field of video playing technologies, and in particular, to a playing switching method for a display device and a computer device.
Background
With the development of society, people's lives are becoming more and more away from media, and at present, in order to acquire media information more conveniently, most environments include a plurality of display devices, so that users can acquire the media information anytime and anywhere, for example, in a household, a plurality of rooms are configured with display screens, so that users can watch media resources such as television videos and network videos in each room.
In the prior art, after a user moves to another area, the user needs to open the media device in the area, manually search for media resources, and adjust the playing time of the media resources to the playing time of the previous area, so as to continue to watch the media resources watched in the previous area.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
The invention provides a playing switching method of display equipment and computer equipment, when the display equipment corresponding to control equipment is switched, a video played on second equipment before switching can be continuously played on the switched first display equipment, the whole process does not need manual adjustment of a user, and a breakpoint of the video played on the second display equipment before switching can be accurately positioned, so that accurate continuous playing is realized.
In a first aspect, the present invention provides a play switching method for a display device, where the method includes:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
As a further improved technical solution, the detecting the display device corresponding to the control device specifically includes:
acquiring first position information of the control equipment and monitoring a plurality of heartbeat packets, wherein the heartbeat packets are data packets sent by display equipment in communication connection with the control equipment and are used for reflecting the running state of the display equipment sending the heartbeat packets;
and determining display equipment corresponding to the control equipment according to the first position information and the heartbeat packets.
As a further improved technical solution, the determining, according to the first location information and the heartbeat packets, the display device corresponding to the control device specifically includes:
acquiring second position information corresponding to the plurality of heartbeat packets;
determining a target heartbeat packet according to second position information corresponding to the plurality of heartbeat packets, wherein the distance between the second position information corresponding to the target heartbeat packet and the first position information is minimum;
and taking the display equipment corresponding to the target heartbeat packet as the display equipment corresponding to the control equipment.
As a further improved technical solution, the determining, according to the first location information and the heartbeat packets, the display device corresponding to the control device specifically includes:
determining a target area set corresponding to the first position information according to a plurality of preset position area sets;
acquiring second position information corresponding to the plurality of heartbeat packets;
determining a target heartbeat packet according to second position information corresponding to the plurality of heartbeat packets, wherein the second position information corresponding to the target heartbeat packet belongs to the target area set;
and taking the display equipment corresponding to the target heartbeat packet as the display equipment corresponding to the control equipment.
As a further improved technical solution, when the display device corresponding to the control device is switched, the determining the device information of the first device specifically includes:
when the display equipment corresponding to the control equipment is switched, acquiring a first heartbeat packet corresponding to first equipment;
and determining equipment information according to the first heartbeat packet.
As a further improved technical solution, the determining the playing information of the second device specifically includes:
and acquiring a second heartbeat packet corresponding to the second equipment, and determining playing information according to the second heartbeat packet.
As a further improved technical solution, the playing information includes: video addresses and playback breakpoints; the sending the playing information to the first device so that the first device plays the video according to the playing information specifically includes:
and sending the video address and the playing breakpoint to the first device, so that the first device acquires a video based on the video address and starts playing the video from the playing breakpoint.
As a further improved technical solution, before determining the device information of the first device when the display device corresponding to the control device is switched, the method further includes:
executing an obtaining operation at preset time intervals to obtain display equipment corresponding to the control equipment per se;
when the obtaining operation is not executed for the first time, obtaining the history display equipment obtained by executing the obtaining operation for the last time, wherein the executing for the first time is executed for the first time after the display equipment corresponding to the control equipment starts to be detected;
and if the display equipment corresponding to the control equipment is different from the historical display equipment, judging that the display equipment corresponding to the control equipment is switched.
As a further improved technical solution, before the detecting the display device corresponding to the control device itself, the method further includes:
receiving a following instruction;
and responding to the following instruction, acquiring the position information of the user, and moving according to the position information of the user.
As a further improved technical solution, after sending the playing information to the first device, the method further includes:
and sending a stop instruction to the second equipment so that the second equipment stops playing the video according to the stop instruction.
In a second aspect, the present invention provides a control apparatus comprising:
the display equipment detection unit is used for detecting display equipment corresponding to the control equipment;
the device information determining unit is used for determining device information of first devices when display devices corresponding to the control devices are switched, wherein the first devices are switched display devices corresponding to the control devices;
a playing information determining unit, configured to start the first device based on the device information, and determine playing information of a second device, where the second device is a display device before switching corresponding to the control device;
and the playing information sending unit is used for sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
In a third aspect, the present invention provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
In a third aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
Compared with the prior art, the embodiment of the invention has the following advantages:
in the embodiment of the invention, the display equipment corresponding to the control equipment is detected; when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment; starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device; and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information. When the position area of the control equipment is switched, the playing information of the second display equipment in the position area before switching is acquired, and the playing information is sent to the first display equipment in the position area after switching, so that the first display equipment continuously displays the video played by the second display equipment.
Drawings
Fig. 1 is a schematic view of an application scenario of a play switching method of a display device in an embodiment of the present invention;
fig. 2 is a schematic flowchart of a play switching method of a display device according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a control device according to an embodiment of the present invention;
fig. 4 is an internal structural diagram of a computer device in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
The inventor researches and discovers that people's lives are becoming more and more media-independent with the development of society, and currently, in order to acquire media information more conveniently, most environments include a plurality of display devices so that users can acquire the media information anytime and anywhere, for example, in a home, a plurality of rooms are configured with display screens so that users can watch media resources such as television videos and network videos in each room.
In the prior art, after a user moves to another area, the user needs to open the media device in the area, manually search for media resources, and adjust the playing time of the media resources to the playing time of the previous area, so as to continue to watch the media resources watched in the previous area.
In order to solve the above problem, in the embodiment of the present invention, a display device corresponding to the control device itself is detected; when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment; starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device; and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
In the invention, when the display equipment corresponding to the control equipment is switched, the playing information of the second display equipment before switching is acquired, and the playing information is sent to the first display equipment after switching, so that the first display equipment continuously displays the video played by the second display equipment, the whole process does not need manual adjustment, and the breakpoint of the video played by the second display equipment before switching can be accurately positioned, thereby realizing accurate continuous playing.
The playing switching method of the display equipment provided by the embodiment of the invention can be applied to control equipment, and the control equipment can be intelligent equipment provided with a driving device, such as a movable robot; the control device may also be a smart device without a drive, such as a smart remote control, which may be moved passively, such as being carried by a user to effect movement. The functions implemented by the play switching method of the display device can be implemented by calling a program code by a processor in the control device, and the program code can be stored in a computer storage medium. The play switching method of the display equipment is used for realizing that: the method comprises the steps of detecting display equipment corresponding to the control equipment, when the display equipment corresponding to the control equipment is switched, continuously playing videos on second equipment (display equipment before switching) on first equipment (display equipment after switching), wherein the first equipment and the second equipment are electronic equipment capable of playing videos, and the electronic equipment can be a television, a computer and the like.
For example, embodiments of the present invention may be applied to the scenario shown in FIG. 1. In this scenario, first, the control device 1 may detect a display device corresponding to itself, when the display device of itself is switched, the display device before switching is the first device 2, and the display device before switching is the second device 3, and the control device 1 obtains the playing information corresponding to the second device 3, and sends the playing information to the first device 2, so as to continuously play the video played on the second device 3 on the first device 2.
It should be noted that the above application scenarios are only presented to facilitate understanding of the present invention, and the embodiments of the present invention are not limited in any way in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
Further, for the purpose of further illustrating the subject matter, various non-limiting embodiments of the subject invention are described below with reference to the accompanying drawings.
The present embodiment provides a play switching method for a display device, as shown in fig. 2, including:
and S1, detecting the display equipment corresponding to the control equipment.
In the embodiment of the present invention, the control device may detect the display device corresponding to the control device in real time, and may also detect the display device corresponding to the control device at every first interval in order to save power consumption. The control device may also start to detect its own corresponding display device according to the received control instruction, for example, recognize the received voice information to obtain the control instruction, and start to detect its own corresponding display device according to the control instruction (real-time detection or first duration detection at each interval).
Specifically, step S1 includes:
and S11, acquiring first position information of the control equipment, and monitoring a plurality of heartbeat packets.
In an example of this embodiment, the first location information is location information of the control device itself, which is used to reflect the location of the control device, and the location information may be represented by coordinates. The control device may be an intelligent device equipped with a driving device, such as a mobile Robot, which may map the environment in advance, for example, using a Robot Operating System (ROS) to perform laser synchronized positioning and mapping (SLAM). After the global mapping is carried out, the mobile robot moves to a certain position, and first position information corresponding to the position can be determined.
In one example of this embodiment, the control device may be an intelligent device, such as an intelligent remote control, which is not equipped with a driving apparatus. The control device determines first location information of itself through a positioning technology, for example, positioning is performed through GPRS, so as to obtain the first location information of itself.
In the embodiment of the invention, when the control device is a movable robot, the control device can also be positioned through GPRS (general packet radio service), when the control device is an intelligent device which is not provided with a driving device, the environment where the control device is located can also be globally mapped in advance, and when the intelligent device moves to a certain position, the first position information corresponding to the position can be determined.
In the embodiment of the present invention, the heartbeat packet is transmitted every fixed time interval, for example, every 1 second interval. The heartbeat packet is a data packet sent by a display device in communication connection with the control device, and the heartbeat packet is used for reflecting the running state of the display device sending the heartbeat packet; the operation state of the display device includes: the playback status of the display device, the position information of the display device, etc. After the display equipment is started, if the communication connection with the control equipment is successfully established, a heartbeat packet is sent to the control equipment so as to keep long connection with the control equipment. When a plurality of display devices are in communication connection with the control device, the control device can receive a plurality of heartbeat packages. The monitoring of the plurality of heartbeat packets means that the control device receives heartbeat packets respectively sent by the plurality of display devices.
And S12, determining the display equipment corresponding to the control equipment according to the first position information and the heartbeat packets.
In this embodiment of the present invention, for each heartbeat packet in the plurality of heartbeat packets, the heartbeat packet at least includes: sending position information and equipment information corresponding to the display equipment of the heartbeat packet, wherein the position information refers to the position of the display equipment, and the position information can be represented by coordinates; the device information includes a physical address of the display device, and when the display device that sends the heartbeat packet is in a playing state, the heartbeat packet further includes playing information corresponding to the display device, and the playing information includes a playing address, a playing duration and the like. For convenience of explanation, the position information included in the heartbeat packet is referred to as second position information. And determining the display equipment corresponding to the control equipment according to the second position information and the first position information (position information of the control equipment) corresponding to the plurality of heartbeat packages.
In one implementation, step S12 includes:
S121A, second position information corresponding to the plurality of heartbeat packets is obtained.
In the embodiment of the invention, after the display device is started, if the display device is successfully connected with the control device in a communication mode, a heartbeat packet is sent to the control device, and the communication connection mode can be wireless communication connection. When the display device connected with the control device in a communication mode is multiple, the control device can receive multiple heartbeat packages. The control device analyzes each received heartbeat packet to determine second position information corresponding to the heartbeat packet.
Since the heartbeat packet is sent by the display device, the essence of the second position information is the position information of the display device. The display device in the embodiment of the present invention may be a device which is not provided with a driving apparatus (which is not autonomously movable), such as a television; the display device not normally provided with the driving means does not frequently change its own position during use, and therefore, the position information (second position information) of the display device may be acquired in advance and added to the heartbeat packet. Alternatively, the display device in the embodiment of the present invention may be a device configured with a driving apparatus, and the display device acquires the position information (second position information) of the display device itself each time the display device transmits a heartbeat packet, and adds the position information of the display device itself to the heartbeat packet.
S122A, determining a target heartbeat package according to second position information corresponding to each of a plurality of heartbeat packages, wherein the distance between the first position information and the second position information corresponding to the target heartbeat package is the minimum.
In the embodiment of the invention, the control equipment calculates the distance between each second position information obtained by analysis and the first position information of the control equipment to obtain a plurality of distances; and determining a minimum distance in the plurality of distances, and taking the heartbeat packet corresponding to the minimum distance as a target heartbeat packet. The heartbeat packet corresponding to the minimum distance is as follows: and the heartbeat packet corresponding to the second position information corresponding to the minimum distance.
For convenience of description, the heartbeat packets except the target heartbeat packet in the plurality of heartbeat packets are recorded as non-target heartbeat packets, and a distance between the second position information corresponding to each non-target heartbeat packet and the first position information is greater than a distance (minimum distance) between the second position information corresponding to the target heartbeat packet and the second position information.
For example, the control device receives 4 heartbeat packets, which are p1, p2, p3 and p4 respectively, analyzes the second position information to obtain d1 corresponding to p1, analyzes the second position information to obtain d2 corresponding to p2, analyzes the second position information to obtain d3 corresponding to p3, and analyzes the second position information to obtain d4 corresponding to p 4; the position information of the control equipment is d0, the distance between d0 and d1 is calculated to be l1, the distance between d0 and d2 is calculated to be l2, the distance between d0 and d3 is calculated to be l3, and the distance between d0 and d4 is calculated to be l 4; assuming that l2 is minimum, the heartbeat packet p2 corresponding to d2 is taken as the target heartbeat packet.
And S123A, taking the display device corresponding to the target heartbeat packet as the display device corresponding to the control device.
In the embodiment of the present invention, the display device corresponding to the target heartbeat packet is the display device that sends the target heartbeat packet. For example, in the above example, if the heartbeat packet p2 corresponding to d2 is the target heartbeat packet, the display device that transmits the heartbeat packet p2 is the display device corresponding to the control device.
In another implementation, step S12 includes:
S121B, determining a target area set corresponding to the first position information according to a plurality of preset position area sets.
In the embodiment of the invention, the environment where the control equipment is located is divided into a plurality of position areas in advance, each position area corresponds to one position area set, and the position area set comprises a plurality of position area information. After the control equipment acquires the first position information of the control equipment, the first position information is matched with a plurality of preset position area sets so as to determine a target area set corresponding to the first position information.
For example, for several location area sets, if the first location information belongs to a first location area set of the several location area sets, the first location area set is taken as the target area set.
In this embodiment of the present invention, the plurality of location area information included in the location area set may be determined when performing SLAM mapping by using the ROS, an environment in which the control device is located is divided into a plurality of areas, each area corresponds to one location area set, and each location area set includes a plurality of location area information.
In the embodiment of the invention, the position areas can be divided according to the display devices, so that each position area is provided with one and only one display device. For example, in an environment with an area of 20m × 20m, a plurality of display devices may be included, and the 20m × 20m is divided into a plurality of location areas, and each location area includes one display device. In practical applications, the location area may be a real area in the environment, for example, in a home, a living room is used as one location area, and a bedroom is used as another location area.
And S122B, acquiring second position information corresponding to the plurality of heartbeat packages respectively.
In the embodiment of the present invention, the process of step S122B is the same as the process of step S121A, and further, for the process of step S122B, the description of step S121A may be referred to.
S123B, determining a target heartbeat packet according to second position information corresponding to each of the heartbeat packets, wherein the second position information corresponding to the target heartbeat packet belongs to the target area set.
In the embodiment of the invention, a target area set corresponding to a first position and second position information corresponding to each heartbeat packet are determined, and for each second position information, the second position information is matched with a plurality of preset position area sets to determine the position area set corresponding to the second position information; and taking the second position information belonging to the target area set as target information, and taking a heartbeat packet corresponding to the target information as a target heartbeat packet.
For example, the target area set corresponding to the first position is S0, the control device receives 4 heartbeat packets, which are p1, p2, p3 and p4, respectively, analyzes the received heartbeat packets to obtain second position information d1 corresponding to p1, analyzes the received heartbeat packets to obtain second position information d2 corresponding to p2, analyzes the received heartbeat packets to obtain second position information d3 corresponding to p3, and analyzes the received heartbeat packets to obtain second position information d4 corresponding to p 4; if the position region set to which d1 belongs is S1, the position region to which d2 belongs is S2, the position region to which d3 belongs is S0, and the position region to which d4 belongs is S3, the heartbeat packet p3 corresponding to d3 is taken as the target heartbeat packet.
And S124, 124B, using the display device corresponding to the target heartbeat packet as the display device corresponding to the control device.
In the embodiment of the present invention, the target heartbeat packet corresponds to a display device, that is, a display device that sends the target heartbeat packet. For example, in the above example, if the heartbeat packet p2 corresponding to d2 is the target heartbeat packet, the display device that transmits the heartbeat packet p2 is the display device corresponding to the control device.
And S2, when the display device corresponding to the control device is switched, determining the device information of the first device.
In this embodiment of the present invention, in step S1, the display device corresponding to the control device may be detected in real time, or the display device corresponding to the control device may be detected at a first time interval, and after the detection of the display device corresponding to the control device is started, the display device corresponding to the control device may be obtained at every preset time interval. The first time period and the preset time period may be equal.
Before step S2, it is necessary to determine whether the display device corresponding to the control device is switched, and when the switching occurs, the switched display device is determined to be the first device. And when the display equipment corresponding to the control equipment acquired twice is different, judging that the display equipment corresponding to the control equipment is switched, and further determining that the switched display equipment is the first equipment.
Specifically, the process of determining whether the display device corresponding to the control device is switched includes:
executing an obtaining operation at preset time intervals to obtain display equipment corresponding to the control equipment per se; when the obtaining operation is not executed for the first time, obtaining the history display equipment obtained by executing the obtaining operation for the last time, wherein the executing for the first time is executed for the first time after the display equipment corresponding to the control equipment starts to be detected; and if the display equipment corresponding to the control equipment is different from the historical display equipment, judging that the display equipment corresponding to the control equipment is switched.
In this embodiment of the present invention, after the detection of the display device corresponding to the control device itself is started, an obtaining operation may be performed every preset time interval to obtain the detected display device corresponding to the control device, and the obtained display device is stored according to an obtained time sequence, for example, the control device stores: the display device corresponding to the control device acquired at the first moment is v1, and the display device corresponding to the control device acquired at the second moment is v 1.
For the first-time executed obtaining operation, that is, the first-time executed obtaining operation after the detection is started, before the obtaining operation, the control device does not obtain the display device corresponding to the control device, and therefore, it cannot be determined whether the display device corresponding to the control device is switched before the first-time execution of the obtaining operation. And further, when the condition that the acquisition operation is not executed for the first time is met, judging whether the display equipment corresponding to the control equipment is switched or not.
For example, in the above example, the control apparatus stores therein: when the display device corresponding to the control device acquired at the first time is v1 and the display device corresponding to the control device acquired at the second time is v1, that is, the control device has performed two acquisition operations, and when the control device performs the acquisition operation at the third time (current time) and the obtained display device corresponding to the control device is v2, the display device corresponding to the control device is determined to be switched if the display device corresponding to the control device is different from the historical display device corresponding to the last acquisition operation (the display device corresponding to the control device acquired at the second time is v 1).
In the embodiment of the present invention, when the display device corresponding to the control device is switched, a first heartbeat packet corresponding to a first device is obtained, and device information is determined according to the first heartbeat packet. The first device is a switched display device corresponding to the control device, and the first heartbeat packet is a heartbeat packet sent by the first device. The control device analyzes the first heartbeat packet to obtain device information corresponding to the first device, wherein the device information comprises a physical address of the first display device.
For example, in the above example, the control apparatus stores therein: the display device v1 corresponding to the control device acquired at the first moment, the display device v1 corresponding to the control device acquired at the second moment, and the display device v2 corresponding to the control device acquired at the third moment, and if it is determined that the display device corresponding to the control device is switched, the first device is v2 (switched display device), and the first heartbeat packet is analyzed to obtain device information, with the heartbeat packet sent by v2 as the first heartbeat packet.
In the embodiment of the invention, when a user watches a video through a display device for a long time, the control device does not detect whether the display device corresponding to the control device is switched, and when the user needs to switch the display device, the control device is triggered to detect whether the device corresponding to the control device is switched.
The display device switching requirement by the user means that the user needs to move from a region corresponding to one display device to a region corresponding to another display device, that is, the user is considered to have the requirement for switching the display device, and at this time, the user can trigger the control device to detect whether the display device corresponding to the user is switched or not through a voice or key mode.
When the control device is a mobile robot and the mobile robot can move following the user, before step S1, the method includes:
and M, receiving a following instruction, responding to the following instruction, acquiring the position information of the user, and moving according to the position information of the user.
In the embodiment of the invention, the following instruction can be triggered by pressing a switching button on the mobile robot by a user, or the following instruction can be triggered by the user sending out voice information. And a switching button configured on the mobile robot is pressed to trigger a following instruction, or the mobile robot receives voice information, identifies the voice information to trigger the following instruction so as to realize the movement of a following user, and starts to detect whether the display equipment corresponding to the mobile robot is switched.
In the embodiment of the invention, the control device responds to the following instruction, determines the user and acquires the position information of the user. Specifically, the control device is provided with a camera, the control device can shoot a plurality of images of the environment where the control device is located, a plurality of face images are determined according to the images, and then the user is determined according to the face images. In actual application, a user image corresponding to a user may be stored in the control device in advance, the determined face images may be matched with the user image to determine a face image corresponding to the user, and a face in a shot picture may be followed in real time to follow the movement of the user, and whether a display device corresponding to the user is switched or not may be detected.
When the control device is an immovable intelligent remote controller, the following instruction may be triggered by pressing a switch button on the intelligent remote controller, or the following instruction may be triggered by a user sending a voice message. The switching button configured on the intelligent remote controller is pressed to trigger the following instruction, or the intelligent remote controller receives the voice information, identifies the voice information to trigger the following instruction, starts to detect whether the display equipment corresponding to the intelligent remote controller is switched, and a user can carry the intelligent remote controller to move.
And S3, starting the first device based on the device information, and determining the playing information of a second device, wherein the second device is a display device before switching corresponding to the control device.
In the embodiment of the present invention, since the first device is a switched display device, and the switched display device does not play a video within a certain time, in order to save power consumption, the first device is not normally in an operating state, that is, the first device may be in a standby state, so that turning on the first device is to control the first device to enter the operating state from the standby state. When the first device is in a standby state, the first device is powered on but does not play video or television programs. The first device can play video or television programs when in the working state. The device information comprises a physical address of the first device, and the control device sends a wake-up instruction to the first device based on the physical address to start the first device. Starting the first device through the wakeup command may be implemented by adopting a boot wakeup function in the STR state, and many products support this function at present. The second device is a display device before switching corresponding to the control device, namely the display device corresponding to the second device detected by the control device last time.
In this embodiment of the present invention, the first device may also be in an operating state, and in order to avoid sending a wake-up instruction to the first device in the operating state, the control device may first determine whether the first device is in a standby state. When the first device is in a standby state, starting the first device based on the device information; when the first device is not in a standby state, skipping: a step of turning on the first device based on the device information. In the embodiment of the present invention, whether the first device is in a standby state may be determined by using the heartbeat packet corresponding to the first device.
For example, in the above example, the control apparatus stores therein: the display device v1 corresponding to the control device acquired at the first moment, the display device v1 corresponding to the control device acquired at the second moment, and the display device v2 corresponding to the control device acquired at the third moment, and if the display device corresponding to the control device is judged to be switched, the first device is v 2. It is understood that v2 is the first device (display device after switching) and v1 is the second device (display device before switching).
In the embodiment of the invention, a second heartbeat packet corresponding to a second device is obtained, and the playing information is determined according to the second heartbeat packet. For example, the user watches the video 1 through the second device in the living room, and after moving from the living room to the study room, the user starts the first device in the study room and obtains the playing information corresponding to the second device, that is, the information corresponding to the video 1.
S4, sending the playing information to the first equipment, so that the first equipment plays videos according to the playing information.
In this embodiment of the present invention, the playing information includes: the method includes the steps that a video address and a playing breakpoint are obtained, namely, the control device sends the video address and the playing breakpoint to a first device, so that the first device obtains a video based on the video address and starts playing the video from the playing breakpoint.
In the embodiment of the present invention, the video address may be a network address, and the first device may search for a video corresponding to the video address; the playing breakpoint may be represented by time, for example, 1 minute and 30 seconds, and represents that when the playing information is acquired, the second device plays the video for 1 minute and 30 seconds. And the first equipment adjusts the starting time of playing the searched video to the playing breakpoint to start playing. For example, the start time of playing the searched video is positioned to 1 minute and 30 seconds, and the playing is started.
For example, a user watches the video 1 through the second device in the living room, the user moves from the living room to the study room, and the display device corresponding to the control device is switched to the first device in the study room; the control device starts the first device, acquires playing information corresponding to the video 1 played by the second device, and obtains a playing breakpoint corresponding to the video 1: t (the playing time length corresponding to the video 1 during acquisition) and the video address corresponding to the video 1; the control device sends the video address and the play break to the first device. And the first equipment starts playing from the playing time t of the video 1 according to the received video address and the playing breakpoint, so that the user can continuously watch the video 1 in the study.
In the embodiment of the present invention, after step S4, the method further includes:
and S5, sending a stop instruction to the second equipment, so that the second equipment stops playing the video according to the stop instruction.
In the embodiment of the present invention, the stop instruction may be sent immediately after the control device acquires the playing information of the second device, or may be sent after the control device determines that the first device successfully plays the video. And the second equipment plays the video according to the stop.
In the embodiment of the invention, the control equipment detects the display equipment corresponding to the control equipment; when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment; starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device; and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information. When the position area of the control equipment is switched, the playing information of the second display equipment in the position area before switching is acquired, and the playing information is sent to the first display equipment in the position area after switching, so that the first display equipment continuously displays the video played by the second display equipment.
Based on the foregoing method for switching between playing of display devices, an embodiment of the present invention further provides a control device, with reference to fig. 3, including:
the display equipment detection unit is used for detecting display equipment corresponding to the control equipment;
the device information determining unit is used for determining device information of first devices when display devices corresponding to the control devices are switched, wherein the first devices are switched display devices corresponding to the control devices;
a playing information determining unit, configured to start the first device based on the device information, and determine playing information of a second device, where the second device is a display device before switching corresponding to the control device;
and the playing information sending unit is used for sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
Based on the above method for switching the display device, an embodiment of the present invention further provides a computer device, where the computer device may be a terminal, and an internal structure of the computer device is shown in fig. 4. The computer device comprises a processor, a memory, a network interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a play switching method of a display device. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the illustration in fig. 4 is merely a block diagram of a portion of the structure associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The embodiment of the invention provides computer equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to realize the following steps:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the following steps:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (13)

1. A playing switching method of a display device is applied to a control device and is characterized by comprising the following steps:
detecting display equipment corresponding to the control equipment;
when the display equipment corresponding to the control equipment is switched, determining equipment information of first equipment, wherein the first equipment is the switched display equipment corresponding to the control equipment;
starting the first device based on the device information, and determining playing information of a second device, wherein the second device is a display device before switching corresponding to the control device;
and sending the playing information to the first equipment so that the first equipment plays the video according to the playing information.
2. The method for switching between playing of display devices according to claim 1, wherein the detecting the display device corresponding to the control device specifically includes:
acquiring first position information of the control equipment and monitoring a plurality of heartbeat packets, wherein the heartbeat packets are data packets sent by display equipment in communication connection with the control equipment and are used for reflecting the running state of the display equipment sending the heartbeat packets;
and determining display equipment corresponding to the control equipment according to the first position information and the heartbeat packets.
3. The method for switching between playing of display devices according to claim 2, wherein the determining the display device corresponding to the control device according to the first location information and the plurality of heartbeat packets specifically includes:
acquiring second position information corresponding to the plurality of heartbeat packets respectively;
determining a target heartbeat packet according to second position information corresponding to the plurality of heartbeat packets, wherein the distance between the second position information corresponding to the target heartbeat packet and the first position information is minimum;
and taking the display equipment corresponding to the target heartbeat packet as the display equipment corresponding to the control equipment.
4. The method for switching between playing of display devices according to claim 2, wherein the determining the display device corresponding to the control device according to the first location information and the plurality of heartbeat packets specifically includes:
determining a target area set corresponding to the first position information according to a plurality of preset position area sets;
acquiring second position information corresponding to the plurality of heartbeat packets;
determining a target heartbeat packet according to second position information corresponding to the plurality of heartbeat packets, wherein the second position information corresponding to the target heartbeat packet belongs to the target area set;
and taking the display equipment corresponding to the target heartbeat packet as the display equipment corresponding to the control equipment.
5. The method for switching between playing of display devices according to claim 1, wherein the determining the device information of the first device when the display device corresponding to the control device is switched includes:
when the display equipment corresponding to the control equipment is switched, acquiring a first heartbeat packet corresponding to first equipment;
and determining equipment information according to the first heartbeat packet.
6. The method for switching between playing of display devices according to claim 1, wherein the determining the playing information of the second device specifically includes:
and acquiring a second heartbeat packet corresponding to the second equipment, and determining playing information according to the second heartbeat packet.
7. The playback switching method for a display device according to claim 1, wherein the playback information includes: video addresses and playback breakpoints; the sending the playing information to the first device so that the first device plays the video according to the playing information specifically includes:
and sending the video address and the playing breakpoint to the first device, so that the first device acquires a video based on the video address and starts playing the video from the playing breakpoint.
8. The method for switching between playing of display devices according to any one of claims 1 to 7, wherein before determining the device information of the first device when the display device corresponding to the control device is switched, the method further comprises:
executing an obtaining operation at preset time intervals to obtain display equipment corresponding to the control equipment per se;
when the obtaining operation is not executed for the first time, obtaining the history display equipment obtained by executing the obtaining operation for the last time, wherein the executing for the first time is executed for the first time after the display equipment corresponding to the control equipment starts to be detected;
and if the display equipment corresponding to the control equipment is different from the historical display equipment, judging that the display equipment corresponding to the control equipment is switched.
9. The method for switching between playing of display devices according to any of claims 1 to 7, wherein before detecting the display device corresponding to the control device itself, the method further comprises:
receiving a following instruction;
and responding to the following instruction, acquiring the position information of the user, and moving according to the position information of the user.
10. The method for switching between playing of display devices according to any of claims 1 to 7, wherein after sending the playing information to the first device, the method further comprises:
and sending a stop instruction to the second equipment so that the second equipment stops playing the video according to the stop instruction.
11. A control apparatus, characterized by comprising:
the display equipment detection unit is used for detecting display equipment corresponding to the control equipment;
the device information determining unit is used for determining device information of first devices when display devices corresponding to the control devices are switched, wherein the first devices are switched display devices corresponding to the control devices;
a playing information determining unit, configured to start the first device based on the device information, and determine playing information of a second device, where the second device is a display device before switching corresponding to the control device;
and the playing information sending unit is used for sending the playing information to the first equipment so as to enable the first equipment to play the video according to the playing information.
12. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the playback switching method for a display device according to any one of claims 1 to 10 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the play switching method of the display device according to any one of claims 1 to 10.
CN202011231061.0A 2020-11-06 2020-11-06 Play switching method of display equipment and computer equipment Pending CN114449350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011231061.0A CN114449350A (en) 2020-11-06 2020-11-06 Play switching method of display equipment and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011231061.0A CN114449350A (en) 2020-11-06 2020-11-06 Play switching method of display equipment and computer equipment

Publications (1)

Publication Number Publication Date
CN114449350A true CN114449350A (en) 2022-05-06

Family

ID=81362154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011231061.0A Pending CN114449350A (en) 2020-11-06 2020-11-06 Play switching method of display equipment and computer equipment

Country Status (1)

Country Link
CN (1) CN114449350A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103729411A (en) * 2013-12-09 2014-04-16 乐视网信息技术(北京)股份有限公司 Method for transmitting multimedia file, server and electronic device
CN104616675A (en) * 2013-11-05 2015-05-13 华为终端有限公司 Method for switching playing equipment and mobile terminal
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
CN105578229A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Electronic equipment control method and device
CN105872628A (en) * 2015-12-29 2016-08-17 乐视网信息技术(北京)股份有限公司 Multi-screen switching method, server and terminal
CN106792074A (en) * 2016-12-29 2017-05-31 北京小米移动软件有限公司 Intelligent television control method and device
CN108322674A (en) * 2018-01-25 2018-07-24 上海康斐信息技术有限公司 A kind of method and system that video switching is launched
CN108513174A (en) * 2018-03-30 2018-09-07 合肥联宝信息技术有限公司 A kind of information processing method and electronic equipment
CN111246306A (en) * 2020-03-09 2020-06-05 歌尔科技有限公司 Playing control method, playing equipment switching method, playing equipment and intelligent terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104616675A (en) * 2013-11-05 2015-05-13 华为终端有限公司 Method for switching playing equipment and mobile terminal
CN103729411A (en) * 2013-12-09 2014-04-16 乐视网信息技术(北京)股份有限公司 Method for transmitting multimedia file, server and electronic device
CN104853235A (en) * 2015-05-12 2015-08-19 西安诺瓦电子科技有限公司 Method for interacting with display screen terminal
CN105578229A (en) * 2015-12-15 2016-05-11 小米科技有限责任公司 Electronic equipment control method and device
CN105872628A (en) * 2015-12-29 2016-08-17 乐视网信息技术(北京)股份有限公司 Multi-screen switching method, server and terminal
CN106792074A (en) * 2016-12-29 2017-05-31 北京小米移动软件有限公司 Intelligent television control method and device
CN108322674A (en) * 2018-01-25 2018-07-24 上海康斐信息技术有限公司 A kind of method and system that video switching is launched
CN108513174A (en) * 2018-03-30 2018-09-07 合肥联宝信息技术有限公司 A kind of information processing method and electronic equipment
CN111246306A (en) * 2020-03-09 2020-06-05 歌尔科技有限公司 Playing control method, playing equipment switching method, playing equipment and intelligent terminal

Similar Documents

Publication Publication Date Title
KR101920020B1 (en) Status Change Control Method and Electronic Device supporting the same
CN110537165B (en) Display method and device
CN117331427A (en) Frame rate adjustment method, device, equipment and computer readable storage medium
CN107786827B (en) Video shooting method, video playing method and device and mobile terminal
CN107832689B (en) Fingerprint identification method and mobile terminal
CN108616775B (en) Method and device for intelligently capturing picture during video playing, storage medium and intelligent terminal
CN109922265B (en) Video shooting method and terminal equipment
CN103873959A (en) Control method and electronic device
CN106412291A (en) Equipment control method and mobile terminal
CN109922294B (en) Video processing method and mobile terminal
CN110784652A (en) Video shooting method and device, electronic equipment and storage medium
CN111656313A (en) Screen display switching method, display device and movable platform
CN110650294A (en) Video shooting method, mobile terminal and readable storage medium
WO2021073187A1 (en) Television and television control method and control device thereof, and readable storage medium
CN109618218B (en) Video processing method and mobile terminal
WO2017008574A2 (en) Display control method and apparatus
WO2016110752A1 (en) Control method and control apparatus for electronic equipment and electronic equipment
CN112148579A (en) User interface testing method and device
CN110460894A (en) A kind of video image display method and terminal device
CN108762877A (en) A kind of control method and mobile terminal of interface of mobile terminal
CN108718395B (en) Segmented video recording method and automobile data recorder
CN114025242A (en) Video processing method, video processing device and electronic equipment
CN106681632A (en) Projection control method, device and system, terminal device and display device
CN114449350A (en) Play switching method of display equipment and computer equipment
US20230384868A1 (en) Display apparatus

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