CN112399219A - Material playing method and system, terminal and medium and material synchronous playing method - Google Patents

Material playing method and system, terminal and medium and material synchronous playing method Download PDF

Info

Publication number
CN112399219A
CN112399219A CN202011419748.7A CN202011419748A CN112399219A CN 112399219 A CN112399219 A CN 112399219A CN 202011419748 A CN202011419748 A CN 202011419748A CN 112399219 A CN112399219 A CN 112399219A
Authority
CN
China
Prior art keywords
playing
played
playlist
materials
display terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011419748.7A
Other languages
Chinese (zh)
Other versions
CN112399219B (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.)
Shanghai Qinghe Technology Co ltd
Zhejiang Qinghe Technology Co ltd
Original Assignee
Shanghai Qinghe Technology Co ltd
Zhejiang Qinghe 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 Shanghai Qinghe Technology Co ltd, Zhejiang Qinghe Technology Co ltd filed Critical Shanghai Qinghe Technology Co ltd
Priority to CN202011419748.7A priority Critical patent/CN112399219B/en
Publication of CN112399219A publication Critical patent/CN112399219A/en
Application granted granted Critical
Publication of CN112399219B publication Critical patent/CN112399219B/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/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4122Peripherals receiving signals from specially adapted client devices additional display device, e.g. video projector
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • 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/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • 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/47End-user applications
    • H04N21/482End-user interface for program selection
    • H04N21/4825End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Computer Security & Cryptography (AREA)
  • Databases & Information Systems (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a method and a system for playing a material, a terminal and a medium, and a method for synchronously playing the material. The material playing method is applied to the display terminal and comprises the following steps: acquiring a playlist list, wherein the playlist list comprises at least one material; determining a material to be played and the playing progress of the material to be played according to the current system time of a display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timing playing and a non-timing playing; and playing the material to be played according to the playing progress of the material to be played. According to the material playing method provided by the invention, the material to be played and the playing progress of the material to be played of the display terminal at the current system time can be accurately determined according to the scheduling attributes of the materials in the playlist, such as the playing attributes, the timing playing time, the playing duration, the playing sequence, the playing starting time and the like of the materials, so that the accuracy of material playing is improved.

Description

Material playing method and system, terminal and medium and material synchronous playing method
Technical Field
The present invention relates to the field of display terminal playing, and in particular, to a method and a system for playing a material, a display terminal, a storage medium, and a method for synchronously playing a material.
Background
The synchronous playing of the pictures of the multiple terminals can enable the multiple screens to form a larger screen or form other shapes, so that more gorgeous visual impact is brought, and the eyeballs of people are attracted. The multi-terminal synchronous picture playing is mainly applied to places such as advertisement display, exhibition halls, demonstration halls, traffic hubs and the like.
Patent CN103561356A discloses a method and device for multi-terminal synchronous playing, which uses a server to perform synchronous coordination, and determines a progress adjustment value of each terminal according to a predicted playing position of each terminal, thereby achieving the purpose of synchronous playing of all terminals. However, the technology needs to interact with the server frequently, which not only increases the hardware cost, but also causes a large processing burden on the server.
Patent CN107809685A discloses a method and device for multi-terminal synchronous playing, which firstly synchronizes the time of each terminal on the basis of the above, so as to reduce the frequent generation of synchronous task lists by the server, and only needs to calculate the time playing by the terminals respectively based on the adjustment policy table. However, the technology also needs to depend on a server, and the server needs to be connected with an external network due to the time synchronization with a national time service center server, so that the technology cannot meet the requirement of internal network playing.
Patent CN108540829A discloses a method, a system, and a terminal for synchronous playing of multiple playing devices, in which one of the playing devices is used as a master playing device, instead of the server, and the master playing device does not stop sending the current playing progress to other slave devices, thereby realizing synchronous playing of the slave devices and the master device. However, the technology relies heavily on a fixed display delay, and different types of playing materials, such as pictures and video, cannot be supported for different types of terminals.
Patent CN103839558A discloses a synchronous playing method, server, and player, which adopt UDP communication mode, after receiving all messages prepared by slave devices, the master device starts playing uniformly to achieve the effect of starting playing simultaneously, and then sends the playing progress of the current master device periodically to synchronize the slave devices. However, the premise of such smooth playing is that all devices operate normally, and if once the master control is hung or some slave devices are not ready, the whole playing picture is blocked and the playing exits, and the exception handling capability is weak.
Patent CN109168066A discloses a screen wall synchronous playing system and method, which realizes the effect of starting playing simultaneously by erecting an infrared synchronization module on a display screen. However, the technology needs to involve the modification of hardware equipment and has no universal significance.
Disclosure of Invention
The present invention provides a method and system for playing a material, a display terminal and a storage medium, and a method for synchronously playing a material, in order to overcome the above-mentioned defects in the prior art.
The invention solves the technical problems through the following technical scheme:
a first aspect of the present invention provides a material playing method applied to a display terminal, where the material playing method includes the following steps:
acquiring a playlist list, wherein the playlist list comprises at least one material;
determining a material to be played and the playing progress of the material to be played according to the current system time of a display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timing playing and a non-timing playing;
and playing the material to be played according to the playing progress of the material to be played.
Preferably, the step of determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist specifically includes:
and if the playing attributes of the materials in the playlist are all timed playing, determining the materials to be played and the playing progress of the materials to be played according to the current system time of the display terminal and the timed playing time and the playing duration of the materials.
Preferably, the step of determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist specifically includes:
if the playing attributes of all the materials in the playlist list are non-timing playing, calculating the current playing progress of the playlist list according to the current system time of a display terminal, the starting time and the total playing time of the playlist list;
and determining the materials to be played and the playing progress of the materials to be played according to the current playing progress of the playlist, the playing sequence and the playing duration of each material.
Preferably, the playlist includes at least two materials of the same type, and the area for playing the playlist is composed of at least one view, wherein the types of the materials to be played correspond to the number of the views one by one;
each view comprises a presentation layer for presenting currently played material and a preparation layer for preparing next played material, wherein the next played material is of the same type as the currently played material.
Preferably, the material playing method further includes:
and if the type of the material to be played is a video, adjusting the playing progress of the material to be played according to the display time stamp and the actual playing time of each video frame in the material to be played.
Preferably, the type of the material in the playlist includes at least one of the following: pictures, videos, slides, text, web pages.
A second aspect of the present invention provides a material playing system applied to a display terminal, the material playing system including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a playlist list, and the playlist list comprises at least one material;
the determining module is used for determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timing playing and a non-timing playing;
and the playing module is used for playing the material to be played according to the playing progress of the material to be played.
Preferably, the determining module is specifically configured to determine the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing time and the playing duration of each material when the playing attributes of each material in the playlist are all played at regular time.
Preferably, the determining module is specifically configured to, under the condition that the playing attributes of the materials in the playlist are all non-timing playing, calculate the current playing schedule of the playlist according to the current system time of the display terminal, the start-up time and the total playing time of the playlist, and determine the materials to be played and the playing schedule of the materials to be played according to the current playing schedule of the playlist, the playing sequence and the playing time of the materials.
Preferably, the playlist includes at least two materials of the same type, and the area for playing the playlist is composed of at least one view, wherein the types of the materials to be played correspond to the number of the views one by one;
each view comprises a presentation layer for presenting currently played material and a preparation layer for preparing next played material, wherein the next played material is of the same type as the currently played material.
Preferably, the material playing system further includes an adjusting module, configured to adjust the playing progress of the material to be played according to the display time stamp and the actual playing time of each video frame in the material to be played, when the type of the material to be played is a video.
Preferably, the type of the playing material in the playlist includes at least one of the following: pictures, videos, slides, text, web pages.
A third aspect of the present invention provides a display terminal, which includes a display screen, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the material playing method according to the first aspect when executing the computer program.
A fourth aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the material playback method of the first aspect.
A fifth aspect of the present invention provides a material synchronous playing method, which is applied to at least two display terminals, and the material synchronous playing method includes the following steps:
each display terminal respectively executes the material playing method in the first aspect; the playlist lists played by the display terminals are the same or related;
and in the process of playing the playlist list by each display terminal, synchronizing the system time of each display terminal so that each display terminal synchronously plays the same or related playlist list.
Preferably, the step of synchronizing the system time of each display terminal includes:
determining a main display terminal from the at least two display terminals;
the main display terminal sends the target system time to other display terminals;
and if the difference value between the system time of other display terminals and the target system time exceeds a preset threshold value, synchronizing the system time of other display terminals to the target system time.
The positive progress effects of the invention are as follows: according to the material playing method, the material to be played and the playing progress of the material to be played of the display terminal at the current system time can be accurately determined according to the scheduling attributes of the materials in the playlist, such as the playing attributes, the timing playing time, the playing duration, the playing sequence, the playing starting time and the like of the materials, and the accuracy of material playing is improved.
Furthermore, in the process of playing the playlist list by each display terminal, the system time of each display terminal is synchronized, so that each display terminal can synchronously play the same or related playlist list. In addition, in the process of time synchronization of the display terminals, the main display terminal is determined and an overtime detection mechanism is set, so that the time synchronization of each display terminal cannot be influenced by the increase and decrease of any display terminal.
Drawings
Fig. 1 is a flowchart of a material playing method according to embodiment 1 of the present invention.
Fig. 2 is a schematic diagram illustrating an effect of the display terminal U0 playing different contents synchronously according to an embodiment of the present invention.
FIG. 3 is a schematic diagram illustrating the effect of the display terminals U1-U4 playing the same content synchronously according to the embodiment of the present invention.
Fig. 4 is a block diagram of a material playing system according to embodiment 2 of the present invention.
Fig. 5 is a block diagram of a display terminal according to embodiment 3 of the present invention.
FIG. 6 is a schematic diagram illustrating the effect of the display terminals U1-U4 playing synchronously according to an embodiment of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
The display terminal in the embodiment of the present invention may be any terminal including a display screen, such as a television, a desktop computer, a notebook computer, a mobile terminal, and the like.
Example 1
The present embodiment provides a material playing method, which is applied to a display terminal, and as shown in fig. 1, the material playing method includes the following steps:
step S101, a playlist list is obtained, wherein the playlist list comprises at least one material.
Wherein, the type of the material in the playlist list includes at least one of the following: pictures, videos, slides, text, web pages.
It should be noted that the playlist may include one material, or may include a plurality of materials arranged in sequence. If the playlist includes a plurality of materials, the types of the materials may be one or more. In one specific example, playlist L1 includes only slide PPT 1. In another specific example, the playlist L2 includes sequentially arranged pictures P1 Pn. In yet another specific example, the playlist L3 includes video V1, picture P1, video V2, and picture P2 in sequential order.
In addition, the playlist in step S101 may be set according to actual conditions and application scenarios, and transmitted to the display terminal in a wired or wireless manner, or may download existing playlist resources from a network, which is not limited specifically.
Step S102, determining a material to be played and a playing progress of the material to be played according to the current system time of a display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timed playing and a non-timed playing.
In step S102, the playing attributes of the materials in the playlist are different, and the modes of determining the materials to be played and the playing progress of the materials to be played are different.
In an optional implementation manner, step S102 specifically includes: and if the playing attributes of the materials in the playlist are all timed playing, determining the materials to be played and the playing progress of the materials to be played according to the current system time of the display terminal and the timed playing time and the playing duration of the materials.
In a specific implementation example, the playlist list L4 includes a material M1, a material M2, and a material M3, where the playback attributes of the materials M1 to M3 are all timed playback, specifically, the timed playback time of the material M1 is 19:00:00.000, the playback time is 30 minutes, the timed playback time of the material M2 is 20:00:00.000, the playback time is 10 minutes, the timed playback time of the material M3 is 20:15:00.000, and the playback time is 20 minutes. If the current system time of the display terminal is 20:05:00.000, the material to be played is determined to be the material M2, and the playing progress of the material M2 is (current system time-timing playing time of the material M2)/playing time =5/10=50% of the material M2.
In another optional embodiment, step S102 specifically includes:
step S1021, if the playing attributes of all the materials in the playlist list are all non-timing playing, calculating the current playing progress of the playlist list according to the current system time of a display terminal, the starting time and the total playing duration of the playlist list.
The starting time of the playlist list may be set according to actual conditions, for example, may be set to 00:00:00.000, and may also be set to 08:00: 00.000. The total playing time length of the playlist list is the sum of the playing time lengths of all the materials in the playlist list.
In a specific implementation of step S1021, the current playing progress of the playlist = (current system time of the display terminal — start time of the playlist)/total playing time of the playlist = 100%. In a specific example, assuming that the current system time of the display terminal is 09:00:00.000, the start time of the playlist L5 is 08:00:00.000, and the total playing time of the playlist L5 is 120 minutes, then the current playing progress of the playlist L5 =60 minutes/120 minutes 100% = 50%.
Step S1022, determining the material to be played and the playing progress of the material to be played according to the current playing progress of the playlist, the playing sequence and the playing duration of each material.
In the specific implementation of step S1022, it can be determined which material is currently played and the time length of the material that has been played by traversing all the materials according to the current playing progress of the playlist. In a specific example, assuming that the playlist list L5 includes the materials M4-M6 arranged in sequence, and the playing time of the material M4 is 50 minutes, the playing time of the material M5 is 40 minutes, and the playing time of the material M6 is 30 minutes, the material to be played is determined to be the material M5 according to the current playing schedule 50% of the playlist list calculated in step S1021, and the material M5 has been played for 10 minutes.
And step S103, playing the material to be played according to the playing progress of the material to be played. In the above example, the material M5 is played from the 11 th minute.
In the embodiment, according to the scheduling attributes of the materials in the playlist, such as the playing attributes, the timing playing time, the playing duration, the playing sequence, the playing starting time, and the like of the materials, the to-be-played materials of the display terminal at the current system time and the playing progress of the to-be-played materials can be accurately determined, and the accuracy of playing the materials is improved.
In the application scenario shown in fig. 2, the display terminal U0 includes four playing areas, which respectively play four different playlist lists, and the four playing areas of the display terminal U0 can achieve the effect that one display terminal can synchronously play different contents by executing the above material playing method. In the application scenario shown in fig. 3, the display terminals U1 to U4 respectively play four same playlist lists, and the display terminals U1 to U4 respectively implement the above material playing method to achieve the effect that the four display terminals synchronously play the same content.
In order to shorten the time consumed for switching between the materials in the playlist so that the user does not perceive the switching between the materials with naked eyes, that is, to implement seamless switching, in an optional embodiment, the switching between the materials is implemented by using hierarchical switching. Specifically, the area for playing the playlist list is composed of at least one view, wherein the type of the playing material corresponds to the number of views one to one. The area for playing the playlist list may be a full screen of the display terminal or a local display area of the display terminal.
In a specific implementation example, the types of the materials in the playlist are different, and the switching between the materials is hierarchical switching between different views.
In another example of an implementation, the playlist includes at least two materials of the same type, and each view includes a presentation layer for presenting a currently played material and a preparation layer for preparing a next played material, wherein the next played material is of the same type as the currently played material. In this example, after the material to be played, which is the next played material with the same type as the currently played material, is scheduled, the display preparation is performed on the preparation layer, and after the preparation is completed, the OnPrepared callback is triggered, so that the display layer and the preparation layer are switched, that is, the current display layer moves to the lower side of the preparation layer and is hidden to become a new preparation layer, and the current preparation layer becomes a new display layer. In this example, the switching between the materials of the same type is the hierarchical switching between the presentation layer and the preparation layer.
In a specific implementation, whether hierarchical switching between different views or between a presentation layer and a preparation layer, the switching can be completed within 40 milliseconds, and seamless switching can be realized for the naked eyes of users.
In an optional embodiment, after step S103, the method further includes:
and step S104, if the type of the material to be played is a video, adjusting the playing progress of the material to be played according to the display time stamp and the actual playing time of each video frame in the material to be played.
In specific implementation, the player is notified of the video start time, and the player decodes the video frame and starts playing. If the display time stamp PTS of a video frame is larger than the actual playing time of the video frame, indicating that the playing is fast, the presentation time of the video frame needs to be extended to trigger slow playing, for example, the presentation time of the video frame can be extended from 40 ms to 80 ms. If the display time stamp PTS of the video frame is smaller than the actual playing time of the video frame, the playing is slow, the frame is quickly lost, and the display time stamp PTS of the next video frame is continuously compared. If the display time stamp PTS is equal to the actual playing time of the video frame, the playing is normal, and the playing is continued.
In this embodiment, by comparing the display time stamp of each video frame with the actual playing time, the playing time of each video frame can be strictly controlled, thereby accurately controlling the playing progress of the video frame.
Example 2
The present embodiment provides a material playing system, which is applied to a display terminal, as shown in fig. 4, the material playing system 40 includes an obtaining module 41, a determining module 42, and a playing module 43.
The acquisition module is used for acquiring a playlist, wherein the playlist comprises at least one material.
Wherein the type of the playing material in the playlist list comprises at least one of the following: pictures, videos, slides, text, web pages.
The determining module is used for determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timed playing and a non-timed playing.
In an optional implementation manner, the determining module is specifically configured to determine the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing time and the playing duration of each material when the playing attributes of each material in the playlist are all played at regular time.
In another optional embodiment, the determining module is specifically configured to, when the playing attributes of the materials in the playlist are all non-timed playing, calculate a current playing schedule of the playlist according to a current system time of a display terminal, a start-up time and a total playing duration of the playlist, and determine the materials to be played and the playing schedule of the materials to be played according to the current playing schedule of the playlist, a playing sequence and a playing duration of each material.
The playing module is used for playing the material to be played according to the playing progress of the material to be played.
In the embodiment, according to the scheduling attributes of the materials in the playlist, such as the playing attributes, the timing playing time, the playing duration, the playing sequence, the playing starting time, and the like of the materials, the to-be-played materials of the display terminal at the current system time and the playing progress of the to-be-played materials can be accurately determined, and the accuracy of playing the materials is improved.
In order to shorten the time consumed for switching between the materials in the playlist so that the user does not perceive the switching between the materials with naked eyes, that is, to implement seamless switching, in an optional embodiment, the switching between the materials is implemented by using hierarchical switching. Specifically, the area for playing the playlist list is composed of at least one view, wherein the type of the playing material corresponds to the number of views one to one. The area for playing the playlist list may be a full screen of the display terminal or a local display area of the display terminal.
In a specific implementation example, the types of the materials in the playlist are different, and the switching between the materials is hierarchical switching between different views.
In another example of an implementation, the playlist includes at least two materials of the same type, and each view includes a presentation layer for presenting a currently played material and a preparation layer for preparing a next played material, wherein the next played material is of the same type as the currently played material. In this example, after the material to be played, which is the next played material with the same type as the currently played material, is scheduled, the display preparation is performed on the preparation layer, and after the preparation is completed, the OnPrepared callback is triggered, so that the display layer and the preparation layer are switched, that is, the current display layer moves to the lower side of the preparation layer and is hidden to become a new preparation layer, and the current preparation layer becomes a new display layer. In this example, the switching between the materials of the same type is the hierarchical switching between the presentation layer and the preparation layer.
In a specific implementation, whether hierarchical switching between different views or between a presentation layer and a preparation layer, the switching can be completed within 40 milliseconds, and seamless switching can be realized for the naked eyes of users.
In an optional implementation manner, the material playing system further includes an adjusting module, configured to adjust a playing progress of the material to be played according to a display time stamp and an actual playing time of each video frame in the material to be played, when the type of the material to be played is a video.
Example 3
Fig. 5 is a schematic structural diagram of a display terminal provided in this embodiment. The display terminal comprises a display screen, a memory, a processor, a computer program which is stored on the memory and can run on the processor, and a plurality of subsystems for realizing different functions, wherein the processor realizes the material playing method of the embodiment 1 when executing the program. The display terminal 3 shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
The components of the display terminal 3 may include, but are not limited to: the at least one speaker, the at least one touch sensitive component, the at least one processor 4, the at least one memory 5, and a bus 6 connecting the various system components (including the memory 5 and the processor 4).
The bus 6 includes a data bus, an address bus, and a control bus.
The memory 5 may include volatile memory, such as Random Access Memory (RAM) and/or cache memory, and may further include Read Only Memory (ROM).
The memory 5 may also include a program/utility having a set (at least one) of program modules including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 4 executes various functional applications and data processing, such as the material playback method of embodiment 1 of the present invention, by running the computer program stored in the memory 5.
The display terminal 3 may also communicate with one or more external devices 7, such as a keyboard, pointing device, etc. Such communication may be via an input/output (I/O) interface 8. Also, the display terminal 3 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) through the network adapter 9. As shown in fig. 5, the network adapter 9 communicates with other modules of the display terminal 3 through the bus 6. It should be understood that although not shown in fig. 5, other hardware and/or software modules may be used in conjunction with the display terminal 3, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the display terminal are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 4
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the material playback method of embodiment 1.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the present invention can also be implemented in the form of a program product that includes program code for causing a terminal device to execute a material playback method that implements embodiment 1 when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
Example 5
The embodiment provides a material synchronous playing method, which is applied to scenes in which at least two display terminals synchronously play the same material or associated materials. The method for synchronously playing the materials provided by the embodiment comprises the following steps:
step S401, each display terminal executes the material playing method according to embodiment 1; and the playlist lists played by the display terminals are the same or related.
Note that the playlist association means that the playback times of the materials in the playlist are associated with each other. For example, when the display terminal U6 is set to play the material M6 in the playlist L6, the display terminal U7 simultaneously plays the material M7 in the playlist L7, which indicates that the playlist L6 is associated with the playlist L7.
Step S402, in the process of playing the playlist list by each display terminal, synchronizing the system time of each display terminal so that each display terminal can synchronously play the same or related playlist list.
In the example shown in FIG. 3, the display terminals U1-U4 play the same playlist list L8 in synchronization. In the example shown in fig. 6, the display terminals U1 and U4 synchronously play the same playlist L8, the display terminals U2 and U3 synchronously play the same playlist L9, wherein playlist L8 is associated with L9, display terminals U1 and U2 synchronously play the associated playlists L8 and L9, and display terminals U3 and U4 synchronously play the associated playlists L8 and L9.
In an alternative embodiment, step S402 includes the following steps:
step S402a, determining a main display terminal from the at least two display terminals.
Step S402b, the main display terminal sends the target system time to the other display terminals.
Step S402c, if the difference between the system time of the other display terminal and the target system time exceeds a preset threshold, synchronizing the system time of the other display terminal to the target system time.
In a specific implementation, the display terminals may communicate with each other in a UDP multicast manner, and each display terminal has a multicast sending process and a multicast receiving process. In a specific example, the material synchronous playing method is applied to the display terminals U10-U15, each of the display terminals U10-U15 generates a unique random code according to its own ID and random data, and the display terminal corresponding to the maximum random code is used as a main display terminal. And the sending process of each display terminal sends the random code and the system time of the display terminal at intervals. Taking the display terminal U10 as an example, the receiving process receives the random codes and the system time sent by the display terminals U11-U15, compares the random codes with the received random codes, and compares the system time with the received system time. One possible scenario is: if the random code received by the display terminal U10 is larger than the random code of the display terminal U10, closing the sending process of the display terminal U10; and comparing the system time of the user with the target system time which is the system time transmitted by the main display terminal, and synchronizing the system time of the display terminal U10 to the target system time if the difference between the system time of the user and the target system time exceeds a preset threshold value, for example, 20 milliseconds, and updating the system time of the display terminal U10 to the target system time plus the multicast transmission delay time. In one specific example, the multicast transmission delay time is 2 milliseconds. Another possible scenario is: if the random code received by the display terminal U10 is smaller than the random code of the display terminal U10, the display terminal U10 is set as the main display terminal.
It should be noted that, the display terminals U11 to U15 and the display terminal U10 are the same, and finally determine a main display terminal, and the other display terminals need to set a timeout detection mechanism. Specifically, if the main display terminal hangs up, that is, other display terminals cannot receive the random code and the target system time sent by the main display terminal over the preset time period, the other display terminals need to start the multicast sending process, send the random code and the system time of the other display terminals, and determine the main display terminal in the other display terminals again.
In the embodiment, the main display terminal is determined and the overtime detection mechanism is set, so that the increase and decrease of any display terminal cannot influence the time synchronization of each display terminal.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (16)

