Movatterモバイル変換


[0]ホーム

URL:


CN105138557B - A kind of music shuffle method and apparatus - Google Patents

A kind of music shuffle method and apparatus
Download PDF

Info

Publication number
CN105138557B
CN105138557BCN201510435294.5ACN201510435294ACN105138557BCN 105138557 BCN105138557 BCN 105138557BCN 201510435294 ACN201510435294 ACN 201510435294ACN 105138557 BCN105138557 BCN 105138557B
Authority
CN
China
Prior art keywords
music file
shuffle
link
music
shuffle playlist
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
CN201510435294.5A
Other languages
Chinese (zh)
Other versions
CN105138557A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing Hammer Numeral Science And 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 Beijing Hammer Numeral Science And Technology Co LtdfiledCriticalBeijing Hammer Numeral Science And Technology Co Ltd
Priority to CN201510435294.5ApriorityCriticalpatent/CN105138557B/en
Publication of CN105138557ApublicationCriticalpatent/CN105138557A/en
Application grantedgrantedCritical
Publication of CN105138557BpublicationCriticalpatent/CN105138557B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

The present invention provides a kind of music shuffle method and apparatus, the method includes:It is that weight is respectively set in each music file, and determines to be played number of each music file in a random rotation respectively according to the weight of each music file in advance;Create shuffle playlist, the shuffle playlist includes the link of each music file, wherein the number of the link for each music file that the shuffle playlist includes is identical as to be played number of each music file in a random rotation itself;The corresponding each music file of link in shuffle playlist described in shuffle.Compared with prior art, the present invention can realize the multiple broadcasting to same first song in a random rotation, that improves user listens song to experience under music shuffle play mode.

Description

