CN111541913B - Video playing method and device of spliced screen, computer equipment and medium - Google Patents

Video playing method and device of spliced screen, computer equipment and medium Download PDF

Info

Publication number
CN111541913B
CN111541913B CN202010398597.5A CN202010398597A CN111541913B CN 111541913 B CN111541913 B CN 111541913B CN 202010398597 A CN202010398597 A CN 202010398597A CN 111541913 B CN111541913 B CN 111541913B
Authority
CN
China
Prior art keywords
terminal device
terminal
message
video
screen
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
Application number
CN202010398597.5A
Other languages
Chinese (zh)
Other versions
CN111541913A (en
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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202010398597.5A priority Critical patent/CN111541913B/en
Publication of CN111541913A publication Critical patent/CN111541913A/en
Application granted granted Critical
Publication of CN111541913B publication Critical patent/CN111541913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams, manipulating MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • 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/4508Management of client data or end-user data
    • H04N21/4516Management of client data or end-user data involving client characteristics, e.g. Set-Top-Box type, software version or amount of memory available
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Abstract

The invention discloses a video playing method, a video playing device, a storage medium and computer equipment of a spliced screen, wherein the video playing method comprises the following steps: the method comprises the steps that a server divides a video to be played into at least one piece of video data and pushes video downloading information to topics subscribed by terminal equipment corresponding to each sub-screen of a spliced screen according to an MQTT protocol, wherein the video downloading information comprises terminal identification of the terminal equipment and a downloading address corresponding to the terminal equipment, so that the terminal equipment with the terminal identification downloads the corresponding video data according to the downloading address; and receiving download confirmation messages sent by the terminal equipment through an MQTT message queue, and pushing video playing messages to topics subscribed by the terminal equipment according to an MQTT protocol, wherein the video playing messages comprise terminal identifications of the terminal equipment, so that the terminal equipment with the terminal identifications controls corresponding sub-screens to play video data according to the video playing messages. The embodiment has the characteristics of simple operation and convenient use.

Description

Video playing method and device of spliced screen, computer equipment and medium
Technical Field
The invention relates to the technical field of display, in particular to a video playing method, a video playing device, a storage medium and computer equipment of a spliced screen.
Background
With the development of display technology, more and more users use display screens to publish information, and many users select to use a spliced screen formed by splicing a plurality of sub-screens for display due to the high cost of the large-size display screen, the common splicing mode is 2 × 2, 2 × 3, 3 × 4 and the like, and the larger the total number is, the more the video output lines are. In the prior art, a single video splicer is usually used to control each sub-screen of a spliced screen, and the video splicer is provided with a video input and a plurality of video outputs, for example, for a spliced screen in a splicing mode 2 × 2, a one-in four-out video splicer is used to control each sub-screen of the spliced screen. However, the method for controlling the tiled display screen by using the dedicated hardware has the problems of complex installation and complex control, and particularly, the problem is particularly prominent when the display content is frequently changed, so that how to control the tiled display screen conveniently and quickly becomes a problem to be solved urgently by technical personnel in the field.
Disclosure of Invention
In order to solve at least one of the above problems, a first embodiment of the present invention provides a video playing method for a mosaic screen, which is applied to a server, and includes:
segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by terminal equipment corresponding to each sub-screen of a spliced screen according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal equipment and a downloading address corresponding to the terminal identifier, so that the terminal equipment with the terminal identifier downloads the corresponding video data according to the downloading address;
receiving a download confirmation message sent by each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device;
and pushing the video playing message to the topic subscribed by each terminal device according to an MQTT protocol, wherein the video playing message comprises the terminal identifier of the terminal device, so that the terminal device with the terminal identifier controls the corresponding sub-screen to play the video data according to the video playing message.
Further, in the above-mentioned case,
the download confirmation message further includes terminal performance data of the terminal device, the terminal performance data includes a terminal address and load data representing processing performance of the terminal device, and the video playing method further includes:
setting one terminal device as a main terminal device and other terminal devices as auxiliary terminal devices according to the load data;
the pushing of the video playing message to the topics subscribed by each terminal device according to the MQTT protocol includes the terminal identifier of the terminal device, so that the step of controlling the corresponding sub-screen to play the video data by the terminal device having the terminal identifier according to the video playing message further includes:
the video playing message also comprises terminal identity data of the master terminal device, so that the master terminal device sends a playing control message to the slave terminal device according to the video playing message to enable each terminal device to control the corresponding sub-screen to play the video data of the sub-screen, the master terminal device and the slave terminal device are connected through a TCP (transmission control protocol) or a UDP (user datagram protocol), and the terminal identity data comprises a terminal identifier and a terminal address of the master terminal device.
Further, in the above-mentioned case,
after the video playing message is pushed to the topics subscribed by each terminal device according to the MQTT protocol and includes the terminal identifier of the terminal device, so that the terminal device having the terminal identifier controls the corresponding sub-screen to play the video data thereof according to the video playing message, the video playing method further includes:
receiving the playing feedback message sent by each terminal device in real time through an MQTT message queue, and outputting prompt information according to the playing feedback message, wherein the playing feedback message comprises a terminal identifier of each terminal device, a played data frame and a timestamp corresponding to the data frame.
Further, in the above-mentioned case,
before the video to be played is segmented into at least one piece of video data according to the preset segmentation quantity and the segmentation layout, and the video downloading message is pushed to the topics subscribed by the terminal equipment corresponding to each sub-screen of the spliced screen according to the MQTT protocol, the video playing method further includes:
setting the segmentation quantity and the segmentation layout according to the quantity and the layout of the sub-screens included in the spliced screen;
or
And selecting at least one sub-screen of the spliced screen according to the video to be played and setting the segmentation quantity and the segmentation layout according to each selected sub-screen.
A second embodiment of the present invention provides a video playing method for a mosaic screen, which is applied to a terminal device corresponding to each sub-screen of the mosaic screen, and includes:
receiving a video downloading message pushed by a server according to an MQTT protocol according to a subscribed theme and downloading corresponding video data according to the video downloading message, wherein the video data is obtained by segmenting a video to be played by the server according to a preset segmentation quantity and a segmentation layout, and the video downloading message comprises a terminal identifier of the terminal equipment and a downloading address for downloading the video data;
sending a download confirmation message to an MQTT message queue of the server, wherein the download confirmation message comprises a terminal identifier of the terminal equipment;
and receiving a video playing message pushed by the server according to the MQTT protocol according to the subscribed theme and controlling the corresponding sub-screen to play the video data according to the video playing message.
Further, in the above-mentioned case,
the download confirmation message also comprises terminal performance data of the terminal equipment, and the terminal performance data comprises a terminal address and load data representing the processing performance of the terminal equipment, so that the server sets one terminal equipment as a main terminal equipment and other terminal equipment as slave terminal equipment according to the load data;
the receiving of the video playing message pushed by the server according to the MQTT protocol according to the subscribed topic and the controlling of the corresponding sub-screen to play the video data according to the video playing message further include:
the video playing message further includes terminal identity data of the main terminal device, the terminal identity data includes a terminal identifier and a terminal address of the main terminal device, if the terminal identifier of the terminal device is the same as the terminal identifier of the main terminal device, the terminal device is the main terminal device, then:
sending a play control message to the slave terminal device according to the video play message so that each terminal device controls the corresponding sub-screen to play video data of the terminal device, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol);
and sending a play synchronization message to the slave terminal equipment according to a preset first time interval, wherein the play synchronization message comprises a data frame played by the master terminal equipment and a timestamp corresponding to the data frame, so that the slave terminal equipment synchronizes the locally played data frame according to the data frame and the timestamp.
Further, in the above-mentioned case,
the download confirmation message also comprises terminal performance data of the terminal equipment, and the terminal performance data comprises a terminal address and load data representing the processing performance of the terminal equipment, so that the server sets one terminal equipment as a main terminal equipment and other terminal equipment as slave terminal equipment according to the load data;
the receiving of the video playing message pushed by the server according to the MQTT protocol according to the subscribed topic and the controlling of the corresponding sub-screen to play the video data according to the video playing message further include:
the video playing message further includes terminal identity data of the master terminal device, the terminal identity data further includes a terminal identifier and a terminal address of the master terminal device, if the terminal identifier of the terminal device is different from the terminal identifier of the master terminal device, the terminal device is the slave terminal device, then:
receiving a play control message sent by the master terminal device and controlling a corresponding sub-screen to play video data thereof according to the play control message, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol);
receiving a play synchronization message sent by the main terminal device, wherein the play synchronization message comprises a data frame played by the main terminal device and a timestamp corresponding to the data frame;
and synchronizing the locally played data frame according to the data frame and the time stamp.
Further, in the above-mentioned case,
after the receiving server receives the video playing message pushed by the subscribed theme according to the MQTT protocol and controls the corresponding sub-screen to play the video data according to the video playing message, the video playing method further comprises the following steps:
and sending a play feedback message to an MQTT message queue of the server according to a preset second time interval, wherein the play feedback message comprises a terminal identifier of each terminal device, a played data frame and a timestamp corresponding to the data frame, so that the server outputs prompt information according to the play feedback message.
The third embodiment of the invention provides a video playing device of a spliced screen, which comprises a server and terminal equipment respectively arranged on each sub-screen of the spliced screen, wherein the server comprises an MQTT message queue and a control center, and the terminal equipment comprises a controller, a first communication module and a player;
the control center is configured to:
segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by each terminal device according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that a controller of the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address;
receiving a download confirmation message sent by a first communication module of each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device;
and pushing a video playing message to a theme subscribed by each terminal device according to an MQTT protocol, wherein the video playing message comprises a terminal identifier of the terminal device, so that a player of the terminal device with the terminal identifier controls a corresponding sub-screen to play video data of the sub-screen according to the video playing message.
Further, in the above-mentioned case,
the terminal device further comprises a second communication module, and the control center is further configured to:
setting a terminal device as a main terminal device and other terminal devices as slave terminal devices according to the load data of the terminal performance data of the terminal device, which is included in the download confirmation message;
the video playing message is pushed to a theme subscribed by each terminal device according to an MQTT protocol, the video playing message further comprises terminal identity data of the master terminal device, so that the master terminal device sends a playing control message to the slave terminal device through a second communication module according to the video playing message, a controller of each terminal device controls a corresponding sub-screen to play video data of the terminal device according to the playing control message, the master terminal device and the slave terminal device are connected through a TCP (transmission control protocol) protocol or a UDP (user datagram protocol), and the terminal identity data comprises a terminal identifier and a terminal address of the master terminal device.
A fourth embodiment of the present invention provides a computer-readable storage medium, having a computer program stored thereon,
which program, when executed by a processor, carries out the method according to the first embodiment;
or
Which when executed by a processor implements the method as described in the first embodiment.
A fifth embodiment of the invention provides a computer apparatus comprising a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implements the method as described in the first embodiment;
or
The processor, when executing the program, implements the method as described in the first embodiment.
The invention has the following beneficial effects:
the invention aims at the existing problems, establishes a video playing method, a video playing device, a storage medium and computer equipment of a spliced screen, realizes the playing control of each sub-screen through a server and terminal equipment arranged on each sub-screen of the spliced screen, and particularly segments a video by the server and controls each terminal equipment through an MQTT message queue to realize the playing control of each sub-screen. The embodiment provided by the invention has the characteristics of simple operation and convenience in use, effectively solves the problems in the prior art, can obviously improve the control efficiency of the spliced screen, and has wide application prospect.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 shows a flow chart of a video playing method according to an embodiment of the invention;
FIG. 2 illustrates an application scenario diagram of one embodiment of the present invention;
FIG. 3 shows a swim lane diagram of a video playback method according to an embodiment of the invention;
FIG. 4 is a swim lane diagram illustrating a video playback method according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a video playing method according to another embodiment of the present invention;
fig. 6 is a block diagram of a video playback device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to another embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the invention, the invention is further described below with reference to preferred embodiments and the accompanying drawings. Similar components in the figures are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and is not to be taken as limiting the scope of the invention.
As shown in fig. 1, an embodiment of the present invention provides a video playing method applied to a mosaic screen of a server, including: segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by a terminal device corresponding to each sub-screen of a spliced screen according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address; receiving a download confirmation message sent by each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device; and pushing the video playing message to the topic subscribed by each terminal device according to an MQTT protocol, wherein the video playing message comprises the terminal identifier of the terminal device, so that the terminal device with the terminal identifier controls the corresponding sub-screen to play the video data according to the video playing message.
In this embodiment, the playing control of each sub-screen is realized through the server and the terminal devices arranged on each sub-screen of the spliced screen, specifically, the server completes the segmentation of the video to be played, and the MQTT message queue of the server communicates with each terminal device, thereby realizing the playing control of each sub-screen. Compare in using the hardware control device of video splicer among the prior art, this embodiment has characteristics such as easy operation, convenient to use, can compensate to have among the prior art that the installation is complicated, control loaded down with trivial details problem, effectively improves the control efficiency of concatenation screen, has extensive application prospect.
In a specific example, as shown in fig. 2, the application scenario diagram of this example is shown, the tiled screen includes 2 × 2 tiled sub-screens 10, 11, 12, and 13, each sub-screen is provided with a terminal device corresponding to the sub-screen, where the sub-screen 10 corresponds to the terminal device 20, the sub-screen 11 corresponds to the terminal device 21, the sub-screen 12 corresponds to the terminal device 22, and the sub-screen 13 corresponds to the terminal device 23, and each terminal device is respectively connected to the server 30 to implement communication with the server.
As shown in fig. 3, the specific video playing method includes:
s1, a server segments a video to be played. Specifically, the server segments the video to be played into at least one video data according to the preset segmentation quantity and segmentation layout.
In this embodiment, the spliced screen includes 4 sub-screens in a 2 × 2 layout, the number of the segments is 4, the segment layout is 2 × 2, and the server segments the video to be played into 4 pieces of video data in 2 × 2.
It should be noted that, the number and the layout mode of the mosaic screens are not limited in the present application, and a person skilled in the art should set the segmentation number according to the actual application requirement to satisfy the playing of the video to be played.
In an optional embodiment, the server sets the splitting number and the splitting layout according to the number and the layout of the sub-screens included in the mosaic screen.
In this embodiment, the splitting number and the splitting layout are set according to the number and the layout of the sub-screens of the actual spliced screen, for example, if the spliced screen of this embodiment includes 2 × 2 sub-screens, the splitting number is 4 splitting layouts and is 2 × 2, the server splits the video to be played into 4 pieces of video data of 2 × 2 according to the layout mode of the spliced screen, and each piece of video data corresponds to a different sub-screen. For another example, the mosaic screen includes 1 × 4 sub-screens, the segmentation number is 4, the segmentation layout is 1 × 4, and the server segments the video to be played into 4 pieces of video data of 1 × 4 according to the layout mode of the mosaic screen. The embodiment can segment the video according to the number and the layout of the sub-screens included in the spliced screen to realize the playing of the video on the sub-screens.
In consideration of the fact that videos to be played in different sizes exist, in an optional embodiment, the server selects at least one sub-screen of the mosaic screen according to the videos to be played and sets the segmentation number and the segmentation layout according to the selected sub-screens.
In this embodiment, according to the sub-screen required by the video to be played, for example, the video to be played is displayed on 9: 16 vertical screens can select spliced screens with layouts of 2 x 2, 2 x 3 or 3 x 3 and the like, or select partial sub-screens in the spliced screens; for another example, if the video to be played is a banner advertisement video, a spliced screen with a layout of 1 × 4, 1 × 8, or the like, or a partial sub-screen in the spliced screen may be selected. The embodiment can set the segmentation quantity and the segmentation layout according to the video content which needs to be played in practice so as to play different videos.
S2, the server pushes the video downloading message to the terminal equipment. Specifically, the server pushes a video downloading message to a theme subscribed by the terminal device corresponding to each sub-screen of the spliced screen according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier.
In this embodiment, the server stores the segmented video data, and respectively pushes the video download message containing the terminal identifier of the terminal device and the storage address of the video data corresponding to the terminal device to the topic subscribed by the terminal device through the MQTT protocol, so as to send the video download message to each terminal device. In this embodiment, the terminal identifier is used to uniquely represent the terminal device, and may be an MAC address of a network card of the terminal device, or other preset numbers that are in one-to-one correspondence with each sub-screen of the mosaic screen.
In an optional embodiment, the server uploads the segmented video data to a media server for storage, the download address is an address of the media server for storing the video data, and the media server may be a common server or a cloud server, which is not limited in this application.
And S3, the terminal equipment downloads the video data. Specifically, the terminal device downloads the corresponding video data according to the received video download message.
In this embodiment, the terminal device receives a video download message including a terminal identifier thereof through a subscribed topic, and downloads corresponding video data from the server according to a download address in the video download message.
And S4, the terminal equipment sends a download confirmation message. Specifically, the terminal device sends a download confirmation message to an MQTT message queue of the server, where the download confirmation message includes a terminal identifier of the terminal device.
In this embodiment, the terminal device sends a download confirmation message including a terminal identifier to an MQTT message queue of the server after downloading the video data.
And S5, the server pushes the video playing message. Specifically, the server pushes a video playing message to a topic subscribed by each terminal device according to an MQTT protocol, where the video playing message includes a terminal identifier of the terminal device.
In this embodiment, the server respectively pushes the video playing message including the terminal identifier to the topic subscribed by each terminal device according to the MQTT protocol, so as to send the video playing message to each terminal device.
And S6, the terminal equipment plays video data. Specifically, the terminal device receives a video playing message pushed by the server according to the MQTT protocol according to a subscribed theme and controls the corresponding sub-screen to play the video data according to the video playing message.
In this embodiment, each terminal device receives the video playing message and controls the corresponding sub-screen to play the video data thereof according to the video playing message, that is, the server controls each terminal device through the MQTT protocol, thereby realizing the playing control of each sub-screen of the spliced screen.
In view of further improving the playing effect of each sub-screen of the mosaic screen, in an optional embodiment, the download confirmation message further includes terminal performance data of the terminal device, where the terminal performance data includes a terminal address and load data representing the processing performance of the terminal device, and the video playing method further includes: setting one terminal device as a main terminal device and other terminal devices as auxiliary terminal devices according to the load data; the pushing of the video playing message to the topics subscribed by each terminal device according to the MQTT protocol includes the terminal identifier of the terminal device, so that the step of controlling the corresponding sub-screen to play the video data by the terminal device having the terminal identifier according to the video playing message further includes: the video playing message also comprises terminal identity data of the main terminal device, so that the main terminal device sends a playing control message to the slave terminal device according to the video playing message to enable each terminal device to control the corresponding sub-screen to play the video data of the sub-screen, the main terminal device and the slave terminal device are connected through a TCP protocol or a UDP protocol, and the terminal identity data comprises a terminal identifier and a terminal address of the main terminal device.
In this embodiment, the performance of each terminal device is evaluated according to the load data of each terminal device, the terminal device with the best performance is selected as the master terminal device, the other terminal devices are selected as the slave terminal devices, and the slave terminal devices are controlled by the master terminal device to play videos so as to achieve better playing synchronization.
In a specific example, still taking the sub-screens 10, 11, 12, and 13 in the 2 × 2 splicing manner shown in fig. 2 as an example, each sub-screen is provided with a terminal device corresponding to the sub-screen, where the sub-screen 10 corresponds to the terminal device 20, the sub-screen 11 corresponds to the terminal device 21, the sub-screen 12 corresponds to the terminal device 22, and the sub-screen 13 corresponds to the terminal device 23; wherein terminal device 20 is the master terminal device. As shown in fig. 4, the method specifically includes:
s1, a server segments a video to be played.
S2, the server pushes the video downloading message to the terminal equipment.
And S3, the terminal equipment downloads the video data.
The specific implementation process is detailed in the foregoing embodiment.
And S4, the terminal equipment sends a download confirmation message.
In this embodiment, the download confirmation message further includes terminal performance data of the terminal device, where the terminal performance data includes a terminal address and load data representing processing performance of the terminal device. Each terminal device is connected through a TCP protocol or a UDP protocol to form an intranet, and the terminal address is the intranet IP address of each terminal device and is used for communication among the terminal devices; the load data is used for representing the performance of the terminal device, and the load data is not specifically limited in the application and can be the size and the residual amount of the memory, the size and the residual amount of the CPU, the network speed or other indexes of the terminal device.
And S20, the server sets one terminal device as a main terminal device according to the load data, and other terminal devices are slave terminal devices.
In this embodiment, the server selects a terminal device with the best performance as a master terminal device according to the load data of each terminal device, so as to control other slave terminal devices. It should be noted that, in the present application, the selection criteria of the main terminal device is not limited, and the performance data of each terminal device may be static data or dynamic data, and those skilled in the art should perform setting according to actual application requirements, which is not described herein again.
And S21, the server pushes the video playing message.
In this embodiment, the video playing message further includes terminal identity data of the main terminal device, and the terminal identity data further includes a terminal identifier and a terminal address of the main terminal device, so that each received terminal device can confirm its identity according to the video playing message.
And S22, each terminal device sets an identity.
In the present embodiment, for convenience of explanation, the terminal device 20 is set as a master terminal device, and the other terminal devices 21, 22, and 23 are slave terminal devices.
And S23, the master terminal equipment sends the play control message to the slave terminal equipment.
In this embodiment, a master terminal device communicates with each slave terminal device through a TCP protocol or a UDP protocol, and the master terminal device sends a play control message to the slave terminal device according to the video play message.
And S24, playing the video data by each terminal device.
In this embodiment, each slave terminal device receives a play control message, and the master terminal device and the slave terminal device respectively control the corresponding sub-screen to play video data of the slave terminal device.
In order to further improve the playing effect of each sub-screen, in an optional embodiment, the master terminal device sends a playing synchronization message to the slave terminal device according to a preset first time interval, where the playing synchronization message includes a data frame played by the master terminal device and a timestamp corresponding to the data frame, so that the slave terminal device synchronizes the locally played data frame according to the data frame and the timestamp. Specifically, the method comprises the following steps:
and S25, the master terminal equipment sends a playing synchronization message to the slave terminal equipment.
In this embodiment, a master terminal device sends a play synchronization message to each slave terminal device through a TCP protocol or a UDP protocol according to a preset first time interval, where the first time interval is 1 second, and the play synchronization message includes a data frame played by the master terminal device and a timestamp corresponding to the data frame.
And S26, the slave terminal equipment adjusts the playing of the video data.
In this embodiment, the slave terminal device receives the play synchronization message, and adjusts its play progress according to the data frame played by the master terminal device in the play synchronization message and the corresponding timestamp to synchronize with the master terminal device, thereby implementing the play synchronization of each terminal device, and effectively improving the play effect of each sub-screen of the mosaic screen.
In an optional embodiment, after the pushing a video playing message to a topic subscribed by each terminal device according to an MQTT protocol, where the video playing message includes a terminal identifier of the terminal device, so that the terminal device having the terminal identifier controls a corresponding sub-screen to play video data thereof according to the video playing message, the video playing method further includes: receiving the playing feedback message sent by each terminal device in real time through an MQTT message queue, and outputting prompt information according to the playing feedback message, wherein the playing feedback message comprises a terminal identifier of each terminal device, a played data frame and a timestamp corresponding to the data frame.
In this embodiment, the server monitors the playing progress of each sub-screen of the mosaic screen through the playing feedback message received in real time, when the playing progress difference of each sub-screen is greater than a preset playing threshold, the server determines that there is a delay in the playing progress between each sub-screen of the mosaic screen, which affects the playing effect of the video, and the server outputs a prompt message to prompt the user. Specifically, the method comprises the following steps:
and S27, each terminal device sends a play feedback message to the server.
In this embodiment, each terminal device sends a play feedback message to an MQTT message queue of a server according to a preset second time interval, where the second time interval is 3 seconds, and the play feedback message includes a terminal identifier of each terminal device, a played data frame, and a timestamp corresponding to the data frame.
And S28, the server outputs prompt information.
In this embodiment, the server receives, in real time, the play feedback messages sent by each terminal device through an MQTT message queue, the server obtains the play progress of each terminal device according to the terminal identifier of each play feedback message, the played data frame, and the timestamp corresponding to the data frame, and determines whether the video played by each sub-screen of the mosaic screen is asynchronous according to the play progress of each terminal device, and if the play progress difference of each sub-screen is greater than a preset play threshold, the server determines that the play progress between the sub-screens of the mosaic screen is delayed, and outputs a prompt message to prompt the user.
And controlling the video playing of the spliced screen.
As shown in fig. 5, an embodiment of the present invention provides a video playing method applied to a mosaic screen of each terminal device, including: receiving a video downloading message pushed by a server according to an MQTT protocol according to a subscribed theme and downloading corresponding video data according to the video downloading message, wherein the video data is obtained by segmenting a video to be played by the server according to a preset segmentation quantity and a segmentation layout, and the video downloading message comprises a terminal identifier of the terminal equipment and a downloading address for downloading the video data; sending a download confirmation message to an MQTT message queue of the server, wherein the download confirmation message comprises a terminal identifier of terminal equipment; and receiving a video playing message pushed by the server according to the MQTT protocol according to the subscribed theme and controlling the corresponding sub-screen to play the video data according to the video playing message.
In this embodiment, the playing control of each sub-screen is realized through the server and the terminal devices arranged on each sub-screen of the spliced screen, specifically, the segmentation of the video to be played is completed through the server, and meanwhile, the MQTT message queue of the server is communicated with each terminal device to realize the playing control of each sub-screen. The detailed description of the specific embodiments is given in the foregoing embodiments, and will not be repeated herein. Compared with a hardware control device using a video splicer in the prior art, the video splicer has the advantages of being simple in operation, convenient to use and the like, can solve the problems of complex installation and complex control in the prior art, effectively improves the control efficiency of a spliced screen, and has wide application prospect.
In an optional embodiment, the download confirmation message further includes terminal performance data of the terminal device, where the terminal performance data includes a terminal address and load data representing processing performance of the terminal device, so that the server sets one terminal device as a master terminal device according to the load data, and other terminal devices are slave terminal devices; the receiving of the video playing message pushed by the server according to the MQTT protocol according to the subscribed topic and the controlling of the corresponding sub-screen to play the video data according to the video playing message further include: the video playing message further includes terminal identity data of the main terminal device, the terminal identity data includes a terminal identifier and a terminal address of the main terminal device, if the terminal identifier of the terminal device is the same as the terminal identifier of the main terminal device, the terminal device is the main terminal device, then: sending a play control message to the slave terminal device according to the video play message so that each terminal device controls the corresponding sub-screen to play video data of the terminal device, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol); and sending a play synchronization message to the slave terminal equipment according to a preset first time interval, wherein the play synchronization message comprises a data frame played by the master terminal equipment and a timestamp corresponding to the data frame, so that the slave terminal equipment synchronizes the locally played data frame according to the data frame and the timestamp.
In this embodiment, the server selects a terminal device with the best performance according to the load data of each terminal device and sets the terminal device as a master terminal device, and the other terminal devices are set as slave terminal devices, and the master terminal device controls the corresponding sub-screen to play the video data thereof by sending a play control message to the slave terminal devices; meanwhile, the master terminal device continuously sends a play synchronization message to each slave terminal device through a preset first time interval so as to further synchronize the play progress of each terminal device. The detailed description of the specific embodiments is given in the foregoing embodiments and will not be repeated herein.
In another optional embodiment, the download confirmation message further includes terminal performance data of the terminal device, where the terminal performance data includes a terminal address and load data representing processing performance of the terminal device, so that the server sets one terminal device as a master terminal device according to the load data, and other terminal devices are slave terminal devices; the receiving of the video playing message pushed by the server according to the MQTT protocol according to the subscribed topic and the controlling of the corresponding sub-screen to play the video data according to the video playing message further include: the video playing message further comprises terminal identity data of the master terminal device, the terminal identity data further comprises a terminal identifier and a terminal address of the master terminal device, if the terminal identifier of the terminal device is different from the terminal identifier of the master terminal device, the terminal device is the slave terminal device, then: receiving a play control message sent by the master terminal device and controlling a corresponding sub-screen to play video data thereof according to the play control message, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol); receiving a play synchronization message sent by the main terminal device, wherein the play synchronization message comprises a data frame played by the main terminal device and a timestamp corresponding to the data frame; and synchronizing the locally played data frame according to the data frame and the time stamp.
In view of monitoring the playing progress of each sub-screen of the mosaic screen by the server, in an optional embodiment, after the receiving, according to the subscribed topic, a video playing message pushed by the server according to the MQTT protocol and controlling the corresponding sub-screen to play the video data thereof according to the video playing message, the video playing method further includes: and sending a play feedback message to an MQTT message queue of the server according to a preset second time interval, wherein the play feedback message comprises a terminal identifier of each terminal device, a played data frame and a timestamp corresponding to the data frame, so that the server outputs prompt information according to the play feedback message.
Corresponding to the video playing method provided in the foregoing embodiments, an embodiment of the present application further provides a video playing device applying the video playing method, and since the video playing device provided in the present application corresponds to the video playing methods provided in the foregoing embodiments, the foregoing embodiment is also applicable to the video playing device provided in this embodiment, and detailed description is not given in this embodiment.
As shown in fig. 6, an embodiment of the present application further provides a video playing apparatus for a tiled screen, which includes a server and terminal devices respectively disposed on each sub-screen of the tiled screen, where the server includes an MQTT message queue and a control center, and the terminal devices include a controller, a first communication module and a player; the control center is configured to: segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by each terminal device according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that a controller of the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address; receiving a download confirmation message sent by a first communication module of each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device; and pushing a video playing message to the topic subscribed by each terminal device according to an MQTT protocol, wherein the video playing message comprises the terminal identifier of the terminal device, so that a player of the terminal device with the terminal identifier controls the corresponding sub-screen to play the video data thereof according to the video playing message.
In the embodiment, the playing control of each sub-screen is realized through the server and the terminal devices arranged on each sub-screen of the spliced screen, specifically, the segmentation of the video to be played is completed through the server, meanwhile, the MQTT message queue of the server is communicated with each terminal device to realize the playing control of each sub-screen, and each terminal device is communicated with the MQTT message queue of the server through the first communication module. The detailed description of the specific embodiments is given in the foregoing embodiments and will not be repeated herein. Compared with a hardware control device using a video splicer in the prior art, the video splicer has the advantages of being simple in operation, convenient to use and the like, can solve the problems of complex installation and complex control in the prior art, effectively improves the control efficiency of a spliced screen, and has wide application prospect.
In an optional embodiment, the terminal device further includes a second communication module, and the control center is further configured to: setting a terminal device as a main terminal device and other terminal devices as slave terminal devices according to the load data of the terminal performance data of the terminal device, which is included in the download confirmation message; the video playing message is pushed to a theme subscribed by each terminal device according to an MQTT protocol, the video playing message further comprises terminal identity data of the master terminal device, so that the master terminal device sends a playing control message to the slave terminal device through a second communication module according to the video playing message, a controller of each terminal device controls a corresponding sub-screen to play video data of the terminal device according to the playing control message, the master terminal device and the slave terminal device are connected through a TCP (transmission control protocol) protocol or a UDP (user datagram protocol), and the terminal identity data comprises a terminal identifier and a terminal address of the master terminal device.
In this embodiment, each terminal device forms an intranet through the second communication device, and performs communication in the intranet through a TCP protocol or a UDP protocol, so that the terminal device with the optimal performance is selected as the master terminal device according to the load data of each terminal device to control other slave terminal devices to implement synchronous playing of video data of each sub-screen of the spliced screen.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements: segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by a terminal device corresponding to each sub-screen of a spliced screen according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address; receiving a download confirmation message sent by each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device; and pushing the video playing message to the topic subscribed by each terminal device according to an MQTT protocol, wherein the video playing message comprises the terminal identifier of the terminal device, so that the terminal device with the terminal identifier controls the corresponding sub-screen to play the video data according to the video playing message.
Another embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements: receiving a video downloading message pushed by a server according to an MQTT protocol according to a subscribed theme and downloading corresponding video data according to the video downloading message, wherein the video data is obtained by segmenting a video to be played by the server according to preset segmentation quantity and segmentation layout, and the video downloading message comprises a terminal identifier of the terminal equipment and a downloading address for downloading the video data; sending a download confirmation message to an MQTT message queue of the server, wherein the download confirmation message comprises a terminal identifier of the terminal equipment; and receiving a video playing message pushed by the server according to the MQTT protocol according to the subscribed theme and controlling the corresponding sub-screen to play the video data according to the video playing message.
In practice, the computer-readable storage medium may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present embodiment, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
As shown in fig. 7, another embodiment of the present invention provides a schematic structural diagram of a computer device. The computer device 12 shown in fig. 7 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present invention.
As shown in FIG. 7, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, computer device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via network adapter 20. As shown in FIG. 7, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in FIG. 7, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement a video playing method provided by the embodiment of the present invention.
The invention aims at the existing problems, establishes a video playing method, a video playing device, a storage medium and computer equipment of a spliced screen, realizes playing control of each sub-screen through a server and terminal equipment arranged on each sub-screen of the spliced screen, and particularly segments a video by the server and controls each terminal equipment through an MQTT message queue so as to realize playing control of each sub-screen. The embodiment provided by the invention has the characteristics of simple operation and convenience in use, effectively solves the problems in the prior art, can obviously improve the control efficiency of the spliced screen, and has wide application prospect.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the present invention, and are not intended to limit the embodiments of the present invention, and it will be obvious to those skilled in the art that other variations or modifications may be made on the basis of the above description, and all embodiments may not be exhaustive, and all obvious variations or modifications may be included within the scope of the present invention.