1. A material playing method is applied to a display terminal and is characterized by comprising the following steps:
acquiring a playlist list, wherein the playlist list comprises at least one material;
determining a material to be played and the playing progress of the material to be played according to the current system time of a display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timing playing and a non-timing playing;
and playing the material to be played according to the playing progress of the material to be played.
2. The material playing method according to claim 1, wherein the step of determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist specifically comprises:
and if the playing attributes of the materials in the playlist are all timed playing, determining the materials to be played and the playing progress of the materials to be played according to the current system time of the display terminal and the timed playing time and the playing duration of the materials.
3. The material playing method according to claim 1, wherein the step of determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist specifically comprises:
if the playing attributes of all the materials in the playlist list are non-timing playing, calculating the current playing progress of the playlist list according to the current system time of a display terminal, the starting time and the total playing time of the playlist list;
and determining the materials to be played and the playing progress of the materials to be played according to the current playing progress of the playlist, the playing sequence and the playing duration of each material.
4. The material playing method according to claim 1, wherein the playlist includes at least two materials of the same type, and the area for playing the playlist is composed of at least one view, wherein the types of the played materials correspond to the number of views one to one;
each view comprises a presentation layer for presenting currently played material and a preparation layer for preparing next played material, wherein the next played material is of the same type as the currently played material.
5. A material playback method as defined in claim 1, wherein the material playback method further comprises:
and if the type of the material to be played is a video, adjusting the playing progress of the material to be played according to the display time stamp and the actual playing time of each video frame in the material to be played.
6. A method for playing back material as claimed in any one of claims 1-5, wherein the type of material in the playlist includes at least one of: pictures, videos, slides, text, web pages.
7. A material playing system is applied to a display terminal, and is characterized by comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a playlist list, and the playlist list comprises at least one material;
the determining module is used for determining the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing attributes of the materials in the playlist; wherein the playing attribute comprises a timing playing and a non-timing playing;
and the playing module is used for playing the material to be played according to the playing progress of the material to be played.
8. The material playing system according to claim 7, wherein the determining module is specifically configured to determine the material to be played and the playing progress of the material to be played according to the current system time of the display terminal and the playing time and the playing duration of each material when the playing attributes of each material in the playlist are all played at regular time.
9. The material playing system according to claim 7, wherein the determining module is specifically configured to, when the playing attributes of the materials in the playlist are all non-timing playing, calculate a current playing schedule of the playlist according to a current system time of a display terminal, a start-up time and a total playing duration of the playlist, and determine the materials to be played and the playing schedule of the materials to be played according to the current playing schedule of the playlist, a playing sequence and a playing duration of the materials.
10. The material playback system according to claim 7, wherein the playlist includes at least two materials of the same type, and a section for playing back the playlist is composed of at least one view, wherein the types of the material to be played back are in one-to-one correspondence with the number of views;
each view comprises a presentation layer for presenting currently played material and a preparation layer for preparing next played material, wherein the next played material is of the same type as the currently played material.
11. The material playing system according to claim 7, wherein the material playing system further comprises an adjusting module, configured to adjust the playing progress of the material to be played according to the display time stamp and the actual playing time of each video frame in the material to be played, when the type of the material to be played is a video.
12. A material playing system as claimed in any one of claims 7-11, wherein the type of material played in the playlist includes at least one of: pictures, videos, slides, text, web pages.
13. A display terminal comprising a display screen, a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the material playback method of any one of claims 1-6 when executing the computer program.
14. A computer-readable storage medium on which a computer program is stored, the computer program, when being executed by a processor, implementing a material playback method as recited in any one of claims 1-6.
15. A material synchronous playing method is applied to at least two display terminals, and is characterized by comprising the following steps:
the display terminals respectively execute the material playing method according to any one of claims 1-6; the playlist lists played by the display terminals are the same or related;
and in the process of playing the playlist list by each display terminal, synchronizing the system time of each display terminal so that each display terminal synchronously plays the same or related playlist list.
16. The material synchronous playback method as claimed in claim 15, wherein the step of synchronizing the system time of each display terminal includes:
determining a main display terminal from the at least two display terminals;
the main display terminal sends the target system time to other display terminals;
and if the difference value between the system time of other display terminals and the target system time exceeds a preset threshold value, synchronizing the system time of other display terminals to the target system time.
CN202011419748.7A 2020-12-08 2020-12-08 Material playing method and system, terminal and medium and material synchronous playing method Active CN112399219B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011419748.7A CN112399219B (en) 2020-12-08 2020-12-08 Material playing method and system, terminal and medium and material synchronous playing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011419748.7A CN112399219B (en) 2020-12-08 2020-12-08 Material playing method and system, terminal and medium and material synchronous playing method

