CN113535992B - Method, device and system for playing ordering and computer readable storage medium - Google Patents

Method, device and system for playing ordering and computer readable storage medium Download PDF

Info

Publication number
CN113535992B
CN113535992B CN202010294204.6A CN202010294204A CN113535992B CN 113535992 B CN113535992 B CN 113535992B CN 202010294204 A CN202010294204 A CN 202010294204A CN 113535992 B CN113535992 B CN 113535992B
Authority
CN
China
Prior art keywords
media
target
group sets
groups
dimensional array
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
CN202010294204.6A
Other languages
Chinese (zh)
Other versions
CN113535992A (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN202010294204.6A priority Critical patent/CN113535992B/en
Publication of CN113535992A publication Critical patent/CN113535992A/en
Application granted granted Critical
Publication of CN113535992B publication Critical patent/CN113535992B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/41Indexing; Data structures therefor; Storage structures

Abstract

The embodiment of the invention discloses a play ordering method, a play ordering device, a play ordering system and a computer readable storage medium. The play ordering method includes, for example: grouping a plurality of media to be played in a playlist according to the media type to obtain a plurality of media groups; combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets; sorting media contained in the target media group sets based on a preset sorting rule to obtain a plurality of sorted media group sets; sequentially adding media contained in the plurality of sequenced media group sets to the initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array; and obtaining the target playing sequence corresponding to the plurality of media to be played based on the target two-dimensional array. The embodiment of the invention can automatically and uniformly distribute different types of media.

Description

Method, device and system for playing ordering and computer readable storage medium
Technical Field
The present invention relates to the field of display control technologies, and in particular, to a playing ordering method, a playing ordering device, a playing ordering system, and a computer readable storage medium.
Background
In the LED industry, clients often need to make a playlist, and add multiple media to the playlist, where each media corresponds to a type, and the playlist often includes multiple different types of media, so as to complete the promotion and display of the commercial advertisement.
However, the media playing sequence related to the current playlist is only to play each media sequentially according to the playing times, and then play another media, so that the situation of playing media of the same type in a bundle mode occurs, and the media of different media types are unevenly distributed, and in this case, a user is required to manually adjust the media playing sequence so that the media of different types can be evenly distributed and played, which is time-consuming and labor-consuming.
Disclosure of Invention
Therefore, the embodiment of the invention discloses a playing ordering method, a playing ordering device, a playing ordering system and a computer readable storage medium, which can avoid the defects of the prior art and realize automatic and uniform distribution of media with different media types.
Specifically, in a first aspect, an embodiment of the present invention discloses a play ordering method, including: grouping a plurality of media to be played in a playlist according to the media type to obtain a plurality of media groups; combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets; ranking the media contained in each of the plurality of target media group sets based on a preset ranking rule to obtain a plurality of ranked media group sets; sequentially adding media contained in the plurality of sequenced media group sets into an initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array; and obtaining the target playing sequence corresponding to the plurality of media to be played based on the target two-dimensional array.
In the related art, the playing sequence of media related to the playlist is only to play each media sequentially according to the playing times of the media before playing another media, so that the situation of bundling playing of the same type of media occurs, which results in uneven media distribution of different media types, and in this case, a user needs to manually adjust the playing sequence of media so that the different types of media can be uniformly distributed for playing, which is time-consuming and labor-consuming. According to the playing ordering method disclosed by the embodiment of the invention, the media to be played are grouped according to the media types, then a plurality of target media group sets are obtained by combining a plurality of media groups, then after the media contained in the target media group sets are ordered, the media contained in the ordered media group sets are sequentially added into the initial two-dimensional array based on the preset adding rule to obtain the target two-dimensional array, and then the target playing order is obtained based on the target two-dimensional array, so that the automatic uniform distribution of the media with different media types is realized, the problem that the existing equipment cannot uniformly play the pain points of the media is solved, a plurality of media with different media types can be alternately played, the situation that the media with the same type are stacked for playing is avoided, the manual adjustment of the media playing order by a user is avoided, the manpower and the material resources are saved, and the application range is wide.
In one embodiment of the present invention, the grouping the plurality of media to be played according to media types to obtain a plurality of media groups includes: and dividing the media to be played with the same media type into the same media group to obtain the plurality of media groups.
In one embodiment of the present invention, the combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets includes: counting the number of media contained in each of the plurality of media groups; dividing the media groups with the same media quantity into the same media group set to obtain a plurality of media group sets; and sequencing the plurality of media group sets according to the number and the size of the media to obtain the plurality of target media group sets.
In one embodiment of the present invention, the sorting the multiple media group sets according to the media number size to obtain the multiple target media group sets includes: and sequencing the plurality of media group sets according to the order of the media quantity from big to small to obtain the plurality of target media group sets.
In one embodiment of the present invention, the ranking the media contained in each of the plurality of target media group sets based on a preset ranking rule to obtain a plurality of ranked media group sets includes: and ordering the media contained in the media groups contained in each of the plurality of target media group sets according to the order of the same media quantity from large to small to obtain the plurality of ordered media group sets.
In one embodiment of the present invention, the sequentially adding the media included in the plurality of sequenced media group sets to the initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array includes: selecting a media group with the largest media quantity from the media groups contained in each of the plurality of sequenced media group sets as a first media group, and sequentially adding the media contained in the first media group to a first column of the initial two-dimensional array; and sequentially adding media contained in the media groups except the first media group of the plurality of sequenced media group sets to other columns of the initial two-dimensional array from left to right to obtain the target two-dimensional array.
In an embodiment of the present invention, the obtaining, based on the target two-dimensional array, a target playing order corresponding to the plurality of media to be played includes: and reading the target two-dimensional array line by line in sequence to obtain the target playing sequence.
In a second aspect, an embodiment of the present invention discloses a play ordering device, configured to perform any one of the play ordering methods described above, including: the media grouping module is used for grouping a plurality of media to be played in the playlist according to the media type to obtain a plurality of media groups; the media group combination module is used for combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets; the media ordering module is used for ordering the media contained in each of the plurality of target media group sets based on a preset ordering rule to obtain a plurality of ordered media group sets; the media adding module is used for sequentially adding the media contained in the plurality of sequenced media group sets into the initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array; and the sequence acquisition module is used for acquiring the target playing sequences corresponding to the plurality of media to be played based on the target two-dimensional array.
In a third aspect, an embodiment of the present invention discloses a play ordering system, including: a processor and a memory coupled to the processor; wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform any of the play ordering methods described above.
In a fourth aspect, embodiments of the present invention disclose a computer readable storage medium that is a non-volatile memory and that stores computer readable instructions including instructions for performing any of the aforementioned methods of play ordering.
As can be seen from the above, the embodiments of the present invention can achieve one or more of the following advantages: the media to be played are grouped according to media types, a plurality of target media group sets are obtained by combining a plurality of media groups, then after media contained in the target media group sets are ordered, the media contained in the ordered media group sets are sequentially added into the initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array, and then a target playing sequence is obtained based on the target two-dimensional array, so that the automatic uniform distribution of the media with different media types is realized, the pain point that the existing equipment cannot uniformly play the media is solved, the media with different media types can be alternately played, the situation that the media with the same type are stacked and played is avoided, the user is prevented from manually adjusting the media playing sequence, manpower and material resources are saved, and the application range is wide.
Other aspects and features of the present invention will become apparent from the following detailed description, which refers to the accompanying drawings. It is to be understood, however, that the drawings are designed solely for the purposes of illustration and not as a definition of the limits of the invention. It should be further understood that the drawings are not necessarily drawn to scale and that, unless otherwise indicated, they are merely intended to conceptually illustrate the structures and procedures described herein.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a flowchart illustrating steps of a method for ordering players according to a first embodiment of the present invention;
FIGS. 2 a-2 i are schematic views illustrating the results of steps involved in a specific embodiment of a play ordering method according to a first embodiment of the present invention;
fig. 3 is a schematic block diagram of a play ordering device according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a play ordering system according to a third embodiment of the present invention;
fig. 5 is a schematic structural view of a computer readable storage medium according to a fourth embodiment of the present invention.
[ figure identification Specification ]
S11-S15: a step of a playing ordering method;
20: a play ordering device; 21: a media grouping module; 22: a media group combining module; 23: a media ordering module; 24: a media adding module; 25: a sequential acquisition module;
30: a play ordering system; 31: a processor; 32: a memory;
40: computer readable storage media.
Detailed Description
It should be noted that, without conflict, the embodiments of the present invention and features of the embodiments may be combined with each other. The invention will be described below with reference to the accompanying drawings in combination with embodiments.
In order that those skilled in the art will better understand the technical solutions of the present invention, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be further noted that the division of the embodiments in the present invention is only for convenience of description, and should not be construed as a specific limitation, and features in the various embodiments may be combined and mutually referenced without contradiction.
[ first embodiment ]
Referring to fig. 1, a first embodiment of the present invention discloses a play ordering method. As shown in fig. 1, the play ordering method includes, for example, steps S11 to S15.
Step S11: grouping a plurality of media to be played in a playlist according to the media type to obtain a plurality of media groups;
step S12: combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets;
step S13: ranking the media contained in each of the plurality of target media group sets based on a preset ranking rule to obtain a plurality of ranked media group sets;
step S14: sequentially adding media contained in the plurality of sequenced media group sets into an initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array;
step S15: and obtaining the target playing sequence corresponding to the plurality of media to be played based on the target two-dimensional array.
Specifically, in step S11, the mentioned playlist includes, for example: the playing sequence, the media name, the playing plan starting date, the playing plan ending date and the playing time length corresponding to each media to be played. References to media to be played include, for example, pictures, video, web pages, streaming media, RSS, etc.
Further, step S11 includes, for example: and dividing the media to be played with the same media type into the same media group to obtain the plurality of media groups. The media types mentioned include, for example, public welfare types, clothing types, automotive types, pet types, and the like. For example, the aforementioned playlist includes, for example, a type a media: the number of media a1 is two, and the number of media a2 is one; type B media: the number of media b1 is three, and the number of media b2 is one; type C media: the number of media c1 is one, and the number of media c2 is two. The number of media a1 is two, which can be understood as that the media a1 needs to be played twice, and the other is the same, so that three media groups { "a", "B", "C" } obtained in step S12. Where media group a= { a1, a1, a2}, media group b= { B1, B1, B1, B2}, media group c= { C1, C2, C2}.
Step S12 includes, for example: counting the number of media contained in each of the plurality of media groups; dividing media groups with the same media quantity into the same media group set to obtain a plurality of media group sets; and sequencing the plurality of media group sets according to the number and the size of the media to obtain the plurality of target media group sets. Wherein sorting the plurality of media group sets according to the number of media sizes to obtain the plurality of target media group sets includes, for example: and sequencing the plurality of media group sets according to the order of the media quantity from big to small to obtain the plurality of target media group sets. For example, the three media sets { "a", "B", "C" obtained in step S12 each include three media sets a and four media sets B and three media sets C, and then the media sets a and C are divided into the same media set, where the media set B is individually in one media set to obtain two media sets { "I", "II" }, where the media set i= { "a", "C" }, the media set ii= { "B" }, where the media set I corresponds to 3 media sets and the media set II corresponds to 4 media sets, and then the order of the media set I and the media set II is changed, that is, before the media set II is arranged to the media set I, two target media sets { III, IV }, where the target media set iii= "ii= {" B "= { B1, B1, B1, B2}, and the target media set iv= {" I "=" C "}," 1"," a "," C1, C "}, 2.
The preset ranking rule mentioned in step S13 is, for example, in the order of the same media number from large to small, that is, step S13 includes, for example: and ordering the media contained in the media groups contained in each of the plurality of target media group sets according to the order of the same media quantity from large to small to obtain the plurality of ordered media group sets. Of course, the invention is not limited thereto. For example, the two target media group sets { III, IV } obtained in step S13, the target media group set iii=ii= { "B" } = { B1, B1, B1, B2}, the target media group set iv= i= { "a", "C" } = { "a1, a1, a2", "C1, C2, C2" }, wherein the media contained in each of the media groups B and a have been sorted from large to small according to the same media number, and the media of the media group C needs to be sorted, i.e., two sorted media group sets { "V", "VI" }, wherein the sorted media group set v= { "B" } = { "B1, B1, B2}, the sorted media group set vi= {" a "," C "} = {" a1, a1, a2"," C2, C2, C1"}.
The preset addition rules mentioned in step S14 include, for example: selecting a first media group from the plurality of sorted media group sets and adding the first media group to a first column of the initial two-dimensional array, and sequentially adding other media groups to other columns of the initial two-dimensional array.
Further, step S14 includes, for example: selecting a media group with the largest media quantity from the media groups contained in each of the plurality of sequenced media group sets as a first media group, and sequentially adding the media contained in the first media group to a first column of the initial two-dimensional array; and sequentially adding media contained in the media groups except the first media group of the plurality of sequenced media group sets to other columns of the initial two-dimensional array from left to right to obtain the target two-dimensional array.
Specifically, for example, if the largest number of media in the three media groups is media group B, then media group B is used as the first media group, and then media { B1, B1, B1, B2} included in media group B is added to the first column of the initial two-dimensional array, so as to obtain:
the foregoing is to be understood that the number of media corresponding to the first media group is the number of rows of the initial two-dimensional array, and the media contained in the other media groups are added to the other columns except the first column. For example, two sets of ordered media groups { "V", "VI" }, where the set of ordered media groups V = { "B" } = { B1, B1, B1, B2} has been added to the initial two-dimensional array, and the set of ordered media groups VI = { "a", "C" } = { "a1, a1, a2", "C2, C2, C1" } is added to the other columns of the initial two-dimensional array in order, to obtain the target two-dimensional array:
step S15 includes, for example, sequentially reading the target two-dimensional array row by row to obtain the target playing order. For example, the target two-dimensional array is read from row to row from left to right into one-dimensional array, the obtained one-dimensional array is [ b1, a1, c2, b2, a1, c1, b3, a2, b4, c2], wherein the corresponding order of the one-dimensional array is the target playing order, and the target playing order is { b1, a1, c2, b2, a1, c1, b3, a2, b4, c2}.
In order to facilitate understanding of the present embodiment, a specific implementation of the play ordering method disclosed in the present embodiment is illustrated in the following with reference to fig. 2a to 2 i.
Playlist including type a media to be played: the number of media a1 to be played is two, and the number of media a2 to be played is one; type B media to be played: the number of media b1 to be played is three, and the number of media b2 to be played is one; type C media to be played: the number of media c1 to be played is one, and the number of media c2 to be played is two.
Step one: as shown in fig. 2a, media to be played in the playlist are grouped by media type.
Step two: as shown in fig. 2b, the result generated in step one is traversed to calculate the number of media of each type.
Step three: as shown in fig. 2c, the result generated in the second step is traversed, and the media types with the same number of media are counted.
Step four: as shown in fig. 2d, the results generated in the third step are sorted from big to small according to the size of the media number.
Step five: as shown in fig. 2e, according to the result generated in the fourth step and the grouping result in the first step, the media type in the result generated in the fourth step is replaced by the corresponding media grouping.
Step six: as shown in fig. 2f, the media to be played corresponding to each media type in the generated result in the fifth step are ordered from large to small according to the same media number.
Step seven: as shown in fig. 2g, traversing the result of step six, the media to be played under the media type with the largest number of media of the same media type is placed in the first position in the two-dimensional array, here, the media type B.
Step eight: as shown in fig. 2h, the remaining media to be played are sequentially placed on the nth position of the two-dimensional array according to the generation results of the sixth step and the seventh step, and so on.
Step nine: as shown in fig. 2i, the two-dimensional array generated in the step eight is integrated into a one-dimensional array, so as to obtain a playing ordering result.
In summary, the playing ordering method disclosed by the invention combines a plurality of media groups to obtain a plurality of target media group sets after grouping media to be played according to media types, then orders the media contained in the target media group sets, adds the media in the selected first media group to the first column of the initial two-dimensional array, sequentially adds the media contained in other media groups to other columns to obtain the target two-dimensional array, and then obtains the target playing order based on the target two-dimensional array, thereby realizing automatic uniform distribution of the media with different media types, solving the pain point that the existing equipment cannot uniformly play the media, ensuring the consistency of the content and the order of each cyclic play, avoiding the situation of the media with the same type in a pile, avoiding the condition of manually adjusting the media playing order by a user, saving manpower and material resources, and having wide application range.
[ second embodiment ]
Referring to fig. 3, a second embodiment of the present invention discloses a play ordering device. As shown in fig. 3, the play ordering device 20 includes, for example: a media grouping module 21, a media group combining module 22, a media ordering module 23, a media adding module 24, and a sequence acquisition module 25.
The media grouping module 21 is configured to group the plurality of media to be played in the playlist according to media types to obtain a plurality of media groups. The media group combining module 22 is configured to combine the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets. The media ranking module 23 is configured to rank the media included in each of the plurality of target media group sets based on a preset ranking rule to obtain a plurality of ranked media group sets. The media adding module 24 is configured to sequentially add the media included in the plurality of sequenced media group sets to the initial two-dimensional array based on a preset adding rule, so as to obtain a target two-dimensional array. The sequence obtaining module 25 is configured to obtain a target playing sequence corresponding to the plurality of media to be played based on the target two-dimensional array.
Further, the media grouping module 21 is specifically configured to divide media to be played with the same media type into the same media group to obtain the plurality of media groups.
Further, the media group combining module 22 includes, for example: the device comprises a quantity counting unit, a set dividing unit and a set sorting unit. The quantity counting unit is used for counting the quantity of media contained in each of the plurality of media groups. The set dividing unit is used for dividing the media groups with the same media quantity into the same media group set to obtain a plurality of media group sets. And the set ordering unit is used for ordering the plurality of media group sets according to the number and the size of the media to obtain the plurality of target media group sets.
The collection ordering unit is specifically configured to order the plurality of media group collections according to the order of the media number from large to small to obtain the plurality of target media group collections.
Further, the media ranking module 23 is specifically configured to rank the media included in the media groups included in each of the plurality of target media group sets according to the order from the same media number from large to small, so as to obtain the plurality of ranked media group sets.
Further, the media adding module 24 includes, for example, a first adding unit and a second adding unit. The first adding unit is used for selecting a media group with the largest media number from the media groups contained in each of the plurality of the sequenced media group sets as a first media group, and sequentially adding the media contained in the first media group to a first column of the initial two-dimensional array. The second adding unit is used for sequentially adding media contained in other media groups except the first media group of the plurality of sequenced media group sets to other columns of the initial two-dimensional array from left to right to obtain the target two-dimensional array.
Further, the sequence obtaining module 25 is specifically configured to sequentially read the target two-dimensional array row by row to obtain the target playing sequence.
The playing sorting method implemented by the playing sorting device 20 according to the present embodiment is as described in the foregoing first embodiment, and thus will not be described in detail herein. Optionally, each module in the second embodiment and the other operations or functions described above are respectively for implementing the method in the first embodiment of the present invention, and the beneficial effects are the same as those in the first embodiment, and are not described herein for brevity.
[ third embodiment ]
Referring to fig. 4, a third embodiment of the present invention discloses a play ordering system. As shown in fig. 4, the play ordering system 30 includes, for example: a processor 31 and a memory 32 connected to the processor 31. Wherein the memory 32 stores instructions for execution by the processor 31 and which cause the processor 31 to perform operations for performing the play ordering method as described in the first embodiment.
It should be noted that, the play ordering system 30 according to the present embodiment has instructions that cause the processor 31 to perform operations to perform the play ordering method as described in the foregoing first embodiment, so that a detailed description thereof will not be provided herein. Optionally, in order to implement the method in the first embodiment of the present invention, each processor and each memory in the present embodiment are the same as the technical effects of the playing ordering method in the first embodiment, and are not described herein.
[ fourth embodiment ]
Referring to fig. 5, a fourth embodiment of the present invention discloses a computer-readable storage medium. As shown in fig. 5, the computer-readable storage medium 40 stores computer-readable instructions. The computer readable instructions comprise instructions for performing the play ordering method as described in the first embodiment, and will not be repeated here. The computer-readable storage medium 40 is, for example, a nonvolatile memory, and includes, for example: magnetic media (e.g., hard disk, floppy disk, and magnetic strips), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices that are specially constructed for storing and performing computer-executable instructions (e.g., read-only memory (ROM), random Access Memory (RAM), flash memory, etc.). The computer-readable storage medium 40 may execute computer-readable instructions by one or more processors or processing devices.
In addition, the technical effects of the computer readable storage medium 40 disclosed in the present embodiment are the same as those of the playing sorting method in the first embodiment, and will not be described herein.
In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and/or methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the units is merely a logical function division, and there may be additional divisions in actual implementation, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit/module in the embodiments of the present application may be integrated in one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated in one unit/module. The integrated units/modules may be implemented in hardware or in hardware plus software functional units/modules.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (7)

1. A method of playing and sorting, comprising:
grouping a plurality of media to be played in a playlist according to the media type to obtain a plurality of media groups;
combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets;
ranking the media contained in each of the plurality of target media group sets based on a preset ranking rule to obtain a plurality of ranked media group sets;
sequentially adding media contained in the plurality of sequenced media group sets into an initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array;
obtaining target playing sequences corresponding to the plurality of media to be played based on the target two-dimensional array;
wherein the combining the plurality of media groups according to the media quantity contained in each of the plurality of media groups to obtain a plurality of target media group sets includes:
counting the number of media contained in each of the plurality of media groups;
dividing the media groups with the same media quantity into the same media group set to obtain a plurality of media group sets;
sorting the plurality of media group sets according to the number and the size of media to obtain the plurality of target media group sets; the step of sorting media contained in each of the plurality of target media group sets based on a preset sorting rule to obtain a plurality of sorted media group sets includes:
sorting media contained in media groups contained in each of the plurality of target media group sets according to the same media quantity from large to small to obtain a plurality of sorted media group sets;
sequentially adding the media contained in the plurality of sequenced media group sets to an initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array, wherein the method comprises the following steps of:
selecting a media group with the largest media quantity from the media groups contained in each of the plurality of sequenced media group sets as a first media group, and sequentially adding the media contained in the first media group to a first column of the initial two-dimensional array;
and sequentially adding media contained in the media groups except the first media group of the plurality of sequenced media group sets to other columns of the initial two-dimensional array from left to right to obtain the target two-dimensional array.
2. The play ordering method as set forth in claim 1, wherein grouping the plurality of media to be played according to media types to obtain a plurality of media groups includes:
and dividing the media to be played with the same media type into the same media group to obtain the plurality of media groups.
3. The method of claim 1, wherein the ranking the plurality of media group sets according to the number of media sizes to obtain the plurality of target media group sets comprises:
and sequencing the plurality of media group sets according to the order of the media quantity from big to small to obtain the plurality of target media group sets.
4. The play ordering method according to claim 1, wherein the obtaining, based on the target two-dimensional array, the target play orders corresponding to the plurality of media to be played includes:
and reading the target two-dimensional array line by line in sequence to obtain the target playing sequence.
5. A play-out ordering device for performing the play-out ordering method according to any one of claims 1 to 4, characterized in that the play-out ordering device comprises:
the media grouping module is used for grouping a plurality of media to be played in the playlist according to the media type to obtain a plurality of media groups;
the media group combination module is used for combining the plurality of media groups according to the number of media contained in each of the plurality of media groups to obtain a plurality of target media group sets;
the media ordering module is used for ordering the media contained in each of the plurality of target media group sets based on a preset ordering rule to obtain a plurality of ordered media group sets;
the media adding module is used for sequentially adding the media contained in the plurality of sequenced media group sets into the initial two-dimensional array based on a preset adding rule to obtain a target two-dimensional array;
the sequence acquisition module is used for acquiring target playing sequences corresponding to the plurality of media to be played based on the target two-dimensional array;
wherein the media group combining module comprises: the device comprises a quantity counting unit, a set dividing unit and a set sorting unit; the quantity counting unit is used for counting the quantity of media contained in each of the plurality of media groups; the set dividing unit is used for dividing the media groups with the same media quantity into the same media group set to obtain a plurality of media group sets; the set ordering unit is used for ordering the plurality of media group sets according to the number and the size of media to obtain the plurality of target media group sets;
the media ordering module is specifically configured to order media contained in media groups contained in each of the plurality of target media group sets according to the order from the large to the small of the same media number to obtain a plurality of ordered media group sets;
the media adding module comprises a first adding unit and a second adding unit; the first adding unit is configured to select, from media groups included in each of the plurality of sequenced media group sets, a media group with a largest media number as a first media group, and sequentially add media included in the first media group to a first column of the initial two-dimensional array; the second adding unit is configured to sequentially add media included in other media groups of the plurality of sequenced media group sets except the first media group to other columns of the initial two-dimensional array from left to right, so as to obtain the target two-dimensional array.
6. A play ordering system, comprising: a processor and a memory coupled to the processor, wherein the memory stores instructions for execution by the processor and the instructions cause the processor to perform operations to perform the play ordering method of any one of claims 1 to 4.
7. A computer readable storage medium, wherein the computer readable storage medium is a non-volatile memory and stores computer readable instructions comprising instructions for performing the play ordering method of any one of claims 1 to 4.
CN202010294204.6A 2020-04-15 2020-04-15 Method, device and system for playing ordering and computer readable storage medium Active CN113535992B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010294204.6A CN113535992B (en) 2020-04-15 2020-04-15 Method, device and system for playing ordering and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010294204.6A CN113535992B (en) 2020-04-15 2020-04-15 Method, device and system for playing ordering and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113535992A CN113535992A (en) 2021-10-22
CN113535992B true CN113535992B (en) 2024-03-15

Family

ID=78088193

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010294204.6A Active CN113535992B (en) 2020-04-15 2020-04-15 Method, device and system for playing ordering and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113535992B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104303205A (en) * 2012-03-15 2015-01-21 谷歌股份有限公司 Methods and systems for ordering and voting on shared media playlists
CN109558500A (en) * 2018-11-21 2019-04-02 杭州网易云音乐科技有限公司 Multimedia sequence generation method, medium, device and calculating equipment
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201224966A (en) * 2010-12-03 2012-06-16 Accton Technology Corp Interactive media player system and method thereof
US20140075308A1 (en) * 2012-09-10 2014-03-13 Apple Inc. Intelligent media queue

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104303205A (en) * 2012-03-15 2015-01-21 谷歌股份有限公司 Methods and systems for ordering and voting on shared media playlists
CN109558500A (en) * 2018-11-21 2019-04-02 杭州网易云音乐科技有限公司 Multimedia sequence generation method, medium, device and calculating equipment
CN109582274A (en) * 2018-11-30 2019-04-05 北京微播视界科技有限公司 Volume adjusting method, device, electronic equipment and computer readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于BiDAF多文档重排序的阅读理解模型;杨志明;时迎成;王泳;潘昊杰;毛金涛;;中文信息学报(第11期);全文 *
自动产生资源播放列表的系统开发研究;樊源源;;现代工业经济和信息化(第23期);全文 *

Also Published As

Publication number Publication date
CN113535992A (en) 2021-10-22

Similar Documents

Publication Publication Date Title
JP6736646B2 (en) Apparatus and method for performing a convolution operation in a convolutional neural network
DE69534248T2 (en) Multi-user system for data storage, access and distribution, with distributed storage of a continuous data stream
CN101286157A (en) File retrieval method and apparatus and time stream file processor
CN103714096A (en) Lucene-based inverted index system construction method and device, and Lucene-based inverted index system data processing method and device
CN101388042B (en) Method and device for establishing file characteristic library index
CN113535992B (en) Method, device and system for playing ordering and computer readable storage medium
CN107528904A (en) Method and apparatus for data distribution formula abnormality detection
CN106604111A (en) Set-top box Flash data storage method and set-top box Flash data storage system
CN106649385B (en) Data reordering method and device based on HBase database
CN111477281A (en) Pan-genome construction method and construction device based on phylogenetic tree
CN110035128A (en) A kind of live streaming dispatching method, device, live broadcast system and storage medium
CN110515939B (en) Multi-column data sorting method based on GPU
CN113392134A (en) Data sorting method, database engine and storage medium
CN111984691B (en) Object metadata retrieval and enumeration method and device in distributed storage system
Jacquelin et al. Enhancing scalability and load balancing of parallel selected inversion via tree-based asynchronous communication
CN207209142U (en) Automatic stored rectilinear storage framework
CN106202412A (en) Data retrieval method and device
CN110533386A (en) Distribute works to the method and device of judging panel
CN104572480A (en) Data processing device and method for interleaved storage of data elements
CN109561353B (en) Column entry list generation method and device
CN111427508A (en) File balanced distribution method and device
CN117370619B (en) Method and device for storing and sub-sampling images in fragments
CN114415975B (en) Method and device for partitioning knowledge graph
CN117149096B (en) Disk reconstruction method, device, equipment and storage medium
CN115937849A (en) Object rendering method, electronic device, and computer-readable storage medium

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