A kind of music shuffle method and apparatus
Technical field
The present invention relates to data processing field more particularly to a kind of music shuffle method and apparatus.
Background technology
Music shuffle is a kind of common play mode of music player, and under this play mode, music is notAccording to playlist played in order, but shuffle.
Currently, being the secondary broadcasting that cannot achieve to same a piece of music in a random rotation of shuffle.AlsoIt is to say, it is desirable to play same a piece of music again and have to realize until next random rotation of shuffle.
Invention content
In view of this, the present invention provides a kind of music shuffle method and apparatus, can one of shuffle withSame a piece of music is repeated playing in machine cycle.
To achieve the above object, the present invention provides a kind of music shuffle method, the method includes:
It is that weight is respectively set in each music file, and determines each sound respectively according to the weight of each music file in advanceTo be played number of the music file in a random rotation;
Create shuffle playlist, the shuffle playlist includes the link of each music file, wherein described inThe number and each music file itself of the link for each music file that machine playlist includes are in a random rotationNumber to be played it is identical;
The corresponding each music file of link in shuffle playlist described in shuffle.
Preferably, described that weight is respectively set for each music file in advance, including:
User is collected to be accustomed to the broadcasting of each music file;
It is accustomed to according to the broadcasting of collection, weight is respectively set for each music file.
Preferably, the corresponding each music file of link in shuffle playlist described in the shuffle, including:
After the corresponding music file of any link in the shuffle playlist is played, the link is deleted, andObtain updated shuffle playlist;
Continue the corresponding each music file of link in updated shuffle playlist described in shuffle.
Preferably, the method further includes:
When receiving after cutting song instruction of user's triggering, music file currently playing in the shuffle playlist is deletedCorresponding link.
Preferably, the method further includes:
After deleting any link in the shuffle playlist, the corresponding music file of link described in synchronized update existsNumber to be played in one random rotation.
The present invention also provides a kind of music shuffle device, described device includes:
Setup module, for being that weight is respectively set in each music file in advance;
Determining module, for determining each music file in a random rotation respectively according to the weight of each music fileIn number to be played;
Creation module, for creating shuffle playlist, the shuffle playlist includes the chain of each music fileIt connects, wherein the number of the link for each music file that the shuffle playlist includes and each music file itself are oneNumber to be played in a random rotation is identical;
Playing module, for the corresponding each music file of link in shuffle playlist described in shuffle.
Preferably, the setup module, including:
Submodule is collected, the broadcasting of each music file is accustomed to for collecting user;
Submodule is set, for being accustomed to according to the broadcasting of collection, weight is respectively set for each music file.
Preferably, the playing module, including:
Submodule is deleted, is used for after the corresponding music file of any link in the shuffle playlist is played,The link is deleted, and obtains updated shuffle playlist;
Submodule is played, for the corresponding each music of link in updated shuffle playlist described in shuffleFile.
Preferably, described device further includes:
Removing module, for when receiving after cutting song instruction of user's triggering, deleting current in the shuffle playlistThe corresponding link of music file of broadcasting.
Preferably, described device further includes:
Update module is used for after deleting any link in the shuffle playlist, link pair described in synchronized updateTo be played number of the music file answered in a random rotation.
The present invention is that weight is respectively set in each music file, and is determined respectively according to the weight of each music file firstTo be played number of each music file in a random rotation.Secondly, shuffle playlist, the shuffle row are createdTable includes the link of each music file, wherein of the link for each music file that the shuffle playlist includesNumber is identical as to be played number of each music file in a random rotation itself.Finally, with machine sowing described in shuffleEmplace the corresponding each music file of link in table.Compared with prior art, the present invention can be in music shuffle play modeUnder, realize the multiple broadcasting to same first song in a random rotation, that improves user listens song to experience.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present inventionSome embodiments for those of ordinary skill in the art without creative efforts, can also basisThese attached drawings obtain other attached drawings.
Fig. 1 is music shuffle method flow diagram provided in an embodiment of the present invention;
Fig. 2 is music shuffle apparatus structure schematic diagram provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artThe every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Currently, there are itself for the music random play features of various common music players (such as Koowo music box)Limitation.For example, when user want in a random rotation it is secondary broadcasting with a piece of music when, existing music player isIt is irrealizable.So affecting the listening experience of user to a certain extent.The present inventor proposes following scheme,Music random play features in existing music player can be carried out it is perfect, improve user listen song experience.
In the present invention, weight is respectively set for each music file that music player to be played first, secondly, according to eachThe weight of a music file is respectively that each music file determines the number to be played in a random rotation.Again, it createsOne shuffle playlist, the link for storing each music file, each music in the specific shuffle playlistNumber to be played is identical in a random rotation with itself for the number of the connection of file.Finally, according to traditional music withMachine playback method plays the corresponding each music file of link in the shuffle playlist.
The embodiment of the present invention is described below.
It is provided in an embodiment of the present invention one that an embodiment of the present invention provides a kind of music shuffle methods with reference to figure 1Kind music shuffle method flow diagram, wherein the method includes:(S101-S104)
S101:It is that weight is respectively set in each music file in advance.
S102:Determine that each music file waits broadcasting in a random rotation respectively according to the weight of each music filePut number.
S103:Shuffle playlist is created, the shuffle playlist includes the link of each music file, wherein instituteThe number for stating the link for each music file that shuffle playlist includes is followed with each music file itself at one at randomNumber to be played in ring is identical.
S104:The corresponding each music file of link in shuffle playlist described in shuffle.
It wherein,, can be to difference in a random rotation in order to realize under music shuffle play mode in S101Music file play different numbers, in other words, in order to meet listen to demand of the user to different music files, the present inventionEmbodiment is that different weights is arranged in different music files in advance.
In practical application, a kind of realization method is that directly according to user, this demand for listening to music is each music textWeight is arranged in part.Another realization method is to be accustomed to the broadcasting of each music file by constantly collecting user, be each soundWeight is respectively set in music file.For example, then it is music text when user actively selects some music file and finishesPart increases weight, as weight increases by 1;When repeatedly selecting some music file in user's short time and finishing, for the soundMusic file increases weight, as weight increases broadcasting time;When some music file is cut song in playing process, by the musicThe weight of file is reduced, and weight subtracts 1 if being cut song once, and being cut song, then weight subtracts 3 twice;In addition, the embodiment of the present inventionIt can be combined with user and its weight determined to the integrated degree of listening to of every first song, such as whether certain head song hears out or major part is heard outEtc. a variety of conditions.
In S102, after the weight of each music file determines, determine it one according to the weight of each music fileNumber to be played in a random rotation.That is, the weight of each music file determines it in a random rotationPlayed number.Specifically, more for the played number that the larger music file of weight determines.It, can in practical applicationTo pre-set different weighting levels, that is to say, that according to the weighted of music file, different music files are assigned toIn different weighting levels, and pre-set weighting levels and music file in a random rotation number to be played it is correspondingRelationship can determine to be played number of each music file in a random rotation according to the correspondence.
In S103, a shuffle playlist is created, wherein the shuffle playlist includes each music fileLink, the usually title of music file, such as song title.It is worth noting that, the sound that the shuffle playlist includesThere is the link repeated in the link of music file.Specifically, the number of the repetition of the link of each music file and each music textTo be played number of the part in a random rotation itself is identical.
The embodiment of the present invention is in order to realize repeatedly being played to same a piece of music in a random rotation of initially proposingGoal of the invention replicates the song title of this song several times, to obtain multiple song titles of this song, and by theseThe shuffle playlist is added in song title.In addition, the embodiment of the present invention can also be multiple song titles of same first songIncrease mark, such as works as song《Like that I am Chinese》When number to be played in a random rotation is 3, in shuffle playlistIn the link of the song be respectively《Like my China 1》、《Like my China 2》、《Like my China 3》.
In S104, after the completion of shuffle playlist establishment, the link pair in shuffle playlist described in shuffleThe each music file answered.Specifically, being broadcast when any one in the shuffle playlist links corresponding music fileAfter the completion of putting, the link is deleted from the shuffle playlist directly, obtains updated shuffle playlist.ButIt is deleted to link with this and belongs to other of same music file and link and will not be involved, that is to say, that other are linked at subsequentlyShuffle in still be able to selected and play.In this way, the embodiment of the present invention is realized in a random rotationIn multiple broadcasting to the same music file.
In a kind of realization method, when user cuts song operation to the music file execution being currently played, system receivesCut song instruction to what user triggered, while song instruction is cut described in execution, delete in the shuffle playlist it is currentThe corresponding link of music file of broadcasting.That is, system can adjust in real time according to the demand of user it is described with machine sowingTable is emplaced, experience is sung to further increase listening for user.
In addition, after any one link in the shuffle playlist is deleted, the synchronized update deleted chainTo be played number of the corresponding music file in a random rotation is connect, to ensure that the shuffle playlist includes eachThe number of the link of a music file is identical as to be played number of each music file in a random rotation itself.
To sum up, weight is respectively set for each music file first in the embodiment of the present invention, and according to each music fileWeight determines to be played number of each music file in a random rotation respectively.Secondly, shuffle playlist, institute are createdThe link that shuffle playlist includes each music file is stated, wherein each music text that the shuffle playlist includesThe number of the link of part is identical as to be played number of each music file in a random rotation itself.Finally, with machine sowingPut the corresponding each music file of link in the shuffle playlist.Compared with prior art, the embodiment of the present invention canUnder music shuffle play mode, the multiple broadcasting to same first song in a random rotation is realized, that improves user listens song bodyIt tests.
Music shuffle method provided in an embodiment of the present invention can be applied in music player, be broadcast with improving musicPut the random play features of device.In addition, the music shuffle method can also be installed on webpage version music in the form of plug-in unitIn player, to improve the random play features of webpage version music player.
The embodiment of the present invention additionally provides a kind of music shuffle device, and with reference to figure 2, Fig. 2 carries for the embodiment of the present inventionA kind of music shuffle apparatus structure schematic diagram supplied, described device include:(201-204)
Setup module 201, for being that weight is respectively set in each music file in advance.
Determining module 202, for determining that each music file is random at one respectively according to the weight of each music fileNumber to be played in cycle.
Creation module 203, for creating shuffle playlist, the shuffle playlist includes each music fileLink, wherein the number of the link for each music file that the shuffle playlist includes and each music file itself existNumber to be played in one random rotation is identical.
Playing module 204, for the corresponding each music file of link in shuffle playlist described in shuffle.
Music shuffle device provided in an embodiment of the present invention can be each by the custom of collection user listened to musicWeight is arranged in a music file.Specifically, the setup module, including:
Submodule is collected, the broadcasting of each music file is accustomed to for collecting user;
Submodule is set, for being accustomed to according to the broadcasting of collection, weight is respectively set for each music file.
In addition, the playing module, including:
Submodule is deleted, is used for after the corresponding music file of any link in the shuffle playlist is played,The link is deleted, and obtains updated shuffle playlist;
Submodule is played, for the corresponding each music of link in updated shuffle playlist described in shuffleFile.
Experience is sung in order to further increase listening for user, the embodiment of the present invention can adjust according to the demand of user in real timeThe shuffle playlist.
Described device further includes:
Removing module, for when receiving after cutting song instruction of user's triggering, deleting current in the shuffle playlistThe corresponding link of music file of broadcasting.
In order to ensure each music file that the shuffle playlist includes link number and each music textTo be played number of the part in a random rotation itself is identical, and described device further includes:
Update module is used for after deleting any link in the shuffle playlist, link pair described in synchronized updateTo be played number of the music file answered in a random rotation.
In random music playing device provided in an embodiment of the present invention, weight is respectively set for each music file in advance,And to be played number of each music file in a random rotation is determined according to the weight of each music file respectively.It createsShuffle playlist, the shuffle playlist include the link of each music file, wherein in the shuffle playlistIncluding each music file link number to be played in a random rotation of number and each music file itselfIt is identical.The corresponding each music file of link in shuffle playlist described in shuffle.Compared with prior art, of the inventionEmbodiment can be realized the multiple broadcasting to same first song in a random rotation, improve and use under music shuffle play modeSong is listened to experience in family.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method realityApply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating componentThe unit of explanation may or may not be physically separated, and the component shown as unit can be or can alsoIt is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actualIt needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are notIn the case of making the creative labor, you can to understand and implement.
It should be noted that herein, relational terms such as first and second and the like are used merely to a realityBody or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operationIn any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended toNon-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including thoseElement, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipmentIntrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded thatThere is also other identical elements in process, method, article or equipment including the element.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the artFor member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answeredIt is considered as protection scope of the present invention.