Claims (9)

1. A video playing method of a spliced screen is applied to a server and is characterized by comprising the following steps:
segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by a terminal device corresponding to each sub-screen of a spliced screen according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address;
receiving a download confirmation message sent by each terminal device through an MQTT message queue, where the download confirmation message includes a terminal identifier of the terminal device, the download confirmation message also includes terminal performance data of the terminal device, and the terminal performance data includes a terminal address and load data representing processing performance of the terminal device, and the video playing method further includes: setting one terminal device as a main terminal device and other terminal devices as auxiliary terminal devices according to the load data;
pushing a video playing message to a theme subscribed by each terminal device according to an MQTT protocol, wherein the video playing message includes a terminal identifier of the terminal device, so that the terminal device having the terminal identifier controls a corresponding sub-screen to play video data thereof according to the video playing message, and the method includes: the video playing message also comprises terminal identity data of the master terminal device, so that the master terminal device sends a playing control message to the slave terminal device according to the video playing message to enable each terminal device to control the corresponding sub-screen to play the video data of the sub-screen, the master terminal device and the slave terminal device are connected through a TCP (transmission control protocol) or a UDP (user datagram protocol), and the terminal identity data comprises a terminal identifier and a terminal address of the master terminal device.
2. The video playing method according to claim 1, wherein after the video playing message is pushed to the topic subscribed by each terminal device according to the MQTT protocol, the video playing message includes a terminal identifier of the terminal device, so that the terminal device having the terminal identifier controls the corresponding sub-screen to play the video data thereof according to the video playing message, the video playing method further comprises:
receiving play feedback messages sent by each terminal device in real time through an MQTT message queue, and outputting prompt information according to the play feedback messages, wherein the play feedback messages comprise terminal identifications of each terminal device, played data frames and timestamps corresponding to the data frames.
3. The video playing method according to claim 1, wherein before the video to be played is divided into at least one piece of video data according to the preset division number and the division layout, and the video download message is pushed to the topic subscribed by the terminal device corresponding to each sub-screen of the mosaic screen according to the MQTT protocol, the video playing method further comprises:
setting the segmentation quantity and the segmentation layout according to the quantity and the layout of the sub-screens included in the spliced screen;
or
And selecting at least one sub-screen of the spliced screen according to the video to be played and setting the segmentation quantity and the segmentation layout according to each selected sub-screen.
4. A video playing method of a spliced screen is applied to terminal equipment corresponding to each sub-screen of the spliced screen, and is characterized by comprising the following steps:
receiving a video downloading message pushed by a server according to an MQTT protocol according to a subscribed theme and downloading corresponding video data according to the video downloading message, wherein the video data is obtained by segmenting a video to be played by the server according to a preset segmentation quantity and a segmentation layout, and the video downloading message comprises a terminal identifier of the terminal equipment and a downloading address for downloading the video data;
sending a download confirmation message to an MQTT message queue of the server, wherein the download confirmation message comprises a terminal identifier of a terminal device, the download confirmation message also comprises terminal performance data of the terminal device, and the terminal performance data comprises a terminal address and load data representing the processing performance of the terminal device, so that the server sets one terminal device as a main terminal device according to the load data, and other terminal devices are slave terminal devices;
receiving a video playing message pushed by a server according to an MQTT protocol according to a subscribed theme and controlling a corresponding sub-screen to play video data according to the video playing message, wherein the method comprises the following steps:
the video playing message further includes terminal identity data of the main terminal device, the terminal identity data includes a terminal identifier and a terminal address of the main terminal device, if the terminal identifier of the terminal device is the same as the terminal identifier of the main terminal device, the terminal device is the main terminal device, then:
sending a play control message to the slave terminal device according to the video play message so that each terminal device controls the corresponding sub-screen to play video data of the terminal device, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol);
and sending a play synchronization message to the slave terminal equipment according to a preset first time interval, wherein the play synchronization message comprises a data frame played by the master terminal equipment and a timestamp corresponding to the data frame, so that the slave terminal equipment synchronizes the locally played data frame according to the data frame and the timestamp.
5. The video playing method according to claim 4, wherein the download confirmation message further includes terminal performance data of the terminal device, the terminal performance data including a terminal address and load data representing processing performance of the terminal device, so that the server sets one terminal device as a master terminal device and other terminal devices as slave terminal devices according to the load data;
the receiving of the video playing message pushed by the server according to the MQTT protocol according to the subscribed topic and the controlling of the corresponding sub-screen to play the video data according to the video playing message further include:
the video playing message further includes terminal identity data of the master terminal device, the terminal identity data further includes a terminal identifier and a terminal address of the master terminal device, if the terminal identifier of the terminal device is different from the terminal identifier of the master terminal device, the terminal device is the slave terminal device, then:
receiving a play control message sent by the master terminal device and controlling a corresponding sub-screen to play video data thereof according to the play control message, wherein the master terminal device is connected with the slave terminal device through a TCP (transmission control protocol) or UDP (user datagram protocol);
receiving a play synchronization message sent by the main terminal device, wherein the play synchronization message comprises a data frame played by the main terminal device and a timestamp corresponding to the data frame;
and synchronizing the locally played data frame according to the data frame and the time stamp.
6. The video playing method according to claim 5, wherein after the receiving server according to the subscribed topic pushes the video playing message according to the MQTT protocol and controls the corresponding sub-screen to play the video data thereof according to the video playing message, the video playing method further comprises:
and sending a play feedback message to an MQTT message queue of the server according to a preset second time interval, wherein the play feedback message comprises a terminal identifier of each terminal device, a played data frame and a timestamp corresponding to the data frame, so that the server outputs prompt information according to the play feedback message.
7. A video playing device of a spliced screen is characterized by comprising a server and terminal equipment respectively arranged on each sub-screen of the spliced screen, wherein the server comprises an MQTT message queue and a control center, and the terminal equipment comprises a controller, a first communication module, a second communication module and a player;
the control center is configured to:
segmenting a video to be played into at least one piece of video data according to preset segmentation quantity and segmentation layout, and pushing a video downloading message to a theme subscribed by each terminal device according to an MQTT protocol, wherein the video downloading message comprises a terminal identifier of the terminal device and a downloading address corresponding to the terminal identifier, so that a controller of the terminal device with the terminal identifier downloads the corresponding video data according to the downloading address;
receiving a download confirmation message sent by a first communication module of each terminal device through an MQTT message queue, wherein the download confirmation message comprises a terminal identifier of the terminal device, one terminal device is set as a main terminal device according to load data of terminal performance data of the terminal device, which is included in the download confirmation message, and other terminal devices are slave terminal devices;
the video playing message is pushed to a theme subscribed by each terminal device according to an MQTT protocol, the video playing message comprises a terminal identifier of the terminal device, a player of the terminal device with the terminal identifier controls a corresponding sub-screen to play video data according to the video playing message, the video playing message also comprises terminal identity data of the main terminal device, the main terminal device sends a playing control message to the slave terminal device through a second communication module according to the video playing message, a controller of each terminal device controls the corresponding sub-screen to play the video data according to the playing control message, the main terminal device and the slave terminal device are connected through a TCP (transmission control protocol) protocol or a UDP (user datagram protocol), and the terminal identity data comprises the terminal identifier and a terminal address of the main terminal device.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that,
the program when executed by a processor implementing the method of any one of claims 1-3;
or
The program when executed by a processor implementing the method of any one of claims 4-6.
9. A computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor,
the processor, when executing the program, implementing the method of any one of claims 1-3; or
The processor, when executing the program, implements the method of any of claims 4-6.
CN202010398597.5A 2020-05-12 2020-05-12 Video playing method and device of spliced screen, computer equipment and medium Active CN111541913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010398597.5A CN111541913B (en) 2020-05-12 2020-05-12 Video playing method and device of spliced screen, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010398597.5A CN111541913B (en) 2020-05-12 2020-05-12 Video playing method and device of spliced screen, computer equipment and medium

