WO2020125334A1 - 音乐播放方法、装置、终端及存储介质 - Google Patents

音乐播放方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2020125334A1
WO2020125334A1 PCT/CN2019/120691 CN2019120691W WO2020125334A1 WO 2020125334 A1 WO2020125334 A1 WO 2020125334A1 CN 2019120691 W CN2019120691 W CN 2019120691W WO 2020125334 A1 WO2020125334 A1 WO 2020125334A1
Authority
WO
WIPO (PCT)
Prior art keywords
music
video
playing
target
page
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.)
Ceased
Application number
PCT/CN2019/120691
Other languages
English (en)
French (fr)
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.)
Guangzhou Kugou Computer Technology Co Ltd
Original Assignee
Guangzhou Kugou Computer 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 Guangzhou Kugou Computer Technology Co Ltd filed Critical Guangzhou Kugou Computer Technology Co Ltd
Priority to SG11202106724RA priority Critical patent/SG11202106724RA/en
Priority to EP19899965.8A priority patent/EP3902278B1/en
Priority to US17/415,374 priority patent/US11632584B2/en
Publication of WO2020125334A1 publication Critical patent/WO2020125334A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8106Monomedia components thereof involving special audio data, e.g. different tracks for different languages
    • H04N21/8113Monomedia components thereof involving special audio data, e.g. different tracks for different languages comprising music, e.g. song in MP3 format
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • G11B27/102Programmed access in sequence to addressed parts of tracks of operating record carriers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/27Server based end-user applications
    • H04N21/274Storing end-user multimedia data in response to end-user request, e.g. network recorder
    • H04N21/2743Video hosting of uploaded data from client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4307Synchronising the rendering of multiple content streams or additional data on devices, e.g. synchronisation of audio on a mobile phone with the video output on the TV screen
    • H04N21/43072Synchronising 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 of multiple content streams on the same device
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47205End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for manipulating displayed content, e.g. interacting with MPEG-4 objects, editing locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments

