+

CN106095849A - Music method for pushing based on scene and music supplying system - Google Patents

Music method for pushing based on scene and music supplying system Download PDF

Info

Publication number
CN106095849A
CN106095849A CN201610389014.6A CN201610389014A CN106095849A CN 106095849 A CN106095849 A CN 106095849A CN 201610389014 A CN201610389014 A CN 201610389014A CN 106095849 A CN106095849 A CN 106095849A
Authority
CN
China
Prior art keywords
information
scene
online
user side
music
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.)
Pending
Application number
CN201610389014.6A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201610389014.6A priority Critical patent/CN106095849A/en
Publication of CN106095849A publication Critical patent/CN106095849A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/63Querying
    • G06F16/635Filtering based on additional data, e.g. user or group profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种基于场景的音乐推送方法和音乐推送系统,包括:每隔预设时长检测一次用户端的上网行为信息;根据连续两次获取到的上网行为信息获取用户端的所处的运动场景;根据运动场景和预先设置的第一对应关系表,查询出与运动场景对应的播放比特率,第一对应关系表中记载有不同运动场景及其对应的播放比特率;根据查询结果向所述用户端推送具备相应播放比特率的音乐。本发明的技术方案通过获取用户端所处的运动场景,并根据运动场景的不同,向用户端推送不同播放比特率的音乐,以使得用户端在低速运动场景时能够听到高品质音乐,以及在高速运动场景时能够听到连续播放的音乐,从而有效提升了用户的体验感。

The invention discloses a scene-based music push method and a music push system, comprising: detecting the online behavior information of the user terminal every preset time length; acquiring the motion scene of the user terminal according to the online behavior information obtained twice consecutively ; According to the motion scene and the preset first correspondence table, inquire out the playback bit rate corresponding to the motion scene, the first correspondence table is recorded with different motion scenes and their corresponding playback bit rates; according to the query result to the described The client pushes the music with the corresponding playback bit rate. The technical solution of the present invention obtains the motion scene where the user terminal is located, and pushes music with different playback bit rates to the user terminal according to the different motion scenes, so that the user terminal can hear high-quality music in a low-speed motion scene, and Continuously played music can be heard in high-speed motion scenes, which effectively improves the user experience.

Description

基于场景的音乐推送方法和音乐推送系统Scene-based music push method and music push system

技术领域technical field

本发明涉及通信技术领域,特别涉及一种基于场景的音乐推送方法和音乐推送系统。The invention relates to the field of communication technology, in particular to a scene-based music push method and a music push system.

背景技术Background technique

目前,用户在线听音乐时,对应音乐的比特率是系统默认的或者是用户事先设定好的,即用户所听的在线音乐的品质是固定的。现有的这种模式仅能满足处于静止状态的用户的体验,而对于处于运动状态的用户而言,其体验不佳。Currently, when a user listens to music online, the bit rate corresponding to the music is defaulted by the system or preset by the user, that is, the quality of the online music listened to by the user is fixed. This existing mode can only satisfy the user's experience in a static state, and the user's experience in a moving state is not good.

当用户处于运动状态时,随着用户所处位置的改变,与播放终端(例如手机)所连接的基站也会发生切换,在此过程中,播放终端对音乐的下载缓冲速度大大降低,播放终端的缓冲进度可能出现停滞,从而导致播放卡顿的情况,大大降低了用户的体验感。When the user is in a state of motion, as the user's location changes, the base station connected to the playback terminal (such as a mobile phone) will also switch. The buffering progress of the game may stagnate, resulting in stuck playback, which greatly reduces the user experience.

由上述内容可见,如何有效的提升用户在线听音乐的体验感,是本领域亟需解决的技术问题。It can be seen from the above content that how to effectively improve the user's experience of listening to music online is a technical problem that needs to be solved urgently in this field.

发明内容Contents of the invention

本发明提供一种基于场景的音乐推送方法和音乐推送系统,旨在解决现有技术中存在的技术问题之一。The present invention provides a scene-based music push method and a music push system, aiming to solve one of the technical problems existing in the prior art.

为实现上述目的,本发明提供了一种基于场景的音乐推送方法,包括:In order to achieve the above object, the present invention provides a scene-based music push method, including:

每隔预设时长检测一次用户端的上网行为信息,所述上网行为信息包括:上网位置子信息和上网时刻子信息;Detecting the online behavior information of the user terminal every preset time length, the online behavior information includes: online location sub-information and online time sub-information;

根据连续两次获取到的所述上网行为信息获取所述用户端的所处的运动场景;Acquiring the motion scene of the user terminal according to the online behavior information obtained twice in a row;

根据所述运动场景和预先设置的第一对应关系表,查询出与所述运动场景对应的播放比特率,所述第一对应关系表中记载有不同运动场景及其对应的播放比特率;According to the sports scene and the preset first correspondence table, query the playback bit rate corresponding to the sports scene, and the first correspondence table records different sports scenes and their corresponding playback bit rates;

根据查询结果向所述用户端推送具备相应播放比特率的音乐。According to the query result, the music with the corresponding playback bit rate is pushed to the client.

可选地,所述根据连续两次获取到的所述上网行为信息获取所述用户端的运动场景的步骤包括:Optionally, the step of obtaining the motion scene of the user terminal according to the online behavior information obtained twice in succession includes:

根据连续两次获取到的所述上网行为信息计算出所述用户端的运动速度;calculating the movement speed of the user terminal according to the online behavior information obtained twice in a row;

根据所述运动速度和预先设置的第二对应关系表,查询出与所述运动速度对应的运动场景,所述第二对应关系表中记载有不同运动速度及其对应的运动场景。The motion scene corresponding to the motion speed is queried according to the motion speed and a preset second correspondence table, where different motion speeds and corresponding motion scenes are recorded in the second correspondence table.