Publications (2)

Publication Number Publication Date
CN112399219A true CN112399219A (en) 2021-02-23
CN112399219B CN112399219B (en) 2021-06-25

Family

ID=74604464

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011419748.7A Active CN112399219B (en) 2020-12-08 2020-12-08 Material playing method and system, terminal and medium and material synchronous playing method

Country Status (1)

Country Link
CN (1) CN112399219B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271489A (en) * 2021-06-15 2021-08-17 青岛聚看云科技有限公司 Method for automatically and alternately broadcasting materials and display equipment
CN114071205A (en) * 2021-11-16 2022-02-18 京东方科技集团股份有限公司 Video playing method and device, electronic equipment and storage medium
CN114257845A (en) * 2021-12-30 2022-03-29 京东方科技集团股份有限公司 Video synchronous playing system, method, display terminal and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100178036A1 (en) * 2009-01-12 2010-07-15 At&T Intellectual Property I, L.P. Method and Device for Transmitting Audio and Video for Playback
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN106412665A (en) * 2016-10-18 2017-02-15 北京小米移动软件有限公司 Synchronous playing control method, device and system for multimedia

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100178036A1 (en) * 2009-01-12 2010-07-15 At&T Intellectual Property I, L.P. Method and Device for Transmitting Audio and Video for Playback
CN103533388A (en) * 2013-10-25 2014-01-22 潘伟洲 Method and system for synchronously playing multimedia files
CN106412665A (en) * 2016-10-18 2017-02-15 北京小米移动软件有限公司 Synchronous playing control method, device and system for multimedia

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271489A (en) * 2021-06-15 2021-08-17 青岛聚看云科技有限公司 Method for automatically and alternately broadcasting materials and display equipment
CN114071205A (en) * 2021-11-16 2022-02-18 京东方科技集团股份有限公司 Video playing method and device, electronic equipment and storage medium
CN114257845A (en) * 2021-12-30 2022-03-29 京东方科技集团股份有限公司 Video synchronous playing system, method, display terminal and storage medium