Publications (2)

Publication Number Publication Date
CN111541913A CN111541913A (en) 2020-08-14
CN111541913B true CN111541913B (en) 2022-09-27

Family

ID=71975741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010398597.5A Active CN111541913B (en) 2020-05-12 2020-05-12 Video playing method and device of spliced screen, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN111541913B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112584084B (en) * 2020-12-08 2023-09-05 广州虎牙科技有限公司 Video playing method and device, computer equipment and storage medium
CN112887769B (en) * 2021-01-21 2023-09-19 青岛海信传媒网络技术有限公司 Display equipment
CN113055712A (en) * 2021-03-08 2021-06-29 快媒数字科技有限公司 Multi-screen splicing display method and system
CN113271487B (en) * 2021-05-11 2023-07-07 深圳创维-Rgb电子有限公司 Audio and video synchronous playing method, device, system, program product and storage medium
CN115412747B (en) * 2021-05-27 2024-03-01 京东方科技集团股份有限公司 Monitoring method, monitoring device and computer readable medium
CN113992959A (en) * 2021-10-25 2022-01-28 京东方科技集团股份有限公司 System, method and related equipment for synchronously playing videos
CN114071205A (en) * 2021-11-16 2022-02-18 京东方科技集团股份有限公司 Video playing method and device, electronic equipment and storage medium
CN115442647A (en) * 2022-07-22 2022-12-06 北京罗克维尔斯科技有限公司 Video playing method, device, equipment, medium and vehicle

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303287A (en) * 2015-05-26 2017-01-04 中国移动通信集团公司 A kind of multi-mobile-terminal screen splicing method based on near-field communication, equipment and system
CN109101208A (en) * 2018-08-15 2018-12-28 网易(杭州)网络有限公司 Display methods, display device and the display system of interface

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9047039B2 (en) * 2007-05-14 2015-06-02 Christie Digital Systems Usa, Inc. Configurable imaging system
WO2013190144A1 (en) * 2012-06-22 2013-12-27 Universitaet Des Saarlandes Method and system for displaying pixels on display devices
KR102252661B1 (en) * 2015-03-12 2021-05-18 한화테크윈 주식회사 Video wall security system
CN108052299A (en) * 2017-10-31 2018-05-18 西安万像电子科技有限公司 terminal device, multi-screen splicing system and method
KR20190081162A (en) * 2017-12-29 2019-07-09 이에이트 주식회사 Multi display system
CN109213464A (en) * 2018-09-26 2019-01-15 永州市金蚂蚁新能源机械有限公司 A kind of image mosaic display methods and system
CN109168066A (en) * 2018-10-29 2019-01-08 四川长虹电器股份有限公司 A kind of screen wall synchronous playing system and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106303287A (en) * 2015-05-26 2017-01-04 中国移动通信集团公司 A kind of multi-mobile-terminal screen splicing method based on near-field communication, equipment and system
CN109101208A (en) * 2018-08-15 2018-12-28 网易(杭州)网络有限公司 Display methods, display device and the display system of interface