可选地,所述每隔预设时长检测一次用户端的上网行为信息的步骤包括:Optionally, the step of detecting the online behavior information of the client every preset time period includes:

检测所述用户端的最新一条上网记录,并从该上网记录中获取所述用户端所接入的接入基站和接入时刻,所述接入时刻作为上网子信息;Detecting the latest online record of the user terminal, and obtaining the access base station and the access time of the user terminal from the online record, and the access time is used as the Internet access information;

获取所述接入基站对应的经度和纬度,以作为所述用户端的上网位置子信息。Acquiring the longitude and latitude corresponding to the access base station as sub-information of the user terminal's online location.

可选地,所述根据连续两次获取到的所述上网行为信息计算出所述用户端的运动速度的步骤包括:Optionally, the step of calculating the movement speed of the user terminal according to the online behavior information obtained twice in succession includes:

根据连续两次获取到的所述上网位置子信息计算出所述用户端的运动距离Distance,calculating the movement distance Distance of the user terminal according to the sub-information of the online location acquired twice in succession,

Distance=R*arccos(C)*PDistance=R*arccos(C)*P

C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)

其中,R为地球半径,P为常数且取值为Lat_A为前一次获取到的所述上网位置子信息中的经度,MLon_A为前一次获取到的所述上网位置子信息中的纬度,Lat_B为后一次获取到的所述上网位置子信息中的经度,MLon_B为后一次获取到的所述上网位置子信息中的纬度;Among them, R is the radius of the earth, P is a constant and the value is Lat_A is the longitude in the previously obtained sub-information of the online location, MLon_A is the latitude in the sub-information of the online location obtained previously, and Lat_B is the longitude in the sub-information of the online location obtained later , MLon_B is the latitude in the sub-information of the online location obtained last time;

根据连续两次获取到的所述上网时刻子信息计算出所述用户端的运动时间T,Calculate the exercise time T of the user terminal according to the sub-information of the Internet access time acquired twice in a row,

T=Time_B-Time_AT=Time_B-Time_A

其中,Time_A为前一次获取到所述上网时刻子信息中的所述接入时刻,Time_B为后一次获取到所述上网时刻子信息中的所述接入时刻;Wherein, Time_A is the access time in the sub-information of the online time obtained last time, and Time_B is the access time in the sub-information of the online time obtained in the next time;

根据所述运动距离和运动时间计算出所述用户端的运动速度。Calculate the movement speed of the user terminal according to the movement distance and movement time.

为实现上述目的,本发明还提供了一种基于场景的音乐推送系统,包括:To achieve the above object, the present invention also provides a scene-based music push system, including:

行为检测模块,用于每隔预设时长检测一次用户端的上网行为信息,所述上网行为信息包括:上网位置子信息和上网时刻子信息;The behavior detection module is used to detect the online behavior information of the user terminal every preset period of time, and the online behavior information includes: online location sub-information and online time sub-information;

场景获取模块,用于根据连续两次获取到的所述上网行为信息获取所述用户端的所处的运动场景;A scene acquisition module, configured to acquire the sports scene of the client according to the online behavior information acquired twice in a row;

比特率查询模块,用于根据所述运动场景和预先设置的第一对应关系表,查询出与所述运动场景对应的播放比特率,所述第一对应关系表中记载有不同运动场景及其对应的播放比特率;The bit rate query module is used to query the playback bit rate corresponding to the sports scene according to the sports scene and the preset first correspondence table, and the first correspondence table records different sports scenes and their The corresponding playback bit rate;

音乐推送模块,用于根据所述查询模块的查询结果向所述用户端推送具备相应播放比特率的音乐。A music push module, configured to push music with a corresponding playback bit rate to the client according to the query result of the query module.

可选地,所述场景获取模块包括:Optionally, the scene acquisition module includes:

速度计算单元,用于根据连续两次获取到的所述上网行为信息计算出所述用户端的运动速度;a speed calculation unit, configured to calculate the movement speed of the user terminal according to the online behavior information obtained twice in a row;

场景查询单元,用于根据所述运动速度和预先设置的第二对应关系表,查询出与所述运动速度对应的运动场景,所述第二对应关系表中记载有不同运动速度及其对应的运动场景。The scene query unit is used to query the motion scene corresponding to the motion speed according to the motion speed and the preset second correspondence table, and the second correspondence table records different motion speeds and their corresponding sports scene.

可选地,所述行为检测模块包括:Optionally, the behavior detection module includes:

记录检测单元,用于检测所述用户端的最新一条上网记录,并从该上网记录中获取所述用户端所接入的接入基站和接入时刻,所述接入时刻作为上网子信息;The record detection unit is used to detect the latest online record of the user terminal, and obtain the access base station and the access time accessed by the user terminal from the online record, and the access time is used as the online sub information;

位置获取单元,获取所述接入基站接入对应的经度和纬度,以作为所述用户端的上网位置子信息。The location acquisition unit is configured to acquire the longitude and latitude corresponding to the access base station as sub-information of the online location of the user terminal.

可选地,所述速度计算单元包括:Optionally, the speed calculation unit includes:

距离计算子单元,用于根据连续两次获取到的所述上网位置子信息计算出所述用户端的运动距离Distance,a distance calculation subunit, configured to calculate the moving distance Distance of the user terminal according to the online location sub-information obtained twice in succession,

Distance=R*arccos(C)*PDistance=R*arccos(C)*P

C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)

