CN106231347B - A kind of playlist transmission method and device - Google Patents
A kind of playlist transmission method and device Download PDFInfo
- Publication number
- CN106231347B CN106231347B CN201610676588.1A CN201610676588A CN106231347B CN 106231347 B CN106231347 B CN 106231347B CN 201610676588 A CN201610676588 A CN 201610676588A CN 106231347 B CN106231347 B CN 106231347B
- Authority
- CN
- China
- Prior art keywords
- playlist
- target
- memory
- stored
- playitem
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23103—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2405—Monitoring of the internal components or processes of the server, e.g. server load
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/4302—Content synchronisation processes, e.g. decoder synchronisation
- H04N21/4307—Synchronising 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
- H04N21/4826—End-user interface for program selection using recommendation lists, e.g. of programs or channels sorted out according to their score
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Human Computer Interaction (AREA)
- Indexing, Searching, Synchronizing, And The Amount Of Synchronization Travel Of Record Carriers (AREA)
Abstract
The invention discloses a kind of playlist transmission method and devices, the method comprise the steps that the present invention is by saving the target playitem for meeting default storage condition in playlist into memory, the target playitem stored in memory for meeting default jump condition is transferred in database again, when determining that target playitem all in the playlist is all stored in database, the playlist stored in the database is packaged, and the playlist is sent to target terminal.When playing out list synchronization, target playitem in playlist is saved in memory in batches, then is transferred in database respectively, mitigates the burden of memory with this, the system resource utilization rate for reducing intelligent playback terminal, guarantees good playing efficiency and the speed of service with this.
Description
Technical field
The present invention relates to multimedia play technology field more particularly to a kind of playlist transmission methods and device.
Background technique
With the development of science and technology, intelligent playback terminal using more and more extensive.By taking intelligent sound box as an example, intelligent sound box can
To be established wirelessly or non-wirelessly with the application APP (Application) installed in the controlling terminals such as smart phone, tablet computer
Connection, and the song that user is transmitted by APP can be played, it can also be by the playlist of collection or program request on intelligent sound box
It is synchronized to the end APP of controlling terminal.
Playlist when being synchronized to the end APP of controlling terminal by intelligent sound box, the especially number of songs in playlist
In the more situation of mesh, during processing, the system resource (such as memory source etc.) of intelligent sound box should play song,
Playlist is encapsulated and transmits again, it is excessively high to will lead to system resource utilization rate, so as to cause playing efficiency to reduce, operation
Speed reduces.
To sum up, the prior art has the following technical problems: intelligent playback terminal is when transmitting playlist, since system provides
Source needs play list simultaneously and handles playlist to be synchronized, causes system resource utilization rate excessively high, so as to cause effect is played
Rate reduces, the speed of service reduces.
Summary of the invention
The purpose of the present invention is to provide a kind of playlist transmission method and devices, it is intended to which solution exists in the prior art
Intelligent playback terminal system resource utilization rate it is excessively high, playing efficiency reduce, the speed of service reduce the technical issues of.
In order to solve the above technical problems, the embodiment of the present invention the following technical schemes are provided:
A kind of playlist transmission method, comprising:
Obtain the playlist for meeting request condition, wherein the playlist includes several target playitems;
The target playitem for meeting default storage condition is saved into memory;
When the target playitem stored in memory meets default jump condition, by the mesh stored in memory
Mark playitem is transferred in database;
It, will be in the database when determining that target playitem all in the playlist is all stored in database
The playlist of storage is packaged, and the playlist is sent to target terminal.
In order to solve the above technical problems, the embodiment of the present invention also the following technical schemes are provided:
A kind of playlist transmitting device, comprising:
Module is obtained, for obtaining the playlist for meeting request condition, wherein the playlist includes several mesh
Mark playitem;
Preserving module, for saving the target playitem for meeting default storage condition into memory;
Shift module is used for when the target playitem stored in memory meets default jump condition, will be described
Target playitem stored in memory is transferred in database;
Sending module, for when determining that target playitem all in the playlist is all stored in database,
The playlist stored in the database is packaged, and the playlist is sent to target terminal.
Compared with the existing technology, the present invention meets the playlist of request condition by obtaining, and will meet in playlist
The target playitem of default storage condition is saved into memory, is preset when the target playitem stored in memory meets
When jump condition, then the target playitem stored in memory is transferred in database, when determining the playlist
In all target playitem when being all stored in database, the playlist stored in the database is packaged, and
The playlist is sent to target terminal.When playing out list synchronization, by the target playitem in playlist
It is saved in memory, then is transferred in database respectively in batches, mitigate the burden of memory with this, reduce intelligent playback terminal
System resource utilization rate guarantees good playing efficiency and the speed of service with this.
Detailed description of the invention
With reference to the accompanying drawing, by the way that detailed description of specific embodiments of the present invention, technical solution of the present invention will be made
And other beneficial effects are apparent.
Fig. 1 is a kind of flow diagram for playlist transmission method that first embodiment of the invention provides.
Fig. 2 is a kind of use state diagram for playlist transmission method that first embodiment of the invention provides.
Fig. 3 is a kind of flow diagram for playlist transmission method that second embodiment of the invention provides.
Fig. 4 is a kind of structural schematic diagram for playlist transmitting device that third embodiment of the invention provides.
Fig. 5 is a kind of another structural schematic diagram for playlist transmitting device that third embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.It is understood that described herein, the specific embodiments are only for explaining the present invention, rather than to limit of the invention
It is fixed.It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing and not all knot
Structure.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
Every other embodiment, shall fall within the protection scope of the present invention.
Term " first ", " second " and " third " in the present invention etc. are for distinguishing different objects, rather than for retouching
State particular order.In addition, term " includes " and " having " and their any deformations, it is intended that cover and non-exclusive include.
Such as contain a series of steps or units process, method, system, product or equipment be not limited to listed step or
Unit, but optionally further comprising the step of not listing or unit, or optionally further comprising for these process, methods, produce
The other step or units of product or equipment inherently.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
A kind of executing subject of playlist transmission method provided in an embodiment of the present invention, can mention for the embodiment of the present invention
A kind of playlist transmitting device supplied, or it is integrated with mobile terminal (for example intelligent sound of the playlist transmitting device
Case, smart television, smart phone or wearable device with playing function etc.), the playlist transmitting device can be adopted
It is realized with the mode of hardware or software.
It is understood that method described in the present embodiment can be applied to intelligent playback terminal or multimedia
In system.The multimedia play system includes controlling terminal and at least one intelligent playback terminal, is pacified in the controlling terminal
Equipped with the application APP for controlling the intelligent playback terminal, the application APP also be can receive through the intelligence
The data that energy playback terminal transmits.The controlling terminal and the intelligent playback terminal can be by being wirelessly transferred or having
The mode of line transmission establishes connection.The wireless transmission method can for infrared, bluetooth, WiFi (Wireless Fidelity,
Wireless LAN) etc., wire transmission mode can be data line transmission etc., enumerate herein not as a limitation of the invention.
The embodiment of the present invention is mainly that the angle carried out data transmission from intelligent playback terminal to controlling terminal is described.
In following embodiment, using intelligent playback terminal as " body terminal " of description, controlling terminal for receiving data is in this hair
" target terminal " is defined as in bright embodiment;In specific implementation process, the role of " body terminal " and " target terminal " can
It, both can sending and receiving data to exchange.
First embodiment
Fig. 1 and Fig. 2 is please referred to, Fig. 1 is a kind of process for playlist transmission method that first embodiment of the invention provides
Schematic diagram, Fig. 2 are a kind of use state diagram for playlist transmission method that first embodiment of the invention provides.The side
Method includes:
Step S101 obtains the playlist for meeting request condition.Wherein, the playlist includes that several targets are broadcast
Put entry.
For example, intelligent playback terminal receives the request instruction that controlling terminal is sent by application APP, according to described
Request instruction, intelligent playback terminal obtain the playlist for meeting request condition, wherein the playlist includes several mesh
Mark playitem.
Referring to Fig. 2, the use state that Fig. 2 is a kind of playlist transmission method that first embodiment of the invention provides is shown
It is intended to.For example, the intelligence playback terminal can be intelligent sound box 100, the controlling terminal can be mobile phone 200.Intelligent sound
Case 100 receives the request instruction that mobile phone 200 is sent by application APP, according to the request instruction, intelligent sound box 100
Obtain the playlist for meeting request condition.For example, request instruction is the playlist of request transmission intelligent sound box collection.Then root
According to the request instruction, the playlist of the collection of intelligent sound box 100 is got, for example the playlist includes 20 songs.
Step S102 saves the target playitem for meeting default storage condition into memory.
It is understood that memory for storing data can be divided into main memory and additional storage, primary storage
Device is also known as built-in storage (abbreviation memory).The memory can be read-only memory (ROM, Read Only Memory), can also
Think random access memory (RAM, Random Access Memory).
Preferably, default storage condition can be set to the target playitem, then default storage condition will be met
Target playitem is saved into memory.
For example, determine priority corresponding to each target playitem in the playlist, according to the priority,
Target playitem in the playlist is successively saved into memory.
For example, the byte length according to corresponding to target playitem each in the playlist, determines the broadcasting
Priority corresponding to each target playitem in list.Such as it is determined according to the sequence of the byte length from small to large excellent
First grade, then the sequence according to byte length from small to large, the target playitem in the playlist is successively saved to interior
In depositing.
Step S103, when the target playitem stored in memory meets default jump condition, by the memory
The target playitem of middle storage is transferred in database.
It is understood that the database can be storing data library of the foundation on additional storage.Database
Storage organization may include physical storage structure and logical storage structure.The physical storage structure of the database can be by some
A variety of physical files composition, mainly have data file, control file, redo log file, archive log file, Parameter File,
Password file, warning file etc..The logical construction is by logical storage structure (table space, section, range, block) and logical data knot
Structure (table, view, sequence, storing process, synonym, index, cluster and data basd link etc.) composition.
Preferably, the default jump condition can reach pre- for the quantity of the target playitem stored in memory
If caching quantity.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the quantity of the target playitem stored in memory is less than or equal to preset cache quantity, it is determined that in described
The last batch of target playitem for depositing middle storage meets default jump condition.
For example, the playlist includes 20 target playitems, preset cache quantity is 5, when in the memory
When the quantity of the target playitem of storage reaches 5, the target playitem stored in memory is transferred to database
In.
Preferably, the default jump condition can reach for the byte length of the target playitem stored in memory
To preset cache length.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the byte length of the target playitem stored in memory is less than or equal to preset cache length, it is determined that institute
It states last batch of target playitem stored in memory and meets default jump condition.
Step S104, when determining that target playitem all in the playlist is all stored in database, by institute
It states the playlist stored in database to be packaged, and the playlist is sent to target terminal.
It is understood that the playlist and original acquisition that can be stored in database by matching meet request condition
Playlist, with target playitem all in the determination playlist whether all be stored in database in.
Preferably, after the playlist is sent to target terminal, the broadcasting stored in the database is emptied
List.
The present embodiment meets the playlist of request condition by obtaining, and default storage condition will be met in playlist
Target playitem is saved into memory, when the target playitem stored in memory meets default jump condition, then
The target playitem stored in memory is transferred in database, when the target for determining all in the playlist is broadcast
When putting entry and being all stored in database, the playlist stored in the database is packaged, and by the playlist
It is sent to target terminal.When playing out list synchronization, the target playitem in playlist is saved in batches interior
It in depositing, then is transferred in database respectively, mitigates the burden of memory with this, the system resource for reducing intelligent playback terminal uses
Rate guarantees good playing efficiency and the speed of service with this.
Second embodiment
Also referring to Fig. 3, Fig. 3 is that a kind of process for playlist transmission method that second embodiment of the invention provides is shown
It is intended to.The described method includes:
Step S201 obtains the playlist for meeting request condition, wherein the playlist includes that several targets are broadcast
Put entry.
For example, intelligent sound box receives the request instruction that mobile phone is sent by application APP, referred to according to the request
It enables, intelligent sound box obtains the playlist for meeting request condition.For example, request instruction is broadcasting for request transmission intelligent sound box collection
Emplace table.Then according to request instruction, the playlist of intelligent sound box collection is got, for example the playlist includes 20 first songs
It is bent.
Step S202 determines priority corresponding to each target playitem in the playlist.
Preferably, the classification according to corresponding to target playitem each in the playlist, determines the played column
Priority corresponding to each target playitem in table.
For example, classification area can be carried out according to the deduction style or singing style or singer etc. of the target playitem
Point, the definition of classification can also be carried out according to the hobby of user.Wherein the target playitem of the same category can be same excellent
First grade.
For example, getting the playlist of intelligent sound box collection, the playlist includes 20 songs.It can be according to drilling
Unravel silk style and distinguish its corresponding classification, for example, opera has 5 head, popular song has 10 head, and ethnic song 5 is first, with popular song,
Opera, ethnic song sequence determine priority corresponding to each target playitem in the playlist.
Preferably, the power consumption according to corresponding to target playitem each in the playlist, determines the played column
Priority corresponding to each target playitem in table.
It should be understood that during handling each target playitem power consumption will necessarily be generated, in treatment process
In, it can especially when detecting the electricity of terminal lower than a certain default electricity in order to handle more target playitems
To determine its corresponding priority according to the sequence of power consumption from small to large.
For example, the sequence according to the power consumption from small to large, determines each target playitem institute in the playlist
Corresponding priority.
Preferably, the byte length according to corresponding to target playitem each in the playlist, determine described in broadcast
Emplace priority corresponding to each target playitem in table.
For example, the sequence according to the byte length from small to large, determines that each target plays item in the playlist
Priority corresponding to mesh.
Step S203, according to priority corresponding to target playitem each in the playlist, by the broadcasting
Target playitem in list is successively saved into memory.
For example, opera has 5 head, popular song has 10 head, and ethnic song has 5 head, with popular song, opera, ethnic song
Sequence determine priority corresponding to each target playitem in the playlist, then according to popular song, opera, the people
The sequence of race's song is successively saved into memory, and wherein the target playitem of the same category can be saved into memory at random,
It can also be saved in memory according to preset sequence.
For example, determine its priority according to the sequence of the byte length from small to large, then according to byte length from it is small to
Big sequence successively saves the target playitem in the playlist into memory.
Step S204, when the target playitem stored in memory meets default jump condition, by the memory
The target playitem of middle storage is transferred in database.
Preferably, the default jump condition can reach pre- for the quantity of the target playitem stored in memory
If caching quantity.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the quantity of the target playitem stored in memory is less than or equal to preset cache quantity, it is determined that in described
The last batch of target playitem for depositing middle storage meets default jump condition.
For example, the playlist includes 20 target playitems, preset cache quantity is 5, when in the memory
When the quantity of the target playitem of storage reaches 5, the target playitem stored in memory is transferred to database
In.
Preferably, the default jump condition can reach for the byte length of the target playitem stored in memory
To preset cache length.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the byte length of the target playitem stored in memory is less than or equal to preset cache length, it is determined that institute
It states last batch of target playitem stored in memory and meets default jump condition.
Step S205, when determining that target playitem all in the playlist is all stored in database, by institute
It states the playlist stored in database to be packaged, and the playlist is sent to target terminal.
It is understood that the playlist and original acquisition that can be stored in database by matching meet request condition
Playlist, with target playitem all in the determination playlist whether all be stored in database in.
Preferably, after the playlist is sent to target terminal, the broadcasting stored in the database is emptied
List.
The present embodiment meets the playlist of request condition by obtaining, and default storage condition will be met in playlist
Target playitem is saved into memory, when the target playitem stored in memory meets default jump condition, then
The target playitem stored in memory is transferred in database, when the target for determining all in the playlist is broadcast
When putting entry and being all stored in database, the playlist stored in the database is packaged, and by the playlist
It is sent to target terminal.It, will be according to excellent corresponding to the target playitem in playlist when playing out list synchronization
First grade is saved into memory in batches, then is transferred in database respectively, mitigates the burden of memory with this, is reduced intelligence and is played eventually
The system resource utilization rate at end guarantees good playing efficiency and the speed of service with this.
3rd embodiment
Referring to Fig. 4, Fig. 4 is a kind of structural representation for playlist transmitting device that third embodiment of the invention provides
Figure.Described device includes obtaining module 31, preserving module 32, shift module 33 and sending module 34.
Wherein, the acquisition module 31, for obtaining the playlist for meeting request condition, wherein the playlist
Including several target playitems.
For example, the module 31 that obtains gets the playlist that intelligent sound box is collected, for example the playlist includes
20 songs.
The preserving module 32, for saving the target playitem for meeting default storage condition into memory.
Preferably, default storage condition the target playitem can be arranged, the preserving module 32 will meet again
The target playitem of default storage condition is saved into memory.
For example, determine priority corresponding to each target playitem in the playlist, according to the priority,
Target playitem in the playlist is successively saved into memory.
For example, the byte length according to corresponding to target playitem each in the playlist, determines the broadcasting
Priority corresponding to each target playitem in list.Such as it is determined according to the sequence of the byte length from small to large excellent
First grade, then the target in the playlist is played item by the sequence according to byte length from small to large, the preserving module 32
Mesh is successively saved into memory.
The shift module 33 is used for when the target playitem stored in memory meets default jump condition,
The target playitem stored in memory is transferred in database.
Preferably, the default jump condition can reach pre- for the quantity of the target playitem stored in memory
If caching quantity.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the quantity of the target playitem stored in memory is less than or equal to preset cache quantity, it is determined that in described
The last batch of target playitem for depositing middle storage meets default jump condition.
For example, the playlist includes 20 target playitems, preset cache quantity is 5, when in the memory
When the quantity of the target playitem of storage reaches 5, the target stored in memory is played item by the shift module 33
Mesh is transferred in database.
Preferably, the default jump condition can reach for the byte length of the target playitem stored in memory
To preset cache length.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the byte length of the target playitem stored in memory is less than or equal to preset cache length, it is determined that institute
It states last batch of target playitem stored in memory and meets default jump condition.
The sending module 34, for being all stored in database when target playitem all in the determining playlist
When middle, the playlist stored in the database is packaged, and the playlist is sent to target terminal.
It is understood that the playlist and original acquisition that can be stored in database by matching meet request condition
Playlist, with target playitem all in the determination playlist whether all be stored in database in.
Preferably, after the playlist is sent to target terminal by the sending module 34, the data are emptied
The playlist stored in library.
Please refer to fig. 5, Fig. 5 is a kind of another knot for playlist transmitting device that third embodiment of the invention provides
Structure schematic diagram.Described device includes obtaining module 31, preserving module 32, shift module 33 and sending module 34.
Wherein, the acquisition module 31, for obtaining the playlist for meeting request condition, wherein the playlist
Including several target playitems.
For example, the module 31 that obtains gets the playlist that intelligent sound box is collected, for example the playlist includes
20 songs.
The preserving module 32 further includes determination unit 321 and storage unit 322.
Wherein, the determination unit 321, it is excellent corresponding to each target playitem for determining in the playlist
First grade.
Preferably, the determination unit 321, it is right according to target playitem institute each in the playlist to be specifically used for
The classification answered determines priority corresponding to each target playitem in the playlist.
For example, classification area can be carried out according to the deduction style or singing style or singer etc. of the target playitem
Point, the definition of classification can also be carried out according to the hobby of user.Wherein the target playitem of the same category can be same excellent
First grade.
For example, getting the playlist of intelligent sound box collection, the playlist includes 20 songs.It can be according to drilling
It unravels silk style and distinguishes its corresponding classification, for example, opera has 5 head, popular song has 10 head, and ethnic song has 5 head, described determining single
Member 321 is determined in the playlist corresponding to each target playitem with the sequence of popular song, opera, ethnic song
Priority.
Preferably, the determination unit 321, it is right according to target playitem institute each in the playlist to be specifically used for
The power consumption answered determines priority corresponding to each target playitem in the playlist.
It should be understood that during handling each target playitem power consumption will necessarily be generated, in treatment process
In, in order to handle more target playitems, especially when detecting the electricity of terminal lower than a certain default electricity, institute
Its corresponding priority can be determined according to the sequence of power consumption from small to large by stating determination unit 321.
For example, the sequence according to the power consumption from small to large, the determination unit 321 determines each in the playlist
Priority corresponding to target playitem.
Preferably, the determination unit 321, it is right according to target playitem institute each in the playlist to be specifically used for
The byte length answered determines priority corresponding to each target playitem in the playlist.
For example, the sequence according to the byte length from small to large, the determination unit 321 is determined in the playlist
Priority corresponding to each target playitem.
Step S203, according to priority corresponding to target playitem each in the playlist, by the broadcasting
Target playitem in list is successively saved into memory.
Such as opera has 5 head, popular song has 10 head, and ethnic song has 5 head, with popular song, opera, ethnic song
Sequence determines priority corresponding to each target playitem in the playlist, then according to popular song, opera, nationality
The sequence of song is successively saved into memory, and wherein the target playitem of the same category can be saved into memory at random,
It can be saved in memory according to preset sequence.
For example, determine its priority according to the sequence of the byte length from small to large, then according to byte length from it is small to
Big sequence successively saves the target playitem in the playlist into memory.
The shift module 33 is used for when the target playitem stored in memory meets default jump condition,
The target playitem stored in memory is transferred in database.
Preferably, the default jump condition can reach pre- for the quantity of the target playitem stored in memory
If caching quantity.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the quantity of the target playitem stored in memory is less than or equal to preset cache quantity, it is determined that in described
The last batch of target playitem for depositing middle storage meets default jump condition.
For example, the playlist includes 20 target playitems, preset cache quantity is 5, when in the memory
When the quantity of the target playitem of storage reaches 5, the target stored in memory is played item by the shift module 33
Mesh is transferred in database.
Preferably, the default jump condition can reach for the byte length of the target playitem stored in memory
To preset cache length.
It is understood that be transferred in database when first target playitem into memory of storage and then
Target playitem remaining in the playlist is handled;When last batch of target playitem has stored memory
When middle, if the byte length of the target playitem stored in memory is less than or equal to preset cache length, it is determined that institute
It states last batch of target playitem stored in memory and meets default jump condition.
The sending module 34, for being all stored in database when target playitem all in the determining playlist
When middle, the playlist stored in the database is packaged, and the playlist is sent to target terminal.
It is understood that the playlist and original acquisition that can be stored in database by matching meet request condition
Playlist, with target playitem all in the determination playlist whether all be stored in database in.
Preferably, after the playlist is sent to target terminal by the sending module 34, the data are emptied
The playlist stored in library.
In the embodiment of the present invention, one of the playlist transmitting device and foregoing embodiments playlist transmission side
It is owned by France in same design, can run in the playlist transmission method embodiment and mention on the playlist transmitting device
For either method, specific implementation process be detailed in the playlist transmission method embodiment, details are not described herein again.
It should be noted that for playlist transmission method of the present invention, this field common test personnel can be with
Understand all or part of the process for realizing playlist transmission method described in the embodiment of the present invention, is that can pass through computer program
It is completed to control relevant hardware, the computer program can be stored in a computer-readable storage medium, such as store
It is executed in the memory of terminal, and by least one processor in the terminal, in the process of implementation may include being broadcast as described
Emplace the process of the embodiment of table transmission method.Wherein, the storage medium can for magnetic disk, CD, read-only memory (ROM,
Read Only Memory), random access memory (RAM, Random Access Memory) etc..
For the playlist transmitting device of the embodiment of the present invention, each functional module be can integrate at one
It manages in chip, is also possible to modules and physically exists alone, a module can also be integrated in two or more modules
In.Above-mentioned integrated module both can take the form of hardware realization, can also be realized in the form of software function module.Institute
If stating integrated module to realize in the form of software function module and when sold or used as an independent product, can also deposit
In a computer readable storage medium, the storage medium is for example read-only memory, disk or CD etc. for storage.
It is provided for the embodiments of the invention a kind of playlist transmission method above and device is described in detail, this
Apply that a specific example illustrates the principle and implementation of the invention in text, the explanation of above example is only intended to
Help understands technical solution of the present invention and its core concept;Those skilled in the art should understand that: it still can be with
It modifies the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And
These are modified or replaceed, the range of the technical solution for various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.
Claims (5)
1. a kind of playlist transmission method characterized by comprising
Obtain the playlist for meeting request condition, wherein the playlist includes several target playitems;
According to classification or power consumption corresponding to target playitem each in the playlist, determine every in the playlist
Priority corresponding to one target playitem;
According to priority corresponding to target playitem each in the playlist, the target in the playlist is broadcast
Entry is put successively to save into memory;
When the target playitem stored in memory meets default jump condition, the target stored in memory is broadcast
Transfer of entries is put into database, wherein the database is the storing data library established on additional storage, the auxiliary
Memory interior saves as different memories from described;
When determining that target playitem all in the playlist is all stored in database, will be stored in the database
Playlist be packaged, and the playlist is sent to target terminal.
2. playlist transmission method according to claim 1, which is characterized in that the default jump condition includes:
The quantity of the target playitem stored in memory reaches preset cache quantity;Alternatively,
The byte length of the target playitem stored in memory reaches preset cache length.
3. a kind of playlist transmitting device characterized by comprising
Module is obtained, for obtaining the playlist for meeting request condition, wherein the playlist includes that several targets are broadcast
Put entry;
Preserving module, for saving the target playitem for meeting default storage condition into memory, the preserving module packet
Determination unit and storage unit are included, the determination unit is used for according to corresponding to target playitem each in the playlist
Classification or power consumption, determine priority corresponding to each target playitem in the playlist, the storage unit is used
In the priority according to corresponding to target playitem each in the playlist, the target in the playlist is played
Entry is successively saved into memory;
Shift module is used for when the target playitem stored in memory meets default jump condition, by the memory
The target playitem of middle storage is transferred in database, wherein the database is the storage established on additional storage
Database, the additional storage interior save as different memories from described;
Sending module, for when determining that target playitem all in the playlist is all stored in database, by institute
It states the playlist stored in database to be packaged, and the playlist is sent to target.
4. playlist transmitting device according to claim 3, which is characterized in that the default jump condition includes:
The quantity of the target playitem stored in memory reaches preset cache quantity;Alternatively,
The byte length of the target playitem stored in memory reaches preset cache length.
5. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that described program is by processor
It is realized when execution method according to claim 1 or 2.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610676588.1A CN106231347B (en) | 2016-08-16 | 2016-08-16 | A kind of playlist transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610676588.1A CN106231347B (en) | 2016-08-16 | 2016-08-16 | A kind of playlist transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106231347A CN106231347A (en) | 2016-12-14 |
CN106231347B true CN106231347B (en) | 2019-06-25 |
Family
ID=57552594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610676588.1A Expired - Fee Related CN106231347B (en) | 2016-08-16 | 2016-08-16 | A kind of playlist transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106231347B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107835444B (en) | 2017-11-16 | 2019-04-23 | 百度在线网络技术(北京)有限公司 | Information interacting method, device, voice frequency terminal and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997701A (en) * | 2009-08-10 | 2011-03-30 | 中兴通讯股份有限公司 | Data processing method and a device thereof |
KR20130044582A (en) * | 2011-10-24 | 2013-05-03 | 엘지전자 주식회사 | Display device, method of receiving contents and method of providing contents |
CN104601685A (en) * | 2014-12-31 | 2015-05-06 | 广东欧珀移动通信有限公司 | Music playing method and device of smart sound box |
CN104679578A (en) * | 2015-03-12 | 2015-06-03 | 绚视软件科技(上海)有限公司 | Self-adaptation mechanism and usage method of minimum memory on BD-java platform |
CN105096988A (en) * | 2015-06-25 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and terminal for synchronizing sound box playlist |
-
2016
- 2016-08-16 CN CN201610676588.1A patent/CN106231347B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101997701A (en) * | 2009-08-10 | 2011-03-30 | 中兴通讯股份有限公司 | Data processing method and a device thereof |
KR20130044582A (en) * | 2011-10-24 | 2013-05-03 | 엘지전자 주식회사 | Display device, method of receiving contents and method of providing contents |
CN104601685A (en) * | 2014-12-31 | 2015-05-06 | 广东欧珀移动通信有限公司 | Music playing method and device of smart sound box |
CN104679578A (en) * | 2015-03-12 | 2015-06-03 | 绚视软件科技(上海)有限公司 | Self-adaptation mechanism and usage method of minimum memory on BD-java platform |
CN105096988A (en) * | 2015-06-25 | 2015-11-25 | 广东欧珀移动通信有限公司 | Method and terminal for synchronizing sound box playlist |
Also Published As
Publication number | Publication date |
---|---|
CN106231347A (en) | 2016-12-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10884817B2 (en) | Method and apparatus for parallel execution in terminal database using data partitions | |
CN110650347B (en) | Multimedia data processing method and device | |
CN109508246A (en) | Log recording method, system and computer readable storage medium | |
CN101960433B (en) | For the system and method that cache line substitutes | |
CN108307236A (en) | A kind of method, storage medium and the smart television of smart television memory optimization | |
WO2016141588A1 (en) | Data transmission method and apparatus, processor and mobile terminal | |
CN102446087B (en) | Instruction prefetching method and device | |
CN105187564A (en) | Method for breakpoint resuming of mobile phone side file | |
CN107832343A (en) | A kind of method of MBF data directories structure based on bitmap to data quick-searching | |
WO2010000101A1 (en) | Device and method for extending memory space of embedded system | |
CN109547574A (en) | A kind of data transmission method and relevant apparatus | |
CN109729519A (en) | The method and relevant apparatus of data downloading | |
WO2021109703A1 (en) | Data processing method, chip, apparatus, and storage medium | |
CN106231347B (en) | A kind of playlist transmission method and device | |
CN107908365A (en) | The method, apparatus and equipment of User space memory system data interaction | |
CN111209243B (en) | Data processing device, method and related product | |
CN110650546B (en) | File transmission method, device, storage medium and terminal | |
CN106055365B (en) | A kind of closing application program method and apparatus | |
CN112565210A (en) | CDN node recommendation method, system, electronic device and storage medium | |
CN106502775B (en) | A kind of method and system of timesharing scheduling DSP algorithm | |
CN109189731A (en) | A kind of union file system file load equalization methods and device | |
CN103488576B (en) | A kind of high-performance block of cells EMS memory management process | |
CN110399314A (en) | A kind of CPU, a kind of electronic equipment and a kind of cpu cache control method | |
CN105843363B (en) | A kind of chip low power consumption optimization method and device | |
CN106354486B (en) | The method and system of nand flash equipment management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190625 |