Also Published As

Publication number Publication date
CN111541913A (en) 2020-08-14

Similar Documents

Publication Publication Date Title
CN111541913B (en) Video playing method and device of spliced screen, computer equipment and medium
CN108965907B (en) Method, device and system for playing video
EP3357253B1 (en) Gapless video looping
CN111757158A (en) Audio and video synchronous playing method, device, equipment and storage medium
KR102255223B1 (en) Video system and video processing method, device and computer readable medium
CN103777999A (en) Android software simulation method and device
US20240143649A1 (en) Multimedia information processing method, apparatus, electronic device, and medium
CN105898506A (en) Method and system for multi-screen playing of media files
CN109168012B (en) Information processing method and device for terminal equipment
WO2024012392A1 (en) Interaction method and apparatus, electronic device, and storage medium
CN114222195A (en) Live broadcast stream pushing method and device, electronic equipment and storage medium
CN110401877B (en) Video playing control method and device, electronic equipment and storage medium
JP2020004379A (en) Method and device for releasing information, and method and device for processing information
CN112770168B (en) Video playing method, related device and equipment
CN111290861A (en) Message processing method and device and electronic equipment
CN113271487B (en) Audio and video synchronous playing method, device, system, program product and storage medium
CN111416994B (en) Method and device for synchronously presenting video stream and tracking information and electronic equipment
CN111467797B (en) Game data processing method and device, computer storage medium and electronic equipment
CN111356009B (en) Audio data processing method and device, storage medium and terminal
CN113411636A (en) Live wheat-connecting method and device, electronic equipment and computer-readable storage medium
US10514959B2 (en) Distributed virtual local operating system stored in cloud and its method
CN113230661A (en) Data synchronization method and device, computer readable medium and electronic equipment
KR102459197B1 (en) Method and apparatus for presentation customization and interactivity
CN112243140B (en) Information processing method and device
US11877024B2 (en) Devices, systems, and methods for multi-user screen sharing

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