其中,R为地球半径,P为常数且取值为Lat_A为前一次获取到的所述上网位置子信息中的经度,MLon_A为前一次获取到的所述上网位置子信息中的纬度,Lat_B为后一次获取到的所述上网位置子信息中的经度,MLon_B为后一次获取到的所述上网位置子信息中的纬度;Among them, R is the radius of the earth, P is a constant and the value is Lat_A is the longitude in the previously obtained sub-information of the online location, MLon_A is the latitude in the sub-information of the online location obtained previously, and Lat_B is the longitude in the sub-information of the online location obtained later , MLon_B is the latitude in the sub-information of the online location obtained last time;

时间计算子单元,用于根据连续两次获取到的所述上网时刻子信息计算出所述用户端运动时间T,The time calculation subunit is used to calculate the user terminal exercise time T according to the sub-information of the Internet access time acquired twice in a row,

T=Time_B-Time_AT=Time_B-Time_A

其中,Time_A为前一次获取到所述上网时刻子信息中的所述接入时刻,Time_B为后一次获取到所述上网时刻子信息中的所述接入时刻;Wherein, Time_A is the access time in the sub-information of the online time obtained last time, and Time_B is the access time in the sub-information of the online time obtained in the next time;

速度计算子单元,用于根据所述运动距离和运动时间计算出所述用户端的运动速度。The speed calculation subunit is used to calculate the movement speed of the user terminal according to the movement distance and movement time.

本发明具有以下有益效果:The present invention has the following beneficial effects:

本发明提供了一种基于场景的音乐推送方法和音乐推送系统,包括:每隔预设时长检测一次用户端的上网行为信息,上网行为信息包括:上网位置子信息和上网时刻子信息;根据连续两次获取到的上网行为信息获取用户端的所处的运动场景;根据运动场景和预先设置的第一对应关系表,查询出与运动场景对应的播放比特率,第一对应关系表中记载有不同运动场景及其对应的播放比特率;根据查询结果向所述用户端推送具备相应播放比特率的音乐。本发明的技术方案通过获取用户端所处的运动场景,并根据运动场景的不同,向用户端推送不同播放比特率的音乐,以使得用户端在低速运动场景时能够听到高品质音乐,以及在高速运动场景时能够听到连续播放的音乐,从而有效提升了用户的体验感。The present invention provides a scene-based music push method and a music push system, comprising: detecting the online behavior information of the user end every preset time length, the online behavior information includes: online location sub-information and online time sub-information; according to two consecutive Obtain the sports scene where the user is located in the online behavior information obtained for the first time; according to the sports scene and the preset first correspondence table, query the playback bit rate corresponding to the sports scene, and the first correspondence table records different sports Scenes and their corresponding playback bit rates; push music with corresponding playback bit rates to the client according to the query results. The technical solution of the present invention obtains the motion scene where the user terminal is located, and pushes music with different playback bit rates to the user terminal according to the different motion scenes, so that the user terminal can hear high-quality music in a low-speed motion scene, and Continuously played music can be heard in high-speed motion scenes, which effectively improves the user experience.

附图说明Description of drawings

图1为本发明实施例一提供的一种基于场景的音乐推送方法的流程图;FIG. 1 is a flow chart of a scene-based music push method provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种基于场景的音乐推送系统的结构示意图。FIG. 2 is a schematic structural diagram of a scene-based music push system provided by Embodiment 2 of the present invention.

具体实施方式detailed description

为使本领域的技术人员更好地理解本发明的技术方案,下面结合附图对本发明提供的一种基于场景的音乐推送方法和音乐推送系统进行详细描述。In order for those skilled in the art to better understand the technical solutions of the present invention, a scene-based music push method and music push system provided by the present invention will be described in detail below in conjunction with the accompanying drawings.

图1为本发明实施例一提供的一种基于场景的音乐推送方法的流程图,如图1所示,该基于场景的音乐推送方法Fig. 1 is a flow chart of a scene-based music push method provided by Embodiment 1 of the present invention, as shown in Fig. 1 , the scene-based music push method

步骤101:每隔预设时长检测一次用户端的上网行为信息。Step 101: Detect the online behavior information of the user terminal every preset period of time.

当用户通过用户端(例如:手机)进行音乐在线播放时,会用户端必然会不断的产生上网记录。在步骤101中,每隔预设时长对用户端的上网记录进行一次检测,并生成相应的上网行为信息,该上网行为信息包括:上网位置子信息和上网时刻子信息。需要说明的是,该预设时长可根据实际需求进行相应调整。When a user plays music online through a user terminal (such as a mobile phone), the user terminal will inevitably continuously generate Internet access records. In step 101, the user's surfing record is detected every preset period of time, and corresponding surfing behavior information is generated. The surfing behavior information includes: surfing location sub-information and surfing time sub-information. It should be noted that the preset duration can be adjusted accordingly according to actual needs.

可选地,步骤101包括:Optionally, step 101 includes:

步骤1011:检测用户端的最新一条上网记录,并从该上网记录中获取用户端所接入的接入基站和接入时刻,接入时刻作为上网子信息。Step 1011: Detect the latest Internet access record of the user end, and obtain the access base station and the access time of the user end from the Internet access record, and the access time is used as the Internet sub information.

在步骤1011中,即每隔预设时长获取一次用户端的一条最新上网记录,并从该上网记录中获取用户端所接入的接入基站和接入时刻,其中,将获取的接入时刻作为上网子信息In step 1011, a newest Internet access record of the user end is obtained every preset time length, and the access base station and the access time of the user end are obtained from the Internet access record, wherein the obtained access time is used as online information

步骤1012:获取接入基站对应的经度和纬度,以作为用户端的上网位置子信息。Step 1012: Obtain the longitude and latitude corresponding to the access base station as sub-information of the user terminal's online location.