Claims (10)

CN201510435294.5A2015-07-222015-07-22A kind of music shuffle method and apparatusActiveCN105138557B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510435294.5ACN105138557B (en)2015-07-222015-07-22A kind of music shuffle method and apparatus

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510435294.5ACN105138557B (en)2015-07-222015-07-22A kind of music shuffle method and apparatus

Publications (2)

Publication NumberPublication Date
CN105138557A CN105138557A (en)2015-12-09
CN105138557Btrue CN105138557B (en)2018-10-16

Family

ID=54723907

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510435294.5AActiveCN105138557B (en)2015-07-222015-07-22A kind of music shuffle method and apparatus

Country Status (1)

CountryLink
CN (1)CN105138557B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105956157A (en)*2016-05-162016-09-21乐视控股(北京)有限公司Song playing order arrangement method and device
CN106649480A (en)*2016-09-302017-05-10四川九洲电器集团有限责任公司Method for generating music listand server
CN107025914A (en)*2017-04-072017-08-08宇龙计算机通信科技(深圳)有限公司A kind of multi-medium play method and its device
WO2018188003A1 (en)*2017-04-122018-10-18格兰比圣(深圳)科技有限公司Music random playback method and device
CN107195317A (en)*2017-05-222017-09-22深圳天珑无线科技有限公司Method for playing music, device, storage medium and electronic equipment
CN108153898A (en)*2018-01-102018-06-12上海展扬通信技术有限公司Audio frequency playing method, terminal and computer readable storage medium
CN108255460A (en)*2018-01-112018-07-06上海展扬通信技术有限公司Music shuffle method, mobile terminal and computer readable storage medium
CN108920590A (en)*2018-06-262018-11-30北京小米移动软件有限公司Content playback method and device, electronic equipment, computer readable storage medium
CN112002352B (en)*2020-09-082022-11-15深圳赛安特技术服务有限公司Random music playing method and device, computer equipment and storage medium
CN113419798B (en)*2021-05-312023-12-19北京达佳互联信息技术有限公司Content display method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102905032A (en)*2012-10-242013-01-30广东欧珀移动通信有限公司 A method and system for implementing dynamic ringtones in smart phones
CN104615749A (en)*2015-02-122015-05-13深圳市欧珀通信软件有限公司Ring tone recommendation method and ring tone recommendation device
CN104715770A (en)*2015-03-112015-06-17广东欧珀移动通信有限公司Music playing method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TW200919206A (en)*2007-10-172009-05-01Micro Star Int Co LtdMethod of automatically creating play lists on multimedia player

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN102905032A (en)*2012-10-242013-01-30广东欧珀移动通信有限公司 A method and system for implementing dynamic ringtones in smart phones
CN104615749A (en)*2015-02-122015-05-13深圳市欧珀通信软件有限公司Ring tone recommendation method and ring tone recommendation device
CN104715770A (en)*2015-03-112015-06-17广东欧珀移动通信有限公司Music playing method and device