Definitions

  • This application relates to the field of music playback, and in particular to a music playback method, device, terminal, and storage medium.
  • the display mode of the music player is single, and only the lyrics playback mode and the album playback mode can be provided for the user to choose to use, resulting in that the user can only view the lyrics or the album picture during listening to the song.
  • a music playing method the method is used for a terminal installed with a music player, the method includes:
  • a first playing module configured to play the first music through the music player and play a video on the music playing page, where the first music corresponds to at least two videos;
  • the first switching module is configured to switch the video played on the music playing page according to the video switching operation, and continue to play the first music through the music player.
  • a computer-readable storage medium in which at least one instruction is stored, and the instruction is loaded and executed by a processor to implement the music playback method as described above.
  • FIG. 1 shows a method flowchart of a music playing method provided by an exemplary embodiment of the present application
  • FIG. 2 is a schematic diagram of an interface of the implementation process of the music playing method shown in FIG. 1;
  • FIG. 3 is a schematic diagram of the correspondence between a music piece and a video group provided by an embodiment
  • FIG. 4 shows a method flowchart of a music playing method provided by another exemplary embodiment of the present application.
  • FIG. 5 shows a method flowchart of a music playing method provided by another exemplary embodiment of the present application.
  • FIG. 6 is a schematic diagram of the correspondence between a music piece and a video group provided by another embodiment
  • FIG. 7 shows a method flowchart of a music playing method provided by another exemplary embodiment of the present application.
  • FIG. 8 is a schematic diagram of an interface for displaying account information during the ending period
  • FIG. 9 is a structural block diagram of a music playback device provided by an exemplary embodiment of the present application.
  • FIG. 10 shows a structural block diagram of a terminal provided by an exemplary embodiment of the present invention.
  • FIG. 1 shows a method flowchart of a music playback method provided by an exemplary embodiment of the present application.
  • the method is applied to a terminal installed with a music player.
  • the method includes:
  • Step 101 Play a first music through a music player and play a video on a music playing page, where the first music corresponds to at least two videos.
  • the video is a short video.
  • Short video is a video whose screen content is recorded by the user, audio content is a segment of the target music, and the duration is less than or equal to the duration threshold, that is, the screen content is original by the user; or, short video is the screen content and audio content are both recorded by the user, And the video whose duration is less than or equal to the duration threshold, that is, the screen content and audio content are user-generated.
  • the duration threshold is 15 seconds.
  • the terminal plays music through the music player, and displays the playback element corresponding to the first playback mode on the music playback page; when a mode switching operation is received, the terminal One playback mode is switched to the second playback mode, and the display of the playback element corresponding to the first playback mode in the music playback page is stopped, and the video is played in the music playback page.
  • the first playback mode is at least one of an album playback mode and a lyrics playback mode
  • the second playback mode is a playback mode newly added to the music player in the embodiment of the present application.
  • album-related elements are displayed on the music playback page, such as album pictures, album names, etc.
  • lyrics-related are displayed on the music playback page Elements, such as lyrics information, lyrics timeline producer information, etc.
  • the music playback page in addition to displaying the playback element corresponding to the first playback mode, the music playback page also displays a default playback control, which may include a playback progress bar, a single loop/random/sequential playback control, and a sound effect selection control , At least one of sound quality selection control, pause control, double speed control, download control, comment control, collection control, this application does not limit the specific type of the default playback control.
  • a default playback control which may include a playback progress bar, a single loop/random/sequential playback control, and a sound effect selection control , At least one of sound quality selection control, pause control, double speed control, download control, comment control, collection control, this application does not limit the specific type of the default playback control.
  • a playback mode switching control (used to trigger switching of the playback mode) is displayed on the music playback page, and the playback mode The switching control is in a triggerable state; if the first music does not support the second playback mode, the playback mode switching control is not displayed on the music playback page, or the displayed playback mode switching control is in a non-triggerable state.
  • the music playback interface 21 synchronously displays the lyrics 22 corresponding to the current song; when receiving a click operation on the playback mode switching control 23 in the music playback interface 21, the terminal Stop displaying the lyrics 22, and display the video screen 24 in the music playback interface 21.
  • the terminal in the second playback mode, when the trigger operation on the playback mode switching control is received again, the terminal switches the second playback mode to the first playback mode and maintains the first music in the second playback mode 'S playback progress continues to play the first music.
  • all or part of the video corresponding to the first music is uploaded by the user, and the video played in the music playback interface is obtained by the terminal from the background server corresponding to the music player.
  • Step 102 Receive a video switching operation in a music playback page, where the video switching operation includes at least one of a sliding operation, a click operation, a long press operation, and a press operation.
  • the terminal receives a video switching operation in the music playback page, and the video switching operation is used to trigger the terminal to switch the video played in the music playback page.
  • the video switching operation may be a sliding operation in a preset direction (for example, a sliding operation is switched to the next video and a sliding operation is switched to the previous video), a click operation, a long press operation, or a press operation.
  • the embodiment of the present application does not limit the specific form of the video switching operation.
  • the terminal After receiving the video switching operation, the terminal detects whether there is unplayed video, if there is unplayed video, step 103 is performed, and if there is no unplayed video, a prompt message is displayed, Prompt the user that there is no other video to play.
  • the user can switch videos by sliding up on the music playing page 21.
  • Step 103 Switch the video played on the music playing page according to the video switching operation, and continue to play the first music through the music player.
  • the terminal switches the music playback page When playing a video in, keep the playback progress of the first music, and continue to play the first music through the music player based on the playback progress, that is, when switching the video, it will not affect the playback progress of the music.
  • the terminal when a video switching operation is received when the first music is played until 20 seconds, the terminal continues to play the first music from the playback time point of 20 seconds while switching the video.
  • the terminal switches the video screen displayed on the music playback interface 21 according to the user's slide-up operation on the music playback page 21.
  • the video played on the music playback page may be a video uploaded by the user, and the terminal may switch to play on the music playback page according to the user's video switching operation Video enriches the content displayed on the music playback page.
  • the terminal displays the video screen of the i-th video on the music playback page, 1 ⁇ i ⁇ n; when the i-th video playback ends, the terminal displays the i+1 video on the music playback page Video screen, that is, continue to play the next video; when the first music playback ends, the terminal stops video playback.
  • the terminal plays the video on the music playback page while playing music through the music player, and switches to the music playback page when receiving the video switching operation in the music playback interface
  • the video continues to play the first music;
  • the music player in the embodiment of the present application adds a new play mode, in which the user can watch the video directly on the music play page while listening to the music, and can Switching the currently playing video, no need to use additional video applications in the whole process, which improves the efficiency of users watching videos and enriches the playback mode of the music player.
  • the terminal receives a music switching operation on the music playback page, and the music switching operation may be a sliding operation (such as sliding left and right to cut songs), At least one of a click operation (such as a click operation on the previous/next button), a long press operation, and a press operation.
  • a music switching operation may be a sliding operation (such as sliding left and right to cut songs), At least one of a click operation (such as a click operation on the previous/next button), a long press operation, and a press operation.
  • the terminal when receiving the music switching operation, switches the currently playing music according to the music switching operation, and switches the video played in the music playing interface, where the switched video is the video corresponding to the switched music.
  • the music player currently plays the first music.
  • the terminal plays the second music through the music player according to the music switching operation, and plays the video corresponding to the second music on the music playing page. That is, when switching the currently playing music, the terminal switches the video playing in the music playing interface.
  • the terminal displays the video screen of the video on the background page of the music playback page, where the video is displayed when the video screen is displayed Of audio is not playing.
  • the terminal when playing a video, only plays the video picture of the video without decoding and playing the audio of the video, to ensure that the terminal only plays the audio of the first music.
  • the terminal displays the video screen on the background page of the music playback page, that is, on the music playback page.
  • the control is located on the upper layer of the video screen, thus avoiding the video screen from obscuring the control.
  • the terminal displays the video screen on the background page of the music playback page, and prohibits playing the audio of the video, thereby avoiding the impact of the played video on the user's listening to music.
  • the music server divides the music into m pieces of music in advance.
  • the music clips can be divided according to lyrics, beats per minute (Beat Per Minute, BPM) or according to a predetermined time interval, which is not limited in this embodiment.
  • a piece of music of 3 minutes 05 seconds is divided into 10 pieces of music in advance (essentially, the time axis is divided, not a song is divided into separate pieces), each music
  • the corresponding playback time points of the clips are: (00:00-00:15), (00:15-00:35), (00:35-00:55), (00:55-01:15), ( 01:15-01:30), (01:30-01:50), (01:50-02:10), (02:10-02:30), (02:30-02:50), ( 02:50-03:05).
  • the music server sets a corresponding video group for each music segment in advance, and adds at least one video to each video group.
  • the duration of each video in the video group is greater than or equal to the duration of the music piece to which it belongs.
  • the video group corresponding to each music segment includes at least one video.
  • the music server obtains the BPM of the music clip and the BPM of each video (video and audio BPM), and calculates the similarity of the BPM between the music clip and the video, Add a video with a similarity greater than a similarity threshold (such as 90%) as a candidate video to the video group corresponding to the music clip.
  • a similarity threshold such as 90%
  • the BPM of the video in the video group is the first BPM
  • the BPM of the audio clip to which the video group belongs is the second BPM
  • the similarity between the first BPM and the second BPM is greater than the similarity threshold
  • the terminal when playing a video on the music playback page, the terminal selects the video from the video group corresponding to the music piece to which the current playback time belongs to play, and the following uses an exemplary embodiment for description.
  • FIG. 4 shows a method flowchart of a music playing method provided by another exemplary embodiment of the present application.
  • the method is applied to a terminal installed with a music player.
  • the method includes:
  • Step 401 Play the first music through the music player, and determine the currently playing target music segment according to the playing progress of the first music.
  • the terminal Since the terminal only plays the video in the video group corresponding to the current music segment during music playback, the terminal needs to determine the playback progress of the first music in real time.
  • the terminal acquires the current playing time point of the first music, and determines the currently playing target music piece according to the current playing time point and the playing time interval corresponding to each music piece.
  • the terminal divides the second music fragment (00:15-00 according to the current playback time point 00:20 :35) Determined as the target music segment.
  • Step 402 Determine the target video from the target video group corresponding to the target music piece.
  • the terminal determines the video group corresponding to the target music segment as the target video group, and selects one video from the target video group as the target video.
  • the video in each video group is uploaded by the user, and after the terminal determines the target video group, it is detected whether the target video group includes the target account upload Video.
  • the target video group includes the video uploaded by the target account
  • the video uploaded by the target account is determined as the target video.
  • the target account includes at least one of a current login account and a focused account of the music player.
  • the terminal randomly selects one video in the target video group as the target video.
  • the terminal selects the target video from the target video group according to the data such as the video popularity, video click rate, upload time, and number of likes of each video in the target video group, which is not limited in this embodiment .
  • the step of determining the target video may also be performed by the server, that is, the server determines the target video and pushes it to the terminal.
  • the server determines the target video and pushes it to the terminal.
  • This embodiment only takes the terminal to determine the target video and requests the server for acquisition as an example for schematic description.
  • Step 403 Play the target video on the music playing page.
  • the terminal displays the video screen of the target video on the background page of the music playback page, and stops playing the video audio of the target video while playing the video screen.
  • the terminal will only select the video from the corresponding video group to play. If the current music clip is playing, the playback mode is switched (that is, switching from not playing the video to playing the video) and playing from the beginning.
  • the target video will cause a problem that the current music clip has been played but the target video has not been played, which will affect the playback of the video corresponding to the next music clip.
  • the duration of each video in the corresponding video group of the second music segment is 20s.
  • the terminal determines the video 005 Play the target video and start from the beginning.
  • the video 005 still has not been played for 5 seconds.
  • the terminal acquires the played duration of the target music piece, and determines the start playback point of the target video according to the played duration, so that the start playback point is displayed on the music playback page according to the start playback point.
  • the background page displays the video of the target video.
  • the duration of each video in the corresponding video group of the second music segment is 20s.
  • the terminal determines the video 005 Is the target video and starts playing video 005 from the 5th second of video 005.
  • Step 404 Receive a video switching operation in the music playback page, where the video switching operation includes at least one of a sliding operation, a click operation, a long press operation, and a press operation.
  • Step 405 Obtain other videos in the target video group.
  • the other videos are videos other than the target video.
  • the user can switch the video at any time during playing the first music.
  • the corresponding terminal determines the currently playing music clip according to the time point of receiving the video switching operation, and Obtain the video group corresponding to the currently playing music clip, so that the videos in the video group other than the currently playing video are determined as other videos.
  • This embodiment will only be described by taking an example of receiving a video switching operation when playing a target music piece as an example.
  • the terminal selects other videos than the target video from the target video group for subsequent video switching and playback.
  • the terminal acquires videos 006 and 007 in the video group.
  • Step 406 Play other videos on the music playing page, and continue to play the first music through the music player.
  • the video duration of each video in the video group is less than or equal to the duration of the music clip to which the video group belongs.
  • this step may include the following steps.
  • Step 406A Acquire the played duration of the target music segment when the video switching operation is received.
  • the terminal acquires the played duration of the target music piece at the moment when the video switching operation is received.
  • the played duration of the target music piece current playing time point-the starting time point of the target music piece.
  • Step 406B Determine the starting playing point of other videos according to the played duration.
  • the terminal further determines the starting playback point of other videos, so that other videos are played from the starting playback point later, rather than playing other videos from the beginning.
  • the terminal determines that the starting playback point of other videos is the 7th second according to the played time 7s.
  • Step 406C Play other videos on the music play page according to the starting play point.
  • the terminal starts to play the video from the starting playback point of other videos, to ensure that when the playback of the target music segment ends, the video in the background page also ends.
  • the terminal when receiving the video switching operation, selects a video from the video group corresponding to the current music clip, and determines the starting point of the video according to the played duration of the current music clip, thereby playing from the start Click to start playing the video to avoid the problem that when the video is played from the beginning, the music clip ends but the video does not end.
  • the music may contain repeated music fragments (such as music fragments with the same melody and lyrics), and accordingly, the server sets the same video group for the repeated music fragments.
  • the second music segment (00:15-00:35) and the sixth music segment (01:30-01:50) are repeating music segments, so the two correspond to the same video group (Including videos 005, 006, and 007);
  • the third music segment (00:35-00:55) and the seventh music segment (01:50-02:10) are repeating music segments, so the two correspond to the same video group (Including videos 008, 009, 010, 011, and 012);
  • the fourth music segment (00:55-01:15) and the eighth music segment (02:10-02:30) are mutually repeating music segments, so the two Corresponding to the same video group (including videos 013, 014, 015 and 016).
  • the first music contains n music clips
  • the i-th music clip and the j-th music clip correspond to the same video group ( i ⁇ j, and i and j are both less than or equal to n)
  • the terminal sets a preset identifier for the played video in the video group
  • the terminal starts from the video Select a video in the group that does not contain the preset logo to play.
  • the terminal sets the playback identification bit for the video in the video group, and sets the playback identification bit of the played video from 0 to 1, when the video is selected from the video group for playback, the terminal selects the playback identification bit in the video group 0 video.
  • the terminal plays videos 008 and 009, and sets the playback identification bits of the videos 008 and 009 to 1.
  • the terminal selects the video from the videos 010, 011 and 012 to play.
  • step 403 the following steps may also be included.
  • Step 407 When the first music is played to the target time period, the account information of the uploader's account is displayed on the music playback page.
  • the terminal sets at least one target time period in advance, and displays it on the music playback page when playing to the target time period (first music )
  • the account information of the video corresponding to the uploader's account in each video group, or the account information of the uploader's account corresponding to the played video is displayed during the period from playing to the end.
  • the uploader account is the account for uploading videos.
  • the target period includes at least one of an intro period, an interlude period, and an ending period; account information includes an account name and/or an account picture.
  • the current playback time point 03:10 is in the ending period, and the terminal displays account information 25 on the music playback page 21.
  • the terminal displays the account information of the uploader account corresponding to the video on the music playback page, so that the user can continue to watch other videos uploaded by the designated uploader according to the account information.
  • FIG. 9 is a structural block diagram of a music playback device provided by an exemplary embodiment of the present application, and the device may be implemented as a terminal or a part of a terminal.
  • the device includes:
  • a first playing module 910 configured to play the first music through the music player and play a video on the music playing page, where the first music corresponds to at least two videos;
  • the first operation receiving module 920 is configured to receive a video switching operation in the music playback page, where the video switching operation includes at least one of a sliding operation, a click operation, a long press operation, and a press operation;
  • the first switching module 930 is configured to switch the video played on the music playing page according to the video switching operation, and continue to play the first music through the music player.
  • the device further includes:
  • a second operation receiving module configured to receive a music switching operation in the music playing page
  • the second switching module is configured to play second music through the music player according to the music switching operation, and play a video corresponding to the second music on the music playing page.
  • the first playback module 910 is used to:
  • the video picture of the video is displayed on the background page of the music playing page, wherein the audio of the video is not played when the video picture is displayed.
  • the second switching module 930 is configured to:
  • the first music includes n music fragments, each music fragment corresponds to a respective video group, and each video group includes at least one video;
  • the first playing module 910 includes:
  • a target segment determining unit configured to determine a currently playing target music segment according to the playing progress of the first music
  • a target video determining unit configured to determine a target video from a target video group corresponding to the target music segment
  • the first playing unit is used to play the target video in the music playing page.
  • the first switching module 930 includes:
  • An obtaining unit configured to obtain other videos in the target video group, the other videos being videos other than the target video;
  • the second playing unit is used to play the other video in the music playing page.
  • the second playback unit is used to:
  • the target video determining unit is used to:
  • the target video group includes a video uploaded by a target account
  • the video uploaded by the target account is determined to be the target video
  • the target account includes at least one of the current login account and the following account of the music player Species.
  • the device further includes:
  • the information display module is used to display the account information of the uploader's account on the music playback page when the first music is played to the target period, the target period includes the prelude period, the interlude period and the ending period At least one, the uploader account is an account that uploads the video.
  • the BPM of the video in the video group is the first BPM
  • the BPM of the audio clip to which the video group belongs is the second BPM
  • the similarity between the first BPM and the second BPM is greater than the similarity threshold .
  • the terminal plays the video on the music playback page while playing music through the music player, and switches to the music playback page when receiving the video switching operation in the music playback interface
  • the video continues to play the first music;
  • the music player in the embodiment of the present application adds a new play mode, in which the user can watch the video directly on the music play page while listening to the music, and can Switching the currently playing video, no need to use additional video applications in the whole process, which improves the efficiency of users watching videos and enriches the playback mode of the music player.
  • FIG. 10 shows a structural block diagram of a terminal 1200 provided by an exemplary embodiment of the present invention.
  • the terminal 1200 may be: a smart phone, a tablet computer, an MP3 player (Moving Pictures Experts Group Audio III), motion picture expert compression standard audio level 3), MP4 (Moving Pictures Experts Group Audio Audio Layer IV, motion picture expert compression standard audio Level 4) Player, laptop or desktop computer.
  • the terminal 1200 may also be called other names such as user equipment, portable terminal, laptop terminal, and desktop terminal.
  • the terminal 1200 includes a processor 1201 and a memory 1202.
  • the processor 1201 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on.
  • the processor 1201 may adopt at least one hardware form of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array), PLA (Programmable Logic Array). achieve.
  • the processor 1201 may also include a main processor and a coprocessor.
  • the main processor is a processor for processing data in a wake-up state, also known as a CPU (Central Processing Unit, central processor); the coprocessor is A low-power processor for processing data in the standby state.
  • the processor 1201 may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used to render and draw content that needs to be displayed on the display screen.
  • the processor 1201 may further include an AI (Artificial Intelligence) processor.
  • the AI processor is used to process computing operations related to machine learning.
  • the memory 1202 may include one or more computer-readable storage media, which may be non-transitory.
  • the memory 1202 may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices.
  • the non-transitory computer-readable storage medium in the memory 1202 is used to store at least one instruction that is executed by the processor 1201 to implement music playback provided by the method embodiments in the present application method.
  • the terminal 1200 may optionally include a peripheral device interface 1203 and at least one peripheral device.
  • the processor 1201, the memory 1202, and the peripheral device interface 1203 may be connected by a bus or a signal line.
  • Each peripheral device may be connected to the peripheral device interface 1203 through a bus, a signal line, or a circuit board.
  • the peripheral device includes at least one of a radio frequency circuit 1204, a touch display 1205, a camera 1206, an audio circuit 1207, a positioning component 1208, and a power supply 1209.
  • the peripheral device interface 1203 may be used to connect at least one peripheral device related to I/O (Input/Output) to the processor 1201 and the memory 1202.
  • the processor 1201, the memory 1202, and the peripheral device interface 1203 are integrated on the same chip or circuit board; in some other embodiments, any one of the processor 1201, the memory 1202, and the peripheral device interface 1203 or Both can be implemented on a separate chip or circuit board, which is not limited in this embodiment.
  • the radio frequency circuit 1204 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals.
  • the radio frequency circuit 1204 communicates with the communication network and other communication devices through electromagnetic signals.
  • the radio frequency circuit 1204 converts the electrical signal into an electromagnetic signal for transmission, or converts the received electromagnetic signal into an electrical signal.
  • the radio frequency circuit 1204 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, and so on.
  • the radio frequency circuit 1204 can communicate with other terminals through at least one wireless communication protocol.
  • the wireless communication protocol includes but is not limited to: World Wide Web, Metropolitan Area Network, Intranet, various generations of mobile communication networks (2G, 3G, 4G and 5G), wireless local area networks and/or WiFi (Wireless Fidelity, wireless fidelity) networks.
  • the radio frequency circuit 1204 may further include a circuit related to NFC (Near Field Communication), which is not limited in this application.
  • the display screen 1205 is used to display a UI (User Interface).
  • the UI may include graphics, text, icons, video, and any combination thereof.
  • the display screen 1205 also has the ability to collect touch signals on or above the surface of the display screen 1205.
  • the touch signal can be input to the processor 1201 as a control signal for processing.
  • the display screen 1205 can also be used to provide virtual buttons and/or virtual keyboards, also called soft buttons and/or soft keyboards.
  • the display screen 1205 may be at least two, which are respectively provided on different surfaces of the terminal 1200 or have a folded design;
  • the display screen 1205 may be a flexible display screen, which is disposed on the curved surface or the folding surface of the terminal 1200.
  • the display screen 1205 can also be set as a non-rectangular irregular figure, that is, a special-shaped screen.
  • the display screen 1205 can be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode, organic light emitting diode) and other materials.
  • the camera assembly 1206 is used to collect images or videos.
  • the camera assembly 1206 includes a front camera and a rear camera.
  • the front camera is set on the front panel of the terminal, and the rear camera is set on the back of the terminal.
  • the camera assembly 1206 may also include a flash.
  • the flash can be a single-color flash or a dual-color flash. Dual color temperature flash refers to the combination of warm light flash and cold light flash, which can be used for light compensation at different color temperatures.
  • the audio circuit 1207 may include a microphone and a speaker.
  • the microphone is used to collect sound waves of the user and the environment, and convert the sound waves into electrical signals and input them to the processor 1201 for processing, or input them to the radio frequency circuit 1204 to implement voice communication. For the purpose of stereo collection or noise reduction, there may be multiple microphones, which are respectively installed in different parts of the terminal 1200.
  • the microphone can also be an array microphone or an omnidirectional acquisition microphone.
  • the speaker is used to convert the electrical signal from the processor 1201 or the radio frequency circuit 1204 into sound waves.
  • the speaker can be a traditional thin film speaker or a piezoelectric ceramic speaker.
  • the speaker When the speaker is a piezoelectric ceramic speaker, it can not only convert electrical signals into sound waves audible by humans, but also convert electrical signals into sound waves inaudible to humans for ranging and other purposes.
  • the audio circuit 1207 may further include a headphone jack.
  • the positioning component 1208 is used to locate the current geographic location of the terminal 1200 to implement navigation or LBS (Location Based Service, location-based service).
  • the positioning component 1208 may be a positioning component based on the GPS (Global Positioning System) of the United States, the Beidou system of China, or the Galileo system of Russia.
  • the terminal 1200 further includes one or more sensors 1210.
  • the one or more sensors 1210 include, but are not limited to: an acceleration sensor 1211, a gyro sensor 1212, a pressure sensor 1213, a fingerprint sensor 1214, an optical sensor 1215, and a proximity sensor 1216.
  • the acceleration sensor 1211 can detect the magnitude of acceleration on the three coordinate axes of the coordinate system established with the terminal 1200.
  • the acceleration sensor 1211 may be used to detect components of gravity acceleration on three coordinate axes.
  • the processor 1201 may control the touch display 1205 to display the user interface in a landscape view or a portrait view according to the gravity acceleration signal collected by the acceleration sensor 1211.
  • the acceleration sensor 1211 can also be used for game or user movement data collection.
  • the gyro sensor 1212 can detect the body direction and rotation angle of the terminal 1200, and the gyro sensor 1212 can cooperate with the acceleration sensor 1211 to collect a 3D action of the user on the terminal 1200.
  • the processor 1201 can realize the following functions according to the data collected by the gyro sensor 1212: motion sensing (such as changing the UI according to the user's tilt operation), image stabilization during shooting, game control, and inertial navigation.
  • the pressure sensor 1213 may be disposed on a side frame of the terminal 1200 and/or a lower layer of the touch display 1205.
  • the pressure sensor 1213 can detect the user's grip signal on the terminal 1200, and the processor 1201 can perform left-right hand recognition or shortcut operation according to the grip signal collected by the pressure sensor 1213.
  • the processor 1201 controls the operability control on the UI interface according to the user's pressure operation on the touch display screen 1205.
  • the operability control includes at least one of a button control, a scroll bar control, an icon control, and a menu control.
  • the fingerprint sensor 1214 is used to collect the user's fingerprint, and the processor 1201 identifies the user's identity according to the fingerprint collected by the fingerprint sensor 1214, or the fingerprint sensor 1214 identifies the user's identity based on the collected fingerprint. When the user's identity is recognized as a trusted identity, the processor 1201 authorizes the user to perform related sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings.
  • the fingerprint sensor 1214 may be provided on the front, back, or side of the terminal 1200. When a physical button or manufacturer logo is provided on the terminal 1200, the fingerprint sensor 1214 may be integrated with the physical button or manufacturer logo.
  • the optical sensor 1215 is used to collect the ambient light intensity.
  • the processor 1201 may control the display brightness of the touch display 1205 according to the ambient light intensity collected by the optical sensor 1215. Specifically, when the ambient light intensity is high, the display brightness of the touch display 1205 is increased; when the ambient light intensity is low, the display brightness of the touch display 1205 is decreased.
  • the processor 1201 may also dynamically adjust the shooting parameters of the camera assembly 1206 according to the ambient light intensity collected by the optical sensor 1215.
  • the proximity sensor 1216 also called a distance sensor, is usually provided on the front panel of the terminal 1200.
  • the proximity sensor 1216 is used to collect the distance between the user and the front of the terminal 1200.
  • the processor 1201 controls the touch display 1205 to switch from the bright screen state to the breathing state; when the proximity sensor 1216 detects When the distance from the user to the front of the terminal 1200 becomes gradually larger, the processor 1201 controls the touch display 1205 to switch from the screen-holding state to the bright-screen state.
  • FIG. 10 does not constitute a limitation on the terminal 1200, and may include more or fewer components than shown, or combine certain components, or adopt different component arrangements.
  • the present application also provides a computer-readable storage medium in which at least one instruction, at least one program, code set, or instruction set is stored, and the at least one instruction, the at least one program, the code set, or The instruction set is loaded and executed by the processor to implement the music playing method provided by the above method embodiments.
  • the present application also provides a computer program product containing instructions, which when executed on a computer, causes the computer to execute the music playing method described in the above aspects.
  • the program may be stored in a computer-readable storage medium.
  • the mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种音乐播放方法、装置、终端及存储介质,属于音乐播放领域。所述方法包括:通过音乐播放器播放第一音乐,并在音乐播放页面中播放视频,第一音乐对应至少两个视频;接收音乐播放页面中的视频切换操作,视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;根据视频切换操作切换音乐播放页面中播放的视频,并通过音乐播放器继续播放第一音乐。本申请实施例中的音乐播放器新增了一种播放模式,在该播放模式下,用户在收听音乐的同时,能够直接在音乐播放页面中观看视频,并可以切换当前播放的视频,整个过程中无需使用额外的视频应用程序,提高了用户观看视频的效率,并丰富了音乐播放器的播放模式。

Description

音乐播放方法、装置、终端及存储介质
本申请实施例要求于2018年12月21日提交,申请号为201811575172.6、发明名称为“音乐播放方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请实施例中。
技术领域
本申请涉及音乐播放领域,特别涉及一种音乐播放方法、装置、终端及存储介质。
背景技术
音乐播放器作为终端中使用频率较高的应用程序,用于提供海量音乐供用户选择收听。
在使用音乐播放器播放歌曲时,用户可以触发音乐播放器在音乐播放界面上同步显示当前歌曲的歌词,或者,触发音乐播放器在音乐播放界面上显示当前歌曲所属专辑的专辑图片。
然而,相关技术中音乐播放器的显示模式单一,仅能提供歌词播放模式和专辑播放模式供用户选择使用,导致用户在收听歌曲过程中仅能够查看歌词或者专辑图片。
发明内容
本申请实施例提供了一种音乐播放方法、装置、终端及存储介质,可以解决相关技术中音乐播放器显示模式单一的问题。所述技术方案如下:
根据本申请的一方面,提供了一种音乐播放方法,所述方法用于安装有音乐播放器的终端,所述方法包括:
通过所述音乐播放器播放第一音乐,并在所述音乐播放页面中播放视频,所述第一音乐对应至少两个视频;
接收所述音乐播放页面中的视频切换操作,所述视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;
根据所述视频切换操作切换所述音乐播放页面中播放的视频,并通过所述 音乐播放器继续播放所述第一音乐。
根据本申请的另一方面,提供了一种音乐播放装置,所述方法用于安装有音乐播放器的终端,所述装置包括:
第一播放模块,用于通过所述音乐播放器播放所述第一音乐,并在所述音乐播放页面中播放视频,所述第一音乐对应至少两个视频;
第一操作接收模块,用于接收所述音乐播放页面中的视频切换操作,所述视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;
第一切换模块,用于根据所述视频切换操作切换所述音乐播放页面中播放的视频,并通过所述音乐播放器继续播放所述第一音乐。
根据本申请的另一方面,提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现上述方面所述的音乐播放方法。
根据本申请的另一方面,提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如上述方面所述的音乐播放方法。
本申请实施例提供的技术方案带来的有益效果至少包括:
终端通过音乐播放器播放音乐的同时,在音乐播放页面中播放视频,并在接收到音乐播放界面中的视频切换操作时,切换音乐播放页面中播放的视频并继续播放第一音乐;本申请实施例中的音乐播放器新增了一种播放模式,在该播放模式下,用户在收听音乐的同时,能够直接在音乐播放页面中观看视频,并可以切换当前播放的视频,整个过程中无需使用额外的视频应用程序,提高了用户观看视频的效率,并丰富了音乐播放器的播放模式。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本申请一个示例性的实施例提供的音乐播放方法的方法流程图;
图2是图1所示音乐播放方法实施过程的界面示意图;
图3是一个实施例提供的音乐片段与视频组之间对应关系的示意图;
图4示出了本申请另一个示例性的实施例提供的音乐播放方法的方法流程图;
图5示出了本申请另一个示例性的实施例提供的音乐播放方法的方法流程图;
图6是另一个实施例提供的音乐片段与视频组之间对应关系的示意图;
图7示出了本申请另一个示例性的实施例提供的音乐播放方法的方法流程图;
图8是在尾奏时段显示账号信息的界面示意图;
图9是本申请一个示例性实施例提供的音乐播放装置的结构框图;
图10示出了本发明一个示例性实施例提供的终端的结构框图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。
请参考图1,其示出了本申请一个示例性的实施例提供的音乐播放方法的方法流程图,该方法应用于安装有音乐播放器的终端中,该方法包括:
步骤101,通过音乐播放器播放第一音乐,并在音乐播放页面中播放视频,第一音乐对应至少两个视频。
在一种可能的实施方式中,该视频为短视频。短视频是画面内容由用户录制的、音频内容是目标音乐的片段、且时长小于或等于时长阈值的视频,即画面内容为用户原创;或者,短视频是画面内容和音频内容均由用户录制,且时长小于或等于时长阈值的视频,即画面内容和音频内容均为用户原创。比如,该时长阈值为15秒。
在一种可能的实施方式中,第一播放模式下,终端通过音乐播放器播放音乐,并在音乐播放页面中显示第一播放模式对应的播放元素;当接收到模式切换操作时,终端将第一播放模式切换为第二播放模式,并停止在音乐播放页面中显示第一播放模式对应的播放元素,而是在音乐播放页面中播放视频。
可选的,第一播放模式为专辑播放模式、歌词播放模式中的至少一种,第二播放模式为本申请实施例中音乐播放器新增的播放模式。相应的,当第一播 放模式为专辑播放模式时,音乐播放页面中显示专辑相关元素,比如专辑图片、专辑名称等等;当第一播放模式为歌词播放模式时,音乐播放页面中显示歌词相关元素,比如歌词信息、歌词时间轴制作者信息等等。
可选的,音乐播放页面中除了显示第一播放模式对应的播放元素外,还显示有默认播放控件,该默认播放控件可以包括播放进度条、单曲循环/随机/顺序播放控件、音效选择控件、音质选择控件、暂停控件、倍速控件、下载控件、评论控件、收藏控件中的至少一种,本申请并不对默认播放控件的具体类型进行限定。
在一种可能的实施方式中,若第一音乐支持第二播放模式(即第一音乐对应有视频),音乐播放页面中则显示播放模式切换控件(用于触发切换播放模式),且播放模式切换控件处于可触发状态;若第一音乐不支持第二播放模式,音乐播放页面中则不显示该播放模式切换控件,或者,显示的播放模式切换控件处于不可触发状态。
示意性的,当第一播放模式为歌词播放模式时,音乐播放界面21中同步显示有当前歌曲对应的歌词22;当接收到对音乐播放界面21中播放模式切换控件23的点击操作时,终端停止显示歌词22,并在音乐播放界面21中显示视频画面24。
在其他可能的实施方式中,第二播放模式下,当再次接收到对播放模式切换控件的触发操作时,终端将第二播放模式切换第一播放模式,并保持第二播放模式下第一音乐的播放进度继续播放第一音乐。
可选的,第一音乐对应的视频的全部或部分由用户上传,且音乐播放界面中播放的视频由终端从音乐播放器对应的后台服务器处获取得到。
需要说明的是,不同于相关技术中,观看音乐对应的MV时需要由音乐播放页面跳转至MV播放页面,本申请实施例中,视频直接显示在音乐播放页面,无需进行页面跳转。
步骤102,接收音乐播放页面中的视频切换操作,视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种。
在播放第一音乐和视频的过程中,终端接收音乐播放页面中的视频切换操作,该视频切换操作用于触发终端切换音乐播放页面中播放的视频。其中,该视频切换操作可以是预设方向的滑动操作(比如上滑操作切换为下一个视频,下滑操作切换为上一个视频)、点击操作、长按操作或按压操作。本申请实施例 并不对视频切换操作的具体形式进行限定。
在一种可能的实施方式中,终端接收到视频切换操作后,检测是否存在未播放的视频,若存在未播放的视频,则执行步骤103,若不存在未播放的视频,则显示提示信息,提示用户无其他可供播放的视频。
示意性的,如图2所示,用户可以通过在音乐播放页面21进行上滑操作来切换视频。
步骤103,根据视频切换操作切换音乐播放页面中播放的视频,并通过音乐播放器继续播放第一音乐。
不同于相关技术中,当用户在收听音乐的过程中触发播放音乐对应的MV时,音乐播放器需要跳转显示MV播放页面,并从头开始播放MV,本申请实施例中,终端切换音乐播放页面中播放的视频时,保持第一音乐的播放进度,并在该播放进度的基础上继续通过音乐播放器播放第一音乐,即切换视频时并不会影响音乐的播放进度。
比如,当在第一音乐播放至20秒时接收到视频切换操作时,终端切换视频的同时,从20秒这一播放时间点继续播放第一音乐。
示意性的,如图2所示,终端根据用户在音乐播放页面21中的上滑操作,切换音乐播放界面21中显示的视频画面。
需要说明的是,区别于与音乐捆绑的固定MV,本申请实施例中,音乐播放页面中播放的视频可以是用户上传的视频,且终端可以根据用户的视频切换操作,切换音乐播放页面中播放的视频,丰富了音乐播放页面显示的内容。
可选的,视频播放过程中,终端在音乐播放页面中显示第i视频的视频画面,1≤i<n;当第i视频播放结束时,终端在音乐播放页面中显示第i+1视频的视频画面,即继续播放下一个视频;当第一音乐播放结束时,终端停止视频播放。
综上所述,本申请实施例中,终端通过音乐播放器播放音乐的同时,在音乐播放页面中播放视频,并在接收到音乐播放界面中的视频切换操作时,切换音乐播放页面中播放的视频并继续播放第一音乐;本申请实施例中的音乐播放器新增了一种播放模式,在该播放模式下,用户在收听音乐的同时,能够直接在音乐播放页面中观看视频,并可以切换当前播放的视频,整个过程中无需使用额外的视频应用程序,提高了用户观看视频的效率,并丰富了音乐播放器的播放模式。
除了手动切换视频外,在一种可能的实施方式中,终端同时播放音乐和视频过程中,接收音乐播放页面中的音乐切换操作,该音乐切换操作可以是滑动操作(比如左右滑动切歌)、点击操作(比如对上一曲/下一曲按钮的点击操作)、长按操作和按压操作中的至少一种。
可选的,当接收到音乐切换操作时,终端根据音乐切换操作,切换当前播放的音乐,并切换音乐播放界面中播放的视频,其中,切换后的视频为切换后音乐对应的视频。
示意性的,音乐播放器当前播放第一音乐,当接收到音乐切换操作时,终端根据音乐切换操作,通过音乐播放器播放第二音乐,并在音乐播放页面中播放第二音乐对应的视频,即切换当前播放的音乐时,终端切换音乐播放界面中播放的视频。
在一种可能的实施方式中,为了避免在播放视频时对用户正常收听音乐造成影响,上述步骤101中,终端在音乐播放页面的背景页中显示视频的视频画面,其中,显示视频画面时视频的音频不播放。
由于视频中不仅包含视频画面,还包含视频音频(比如用户录制视频过程中添加的背景音乐),因此为了避免播放视频过程中,视频音频对当前播放的第一音乐造成干扰,在一种可能的实施方式中,终端在播放视频时,仅播放视频的视频画面,而不会对视频的音频进行解码播放,确保终端仅播放第一音乐的音频。
同时,为了避免音乐播放页面上显示的视频画面对音乐播放页面上其他控件造成遮挡,在一种可能的实施方式中,终端将视频画面显示在音乐播放页面的背景页,即音乐播放页面上的控件位于视频画面上层,从而避免视频画面遮挡控件。
示意性的,如图2所示,视频画面24显示在音乐播放页面21的背景页时,各个控件显示在视频画面24上层。
本实施例中,终端将视频画面显示在音乐播放页面的背景页,并禁止播放视频的音频,从而避免播放的视频对用户收听音乐造成影响。
在一种可能的实施方式中,音乐服务器预先将音乐划分为m个音乐片段。其中,音乐片段可以根据歌词进行划分、根据每分钟节拍数(Beat Per Minute, BPM)或者根据预定时间间隔进行划分,本实施例对此不做限定。
示意性的,如图3所示,一首3分05秒的音乐被预先划分为10个音乐片段(本质上是对时间轴进行划分,并非将一首歌划分成独立的片段),各个音乐片段对应的播放时间点分别为:(00:00-00:15)、(00:15-00:35)、(00:35-00:55)、(00:55-01:15)、(01:15-01:30)、(01:30-01:50)、(01:50-02:10)、(02:10-02:30)、(02:30-02:50)、(02:50-03:05)。
对于各个音乐片段,音乐服务器预先为每个音乐片段设置对应的视频组,并向各个视频组中添加至少一个视频。可选的,视频组中各个视频的时长大于等于所属音乐片段的时长。示意性的,如图4所示,每个音乐片段对应的视频组中包括至少一个视频。
针对视频组中视频的选取方式,在一种可能的实施方式中,音乐服务器获取音乐片段的BPM以及各个视频的BPM(视频音频的BPM),通过计算音乐片段与视频之间BPM的相似度,将相似度大于相似度阈值(比如90%)的视频作为候选视频添加到该音乐片段对应的视频组中。
可选的,对于任一视频组,视频组中视频的BPM为第一BPM,该视频组所属音频片段的BPM为第二BPM,且第一BPM与第二BPM的相似度大于相似度阈值。
相应的,在音乐播放页面中播放视频时,终端即从当前播放时间点所属音乐片段对应的视频组中,选取视频进行播放,下面采用示意性的实施例进行说明。
请参考图4,其示出了本申请另一个示例性的实施例提供的音乐播放方法的方法流程图,该方法应用于安装有音乐播放器的终端中,该方法包括:
步骤401,通过音乐播放器播放第一音乐,并根据第一音乐的播放进度确定当前播放的目标音乐片段。
由于播放音乐的过程中,终端仅播放当前音乐片段对应视频组中的视频,因此,终端需要实时确定第一音乐的播放进度。
在一种可能的实施方式中,终端获取第一音乐的当前播放时间点,并根据当前播放时间点以及各个音乐片段对应的播放时间区间,确定当前播放的目标音乐片段。
基于图3所示的音乐片段分片方式,在一个示意性的例子中,当第一音乐 播放至20秒时,终端根据当前播放时间点00:20将第二音乐片段(00:15-00:35)确定为目标音乐片段。
步骤402,从目标音乐片段对应的目标视频组中确定目标视频。
进一步的,终端将目标音乐片段对应的视频组确定为目标视频组,并从目标视频组中选取一个视频作为目标视频。
针对从目标视频组中选取目标视频的方式,在一种可能的实施方式中,各个视频组中的视频由用户上传,终端确定出目标视频组后,检测该目标视频组中是否包含目标账号上传的视频。
若目标视频组中包括目标账号上传的视频,则将目标账号上传的视频确定为目标视频。其中,目标账号包括音乐播放器当前登录账号和关注账号中的至少一种。
可选的,若目标视频组中不包括目标账号上传的视频,终端则随机选取目标视频组中的一个视频作为目标视频。
在其他可能的实施方式中,终端根据目标视频组中各个视频的视频热度、视频点击率、上传时间、被赞次数等数据,从目标视频组中选取目标视频,本实施例对此不做限定。
需要说明的是,确定目标视频的步骤也可以由服务器执行,即由服务器确定出目标视频后推送给终端,本实施例仅以终端确定出目标视频后向服务器请求获取为例进行示意性说明。
步骤403,在音乐播放页面中播放目标视频。
进一步的,终端在音乐播放页面的背景页中显示目标视频的视频画面,并在播放视频画面的同时停止播放目标视频的视频音频。
终端在播放各个音乐片段的过程中,仅会从相应的视频组中选取视频进行播放,若在当前音乐片段播放过程中进行播放模式切换(即由不播放视频切换为播放视频),并从头播放目标视频,将会造成当前音乐片段播放结束但是目标视频尚未播放结束,进而影响下一音乐片段对应视频的播放的问题。
比如,结合图3所示,第二音乐片段(00:15-00:35)对应视频组中各个视频的时长均为20s,当在播放至00:20时切换播放模式,终端将视频005确定为目标视频并从头播放。当第二音乐片段播放结束时,视频005仍旧剩余5s未播放。
为了避免出现上述问题,在一种可能的实施方式中,终端获取目标音乐片段的已播放时长,并根据已播放时长确定目标视频的起始播放点,从而根据起 始播放点在音乐播放页面的背景页中显示目标视频的视频画面。
比如,结合图3所示,第二音乐片段(00:15-00:35)对应视频组中各个视频的时长均为20s,当在播放至00:20时切换播放模式,终端将视频005确定为目标视频并从视频005的第5秒开始播放视频005。
步骤404,接收音乐播放页面中的视频切换操作,视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种。
本步骤的实施方式可以参考上述步骤102,本实施例在此不再赘述。
步骤405,获取目标视频组中的其他视频,其他视频是除目标视频外的视频。
在一种可能的实施方式中,用户可以在播放第一音乐过程中任意时刻切换视频,相应的终端接收到视频切换操作后,根据接收到视频切换操作的时间点,确定当前播放音乐片段,并获取当前播放音乐片段对应的视频组,从而将该视频组中除当前播放视频以外的视频确定为其他视频。本实施例仅以在播放目标音乐片段时接收到视频切换操作为例进行示意性说明。
在一种可能的实施方式中,终端根据接收到的视频切换操作,从目标视频组中选取除目标视频以外的其他视频,用作后续视频切换播放。
结合图3所示,当在播放第二音乐片段时接收到视频切换操作,且当前播放第二音乐片段对应视频组中的视频005,终端获取视频组中的视频006和007。
步骤406,在音乐播放页面中播放其他视频,并通过音乐播放器继续播放第一音乐。
可选的,视频组中各个视频的视频时长小于或等于该视频组所属音乐片段的时长。为了避免切换视频后终端从头开始播放其他视频,导致目标音乐片段播放结束时视频未播放结束的问题,在一种可能的实施方式中,如图5所示,本步骤可以包括如下步骤。
步骤406A,获取接收到视频切换操作时目标音乐片段的已播放时长。
在一种可能的实施方式中,当在播放目标音乐片段的过程中接收到视频切换操作时,终端获取接收到视频切换操作时刻目标音乐片段的已播放时长。
可选的,目标音乐片段的已播放时长=当前播放时间点-目标音乐片段的起始时间点。
结合图3所示的分段方式,在一个示意性的例子中,当在播放至00:22时接收到视频切换操作时,终端根据当前播放时间点00:22以及目标音乐片段的起始时间点00:15,确定出目标音乐片段的已播放时长为7s。
步骤406B,根据已播放时长确定其他视频的起始播放点。
根据确定出的已播放时长,终端进一步确定其他视频的起始播放点,以便后续从该起始播放点开始播放其他视频,而并非从头播放其他视频。
结合上述步骤中的示例,终端根据已播放时长7s,确定出其他视频的起始播放点为第7秒。
步骤406C,根据起始播放点在音乐播放页面播放其他视频。
进一步的,终端在音乐播放页面的背景页中,从其他视频的起始播放点处开始播放视频,确保目标音乐片段播放结束时,背景页中的视频也播放结束。
结合上述步骤中的示例,终端从其他视频的第7秒开始播放,此时目标音乐片段剩余(35-15)-7=13秒,而其他视频剩余20-7=13秒,因此目标音乐片段播放结束后,其他视频也播放结束,进而播放下一音乐片段及其视频组中的视频。
本申请实施例中,终端在接收到视频切换操作时,从当前音乐片段对应的视频组中选取视频,并根据当前音乐片段的已播放时长确定视频的起始播放点,从而从该起始播放点开始播放视频,避免从头播放视频时,音乐片段播放结束但视频未播放结束的问题。
在一种可能的实施方式中,音乐中可能包含重复的音乐片段(比如旋律和歌词一致的音乐片段),相应的,服务器为重复音乐片段设置相同的视频组。示意性的,如图6所示,第二音乐片段(00:15-00:35)与第六音乐片段(01:30-01:50)互为重复音乐片段,因此两者对应相同视频组(包括视频005、006和007);第三音乐片段(00:35-00:55)与第七音乐片段(01:50-02:10)互为重复音乐片段,因此两者对应相同视频组(包括视频008、009、010、011和012);第四音乐片段(00:55-01:15)与第八音乐片段(02:10-02:30)互为重复音乐片段,因此两者对应相同视频组(包括视频013、014、015和016)。
为了避免播放至重复音乐片段时,终端显示相同的视频,在一种可能的实施方式中,第一音乐中包含n个音乐片段,且第i音乐片段与第j音乐片段对应相同的视频组(i≠j,且i,j均小于等于n),在播放第i音乐片段时,终端为视频组中的已播放视频设置预设标识,在播放第j音乐片段时,终端(优先)从视频组中选取不包含预设标识的视频进行播放。
可选的,终端为视频组中的视频设置播放标识位,并将已播放视频的播放 标识位由0设置为1,从视频组中选取视频进行播放时,终端即选取视频组中播放标识位为0的视频。
结合图6所示的分段方式,在一个示意性的例子中,在播放第三音乐片段过程中,终端播放了视频008和009,并将视频008和009的播放标识位设置为1。在播放第七音乐片段时,终端即从视频010、011和012中选取视频进行播放。
在一种可能的实施方式中,在图4的基础上,如图7所示,步骤403之后还可以包括如下步骤。
步骤407,当第一音乐播放至目标时段时,在音乐播放页面中显示上传方账号的账号信息。
为了使用户知悉播放音乐过程中各个视频的上传方,以便后续观看上传方上传的其他视频,终端预先设置至少一个目标时段,并在播放至目标时段时,在音乐播放页面中显示(第一音乐)各个视频组中视频对应上传方账号的账号信息,或者,在播放至尾奏时段显示已播放视频对应上传方账号的账号信息。其中,上传方账号是上传视频的账号。
可选的,目标时段包括前奏时段、间奏时段和尾奏时段中的至少一种;账号信息包括账号名称和/或账号头像。
示意性的,如图8所示,当前播放时间点03:10处于尾奏时段,终端即在音乐播放页面21中显示账号信息25。
本实施例中,终端在音乐播放至目标时段时,在音乐播放页面中显示视频对应上传方账号的账号信息,以便用户根据该账号信息继续观看指定上传方上传的其他视频。
图9是本申请一个示例性实施例提供的音乐播放装置的结构框图,该装置可以实现成为终端或终端中的一部分。该装置包括:
第一播放模块910,用于通过所述音乐播放器播放所述第一音乐,并在所述音乐播放页面中播放视频,所述第一音乐对应至少两个视频;
第一操作接收模块920,用于接收所述音乐播放页面中的视频切换操作,所述视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;
第一切换模块930,用于根据所述视频切换操作切换所述音乐播放页面中播 放的视频,并通过所述音乐播放器继续播放所述第一音乐。
可选的,所述装置还包括:
第二操作接收模块,用于接收所述音乐播放页面中的音乐切换操作;
第二切换模块,用于根据所述音乐切换操作,通过所述音乐播放器播放第二音乐,并在所述音乐播放页面中播放所述第二音乐对应的视频。
可选的,所述第一播放模块910,用于:
在所述音乐播放页面的背景页中显示视频的视频画面,其中,显示所述视频画面时视频的音频不播放。
可选的,所述第二切换模块930,用于:
保持所述第一音乐的播放进度,并通过所述音乐播放器继续播放所述第一音乐。
可选的,所述第一音乐包括n个音乐片段,各个音乐片段对应各自的视频组,且各个视频组中包括至少一个视频;
所述第一播放模块910,包括:
目标片段确定单元,用于根据所述第一音乐的播放进度确定当前播放的目标音乐片段;
目标视频确定单元,用于从所述目标音乐片段对应的目标视频组中确定目标视频;
第一播放单元,用于在所述音乐播放页面中播放所述目标视频。
可选的,所述第一切换模块930,包括:
获取单元,用于获取所述目标视频组中的其他视频,所述其他视频是除所述目标视频外的视频;
第二播放单元,用于在所述音乐播放页面中播放所述其他视频。
可选的,所述第二播放单元,用于:
获取接收到所述视频切换操作时所述目标音乐片段的已播放时长;
根据所述已播放时长确定所述其他视频的起始播放点;
根据所述起始播放点在所述音乐播放页面播放所述其他视频。
可选的,所述目标视频确定单元,用于:
若所述目标视频组中包括目标账号上传的视频,则将所述目标账号上传的视频确定为所述目标视频,所述目标账号包括所述音乐播放器当前登录账号和关注账号中的至少一种。
可选的,所述装置还包括:
信息显示模块,用于当所述第一音乐播放至目标时段时,在所述音乐播放页面中显示上传方账号的账号信息,所述目标时段包括前奏时段、间奏时段和尾奏时段中的至少一种,所述上传方账号是上传所述视频的账号。
可选的,所述视频组中视频的BPM为第一BPM,所述视频组所属音频片段的BPM为第二BPM,且所述第一BPM与所述第二BPM的相似度大于相似度阈值。
综上所述,本申请实施例中,终端通过音乐播放器播放音乐的同时,在音乐播放页面中播放视频,并在接收到音乐播放界面中的视频切换操作时,切换音乐播放页面中播放的视频并继续播放第一音乐;本申请实施例中的音乐播放器新增了一种播放模式,在该播放模式下,用户在收听音乐的同时,能够直接在音乐播放页面中观看视频,并可以切换当前播放的视频,整个过程中无需使用额外的视频应用程序,提高了用户观看视频的效率,并丰富了音乐播放器的播放模式。
图10示出了本发明一个示例性实施例提供的终端1200的结构框图。该终端1200可以是:智能手机、平板电脑、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、笔记本电脑或台式电脑。终端1200还可能被称为用户设备、便携式终端、膝上型终端、台式终端等其他名称。
通常,终端1200包括有:处理器1201和存储器1202。
处理器1201可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器1201可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器1201也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器1201可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器 1201还可以包括AI(Artificial Intelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。
存储器1202可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器1202还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。在一些实施例中,存储器1202中的非暂态的计算机可读存储介质用于存储至少一个指令,该至少一个指令用于被处理器1201所执行以实现本申请中方法实施例提供的音乐播放方法。
在一些实施例中,终端1200还可选包括有:外围设备接口1203和至少一个外围设备。处理器1201、存储器1202和外围设备接口1203之间可以通过总线或信号线相连。各个外围设备可以通过总线、信号线或电路板与外围设备接口1203相连。具体地,外围设备包括:射频电路1204、触摸显示屏1205、摄像头1206、音频电路1207、定位组件1208和电源1209中的至少一种。
外围设备接口1203可被用于将I/O(Input/Output,输入/输出)相关的至少一个外围设备连接到处理器1201和存储器1202。在一些实施例中,处理器1201、存储器1202和外围设备接口1203被集成在同一芯片或电路板上;在一些其他实施例中,处理器1201、存储器1202和外围设备接口1203中的任意一个或两个可以在单独的芯片或电路板上实现,本实施例对此不加以限定。
射频电路1204用于接收和发射RF(Radio Frequency,射频)信号,也称电磁信号。射频电路1204通过电磁信号与通信网络以及其他通信设备进行通信。射频电路1204将电信号转换为电磁信号进行发送,或者,将接收到的电磁信号转换为电信号。可选地,射频电路1204包括:天线系统、RF收发器、一个或多个放大器、调谐器、振荡器、数字信号处理器、编解码芯片组、用户身份模块卡等等。射频电路1204可以通过至少一种无线通信协议来与其它终端进行通信。该无线通信协议包括但不限于:万维网、城域网、内联网、各代移动通信网络(2G、3G、4G及5G)、无线局域网和/或WiFi(Wireless Fidelity,无线保真)网络。在一些实施例中,射频电路1204还可以包括NFC(Near Field Communication,近距离无线通信)有关的电路,本申请对此不加以限定。
显示屏1205用于显示UI(User Interface,用户界面)。该UI可以包括图形、文本、图标、视频及其它们的任意组合。当显示屏1205是触摸显示屏时,显示屏1205还具有采集在显示屏1205的表面或表面上方的触摸信号的能力。该触 摸信号可以作为控制信号输入至处理器1201进行处理。此时,显示屏1205还可以用于提供虚拟按钮和/或虚拟键盘,也称软按钮和/或软键盘。在一些实施例中,显示屏1205可以为一个,设置终端1200的前面板;在另一些实施例中,显示屏1205可以为至少两个,分别设置在终端1200的不同表面或呈折叠设计;在再一些实施例中,显示屏1205可以是柔性显示屏,设置在终端1200的弯曲表面上或折叠面上。甚至,显示屏1205还可以设置成非矩形的不规则图形,也即异形屏。显示屏1205可以采用LCD(Liquid Crystal Display,液晶显示屏)、OLED(Organic Light-Emitting Diode,有机发光二极管)等材质制备。
摄像头组件1206用于采集图像或视频。可选地,摄像头组件1206包括前置摄像头和后置摄像头。通常,前置摄像头设置在终端的前面板,后置摄像头设置在终端的背面。在一些实施例中,后置摄像头为至少两个,分别为主摄像头、景深摄像头、广角摄像头、长焦摄像头中的任意一种,以实现主摄像头和景深摄像头融合实现背景虚化功能、主摄像头和广角摄像头融合实现全景拍摄以及VR(Virtual Reality,虚拟现实)拍摄功能或者其它融合拍摄功能。在一些实施例中,摄像头组件1206还可以包括闪光灯。闪光灯可以是单色温闪光灯,也可以是双色温闪光灯。双色温闪光灯是指暖光闪光灯和冷光闪光灯的组合,可以用于不同色温下的光线补偿。
音频电路1207可以包括麦克风和扬声器。麦克风用于采集用户及环境的声波,并将声波转换为电信号输入至处理器1201进行处理,或者输入至射频电路1204以实现语音通信。出于立体声采集或降噪的目的,麦克风可以为多个,分别设置在终端1200的不同部位。麦克风还可以是阵列麦克风或全向采集型麦克风。扬声器则用于将来自处理器1201或射频电路1204的电信号转换为声波。扬声器可以是传统的薄膜扬声器,也可以是压电陶瓷扬声器。当扬声器是压电陶瓷扬声器时,不仅可以将电信号转换为人类可听见的声波,也可以将电信号转换为人类听不见的声波以进行测距等用途。在一些实施例中,音频电路1207还可以包括耳机插孔。
定位组件1208用于定位终端1200的当前地理位置,以实现导航或LBS(Location Based Service,基于位置的服务)。定位组件1208可以是基于美国的GPS(Global Positioning System,全球定位系统)、中国的北斗系统或俄罗斯的伽利略系统的定位组件。
电源1209用于为终端1200中的各个组件进行供电。电源1209可以是交流 电、直流电、一次性电池或可充电电池。当电源1209包括可充电电池时,该可充电电池可以是有线充电电池或无线充电电池。有线充电电池是通过有线线路充电的电池,无线充电电池是通过无线线圈充电的电池。该可充电电池还可以用于支持快充技术。
在一些实施例中,终端1200还包括有一个或多个传感器1210。该一个或多个传感器1210包括但不限于:加速度传感器1211、陀螺仪传感器1212、压力传感器1213、指纹传感器1214、光学传感器1215以及接近传感器1216。
加速度传感器1211可以检测以终端1200建立的坐标系的三个坐标轴上的加速度大小。比如,加速度传感器1211可以用于检测重力加速度在三个坐标轴上的分量。处理器1201可以根据加速度传感器1211采集的重力加速度信号,控制触摸显示屏1205以横向视图或纵向视图进行用户界面的显示。加速度传感器1211还可以用于游戏或者用户的运动数据的采集。
陀螺仪传感器1212可以检测终端1200的机体方向及转动角度,陀螺仪传感器1212可以与加速度传感器1211协同采集用户对终端1200的3D动作。处理器1201根据陀螺仪传感器1212采集的数据,可以实现如下功能:动作感应(比如根据用户的倾斜操作来改变UI)、拍摄时的图像稳定、游戏控制以及惯性导航。
压力传感器1213可以设置在终端1200的侧边框和/或触摸显示屏1205的下层。当压力传感器1213设置在终端1200的侧边框时,可以检测用户对终端1200的握持信号,由处理器1201根据压力传感器1213采集的握持信号进行左右手识别或快捷操作。当压力传感器1213设置在触摸显示屏1205的下层时,由处理器1201根据用户对触摸显示屏1205的压力操作,实现对UI界面上的可操作性控件进行控制。可操作性控件包括按钮控件、滚动条控件、图标控件、菜单控件中的至少一种。
指纹传感器1214用于采集用户的指纹,由处理器1201根据指纹传感器1214采集到的指纹识别用户的身份,或者,由指纹传感器1214根据采集到的指纹识别用户的身份。在识别出用户的身份为可信身份时,由处理器1201授权该用户执行相关的敏感操作,该敏感操作包括解锁屏幕、查看加密信息、下载软件、支付及更改设置等。指纹传感器1214可以被设置终端1200的正面、背面或侧面。当终端1200上设置有物理按键或厂商Logo时,指纹传感器1214可以与物理按键或厂商Logo集成在一起。
光学传感器1215用于采集环境光强度。在一个实施例中,处理器1201可以根据光学传感器1215采集的环境光强度,控制触摸显示屏1205的显示亮度。具体地,当环境光强度较高时,调高触摸显示屏1205的显示亮度;当环境光强度较低时,调低触摸显示屏1205的显示亮度。在另一个实施例中,处理器1201还可以根据光学传感器1215采集的环境光强度,动态调整摄像头组件1206的拍摄参数。
接近传感器1216,也称距离传感器,通常设置在终端1200的前面板。接近传感器1216用于采集用户与终端1200的正面之间的距离。在一个实施例中,当接近传感器1216检测到用户与终端1200的正面之间的距离逐渐变小时,由处理器1201控制触摸显示屏1205从亮屏状态切换为息屏状态;当接近传感器1216检测到用户与终端1200的正面之间的距离逐渐变大时,由处理器1201控制触摸显示屏1205从息屏状态切换为亮屏状态。
本领域技术人员可以理解,图10中示出的结构并不构成对终端1200的限定,可以包括比图示更多或更少的组件,或者组合某些组件,或者采用不同的组件布置。
本申请还提供一种计算机可读存储介质,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现上述方法实施例提供的音乐播放方法。
可选地,本申请还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的音乐播放方法。
应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或 光盘等。
以上所述仅为本申请的较佳实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。

Claims (22)

  1. 一种音乐播放方法,其特征在于,所述方法用于安装有音乐播放器的终端,所述方法包括:
    通过所述音乐播放器播放第一音乐,并在音乐播放页面中播放视频,所述第一音乐对应至少两个视频;
    接收所述音乐播放页面中的视频切换操作,所述视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;
    根据所述视频切换操作切换所述音乐播放页面中播放的视频,并通过所述音乐播放器继续播放所述第一音乐。
  2. 根据权利要求1所述的方法,其特征在于,所述第一音乐包括n个音乐片段,各个音乐片段对应各自的视频组,且各个视频组中包括至少一个视频;
    所述在音乐播放页面中播放视频,包括:
    根据所述第一音乐的播放进度确定当前播放的目标音乐片段;
    从所述目标音乐片段对应的目标视频组中确定目标视频;
    在所述音乐播放页面中播放所述目标视频。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述视频切换操作切换所述音乐播放页面中播放的视频,包括:
    获取所述目标视频组中的其他视频,所述其他视频是除所述目标视频外的视频;
    在所述音乐播放页面中播放所述其他视频。
  4. 根据权利要求3所述的方法,其特征在于,所述在所述音乐播放页面中播放所述其他视频,包括:
    获取接收到所述视频切换操作时所述目标音乐片段的已播放时长;
    根据所述已播放时长确定所述其他视频的起始播放点;
    根据所述起始播放点在所述音乐播放页面播放所述其他视频。
  5. 根据权利要求2所述的方法,其特征在于,所述从所述目标音乐片段对 应的目标视频组中确定目标视频,包括:
    若所述目标视频组中包括目标账号上传的视频,则将所述目标账号上传的视频确定为所述目标视频,所述目标账号包括所述音乐播放器当前登录账号和关注账号中的至少一种。
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述通过所述音乐播放器播放所述第一音乐,并在音乐播放页面中播放视频之后,所述方法还包括:
    接收所述音乐播放页面中的音乐切换操作;
    根据所述音乐切换操作,通过所述音乐播放器播放第二音乐,并在所述音乐播放页面中播放所述第二音乐对应的视频。
  7. 根据权利要求1至5任一所述的方法,其特征在于,所述在音乐播放页面中播放视频,包括:
    在所述音乐播放页面的背景页中显示所述视频的视频画面,其中,显示所述视频画面时视频的音频不播放。
  8. 根据权利要求1至5任一所述的方法,其特征在于,所述通过所述音乐播放器继续播放所述第一音乐,包括:
    保持所述第一音乐的播放进度,并通过所述音乐播放器继续播放所述第一音乐。
  9. 根据权利要求1至5任一所述的方法,其特征在于,所述方法还包括:
    当所述第一音乐播放至目标时段时,在所述音乐播放页面中显示上传方账号的账号信息,所述目标时段包括前奏时段、间奏时段和尾奏时段中的至少一种,所述上传方账号是上传所述视频的账号。
  10. 根据权利要求2至5任一所述的方法,其特征在于,所述视频组中视频的每分钟节拍数BPM为第一BPM,所述视频组所属音频片段的BPM为第二BPM,且所述第一BPM与所述第二BPM的相似度大于相似度阈值。
  11. 一种音乐播放装置,其特征在于,所述装置用于安装有音乐播放器的终端,所述装置包括:
    第一播放模块,用于通过所述音乐播放器播放所述第一音乐,并在音乐播放页面中播放视频,所述第一音乐对应至少两个视频;
    第一操作接收模块,用于接收所述音乐播放页面中的视频切换操作,所述视频切换操作包括滑动操作、点击操作、长按操作和按压操作中的至少一种;
    第一切换模块,用于根据所述视频切换操作切换所述音乐播放页面中播放的视频,并通过所述音乐播放器继续播放所述第一音乐。
  12. 根据权利要求11所述的装置,其特征在于,所述第一音乐包括n个音乐片段,各个音乐片段对应各自的视频组,且各个视频组中包括至少一个视频;
    所述第一播放模块,包括:
    目标片段确定单元,用于根据所述第一音乐的播放进度确定当前播放的目标音乐片段;
    目标视频确定单元,用于从所述目标音乐片段对应的目标视频组中确定目标视频;
    第一播放单元,用于在所述音乐播放页面中播放所述目标视频。
  13. 根据权利要求12所述的装置,其特征在于,所述第一切换模块,包括:
    获取单元,用于获取所述目标视频组中的其他视频,所述其他视频是除所述目标视频外的视频;
    第二播放单元,用于在所述音乐播放页面中播放所述其他视频。
  14. 根据权利要求13所述的装置,其特征在于,所述第二播放单元,用于:
    获取接收到所述视频切换操作时所述目标音乐片段的已播放时长;
    根据所述已播放时长确定所述其他视频的起始播放点;
    根据所述起始播放点在所述音乐播放页面播放所述其他视频。
  15. 根据权利要求12所述的装置,其特征在于,所述目标视频确定单元, 用于:
    若所述目标视频组中包括目标账号上传的视频,则将所述目标账号上传的视频确定为所述目标视频,所述目标账号包括所述音乐播放器当前登录账号和关注账号中的至少一种。
  16. 根据权利要求11至15任一所述的装置,其特征在于,所述装置还包括:
    第二操作接收模块,用于接收所述音乐播放页面中的音乐切换操作;
    第二切换模块,用于根据所述音乐切换操作,通过所述音乐播放器播放第二音乐,并在所述音乐播放页面中播放所述第二音乐对应的视频。
  17. 根据权利要求11至15任一所述的装置,其特征在于,所述第一播放模块,用于:
    在所述音乐播放页面的背景页中显示所述视频的视频画面,其中,显示所述视频画面时视频的音频不播放。
  18. 根据权利要求11至15任一所述的装置,其特征在于,所述第二切换模块,用于:
    保持所述第一音乐的播放进度,并通过所述音乐播放器继续播放所述第一音乐。
  19. 根据权利要求11至15任一所述的装置,其特征在于,所述装置还包括:
    信息显示模块,用于当所述第一音乐播放至目标时段时,在所述音乐播放页面中显示上传方账号的账号信息,所述目标时段包括前奏时段、间奏时段和尾奏时段中的至少一种,所述上传方账号是上传所述视频的账号。
  20. 根据权利要求12至15任一所述的装置,其特征在于,所述视频组中视频的每分钟节拍数BPM为第一BPM,所述视频组所属音频片段的BPM为第二BPM,且所述第一BPM与所述第二BPM的相似度大于相似度阈值。
  21. 一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条指令,所述指令由所述处理器加载并执行以实现如权利要求1至10任一所述的音乐播放方法。
  22. 一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令,所述指令由处理器加载并执行以实现如权利要求1至10任一所述的音乐播放方法。
PCT/CN2019/120691 2018-12-21 2019-11-25 音乐播放方法、装置、终端及存储介质 Ceased WO2020125334A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
SG11202106724RA SG11202106724RA (en) 2018-12-21 2019-11-25 Music playing method, device, terminal and storage medium
EP19899965.8A EP3902278B1 (en) 2018-12-21 2019-11-25 Music playing method, device, terminal and storage medium
US17/415,374 US11632584B2 (en) 2018-12-21 2019-11-25 Video switching during music playback

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811575172.6A CN109756784B (zh) 2018-12-21 2018-12-21 音乐播放方法、装置、终端及存储介质
CN201811575172.6 2018-12-21

Publications (1)

Publication Number Publication Date
WO2020125334A1 true WO2020125334A1 (zh) 2020-06-25

Family

ID=66403905

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120691 Ceased WO2020125334A1 (zh) 2018-12-21 2019-11-25 音乐播放方法、装置、终端及存储介质

Country Status (5)

Country Link
US (1) US11632584B2 (zh)
EP (1) EP3902278B1 (zh)
CN (1) CN109756784B (zh)
SG (1) SG11202106724RA (zh)
WO (1) WO2020125334A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113347503A (zh) * 2021-06-15 2021-09-03 广州酷狗计算机科技有限公司 音视频播放方法、装置、计算机设备及存储介质
WO2022179033A1 (zh) * 2021-02-23 2022-09-01 北京字跳网络技术有限公司 音乐播放方法及设备

Families Citing this family (43)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8698762B2 (en) 2010-01-06 2014-04-15 Apple Inc. Device, method, and graphical user interface for navigating and displaying content in context
US9591339B1 (en) 2012-11-27 2017-03-07 Apple Inc. Agnostic media delivery system
US9774917B1 (en) 2012-12-10 2017-09-26 Apple Inc. Channel bar user interface
US9532111B1 (en) 2012-12-18 2016-12-27 Apple Inc. Devices and method for providing remote control hints on a display
US10521188B1 (en) 2012-12-31 2019-12-31 Apple Inc. Multi-user TV user interface
EP3126952B1 (en) 2014-06-24 2023-07-12 Apple Inc. Input device and user interface interactions
US9912860B2 (en) 2016-06-12 2018-03-06 Apple Inc. User interface for camera effects
DK201670582A1 (en) 2016-06-12 2018-01-02 Apple Inc Identifying applications on which content is available
DK180859B1 (en) 2017-06-04 2022-05-23 Apple Inc USER INTERFACE CAMERA EFFECTS
US11112964B2 (en) 2018-02-09 2021-09-07 Apple Inc. Media capture lock affordance for graphical user interface
US12307082B2 (en) 2018-02-21 2025-05-20 Apple Inc. Scrollable set of content items with locking feature
US11722764B2 (en) 2018-05-07 2023-08-08 Apple Inc. Creative camera
US12602142B2 (en) 2018-05-07 2026-04-14 Apple Inc. User interfaces for sharing contextually relevant media content
AU2019100574B4 (en) 2018-06-03 2020-02-20 Apple Inc. Setup procedures for an electronic device
DK201870623A1 (en) 2018-09-11 2020-04-15 Apple Inc. User interfaces for simulated depth effects
US11321857B2 (en) 2018-09-28 2022-05-03 Apple Inc. Displaying and editing images with depth information
CN109756784B (zh) * 2018-12-21 2020-11-17 广州酷狗计算机科技有限公司 音乐播放方法、装置、终端及存储介质
WO2020198238A1 (en) 2019-03-24 2020-10-01 Apple Inc. User interfaces for a media browsing application
US11683565B2 (en) 2019-03-24 2023-06-20 Apple Inc. User interfaces for interacting with channels that provide content that plays in a media browsing application
US12008232B2 (en) 2019-03-24 2024-06-11 Apple Inc. User interfaces for viewing and accessing content on an electronic device
US11770601B2 (en) 2019-05-06 2023-09-26 Apple Inc. User interfaces for capturing and managing visual media
US11863837B2 (en) 2019-05-31 2024-01-02 Apple Inc. Notification of augmented reality content on an electronic device
EP3977245A1 (en) * 2019-05-31 2022-04-06 Apple Inc. User interfaces for a podcast browsing and playback application
CN110493635B (zh) * 2019-08-23 2022-02-01 腾讯科技(深圳)有限公司 视频播放方法、装置及终端
CN111312298B (zh) * 2020-02-26 2021-08-20 杭州涂鸦信息技术有限公司 一种基于时间调度的音视频播放方法及系统
US11843838B2 (en) 2020-03-24 2023-12-12 Apple Inc. User interfaces for accessing episodes of a content series
US11054973B1 (en) 2020-06-01 2021-07-06 Apple Inc. User interfaces for managing media
CN111669639A (zh) * 2020-06-15 2020-09-15 北京字节跳动网络技术有限公司 一种活动入口的展示方法、装置、电子设备及存储介质
US11899895B2 (en) 2020-06-21 2024-02-13 Apple Inc. User interfaces for setting up an electronic device
CN112035758A (zh) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 音乐推送方法、装置、电子设备以及存储介质
US11212449B1 (en) * 2020-09-25 2021-12-28 Apple Inc. User interfaces for media capture and management
CN112230812A (zh) * 2020-10-16 2021-01-15 北京字节跳动网络技术有限公司 一种多媒体数据处理方法、装置、电子设备和存储介质
CN112954440B (zh) * 2021-02-09 2023-09-26 北京字节跳动网络技术有限公司 一种视频处理方法、装置、设备及存储介质
US11778339B2 (en) 2021-04-30 2023-10-03 Apple Inc. User interfaces for altering visual media
US12112024B2 (en) 2021-06-01 2024-10-08 Apple Inc. User interfaces for managing media styles
US20220382443A1 (en) * 2021-06-01 2022-12-01 Apple Inc. Aggregated content item user interfaces
US12506953B2 (en) 2021-12-03 2025-12-23 Apple Inc. Device, methods, and graphical user interfaces for capturing and displaying media
CN114245218B (zh) * 2021-12-24 2024-05-31 广州酷狗计算机科技有限公司 音视频播放方法、装置、计算机设备及存储介质
CN114786063B (zh) * 2022-03-11 2023-12-05 北京字跳网络技术有限公司 一种音视频处理方法、装置、设备以及存储介质
CN119537618B (zh) * 2022-06-28 2025-10-24 北京字跳网络技术有限公司 媒体内容展示方法、装置、设备、存储介质及产品
CN116132569A (zh) * 2022-12-28 2023-05-16 北京字跳网络技术有限公司 媒体播放方法及设备
US20240373121A1 (en) 2023-05-05 2024-11-07 Apple Inc. User interfaces for controlling media capture settings
US20250238129A1 (en) 2024-01-18 2025-07-24 Apple Inc. User interfaces integrating hardware buttons

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106649586A (zh) * 2016-11-18 2017-05-10 腾讯音乐娱乐(深圳)有限公司 一种音频文件的播放方法及装置
CN107734376A (zh) * 2017-10-16 2018-02-23 维沃移动通信有限公司 一种多媒体数据播放的方法以及装置
US20180232121A1 (en) * 2014-08-01 2018-08-16 Google Inc. Perpendicular autoplay video feed related navigation
CN109756784A (zh) * 2018-12-21 2019-05-14 广州酷狗计算机科技有限公司 音乐播放方法、装置、终端及存储介质

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4991011A (en) * 1988-12-23 1991-02-05 Scientific-Atlanta, Inc. Interactive television terminal with programmable background audio or video
US8325571B2 (en) * 2005-09-29 2012-12-04 Paul Cappello Video jukebox apparatus and a method of playing music and music videos using a video jukebox appartus
JP4844270B2 (ja) * 2006-07-21 2011-12-28 ソニー株式会社 表示制御装置、記録媒体、表示制御方法及び表示制御プログラム。
KR20120084817A (ko) * 2007-11-09 2012-07-30 미쓰비시덴키 가부시키가이샤 디스크 형상 기록 매체, 영상 정보 재생 장치 및 영상 정보 재생 방법
US8605795B2 (en) * 2008-09-17 2013-12-10 Intel Corporation Video editing methods and systems
US20130086143A1 (en) * 2011-09-30 2013-04-04 Google Inc. Music On Video Site
US20140368737A1 (en) * 2013-06-17 2014-12-18 Spotify Ab System and method for playing media during navigation between media streams
US9411808B2 (en) * 2014-03-04 2016-08-09 Microsoft Technology Licensing, Llc Automapping of music tracks to music videos
US20150301718A1 (en) * 2014-04-18 2015-10-22 Google Inc. Methods, systems, and media for presenting music items relating to media content
US11412276B2 (en) * 2014-10-10 2022-08-09 JBF Interlude 2009 LTD Systems and methods for parallel track transitions
US9691429B2 (en) * 2015-05-11 2017-06-27 Mibblio, Inc. Systems and methods for creating music videos synchronized with an audio track
WO2017119782A1 (ko) * 2016-01-07 2017-07-13 주식회사 엠에프유 음악의 분절별 동영상 재생 방법 및 장치
US20170201781A1 (en) * 2016-01-13 2017-07-13 Mark Itwaru Online media content distribution with associated transactions
US11915722B2 (en) * 2017-03-30 2024-02-27 Gracenote, Inc. Generating a video presentation to accompany audio
KR102660124B1 (ko) * 2018-03-08 2024-04-23 한국전자통신연구원 동영상 감정 학습용 데이터 생성 방법, 동영상 감정 판단 방법, 이를 이용하는 동영상 감정 판단 장치

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180232121A1 (en) * 2014-08-01 2018-08-16 Google Inc. Perpendicular autoplay video feed related navigation
CN106649586A (zh) * 2016-11-18 2017-05-10 腾讯音乐娱乐(深圳)有限公司 一种音频文件的播放方法及装置
CN107734376A (zh) * 2017-10-16 2018-02-23 维沃移动通信有限公司 一种多媒体数据播放的方法以及装置
CN109756784A (zh) * 2018-12-21 2019-05-14 广州酷狗计算机科技有限公司 音乐播放方法、装置、终端及存储介质

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3902278A4

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022179033A1 (zh) * 2021-02-23 2022-09-01 北京字跳网络技术有限公司 音乐播放方法及设备
US11941047B2 (en) 2021-02-23 2024-03-26 Beijing Zitiao Network Technology Co., Ltd. Music playing method and device
CN113347503A (zh) * 2021-06-15 2021-09-03 广州酷狗计算机科技有限公司 音视频播放方法、装置、计算机设备及存储介质

Also Published As

Publication number Publication date
US20220057984A1 (en) 2022-02-24
EP3902278B1 (en) 2024-01-17
CN109756784B (zh) 2020-11-17
US11632584B2 (en) 2023-04-18
EP3902278A4 (en) 2022-06-01
CN109756784A (zh) 2019-05-14
SG11202106724RA (en) 2021-07-29
EP3902278A1 (en) 2021-10-27

Similar Documents

Publication Publication Date Title
US11632584B2 (en) Video switching during music playback
CN109302538B (zh) 音乐播放方法、装置、终端及存储介质
CN110336960B (zh) 视频合成的方法、装置、终端及存储介质
CN108769561B (zh) 视频录制方法及装置
CN109874312B (zh) 播放音频数据的方法和装置
CN110233976B (zh) 视频合成的方法及装置
CN108391171B (zh) 视频播放的控制方法及装置、终端
WO2020125365A1 (zh) 音视频处理方法、装置、终端及存储介质
CN109660817B (zh) 视频直播方法、装置及系统
CN111711838B (zh) 视频切换方法、装置、终端、服务器及存储介质
CN109729372B (zh) 直播间切换方法、装置、终端、服务器及存储介质
CN109743461B (zh) 音频数据处理方法、装置、终端及存储介质
CN109068160B (zh) 链接视频的方法、装置和系统
CN109922356B (zh) 视频推荐方法、装置和计算机可读存储介质
WO2019127899A1 (zh) 歌词添加方法及装置
CN111818367A (zh) 音频文件的播放方法、装置、终端、服务器及存储介质
WO2021003949A1 (zh) 歌曲播放方法、装置及系统
CN111611430A (zh) 歌曲播放方法、装置、终端及存储介质
CN112616082B (zh) 视频预览方法、装置、终端及存储介质
CN111399796B (zh) 语音消息聚合方法、装置、电子设备及存储介质
CN109005359B (zh) 视频录制方法、装置存储介质
CN111314205A (zh) 即时通信匹配的方法、装置、系统、设备以及存储介质
CN110177291A (zh) 信息显示方法、装置、终端、服务器及存储介质
CN110267114B (zh) 视频文件的播放方法、装置、终端及存储介质
CN111432254A (zh) 视频信息显示方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19899965

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019899965

Country of ref document: EP

Effective date: 20210721