在步骤1012中,从步骤1011中所获取的上网记录中可以获取到接入基站的编号,再从基站信息查询系统中查询出对应的接入基站的经度和纬度,并将查询出的经度和纬度作为上网位置子信息。In step 1012, the serial number of the access base station can be obtained from the Internet access record obtained in step 1011, and then the longitude and latitude of the corresponding access base station can be queried from the base station information query system, and the longitude and latitude of the queried longitude and The latitude is used as the sub-information of the online location.

步骤102:根据连续两次获取到的上网行为信息获取用户端的所处的运动场景。Step 102: Obtain the sports scene of the user terminal according to the online behavior information acquired twice in a row.

在步骤102中,可以基于连续两次获取到的上网行为信息来对用户端所处的运动场景进行判断。In step 102, the sports scene where the user terminal is located may be judged based on the online behavior information acquired twice in a row.

可选地,步骤102包括:Optionally, step 102 includes:

步骤1021:根据连续两次获取到的上网行为信息计算出用户端的运动速度。Step 1021: Calculate the movement speed of the user terminal according to the online behavior information acquired twice in a row.

步骤1021具体包括:Step 1021 specifically includes:

步骤1021a:根据连续两次获取到的上网位置子信息计算出用户端的运动距离Distance。Step 1021a: Calculate the movement distance Distance of the user terminal according to the online location sub-information acquired twice in a row.

在步骤1021中,可根据如下公式计算出用户端的运动距离Distance:In step 1021, the moving distance Distance of the user terminal can be calculated according to the following formula:

Distance=R*arccos(C)*PDistance=R*arccos(C)*P

C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)

其中,R为地球半径,P为常数且取值为Lat_A为前一次获取到的上网位置子信息中的经度,MLon_A为前一次获取到的上网位置子信息中的纬度,Lat_B为后一次获取到的上网位置子信息中的经度,MLon_B为后一次获取到的上网位置子信息中的纬度。Among them, R is the radius of the earth, P is a constant and the value is Lat_A is the longitude in the previously obtained online location sub-information, MLon_A is the latitude in the previously obtained online location sub-information, Lat_B is the longitude in the later obtained online location sub-information, and MLon_B is the latter acquisition The latitude in the sub-information of the surfing location received.

步骤1021b:根据连续两次获取到的上网时刻子信息计算出用户端的运动时间T。Step 1021b: Calculate the exercise time T of the user terminal according to the access time sub-information acquired twice in succession.

在步骤1021中,可根据如下公式计算出用户端的运动时间T:In step 1021, the exercise time T of the user terminal can be calculated according to the following formula:

T=Time_B-Time_AT=Time_B-Time_A

其中,Time_A为前一次获取到上网时刻子信息中的接入时刻,Time_B为后一次获取到上网时刻子信息中的接入时刻;Wherein, Time_A is the access time obtained in the sub-information of the Internet access time in the previous time, and Time_B is the access time in the sub-information of the Internet access time obtained in the next time;

步骤1021c:根据运动距离和运动时间计算出用户端的运动速度。Step 1021c: Calculate the movement speed of the user terminal according to the movement distance and movement time.

在步骤1021c中,可根据如下公式计算出用户端的运动速度V:In step 1021c, the moving speed V of the user terminal can be calculated according to the following formula:

V=Distance/TV=Distance/T

步骤1022:根据运动速度和预先设置的第二对应关系表,查询出与运动速度对应的运动场景,第二对应关系表中记载有不同运动速度及其对应的运动场景。Step 1022: According to the movement speed and the preset second correspondence table, query the movement scene corresponding to the movement speed. The second correspondence relation table records different movement speeds and their corresponding movement scenes.

在步骤1022中,可以预先根据实际经验生成一个记载有不同运动速度及其对应的运动场景的第二对应关系表。表2为本实施例中提供的一个第二对应关系表,如下表1所示:In step 1022, a second correspondence table recording different motion speeds and corresponding motion scenes may be generated in advance based on actual experience. Table 2 is a second correspondence table provided in this embodiment, as shown in Table 1 below:

表1.第二对应关系表Table 1. The second correspondence table

速度区间(km/h)Speed range (km/h) 运动场景sports scene 00 原地停留stay put 1~121~12 步行walk 12~2512~25 自行车/跑步cycling/running 25~4025~40 汽车car 40~12040~120 地铁/高速公路subway/highway 120~300120~300 高铁high speed rail 300以上300 or more 飞机airplane

需要说明的是,上述第二对应关系中划分出7个速度区间和对应的7个运动场景的情况仅起到示例性作用,其不会对本发明的技术方案产生限制。本领域技术人员应该知晓的是,可以根据实际需要对运动区间的数量、范围以及对应的运动场景进行相应改变。It should be noted that the division of 7 speed intervals and corresponding 7 motion scenes in the above second correspondence relationship is only an example, and will not limit the technical solution of the present invention. Those skilled in the art should know that the number and range of motion intervals and corresponding motion scenes can be changed according to actual needs.

步骤103:根据运动场景和预先设置的第一对应关系表,查询出与运动场景对应的播放比特率,第一对应关系表中记载有不同运动场景及其对应的播放比特率。Step 103: According to the sports scene and the preset first correspondence table, query the playback bit rate corresponding to the sports scene. The first correspondence table records different sports scenes and their corresponding playback bit rates.