Also Published As

Publication numberPublication date
CN105138557A (en)2015-12-09

Similar Documents

PublicationPublication DateTitle
CN105138557B (en)A kind of music shuffle method and apparatus
CN104899302B (en)Recommend the method and apparatus of music to user
CN105100830B (en) Device and method for fast switching video source based on video aggregation service
CN105390144B (en) Audio processing method and audio processing device
WO2005026883A3 (en)Gaming device having player-selectable music
CA2327632A1 (en)Methods for creating and playing a customized program of a variety of sources
CN104978377B (en)A kind of method, apparatus and terminal of multimedia-data procession
CN104750868B (en)A kind of multimedia file play list method for building up and device
ATE396480T1 (en) MEDIA POST SELECTION
Turnbull et al.Using personalized radio to enhance local music discovery
CN107018238A (en)A kind of music quarter-bell and its application method
CN108182017A (en)Play mode switching method and apparatus
CN103002020B (en)Music sharing method and system thereof
CN105956040A (en)Method for analyzing song popularity under influence of social relationship in music information network
CN110516106A (en)A kind of audio playing software
CN106484833A (en)A kind of source of sound screening technique and electronic equipment
WO2016155139A1 (en)Ringtone playing method and apparatus, terminal and storage medium
CN101227763B (en)Method and device for processing sound effect
CN104580411A (en)Multimedia file sharing method and device
CN103369090B (en)Method and device for playing sounds on terminal
SharmaPopular FM Radio station and listening habits in Greater Noida
JP5086129B2 (en) Display system for music selection by genre
JP2010008846A (en)System for retrieval of high-level musical piece corresponding to person selecting musical piece
Fernández-Sande et al.Trends in Radio Research: Diversity, Innovation and Policies
SinghaSocial Structure and Communication System of a Transitional Manipuri Village in Assam

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20190121

Address after:100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Patentee after:BEIJING ZIJIE TIAODONG NETWORK TECHNOLOGY CO., LTD.

Address before:Room 309 and 310, Building 3, 33 D, 99 Kechuang 14th Street, Daxing Economic and Technological Development Zone, Beijing, 100176

Patentee before:Beijing hammer numeral science and technology company limited


[8]ページ先頭

©2009-2025 Movatter.jp