Also Published As

Publication number Publication date
CN112399219B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN112399219B (en) Material playing method and system, terminal and medium and material synchronous playing method
CN109196578B (en) Controlling display performance
CN104144116B (en) Instant communication method and instant communicating system
CN109218795B (en) Multi-device playing progress synchronization method and device and terminal device
WO2019001080A1 (en) Live broadcast list mirror image display method, live broadcast platform server and client
CN103839558A (en) Method and server for synchronous playing and player
US20190318766A1 (en) Method, Device, and System of Synchronously Playing Media File
CN103248952A (en) Multi-screen interaction method for intelligent terminal and intelligent television
CN103348406A (en) Detecting static images and reducing resource usage on an electronic device
CN109005438B (en) Video playing method and device
CN105843573A (en) Realization method and system for synchronously sharing content in main screen to multiple sub-screens
EP3122008A1 (en) Cloud desktop pushing method and system, pushing end and receiving end
CN112379963B (en) Remote application window control method and device and computer equipment
KR20160021449A (en) Control method, device and system for video playing
US20180210692A1 (en) Synchronizing method for display devices
CN104837046A (en) Multi-media file processing method and device
CN108650520A (en) Video live broadcast control method, related equipment and computer storage medium
CN109547830B (en) Method and device for synchronous playing of multiple virtual reality devices
EP3824396A1 (en) Long upload time detection and management
CN113271487B (en) Audio and video synchronous playing method, device, system, program product and storage medium
CN110620761B (en) Method and device for realizing multi-person virtual interaction
US7890651B2 (en) Sending content from multiple content servers to clients at time reference points
CN113962729A (en) Multimedia playing method, screen projection terminal, server and storage medium
CN112118473B (en) Video bullet screen display method and device, computer equipment and readable storage medium
TW202226809A (en) Intelligent management of application layer rendering

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