在步骤103中,可以根据实际经验来为每个运动场景预先配置一个对应的播放比特率,并将该对应关系记载于第一对应关系表中。其中,考虑到播放比特率越大,音乐品质越好,对应用户端所需要的下载缓冲速度越高。为保证用户端在高速运动场景下不会出现音乐播放卡顿的情况,则需要使得第一对应关系表中的高速运动场景所对应的播放比特率小于低速场景所对应播放比特率,即运动场景所对应的运动速度越大,该运动场景所配置的播放比特率越小。In step 103, a corresponding playback bit rate may be pre-configured for each sports scene according to actual experience, and the corresponding relationship may be recorded in the first corresponding relationship table. Wherein, considering that the higher the playback bit rate is, the better the music quality is, and the higher the download buffering speed required by the corresponding client is. In order to ensure that the user end does not experience music playback freezes in high-speed motion scenes, it is necessary to make the playback bit rate corresponding to the high-speed motion scene in the first correspondence table smaller than the playback bit rate corresponding to the low-speed scene, that is, the motion scene The greater the corresponding motion speed, the lower the playback bit rate configured for the motion scene.

需要说明的是,本实施例中在设计第一对应关系表时,也可以根据实际经验为各运动场景配置一个相应的比特率区间,具体情况此处不再详细描述。It should be noted that, in this embodiment, when designing the first correspondence table, a corresponding bit rate interval may also be configured for each motion scene according to actual experience, and the specific situation will not be described in detail here.

步骤104:根据查询结果向用户端推送具备相应播放比特率的音乐。Step 104: According to the query result, the music with the corresponding playback bit rate is pushed to the user terminal.

在步骤104中,可以根据步骤103中的查询结果向用户端推送具备相应播放比特率的音乐。具体地,当用户端处于高速运动场景时,则向用户端推送播放比特率较小的音乐,此时用户端可能会因为频换切换基站而导致下载缓冲速度较慢,但是由于对应的音乐的播放比特率较小,因而用户端对该在线音乐的缓冲进度的增长速度也能够满足正常播放要求,此时用户端不会出现卡顿现象。当用户端处于低速运动场景或静止时,则向用户端推送播放比特率较大的音乐,此时用户能够欣赏到高品质的音乐。In step 104, according to the query result in step 103, the music with the corresponding playback bit rate can be pushed to the user terminal. Specifically, when the user terminal is in a high-speed motion scene, it pushes and plays music with a lower bit rate to the user terminal. At this time, the user terminal may cause the download buffer speed to be slow due to frequent switching of base stations, but due to the corresponding music The playback bit rate is small, so the growth rate of the buffering progress of the online music on the client side can also meet the normal playback requirements, and at this time the client side will not appear stuck. When the user terminal is in a low-speed motion scene or is still, push and play music with a higher bit rate to the user terminal, and the user can enjoy high-quality music at this time.

本发明实施例一提供了一种音乐推送方法,通过获取用户端所处的运动场景,并根据运动场景的不同,向用户端推送不同播放比特率的音乐,以使得用户端在低速运动场景时能够听到高品质音乐,以及在高速运动场景时能够听到连续播放的音乐,从而有效提升了用户的体验感。Embodiment 1 of the present invention provides a music push method, by acquiring the motion scene where the user terminal is located, and pushing music with different playback bit rates to the user terminal according to the different motion scenes, so that the user terminal is in a low-speed motion scene. You can hear high-quality music, as well as continuously played music in high-speed sports scenes, which effectively improves the user experience.

实施例二Embodiment two

图2为本发明实施例二提供的一种基于场景的音乐推送系统的结构示意图,如图2所示,音乐推送系统用于实现上述实施例一中的音乐推送方法,该音乐推送系统包括:行为检测模块1、场景获取模块2、比特率查询模块3和音乐推送模块4。FIG. 2 is a schematic structural diagram of a scene-based music push system provided in Embodiment 2 of the present invention. As shown in FIG. 2 , the music push system is used to implement the music push method in Embodiment 1 above, and the music push system includes: Behavior detection module 1, scene acquisition module 2, bit rate query module 3 and music push module 4.

其中,行为检测模块1用于每隔预设时长检测一次用户端的上网行为信息,上网行为信息包括:上网位置子信息和上网时刻子信息。场景获取模块2用于根据连续两次获取到的上网行为信息获取用户端的所处的运动场景。比特率查询模块3用于根据运动场景和预先设置的第一对应关系表,查询出与运动场景对应的播放比特率,第一对应关系表中记载有不同运动场景及其对应的播放比特率。音乐推送模块4用于根据查询模块3的查询结果向用户端推送具备相应播放比特率的音乐。Wherein, the behavior detection module 1 is used to detect the online behavior information of the user end every preset time period, and the online behavior information includes: online location sub-information and online time sub-information. The scene acquisition module 2 is used to acquire the sports scene of the user terminal according to the online behavior information acquired twice in succession. The bit rate query module 3 is used to query the playback bit rate corresponding to the sports scene according to the sports scene and the preset first correspondence table. The first correspondence table records different sports scenes and their corresponding playback bit rates. The music push module 4 is used to push music with corresponding playback bit rate to the client according to the query result of the query module 3 .

需要说明的是,本实施例中的行为检测模块1用于执行上述实施例一中的步骤101,场景获取模块2用于执行上述实施例一中的步骤102,比特率查询模块用于3执行上述实施例一中的步骤103,音乐推送模块4用于执行上述实施例一中的步骤104,对于本实施例中各模块的具体工作过程可参见上述实施例一中相应的描述,此处不再赘述。It should be noted that the behavior detection module 1 in this embodiment is used to execute step 101 in the first embodiment above, the scene acquisition module 2 is used to execute step 102 in the first embodiment above, and the bit rate query module is used to execute step 3 In step 103 in the above-mentioned embodiment one, the music push module 4 is used to execute step 104 in the above-mentioned embodiment one. For the specific working process of each module in this embodiment, please refer to the corresponding description in the above-mentioned embodiment one. Let me repeat.

本实施例中,可选地,行为检测模块1包括:记录检测单元11和位置获取单元12。其中,记录检测单元11用于检测用户端的最新一条上网记录,并从该上网记录中获取用户端所接入的接入基站和接入时刻,接入时刻作为上网子信息;位置获取单元12获取接入基站接入对应的经度和纬度,以作为用户端的上网位置子信息。In this embodiment, optionally, the behavior detection module 1 includes: a record detection unit 11 and a location acquisition unit 12 . Wherein, the record detection unit 11 is used to detect the latest online record of the user terminal, and obtain the access base station and the access time of the user terminal from the online record, and the access time is used as the online sub information; the position acquisition unit 12 acquires The access base station accesses the corresponding longitude and latitude as sub-information of the online location of the user terminal.

需要说明的是,本实施例中的记录检测单元11用于执行上述实施例一中的步骤1011,位置获取单元12用于执行上述实施例一中的步骤1012,对于记录检测单元11和位置获取单元12的具体工作过程可参见上述实施例一中相应的描述,此处不再赘述。It should be noted that the record detection unit 11 in this embodiment is used to execute step 1011 in the first embodiment above, and the location acquisition unit 12 is used to execute step 1012 in the first embodiment above. For the record detection unit 11 and the location acquisition For the specific working process of the unit 12, reference may be made to the corresponding description in the first embodiment above, and details are not repeated here.

进一步可选地,场景获取模块2包括:速度计算单元21和场景查询单元22。其中,速度计算单元21用于根据连续两次获取到的上网行为信息计算出用户端的运动速度。场景查询单元22用于根据运动速度和预先设置的第二对应关系表,查询出与运动速度对应的运动场景,第二对应关系表中记载有不同运动速度及其对应的运动场景。Further optionally, the scene acquisition module 2 includes: a speed calculation unit 21 and a scene query unit 22 . Wherein, the speed calculation unit 21 is used to calculate the movement speed of the user terminal according to the online behavior information acquired twice in succession. The scene query unit 22 is used to search out the motion scene corresponding to the motion speed according to the motion speed and the preset second correspondence table, and the second correspondence table records different motion speeds and corresponding motion scenes.

更具体地,速度计算单元21包括:距离计算子单元21a、时间计算子单元21b和速度计算子单元21c。More specifically, the speed calculation unit 21 includes: a distance calculation subunit 21a, a time calculation subunit 21b, and a speed calculation subunit 21c.

其中,距离计算子单元21a用于根据连续两次获取到的上网位置子信息计算出用户端的运动距离Distance。Wherein, the distance calculation subunit 21a is used to calculate the moving distance Distance of the user terminal according to the online location sub-information acquired twice in a row.

Distance=R*arccos(C)*PDistance=R*arccos(C)*P

C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)C=sin(Lat_A*P)*sin(Lat_B*P)+cos(Lat_A*P)*cos(Lat_B*P)*cos((MLon_A-MLon_B)*P)

其中,R为地球半径,P为常数且取值为Lat_A为前一次获取到的上网位置子信息中的经度,MLon_A为前一次获取到的上网位置子信息中的纬度,Lat_B为后一次获取到的上网位置子信息中的经度,MLon_B为后一次获取到的上网位置子信息中的纬度;Among them, R is the radius of the earth, P is a constant and the value is Lat_A is the longitude in the previously obtained online location sub-information, MLon_A is the latitude in the previously obtained online location sub-information, Lat_B is the longitude in the later obtained online location sub-information, and MLon_B is the latter acquisition The latitude in the sub-information of the accessed online location;

时间计算子单元21b用于根据连续两次获取到的上网时刻子信息计算出用户端运动时间T。The time calculation subunit 21b is used to calculate the exercise time T of the user terminal according to the sub-information of the surfing time acquired twice in succession.

T=Time_B-Time_AT=Time_B-Time_A

其中,Time_A为前一次获取到上网时刻子信息中的接入时刻,Time_B为后一次获取到上网时刻子信息中的接入时刻;Wherein, Time_A is the access time obtained in the sub-information of the Internet access time in the previous time, and Time_B is the access time in the sub-information of the Internet access time obtained in the next time;

速度计算子单元21c用于根据运动距离和运动时间计算出用户端的运动速度V,其中V=Distance/T。The speed calculation subunit 21c is used to calculate the moving speed V of the user terminal according to the moving distance and the moving time, where V=Distance/T.

需要说明的是,本实施例中的记录检测单元21用于执行上述实施例一中的步骤1021,场景查询单元22用于执行上述实施例一中的步骤1022,距离计算子单元21a用于执行上述实施例一中的步骤1021a,时间计算子单元21b用于执行上述实施例一中的步骤1021b,速度计算子单元21c用于执行上述实施例一中的步骤1021c,对于上述各单元和子单元的的具体工作过程可参见上述实施例一中相应的描述,此处不再赘述。It should be noted that the record detection unit 21 in this embodiment is used to execute step 1021 in the first embodiment above, the scene query unit 22 is used to execute step 1022 in the first embodiment above, and the distance calculation subunit 21a is used to execute Step 1021a in the first embodiment above, the time calculation subunit 21b is used to execute step 1021b in the first embodiment above, and the speed calculation subunit 21c is used to execute step 1021c in the first embodiment above, for the above-mentioned units and subunits For the specific working process, refer to the corresponding description in the first embodiment above, and details are not repeated here.

本发明实施例二提供了一种音乐推送系统,通过获取用户端所处的运动场景,并根据运动场景的不同,向用户端推送不同播放比特率的音乐,以使得用户端在低速运动场景时能够听到高品质音乐,以及在高速运动场景时能够听到连续播放的音乐,从而有效提升了用户的体验感。Embodiment 2 of the present invention provides a music push system. By acquiring the motion scene where the user terminal is located, and according to the different motion scenes, music with different playback bit rates is pushed to the user terminal, so that the user terminal is in a low-speed motion scene. You can hear high-quality music, as well as continuously played music in high-speed sports scenes, which effectively improves the user experience.

可以理解的是,以上实施方式仅仅是为了说明本发明的原理而采用的示例性实施方式,然而本发明并不局限于此。对于本领域内的普通技术人员而言,在不脱离本发明的精神和实质的情况下,可以做出各种变型和改进,这些变型和改进也视为本发明的保护范围。It can be understood that, the above embodiments are only exemplary embodiments adopted for illustrating the principle of the present invention, but the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also regarded as the protection scope of the present invention.

Claims (8)

1. a music method for pushing based on scene, it is characterised in that including:
Every the internet behavior information of a preset duration user side of detection, described internet behavior information includes: online position Triplet information when information and online;
According to the moving scene residing for user side described in the double described internet behavior acquisition of information got;
According to described moving scene and the first mapping table pre-set, inquire the broadcasting corresponding with described moving scene Bit rate, has the broadcasting bit rate of different motion scene and correspondence thereof described in described first mapping table;
The corresponding music playing bit rate is possessed to the propelling movement of described user side according to Query Result.
Music method for pushing based on scene the most according to claim 1, it is characterised in that described obtain according to double Described in the described internet behavior acquisition of information got, the step of the moving scene of user side includes:
The movement velocity of described user side is calculated according to the double described internet behavior information got;
According to described movement velocity and the second mapping table pre-set, inquire the motion corresponding with described movement velocity Scene, has the moving scene of different motion speed and correspondence thereof described in described second mapping table.
Music method for pushing based on scene the most according to claim 2, it is characterised in that described every preset duration inspection The step of the internet behavior information surveying a user side includes:
Detect a up-to-date internet records of described user side, and connecing of obtaining from this internet records that described user side accessed Entering base station and access the moment, the described access moment is as upper net information;
Obtain longitude corresponding to described access base station and latitude, using the sub-information in online position as described user side.
Music method for pushing based on scene the most according to claim 3, it is characterised in that described obtain according to double The step of the movement velocity that the described internet behavior information got calculates described user side includes:
The move distance Distance of described user side is calculated according to the double sub-information in described online position got,
Distance=R*arccos (C) * P
C=sin (Lat_A*P) * sin (Lat_B*P)+cos (Lat_A*P) * cos (Lat_B*P) * cos ((MLon_A-MLon_ B)*P)
Wherein, R is earth radius, and P is constant and value isThe described online position son letter that Lat_A once gets before being Longitude in breath, the latitude in the sub-information in described online position that MLon_A once gets before being, Lat_B once obtains after being To the sub-information in described online position in longitude, the latitude in the sub-information in described online position that MLon_B once gets after being Degree;
The movement time T of described user side is calculated according to triplet information during the double described online got,
T=Time_B-Time_A
Wherein, in the described access moment in triplet information Time_A once gets described online before being time, Time_B is rear one Secondary get described online time triplet information in described access the moment;
The movement velocity of described user side is calculated according to described move distance and movement time.
5. a music supplying system based on scene, it is characterised in that including:
Behavioral value module, for the internet behavior information every a preset duration user side of detection, described internet behavior is believed Breath includes: triplet information when the sub-information in online position and online;
Scene acquisition module, for according to residing for user side described in the double described internet behavior acquisition of information got Moving scene;
Bit rate enquiry module, for according to described moving scene and the first mapping table pre-set, inquiring and institute State the broadcasting bit rate that moving scene is corresponding, described in described first mapping table, have broadcasting of different motion scene and correspondence thereof Put bit rate;
Music pushing module, plays ratio accordingly for pushing to possess to described user side according to the Query Result of described enquiry module The music of special rate.
Music supplying system based on scene the most according to claim 5, it is characterised in that described scene acquisition module bag Include:
Speed calculation unit, for calculating the fortune of described user side according to the double described internet behavior information got Dynamic speed;
Scenario queries unit, for according to described movement velocity and the second mapping table pre-set, inquiring with described The moving scene that movement velocity is corresponding, has the sports ground of different motion speed and correspondence thereof described in described second mapping table Scape.
Music supplying system based on scene the most according to claim 6, it is characterised in that described behavioral value module bag Include:
Record detector unit, for detecting a up-to-date internet records of described user side, and obtains institute from this internet records Stating access base station and access moment that user side is accessed, the described access moment is as upper net information;
Position acquisition unit, obtains described access base station and accesses corresponding longitude and latitude, using the online as described user side The sub-information in position.
Music supplying system based on scene the most according to claim 7, it is characterised in that described speed calculation unit bag Include:
Distance computation subunit, for calculating described user side according to the double sub-information in described online position got Move distance Distance,
Distance=R*arccos (C) * P
C=sin (Lat_A*P) * sin (Lat_B*P)+cos (Lat_A*P) * cos (Lat_B*P) * cos ((MLon_A-MLon_ B)*P)
Wherein, R is earth radius, and P is constant and value isThe described online position son letter that Lat_A once gets before being Longitude in breath, the latitude in the sub-information in described online position that MLon_A once gets before being, Lat_B once obtains after being To the sub-information in described online position in longitude, the latitude in the sub-information in described online position that MLon_B once gets after being Degree;
Time Calculation subelement, for calculating described user side according to triplet information during the double described online got Movement time T,
T=Time_B-Time_A
Wherein, in the described access moment in triplet information Time_A once gets described online before being time, Time_B is rear one Secondary get described online time triplet information in described access the moment;
Speed calculation subelement, for calculating the movement velocity of described user side according to described move distance and movement time.
CN201610389014.6A 2016-06-02 2016-06-02 Music method for pushing based on scene and music supplying system Pending CN106095849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610389014.6A CN106095849A (en) 2016-06-02 2016-06-02 Music method for pushing based on scene and music supplying system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610389014.6A CN106095849A (en) 2016-06-02 2016-06-02 Music method for pushing based on scene and music supplying system

Publications (1)

Publication Number Publication Date
CN106095849A true CN106095849A (en) 2016-11-09

Family

ID=57447066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610389014.6A Pending CN106095849A (en) 2016-06-02 2016-06-02 Music method for pushing based on scene and music supplying system

Country Status (1)

Country Link
CN (1) CN106095849A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908687A (en) * 2017-10-31 2018-04-13 珠海市魅族科技有限公司 Content delivery method and device, computer installation and computer-readable recording medium
CN109743308A (en) * 2018-12-28 2019-05-10 上海众源网络有限公司 A kind of data transmission method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516842A (en) * 1999-12-30 2004-07-28 皇家菲利浦电子有限公司 Method and device for detecting fast motion scenes
US7519584B2 (en) * 2002-07-22 2009-04-14 Sony Corporation Data processing apparatus, data processing method, data processing system, storage medium, and program
US20100312042A1 (en) * 2009-06-04 2010-12-09 Brian Kenneth Anderson Therapeutic music and media delivery system
CN102546777A (en) * 2011-12-27 2012-07-04 广东宇天科技有限公司 Mobile terminal desktop information pushing system and method
CN103686248A (en) * 2013-12-06 2014-03-26 福建星网视易信息系统有限公司 Method and system for playing background music
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method
CN104468848A (en) * 2014-12-31 2015-03-25 魅族科技(中国)有限公司 Song pushing method and server
CN104618446A (en) * 2014-12-31 2015-05-13 百度在线网络技术(北京)有限公司 Multimedia pushing implementing method and device
CN105611038A (en) * 2015-07-31 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Audio resource playing method, audio resource playing system and terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516842A (en) * 1999-12-30 2004-07-28 皇家菲利浦电子有限公司 Method and device for detecting fast motion scenes
US7519584B2 (en) * 2002-07-22 2009-04-14 Sony Corporation Data processing apparatus, data processing method, data processing system, storage medium, and program
US20100312042A1 (en) * 2009-06-04 2010-12-09 Brian Kenneth Anderson Therapeutic music and media delivery system
CN102546777A (en) * 2011-12-27 2012-07-04 广东宇天科技有限公司 Mobile terminal desktop information pushing system and method
CN103686248A (en) * 2013-12-06 2014-03-26 福建星网视易信息系统有限公司 Method and system for playing background music
CN103986696A (en) * 2014-04-24 2014-08-13 华为技术有限公司 Multimedia file transmission device and method
CN104468848A (en) * 2014-12-31 2015-03-25 魅族科技(中国)有限公司 Song pushing method and server
CN104618446A (en) * 2014-12-31 2015-05-13 百度在线网络技术(北京)有限公司 Multimedia pushing implementing method and device
CN105611038A (en) * 2015-07-31 2016-05-25 宇龙计算机通信科技(深圳)有限公司 Audio resource playing method, audio resource playing system and terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
翟玉山: ""基于Android平台手机地图的设计与实现"", 《中国优秀硕士学位论文全文数据库 信息科技辑I138-366》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908687A (en) * 2017-10-31 2018-04-13 珠海市魅族科技有限公司 Content delivery method and device, computer installation and computer-readable recording medium
CN109743308A (en) * 2018-12-28 2019-05-10 上海众源网络有限公司 A kind of data transmission method and device
CN109743308B (en) * 2018-12-28 2021-11-05 上海众源网络有限公司 Data transmission method and device

Similar Documents

Publication Publication Date Title
CN104409031B (en) The intelligent tourism service system of a kind of facing moving terminal and method
US9965477B2 (en) Methods and devices for determining media files based on activity levels
CN107666496B (en) Application content pushing method and device
US9108098B2 (en) Methods and apparatus for virtual competition
US9563268B2 (en) Heart rate control based upon media content selection
CN102761524B (en) A kind of Streaming Media storage, player method and corresponding system
US10880357B2 (en) Reducing requests for media segments in streaming of multimedia content
US20100222179A1 (en) Presenting information to users during an activity, such as information from a previous or concurrent outdoor, physical activity
US9516276B2 (en) Method of measuring a property of a trajectory of a ball with a mobile computer device
US20170043236A1 (en) Method and apparatus for recommending music, and bicycle
CN104809203A (en) Traveling track generating method and system
CN106095849A (en) Music method for pushing based on scene and music supplying system
CN104618446A (en) Multimedia pushing implementing method and device
CN102567642A (en) Game map generation method, system, server and terminal
CN1719909A (en) A method for measuring changes in audio and video content
CN107888579B (en) Non-interference mobile video user experience quality index modeling method
CN103533078A (en) Method and system for generating map
CN103165153A (en) Method of playing video according to recording location trajectory and mobile video terminal
WO2022232529A1 (en) Dynamic playback of content during exercise activity
CN115412852A (en) Method and system for determining motion trail of mobile terminal
CN108717458A (en) A kind of history video file format storage method and system for monitoring trade
CN106405493A (en) People flow tracking method and apparatus
CN102932693A (en) Method and device for prefetching video-frequency band
CN204623669U (en) System of riding and bicycle
CN105939298B (en) A kind of method and device measuring distance of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载