WO2021012764A1 - Audio-video playback method and apparatus, electronic device, and readable medium - Google Patents

Audio-video playback method and apparatus, electronic device, and readable medium Download PDF

Info

Publication number
WO2021012764A1
WO2021012764A1 PCT/CN2020/091156 CN2020091156W WO2021012764A1 WO 2021012764 A1 WO2021012764 A1 WO 2021012764A1 CN 2020091156 W CN2020091156 W CN 2020091156W WO 2021012764 A1 WO2021012764 A1 WO 2021012764A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
playback
video
full
page
Prior art date
Application number
PCT/CN2020/091156
Other languages
French (fr)
Chinese (zh)
Inventor
何尧
Original Assignee
北京字节跳动网络技术有限公司
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 北京字节跳动网络技术有限公司 filed Critical 北京字节跳动网络技术有限公司
Publication of WO2021012764A1 publication Critical patent/WO2021012764A1/en

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/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
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8547Content authoring involving timestamps for synchronizing content

Definitions

  • the embodiments of the present disclosure relate to the field of Internet technology, for example, to an audio and video playback method, device, electronic equipment, and readable medium.
  • the embodiments of the present disclosure provide an audio and video playback method, device, electronic equipment, and readable medium, which can meet the diversified needs of users, thereby improving user experience.
  • the embodiment of the present disclosure provides an audio and video playback method, which includes:
  • control the playback of the full-version audio and video on the full-version playback page wherein the current playback page is the playback page of the selected segment, and the full-version audio and video are recorded according to The audio content and image content of the target song are generated, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
  • the embodiment of the present disclosure provides an audio and video playback device, which includes:
  • the time stamp recording module is set to record the current playback time stamp of the selected clip when the full version viewing event is detected during the playback of the selected clip;
  • the page jump module is set to control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment;
  • the playback module is configured to control the playback of the full version audio and video on the full version playback page according to the current playback timestamp; wherein, the current playback page is a playback page of a selected segment, and the full version audio
  • the video is generated based on the audio content and image content of the recorded target song, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
  • An embodiment of the present disclosure also provides an electronic device, which includes:
  • One or more processors are One or more processors;
  • Memory used to store one or more programs
  • the one or more processors When the one or more programs are executed by the one or more processors, the one or more processors implement the audio and video playback method according to any embodiment of the present disclosure.
  • the embodiment of the present disclosure also provides a readable medium storing a computer program, and when the program is executed by a processor, the audio and video playback method as described in any embodiment of the present disclosure is implemented.
  • FIG. 1 shows a flowchart of an audio and video playback method provided by an embodiment of the present disclosure
  • Figure 2 shows a flowchart of another audio and video playback method provided by an embodiment of the present disclosure
  • FIG. 3 shows a schematic structural diagram of an audio and video playback device provided by an embodiment of the present disclosure
  • Fig. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • each embodiment provides optional features and examples at the same time. Multiple features recorded in the embodiments can be combined to form multiple alternative solutions. Each numbered embodiment should not be combined Only regarded as a technical solution.
  • FIG. 1 shows a flowchart of an audio and video playback method provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure may be applicable to how to play audio and video to meet the diverse needs of users.
  • the method may be executed by the audio and video playback device or the electronic device provided in the embodiments of the present disclosure, and the device may be implemented by software and/or hardware.
  • the so-called electronic device may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server.
  • the audio and video playback method provided in the embodiment of the present disclosure includes the following steps:
  • the selected segment is a segment of a preset duration determined in the full version of the audio and video, and the full version of the audio and video is generated based on the audio content and image content of the recorded target song.
  • the preset duration is the pre-set total playback duration of the selected clips, which can be modified according to the actual total playback duration of the full version of the audio and video and actual needs.
  • the preset duration can be the set ratio of the total playback duration of the full version of the audio and video; if the total playback duration of the full version of the audio and video is 90s and the set ratio is 1/6, the preset duration is 15s.
  • the full version of audio and video can be displayed in the video list interface in this embodiment. Featured snippets. Furthermore, the user selects any selected segment that he wants to watch in the video list interface, and then enters the playback page of the selected selected segment to watch the selected segment.
  • the playback page of the selected segment has an interface for entering the full version of audio and video; this interface can be a physical button or a floating ball, etc.
  • the form reflects.
  • the interface can be fixedly embedded in the play page of the selected segment, and can also be dynamically popped up, such as appearing in the play page of the selected segment according to the set pop-up logic.
  • the set pop-up logic may be: the ratio between the current playing time length of the selected segment and the total playing time length reaches the set ratio value.
  • the set ratio value is preset, and can be modified according to the total playback time of the selected clips in the actual situation and actual needs. Assuming that the set ratio value is 2/3, if the total playback duration of the selected segment is 15s, when the current playback duration is 10s, the interface can dynamically pop up on the playback page of the selected segment.
  • the full version viewing event may be triggered by the user manually or by voice, etc., and is used to request the server or the K song application provided by the server to play the event of the full version of the audio and video corresponding to the selected segment. For example, if it is detected that the user touches a physical button embedded in the selected segment, it is determined that the full version viewing event is detected, and then the current playback timestamp of the selected segment can be recorded.
  • Displaying selected clips on the video list interface can help users quickly capture the key points and increase user interest in watching; by embedding the full version of the audio and video interface in the playback page of the selected clips, it can also satisfy users who want to watch Full version audio and video requirements.
  • S120 Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment.
  • the current play page is the play page of the selected segment.
  • the full version playback page is the page used to play the full version audio and video.
  • the full version audio and video can be added to the full version playback page in advance, and the link address or storage address of the full version playback page can be stored. Furthermore, after confirming that the full-version viewing event is detected and recording the current playback timestamp of the selected segment, the link address or storage address of the pre-saved full-version playback page can be sent to the K song application for the K song application According to the obtained address, jump from the current playback page to the full-version playback page of the full-version audio and video corresponding to the selected segment, and load the full-version audio and video for display.
  • the server can determine the loading information of the full version of the playback page; according to the loading information, control to load the full version of the playback page including the full version of the audio and video corresponding to the selected fragments and display the full version of the playback page.
  • the loading information can be a link address or a storage address, or other data information.
  • the full version viewing request including the selected segment information can be sent to the server to Request the server to obtain the relevant information of the full version of the audio and video (such as the link address or storage address of the full version of the playback page where the full version of the audio and video is located) according to the selected fragment information and feedback, and then the K song application The program can jump to the full version playback page of the full version of the audio and video according to the link address feedback from the server, and load the full version of the audio and video for display.
  • S130 Control the playback of the full version audio and video on the full version playback page according to the current playback time stamp.
  • the start time for playing the full version of the audio and video can be determined according to the current playback timestamp, and then the full version of the audio and video is played from the start time on the full version playback page.
  • determining the starting time for playing the full version of the audio and video based on the current playing timestamp may be: determining the playing of the full version based on the current playing timestamp and the start time and end time of the selected segment in the full version of the audio and video The start time of the audio and video.
  • a selected segment is a segment of 0:0:0-0:0:15
  • the start time and end time of the segment in the full version of the audio and video are: 0:0:0 and 0:0: 15, and the current playback timestamp is 0:0:10, and it is determined that the starting time for playing the full version of the audio and video is 0:0:10.
  • start time and end time of the selected segment in the full version of the audio and video are: 0:0:10 and 0:0:25, and the current playback timestamp is 0:0:20, confirm to play the full version of the audio and video
  • the starting time is 0:0:20.
  • the server after recording the current playback timestamp of the selected segment, it can also determine the start time of playing the full version of the audio and video according to the current playback timestamp; and in controlling the current playback page to jump to While including the full version playback page of the full version of the audio and video corresponding to the selected clips, the start time of the full version of the audio and video can be sent to the K song application, so that the K song application can jump to the complete version of the full version of the audio and video After loading the full version of the audio and video, the full version of the audio and video is quickly played according to the starting time.
  • the current playback timestamp of the selected segment can be added to the full version viewing request including the selected segment information to the server to request the server to obtain the selected segment information
  • the loading information of the full version of the audio and video corresponding to the selected segment, and the start time of playing the full version of the audio and video is determined according to the current playback timestamp, and then the loading information and the start time are fed back together; and the K song application is After completing the page jump according to the loading information of the full version playing page feedback from the server, and loading the full version audio and video, the full version audio and video can be played quickly from the starting time.
  • the current playback timestamp of the selected segment can be recorded; afterwards, by controlling the current page to jump to the complete version corresponding to the selected segment
  • the full version playback page of the version audio and video, and then the full version audio and video can be played on the full version playback page according to the current timestamp.
  • this solution not only meets the needs of users to watch selected clips, but also meets the needs of users to watch the full version of audio and video through page jump, that is, to meet the diverse needs of users to watch audio and video A new idea.
  • this embodiment controls the full version of the audio and video based on the current playback time stamp. Introduce the steps during or after the playback page of the version. For example, it may be based on the user's operation on the full-version playback page to generate a playback event from the beginning, and the full-version audio and video are played from the beginning in the full-version playback page.
  • a quick start button may be embedded in the playback page (ie, the current playback page) of the selected segment.
  • the playback from the beginning event can be triggered by the user clicking the quick restart button.
  • the current playback timestamp control the full version of the audio and video during or after the playback of the full version of the playback page. If it is detected that the user clicks the quick restart button embedded in the current playback page, a restart event will be generated; at this time, it can be controlled Adjust the current playback parameters to the playback parameters from the beginning, so that the full version audio and video will be played from the beginning in the full version playback page.
  • the playback parameters include but are not limited to the start time of playback.
  • the "I want to sing” button can be embedded in the playback page of the selected segment, that is, the current playback page, so that the singing event is detected during the playback of the selected segment Control the current playing page to jump to the singing page of the target song; in the singing page of the target song, record the content sung by the user.
  • the singing event can be triggered by the user clicking the "I want to sing" button in the current playback page.
  • the server can control the K song application to jump from the current playing page to the singing page of the target song.
  • the server may send the URL of the singing page of the target song to the K song application, so that the K song application can jump from the current playing page to the singing page of the target song according to the URL.
  • the K song application detects a singing event, it can send a singing request including the target song to the server to request the server to obtain the content of the singing page (such as the URL) of the target song and provide feedback, and the K song application can be based on the service The content of the terminal feedback realizes the interface jump.
  • the server or K song application can record the content sung by the user on the singing page of the target song, such as the audio content of the target song sung by the user, or the audio content and video image of the target song sung by the user.
  • the full version playback page can also be embedded with a "I want to sing" button, and then in the process of playing the full version audio and video on the full version playback page, when a singing event is detected, control the full version playback page to jump to the target The singing page of the song; in the singing page of the target song, the content of the user's singing is recorded.
  • FIG. 2 shows a flowchart of another audio and video playback method provided in an embodiment of the present disclosure. This embodiment is described on the basis of multiple alternative solutions provided in the foregoing embodiment. This embodiment is different from the foregoing embodiment. How to detect the full version viewing event in the multiple steps provided is introduced.
  • the audio and video playback method in this embodiment may include the following steps:
  • the pause event can be triggered by the user manually or by voice, and is used to request the server or the K song application provided by the server to pause the playback of the selected segment.
  • a playback pause button is embedded in the current playback page. If it is detected that the user touches the pause playback button, it is determined that a pause event is detected, and the playback of the selected segment can be paused at this time.
  • S220 Acquire voice information input by the user.
  • the interface of the full version of audio and video embedded in the playback page of the selected segment is embodied in the form of a physical button, and the physical button is a voice button, the user can input voice information by clicking the voice button to obtain user input Voice message.
  • S230 Determine whether the voice information matches the preset full-version audio and video viewing text.
  • the preset full-version audio and video viewing text refers to the text corresponding to the voice command used when the user wants to watch the full-version audio and video that is pre-stored in the server or the K song application provided by the server.
  • “complete, complete” is the complete version of the audio and video viewing text pre-stored in the server.
  • the user When the user has the need to watch the full version of audio and video, he can input the voice information through the voice button. After the voice information input by the user is obtained, the text corresponding to the voice information is obtained by parsing the voice information, and the text corresponding to the voice information is compared with The preset full version audio and video viewing text is matched; if the voice information matches the preset full version audio and video viewing text successfully, it is determined that the full version viewing event is detected.
  • S260 Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment.
  • S270 Control the playback of the full version audio and video on the full version playback page according to the current playback timestamp.
  • the technical solution provided by the embodiments of the present disclosure can obtain the voice information input by the user during the playback of the selected segment, and record the current playback time of the selected segment when the voice information matches the preset full version of the audio and video viewing text Stamp; then by controlling the current page to jump to the full version playback page of the full version of the audio and video corresponding to the selected segment, and then the full version of the audio and video can be played on the full version playback page according to the current timestamp.
  • this solution not only meets the needs of users to watch selected clips, but also meets the needs of users to watch the full version of audio and video through page jumps, that is, to meet the diverse needs of users for watching audio and video.
  • a new idea In addition, it also provides users with a way to choose to watch the full version of audio and video based on voice, which increases the flexibility of the solution.
  • Figure 3 shows a schematic structural diagram of an audio and video playback device provided by an embodiment of the present disclosure.
  • the embodiment of the present disclosure may be applicable to how to play audio and video to meet the diverse needs of users. It is implemented by software and/or hardware, and can be configured on an electronic device.
  • the so-called electronic device may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server. As shown in FIG.
  • the audio and video playback device in the embodiment of the present disclosure includes: a time stamp recording module 310, which is configured to record the selected clip when a full version viewing event is detected during the playback of the selected clip The current playback time stamp; the page jump module 320 is set to control the current playback page to jump to the full version playback page that includes the full version of the audio and video corresponding to the selected fragment; the playback module 330 is set to control the completeness based on the current playback timestamp Version audio and video are played on the full version playback page; among them, the full version audio and video are generated based on the audio content and image content of the recorded target song, and the selected segment is a segment with a preset duration determined in the full version audio and video .
  • an interface for entering the full version of audio and video is embedded in the playback page of the selected segment, and the interface is embodied in the form of a physical button or a floating ball.
  • the interface is fixedly embedded in the play page of the selected segment, or appears in the play page of the selected segment according to a set pop-up logic.
  • the set pop-up logic includes: the ratio between the current playback duration of the selected segment and the total playback duration reaches the preset ratio value.
  • the above-mentioned device further includes a viewing event detection module, which is set to: in the case of detecting a pause event, pause the playback of the selected segment; obtain the voice information input by the user; determine the voice information and the preset full version Whether the audio and video viewing text matches; if the voice information matches the preset full version audio and video viewing text, it is determined that the full version viewing event is detected.
  • a viewing event detection module which is set to: in the case of detecting a pause event, pause the playback of the selected segment; obtain the voice information input by the user; determine the voice information and the preset full version Whether the audio and video viewing text matches; if the voice information matches the preset full version audio and video viewing text, it is determined that the full version viewing event is detected.
  • the page jump module 320 is configured to: determine the loading information of the full-version playback page; according to the loading information, control the loading and display of the full-version playback page including the full-version audio and video corresponding to the selected fragments.
  • the playback module 330 is also set to: control the playback of the full version of the audio and video on the full version playback page according to the current playback timestamp, when a restart event is generated based on the user's operation on the full version playback page Next, in the full version playback page, play the full version audio and video from the beginning.
  • the above device may further include: a page jump module 320, which is further configured to control the current playback page to jump to the singing page of the target song when a singing event is detected during the playback of the selected segment;
  • the module is set to record the user's singing content on the singing page of the target song.
  • FIG. 4 shows a schematic structural diagram of an electronic device 400 suitable for implementing embodiments of the present disclosure.
  • the electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia players Mobile terminals such as Portable Media Player (PMP), in-vehicle terminals (for example, in-vehicle navigation terminals), and fixed terminals such as digital televisions (television, TV), desktop computers, etc.
  • the so-called electronic device in this embodiment may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server.
  • the electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
  • the electronic device 400 may include a processing device (such as a central processing unit, a graphics processor, etc.) 401.
  • the processing device may be based on a program stored in a read-only memory (Read-Only Memory, ROM) 402 or from a storage device. 408
  • a program loaded into a random access memory (Random Access Memory, RAM) 403 executes various appropriate actions and processes.
  • the RAM 403 also stores various programs and data required for the operation of the electronic device 400.
  • the processing device 401, ROM 402, and RAM 403 are connected to each other through a bus 404.
  • An input/output (I/O) interface 405 is also connected to the bus 404.
  • the following devices can be connected to the I/O interface 405: including input devices 406 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD) , Output devices 407 such as speakers, vibrators, etc.; storage devices 408 such as magnetic tapes, hard disks, etc.; and communication devices 409.
  • the communication device 409 may allow the electronic device 400 to perform wireless or wired communication with other devices to exchange data.
  • FIG. 4 shows an electronic device 400 having multiple devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
  • the process described above with reference to the flowchart may be implemented as a computer software program.
  • the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart.
  • the computer program may be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402.
  • the processing device 401 the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
  • the aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory, EPROM, flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer may
  • the readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may be included in the baseband or used as a carrier wave A part of the propagated data signal, which carries computer-readable program code. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals or any suitable combination of the above.
  • Computer-readable signal medium It may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device.
  • Computer-readable medium The program code contained above can be transmitted by any suitable medium, including but not limited to: wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device executes the above-mentioned one or more programs.
  • the electronic device To record the current playback timestamp of the selected segment; control the current playback page to jump to the full version playback page including the full version of the audio and video corresponding to the selected segment; control the full version of the audio and video in the full version playback page according to the current playback timestamp
  • the full version of the audio and video is generated based on the audio content and image content of the recorded target song, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
  • the computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer (for example, use an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself in some cases.
  • the functions described hereinabove may be performed at least in part by one or more hardware logic components.
  • the exemplary types of hardware logic components include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), and Application Specific Standard Products (Application Specific Standard Parts, ASSP), System-on-a-Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • the machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, RAM, ROM, EPROM, flash memory, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices , Or any suitable combination of the above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

Disclosed in embodiments of the present application are an audio-video playback method and apparatus, an electronic device, and a readable medium. The method comprises: in the process of playing a highlight clip, if a full version viewing event is detected, recording the current playback timestamp of the highlight clip; controlling the current playback page to jump to a full version playback page comprising a full version audio-video corresponding to the highlight clip; controlling playback of the full version audio-video on the full version playback page according to the current playback timestamp, the full version audio-video being generated on the basis of audio content and image content of a recorded target song, and the highlight clip being a clip of a preset duration determined from the full version audio-video.

Description

音视频播放方法、装置、电子设备及可读介质Audio and video playback method, device, electronic equipment and readable medium
本申请要求在2019年07月19日提交中国专利局、申请号为201910656325.8的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office with an application number of 201910656325.8 on July 19, 2019. The entire content of the application is incorporated into this application by reference.
技术领域Technical field
本公开实施例涉及互联网技术领域,例如涉及一种音视频播放方法、装置、电子设备及可读介质。The embodiments of the present disclosure relate to the field of Internet technology, for example, to an audio and video playback method, device, electronic equipment, and readable medium.
背景技术Background technique
在K歌类应用程序中,用户可以选择自己喜爱的歌曲录制音视频并发布,也可以观看其他用户发布的音视频。相关技术中,用户一旦在视频列表界面中选择想要观看的音视频之后,将进入所选择的音视频的播放界面,观看该音视频。上述音视频的播放方式形式单一,无法满足用户的多样化的需求。In K song applications, users can choose their favorite songs to record audio and video and publish them, or watch the audio and video released by other users. In the related art, once the user selects the audio and video that he wants to watch in the video list interface, he enters the playback interface of the selected audio and video to watch the audio and video. The above-mentioned audio and video playback modes are single in form and cannot meet the diverse needs of users.
发明内容Summary of the invention
本公开实施例提供了一种音视频播放方法、装置、电子设备及可读介质,能够满足用户多样化的需求,进而提升了用户体验。The embodiments of the present disclosure provide an audio and video playback method, device, electronic equipment, and readable medium, which can meet the diversified needs of users, thereby improving user experience.
本公开实施例提供了一种音视频播放方法,该方法包括:The embodiment of the present disclosure provides an audio and video playback method, which includes:
在精选片段播放过程中,在检测到完整版观看事件的情况下,记录所述精选片段的当前播放时间戳;During the playback of the selected segment, in the case of detecting the full version viewing event, record the current playback timestamp of the selected segment;
控制当前播放页面跳转至包括所述精选片段对应的完整版音视频的完整版播放页面;Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment;
依据所述当前播放时间戳,控制所述完整版音视频在所述完整版播放页面的播放;其中,所述当前播放页面为精选片段的播放页面,所述完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,所述精选片段是在所述完整版音视频中确定的一个预设时长的片段。According to the current playback timestamp, control the playback of the full-version audio and video on the full-version playback page; wherein the current playback page is the playback page of the selected segment, and the full-version audio and video are recorded according to The audio content and image content of the target song are generated, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
本公开实施例提供了一种音视频播放装置,该装置包括:The embodiment of the present disclosure provides an audio and video playback device, which includes:
时间戳记录模块,设置为在精选片段播放过程中,在检测到完整版观看事件的情况下,记录所述精选片段的当前播放时间戳;The time stamp recording module is set to record the current playback time stamp of the selected clip when the full version viewing event is detected during the playback of the selected clip;
页面跳转模块,设置为控制当前播放页面跳转至包括所述精选片段对应的完整版音视频的完整版播放页面;The page jump module is set to control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment;
播放模块,设置为依据所述当前播放时间戳,控制所述完整版音视频在所述完整版播放页面的播放;其中,所述当前播放页面为精选片段的播放页面,所述完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,所述精选片段是在所述完整版音视频中确定的一个预设时长的片段。The playback module is configured to control the playback of the full version audio and video on the full version playback page according to the current playback timestamp; wherein, the current playback page is a playback page of a selected segment, and the full version audio The video is generated based on the audio content and image content of the recorded target song, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
本公开实施例还提供了一种电子设备,该电子设备包括:An embodiment of the present disclosure also provides an electronic device, which includes:
一个或多个处理器;One or more processors;
存储器,用于存储一个或多个程序;Memory, used to store one or more programs;
当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如本公开任意实施例所述的音视频播放方法。When the one or more programs are executed by the one or more processors, the one or more processors implement the audio and video playback method according to any embodiment of the present disclosure.
本公开实施例还提供了一种可读介质,存储有计算机程序,该程序被处理器执行时实现如本公开任意实施例所述的音视频播放方法。The embodiment of the present disclosure also provides a readable medium storing a computer program, and when the program is executed by a processor, the audio and video playback method as described in any embodiment of the present disclosure is implemented.
附图说明Description of the drawings
为了说明本公开实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图做简单地介绍。In order to illustrate the technical solutions in the embodiments of the present disclosure or related technologies, the following will briefly introduce the drawings that need to be used in the description of the embodiments or related technologies.
图1示出了本公开实施例提供的一种音视频播放方法的流程图;FIG. 1 shows a flowchart of an audio and video playback method provided by an embodiment of the present disclosure;
图2示出了本公开实施例提供的另一种音视频播放方法的流程图;Figure 2 shows a flowchart of another audio and video playback method provided by an embodiment of the present disclosure;
图3示出了本公开实施例提供的一种音视频播放装置的结构示意图;FIG. 3 shows a schematic structural diagram of an audio and video playback device provided by an embodiment of the present disclosure;
图4示出了本公开实施例提供的一种电子设备的结构示意图。Fig. 4 shows a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
下面将参照附图描述本公开的实施例。虽然附图中显示了本公开的一些实施例,然而,本公开可以通过多种形式来实现,而且不应该被解释为限定于这 里阐述的实施例,相反,提供这些实施例是为了理解本公开。本公开的附图及实施例仅用于示例性作用,并非用于限制本公开的保护范围。The embodiments of the present disclosure will be described below with reference to the drawings. Although some embodiments of the present disclosure are shown in the drawings, the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided for understanding of the present disclosure . The drawings and embodiments of the present disclosure are only used for exemplary purposes, and are not used to limit the protection scope of the present disclosure.
本公开的方法实施方式中记载的多个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。下述多个实施例中,每个实施例中同时提供了可选特征和示例,实施例中记载的多个特征可进行组合,形成多个可选方案,不应将每个编号的实施例仅视为一个技术方案。The multiple steps described in the method embodiments of the present disclosure may be executed in a different order, and/or executed in parallel. Furthermore, method implementations may include additional steps and/or omit to perform the illustrated steps. The scope of the present disclosure is not limited in this respect. In the following multiple embodiments, each embodiment provides optional features and examples at the same time. Multiple features recorded in the embodiments can be combined to form multiple alternative solutions. Each numbered embodiment should not be combined Only regarded as a technical solution.
本文使用的术语“包括”及其变形是开放性包括,即“包括但不限于”。术语“基于”是“至少部分地基于”。术语“一个实施例”表示“至少一个实施例”;术语“另一实施例”表示“至少一个另外的实施例”;术语“一些实施例”表示“至少一些实施例”。其他术语的相关定义将在下文描述中给出。The term "including" and its variations as used herein are open-ended includes, that is, "including but not limited to". The term "based on" is "based at least in part on." The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments." Related definitions of other terms will be given in the following description.
本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多个”。The modifications of "a" and "a plurality of" mentioned in the present disclosure are illustrative and not restrictive. Those skilled in the art should understand that unless the context clearly indicates otherwise, they should be interpreted as "one or more" .
图1示出了本公开实施例提供的一种音视频播放方法的流程图,本公开实施例可适用于如何进行音视频的播放,以满足用户的多样化需求的情况。该方法可以由本公开实施例提供的音视频播放装置或电子设备来执行,该装置可以通过软件和/或硬件的方式来实现。可选的,所谓电子设备可以是承载音视频播放功能的服务端设备,还可以是配置服务端所提供的K歌应用程序的终端设备等。FIG. 1 shows a flowchart of an audio and video playback method provided by an embodiment of the present disclosure. The embodiment of the present disclosure may be applicable to how to play audio and video to meet the diverse needs of users. The method may be executed by the audio and video playback device or the electronic device provided in the embodiments of the present disclosure, and the device may be implemented by software and/or hardware. Optionally, the so-called electronic device may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server.
可选的,如图1所示,本公开实施例中提供的音视频播放方法包括如下步骤:Optionally, as shown in FIG. 1, the audio and video playback method provided in the embodiment of the present disclosure includes the following steps:
S110、在精选片段播放过程中,在检测到完整版观看事件的情况下,记录精选片段的当前播放时间戳。S110. During the playback of the selected segment, in the case of detecting the full version viewing event, record the current playback timestamp of the selected segment.
本实施例中,精选片段是在完整版音视频中确定的一个预设时长的片段,完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的。预设时长是预先设定的精选片段的播放总时长,可根据实际情况中完整版音视频的播放总时长以及实际需求等进行修正。预设时长可以是完整版音视频的播放总时长的设定比例;若完整版音视频的播放总时长为90s,设定比例为1/6,则预设时 长为15s。In this embodiment, the selected segment is a segment of a preset duration determined in the full version of the audio and video, and the full version of the audio and video is generated based on the audio content and image content of the recorded target song. The preset duration is the pre-set total playback duration of the selected clips, which can be modified according to the actual total playback duration of the full version of the audio and video and actual needs. The preset duration can be the set ratio of the total playback duration of the full version of the audio and video; if the total playback duration of the full version of the audio and video is 90s and the set ratio is 1/6, the preset duration is 15s.
由于完整版音视频的播放总时长一般较长,不便于观看者快速捕捉到重点,且容易出现情绪化现象,用户体验不佳,因此本实施例中的视频列表界面中可展示完整版音视频的精选片段。进而,用户在视频列表界面中选择任一想要观看的精选片段,即可进入所选的精选片段的播放页面,观看该精选片段。Since the total playing time of the full version of audio and video is generally long, it is not convenient for viewers to quickly capture the key points, and it is prone to emotional phenomena, and the user experience is poor. Therefore, the full version of audio and video can be displayed in the video list interface in this embodiment. Featured snippets. Furthermore, the user selects any selected segment that he wants to watch in the video list interface, and then enters the playback page of the selected selected segment to watch the selected segment.
由于实际场景中用户可能具有观看完整版音视频的需求,可选的,本实施例中精选片段的播放页面中嵌入有进入完整版音视频的接口;该接口可以以物理按钮或悬浮球等形式体现。而且该接口可以固定嵌入于精选片段的播放页面中,还可以动态弹出,如依据设定的弹出逻辑出现在精选片段的播放页面中。其中,设定的弹出逻辑可以是:精选片段的当前播放时长与总播放时长之间的比例,达到设定比例值。设定比例值是预先设定的,可根据实际情况中精选片段的播放总时长以及实际需求等进行修正。假设设定比例值是2/3,若精选片段的总播放时长为15s,在当前播放时长为10s时,该接口即可动态弹出于精选片段的播放页面中。Since users may have the need to watch the full version of audio and video in actual scenarios, optionally, in this embodiment, the playback page of the selected segment has an interface for entering the full version of audio and video; this interface can be a physical button or a floating ball, etc. The form reflects. Moreover, the interface can be fixedly embedded in the play page of the selected segment, and can also be dynamically popped up, such as appearing in the play page of the selected segment according to the set pop-up logic. Wherein, the set pop-up logic may be: the ratio between the current playing time length of the selected segment and the total playing time length reaches the set ratio value. The set ratio value is preset, and can be modified according to the total playback time of the selected clips in the actual situation and actual needs. Assuming that the set ratio value is 2/3, if the total playback duration of the selected segment is 15s, when the current playback duration is 10s, the interface can dynamically pop up on the playback page of the selected segment.
可选的,完整版观看事件可以是用户手动或语音等形式触发产生的,用于请求服务端或服务端所提供的K歌应用程序播放精选片段对应的完整版音视频的事件。例如,若检测到用户触摸嵌入于精选片段中的物理按钮,确定检测到完整版观看事件,此时可以记录精选片段的当前播放时间戳。Optionally, the full version viewing event may be triggered by the user manually or by voice, etc., and is used to request the server or the K song application provided by the server to play the event of the full version of the audio and video corresponding to the selected segment. For example, if it is detected that the user touches a physical button embedded in the selected segment, it is determined that the full version viewing event is detected, and then the current playback timestamp of the selected segment can be recorded.
在视频列表界面展示精选片段,可以有助于用户快速捕捉到重点,增加用户观看的兴趣;通过在精选片段的播放页面中嵌入进入完整版音视频的接口,又可满足用户想要观看完整版音视频的需求。Displaying selected clips on the video list interface can help users quickly capture the key points and increase user interest in watching; by embedding the full version of the audio and video interface in the playback page of the selected clips, it can also satisfy users who want to watch Full version audio and video requirements.
S120、控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面。S120: Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment.
本实施例中,当前播放页面即为精选片段的播放页面。完整版播放页面即为用于播放完整版音视频的页面。可选的,服务端和服务端所提供的K歌应用程序在检测到完整版观看事件后,控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面的方式不同。In this embodiment, the current play page is the play page of the selected segment. The full version playback page is the page used to play the full version audio and video. Optionally, after the K song application provided by the server and the server detects the full version viewing event, they control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragments in different ways .
例如,对于服务端而言,可以预先将完整版音视频添加至完整版播放页面中,并存储完整版播放页面的链接地址或存储地址等。进而在确定检测到完整 版观看事件,记录精选片段的当前播放时间戳之后,可以将预先保存的完整版播放页面的链接地址或存储地址发送至该K歌应用程序,以便该K歌应用程序依据所获取的地址从当前播放页面跳转至精选片段对应的完整版音视频的完整版播放页面,并加载完整版音视频进行展示。服务端可以确定完整版播放页面的加载信息;依据加载信息,控制加载包括精选片段对应的完整版音视频的完整版播放页面并展示完整版播放页面。加载信息可以是链接地址或存储地址,也可以是其他的数据信息等。For example, for the server, the full version audio and video can be added to the full version playback page in advance, and the link address or storage address of the full version playback page can be stored. Furthermore, after confirming that the full-version viewing event is detected and recording the current playback timestamp of the selected segment, the link address or storage address of the pre-saved full-version playback page can be sent to the K song application for the K song application According to the obtained address, jump from the current playback page to the full-version playback page of the full-version audio and video corresponding to the selected segment, and load the full-version audio and video for display. The server can determine the loading information of the full version of the playback page; according to the loading information, control to load the full version of the playback page including the full version of the audio and video corresponding to the selected fragments and display the full version of the playback page. The loading information can be a link address or a storage address, or other data information.
对于服务端所提供的K歌应用程序而言,在确定检测到完整版观看事件,记录精选片段的当前播放时间戳之后,可以向服务端发送包括精选片段信息的完整版观看请求,以请求服务端依据精选片段信息获取该精选片段对应的完整版音视频的相关信息(如完整版音视频所在的完整版播放页面的链接地址或存储地址等)并反馈,进而该K歌应用程序可依据服务端反馈的链接地址跳转至该完整版音视频的完整版播放页面,并加载完整版音视频进行展示。For the K song application provided by the server, after it is determined that the full version viewing event is detected and the current playback timestamp of the selected segment is recorded, the full version viewing request including the selected segment information can be sent to the server to Request the server to obtain the relevant information of the full version of the audio and video (such as the link address or storage address of the full version of the playback page where the full version of the audio and video is located) according to the selected fragment information and feedback, and then the K song application The program can jump to the full version playback page of the full version of the audio and video according to the link address feedback from the server, and load the full version of the audio and video for display.
S130、依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放。S130: Control the playback of the full version audio and video on the full version playback page according to the current playback time stamp.
本实施例中,可依据当前播放时间戳确定播放完整版音视频的起始时间,进而在完整版播放页面从该起始时间播放完整版音视频。In this embodiment, the start time for playing the full version of the audio and video can be determined according to the current playback timestamp, and then the full version of the audio and video is played from the start time on the full version playback page.
可选的,依据当前播放时间戳确定播放完整版音视频的起始时间可以是:依据当前播放时间戳、以及精选片段在完整版音视频中的起始时间和结束时间,确定播放完整版音视频的起始时间。例如,精选片段是一个0:0:0-0:0:15的片段,且该片段在完整版音视频中的起始时间和结束时间分别为:0:0:0和0:0:15,且当前播放时间戳为0:0:10,确定播放完整版音视频的起始时间为0:0:10。若精选片段在完整版音视频中的起始时间和结束时间分别为:0:0:10和0:0:25,且当前播放时间戳为0:0:20,确定播放完整版音视频的起始时间为0:0:20。Optionally, determining the starting time for playing the full version of the audio and video based on the current playing timestamp may be: determining the playing of the full version based on the current playing timestamp and the start time and end time of the selected segment in the full version of the audio and video The start time of the audio and video. For example, a selected segment is a segment of 0:0:0-0:0:15, and the start time and end time of the segment in the full version of the audio and video are: 0:0:0 and 0:0: 15, and the current playback timestamp is 0:0:10, and it is determined that the starting time for playing the full version of the audio and video is 0:0:10. If the start time and end time of the selected segment in the full version of the audio and video are: 0:0:10 and 0:0:25, and the current playback timestamp is 0:0:20, confirm to play the full version of the audio and video The starting time is 0:0:20.
本实施例中,对于服务端而言,在记录精选片段的当前播放时间戳之后,还可以依据当前播放时间戳确定播放完整版音视频的起始时间;而且在控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面的同时,可以将播放完整版音视频的起始时间发送至K歌应用程序,以便K歌应用程序跳转至完整版音视频的完整版播放页面,并加载完整版音视频之后,迅速 依据该起始时间进行完整版音视频的播放。In this embodiment, for the server, after recording the current playback timestamp of the selected segment, it can also determine the start time of playing the full version of the audio and video according to the current playback timestamp; and in controlling the current playback page to jump to While including the full version playback page of the full version of the audio and video corresponding to the selected clips, the start time of the full version of the audio and video can be sent to the K song application, so that the K song application can jump to the complete version of the full version of the audio and video After loading the full version of the audio and video, the full version of the audio and video is quickly played according to the starting time.
对于服务端所提供的K歌应用程序而言,可在向服务端发送包括精选片段信息的完整版观看请求中添加精选片段的当前播放时间戳,以请求服务端依据精选片段信息获取该精选片段对应的完整版音视频的加载信息,并依据当前播放时间戳确定播放完整版音视频的起始时间,而后将加载信息和该起始时间一并反馈;进而K歌应用程序在依据服务端反馈完整版播放页面的加载信息完成页面跳转,并加载完整版音视频之后,可迅速从该起始时间开始播放完整版音视频。For the K song application provided by the server, the current playback timestamp of the selected segment can be added to the full version viewing request including the selected segment information to the server to request the server to obtain the selected segment information The loading information of the full version of the audio and video corresponding to the selected segment, and the start time of playing the full version of the audio and video is determined according to the current playback timestamp, and then the loading information and the start time are fed back together; and the K song application is After completing the page jump according to the loading information of the full version playing page feedback from the server, and loading the full version audio and video, the full version audio and video can be played quickly from the starting time.
相比于相关技术中的K歌类应用程序,本实施例对于用户而言,用户在观看精选片段的过程中,若具有观看完整版音视频需求时,只需以手动方式或语音方式等作用于当前播放页面,即可跳转至完整版播放页面,进而可在完整版播放页面观看完整版音视频。对于产品而言,通过在精选片段的播放页面中嵌入进入完整版音视频的接口,不仅可满足用户观看精选片段的需求,又可满足用户观看完整版音视频的需求;同时K歌应用程序通过与服务端交互,可迅速精准定位到播放完整版音视频的起始时间,并进行播放。Compared with K song applications in related technologies, in this embodiment, for users, in the process of watching selected clips, users only need to manually or by voice if they have the need to watch the full version of audio and video. Acting on the current playback page, you can jump to the full version playback page, and then you can watch the full version audio and video on the full version playback page. For the product, by embedding the interface to enter the full version of the audio and video in the playback page of the selected segment, it can not only meet the needs of users to watch the selected segment, but also meet the needs of users to watch the full version of audio and video; at the same time, K song application By interacting with the server, the program can quickly and accurately locate the start time of playing the full version of the audio and video, and play it.
本公开实施例提供的技术方案,在精选片段播放过程中,若检测到完整版观看事件,可以记录精选片段的当前播放时间戳;之后通过控制当前页面跳转至精选片段对应的完整版音视频的完整版播放页面,进而可依据当前时间戳,在完整版播放页面播放完整版音视频。相比于相关的技术方案,本方案不仅可满足用户观看精选片段的需求,同时通过页面跳转还可满足用户观看完整版音视频的需求,即为满足用户观看音视频的多样化需求提供了一种新思路。In the technical solution provided by the embodiments of the present disclosure, if a full version viewing event is detected during the playback of the selected segment, the current playback timestamp of the selected segment can be recorded; afterwards, by controlling the current page to jump to the complete version corresponding to the selected segment The full version playback page of the version audio and video, and then the full version audio and video can be played on the full version playback page according to the current timestamp. Compared with related technical solutions, this solution not only meets the needs of users to watch selected clips, but also meets the needs of users to watch the full version of audio and video through page jump, that is, to meet the diverse needs of users to watch audio and video A new idea.
在上述实施例提供的多个可选方案的基础上,为了使用户在完整版播放页面也可从头开始观看完整版音视频,本实施例对依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放之时或之后的步骤进行介绍。例如,可以是依据用户作用于完整版播放页面的操作产生从头开始播放事件,在完整版播放页面中从头开始播放完整版音视频。On the basis of the multiple alternatives provided by the foregoing embodiment, in order to enable users to watch the full version of audio and video from the beginning on the full version playback page, this embodiment controls the full version of the audio and video based on the current playback time stamp. Introduce the steps during or after the playback page of the version. For example, it may be based on the user's operation on the full-version playback page to generate a playback event from the beginning, and the full-version audio and video are played from the beginning in the full-version playback page.
在一实施例中,精选片段的播放页面(即当前播放页面)中可嵌入有快速从头开始按钮。从头开始播放事件可以是用户点击快速从头开始按钮所触发产生的。依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放之时 或之后,若检测到用户点击嵌入于当前播放页面中的快速从头开始按钮,产生从头开始播放事件;此时可控制将当前播放参数调整为从头开始播放参数,以实现在完整版播放页面中,从头开始播放完整版音视频。播放参数包括但不限于播放的起始时间。In one embodiment, a quick start button may be embedded in the playback page (ie, the current playback page) of the selected segment. The playback from the beginning event can be triggered by the user clicking the quick restart button. According to the current playback timestamp, control the full version of the audio and video during or after the playback of the full version of the playback page. If it is detected that the user clicks the quick restart button embedded in the current playback page, a restart event will be generated; at this time, it can be controlled Adjust the current playback parameters to the playback parameters from the beginning, so that the full version audio and video will be played from the beginning in the full version playback page. The playback parameters include but are not limited to the start time of playback.
为了满足用户的不同需求,可选的,精选片段的播放页面即当前播放页面中还可嵌入有“我也要唱”按钮,进而在精选片段播放过程中,在检测到演唱事件的情况下,控制当前播放页面跳转至目标歌曲的演唱页面;在目标歌曲的演唱页面,录制用户演唱的内容。演唱事件可以是用户点击当前播放页面中的“我也要唱”按钮所触发产生的。In order to meet the different needs of users, optionally, the "I want to sing" button can be embedded in the playback page of the selected segment, that is, the current playback page, so that the singing event is detected during the playback of the selected segment Control the current playing page to jump to the singing page of the target song; in the singing page of the target song, record the content sung by the user. The singing event can be triggered by the user clicking the "I want to sing" button in the current playback page.
可选的,服务端若通过自身所提供的K歌应用程序检测到演唱事件,可以控制K歌应用程序从当前播放页面跳转至目标歌曲的演唱页面。例如,服务端可以将目标歌曲的演唱页面的网址发送给K歌应用程序,以便K歌应用程序依据该网址从当前播放页面跳转至目标歌曲的演唱页面。此外,若K歌应用程序检测到演唱事件,可以向服务端发送包括目标歌曲的演唱请求,以请求服务端获取目标歌曲的演唱页面内容(如网址)并反馈,进而K歌应用程序可依据服务端反馈的内容实现界面的跳转。进而服务端或K歌应用程序可在目标歌曲的演唱页面,录制用户演唱的内容,如用户演唱的目标歌曲的音频内容,或用户演唱的目标歌曲的音频内容和视频图像等。Optionally, if the server detects a singing event through the K song application provided by itself, it can control the K song application to jump from the current playing page to the singing page of the target song. For example, the server may send the URL of the singing page of the target song to the K song application, so that the K song application can jump from the current playing page to the singing page of the target song according to the URL. In addition, if the K song application detects a singing event, it can send a singing request including the target song to the server to request the server to obtain the content of the singing page (such as the URL) of the target song and provide feedback, and the K song application can be based on the service The content of the terminal feedback realizes the interface jump. Furthermore, the server or K song application can record the content sung by the user on the singing page of the target song, such as the audio content of the target song sung by the user, or the audio content and video image of the target song sung by the user.
此外,完整版播放页面也可嵌入有“我也要唱”按钮,进而在完整版播放页面播放完整版音视频过程中,在检测到演唱事件的情况下,控制完整版播放页面跳转至目标歌曲的演唱页面;在目标歌曲的演唱页面,录制用户演唱的内容。In addition, the full version playback page can also be embedded with a "I want to sing" button, and then in the process of playing the full version audio and video on the full version playback page, when a singing event is detected, control the full version playback page to jump to the target The singing page of the song; in the singing page of the target song, the content of the user's singing is recorded.
对于产品而言,通过在完整版播放页面或精选片段的播放页面中嵌入“我也要唱”按钮,进而通过页面跳转,以实现在观看音视频过程中录制用户演唱内容的功能。对于用户而言,在观看音视频如精选片段过程中,若对精选片段中的歌曲感兴趣,无需进行退出当前播放页面,在首页搜索框中输入歌曲名,点击搜索结果中任一K歌选项,进入该歌曲的演唱界面,而后才可进行歌曲的录制的复杂操作过程,只需点击“我也要唱”按钮,即可快速实现录制歌曲的需求。For products, by embedding the "I want to sing" button in the playback page of the full version or the playback page of selected clips, and then jump through the page to achieve the function of recording the user's singing content while watching audio and video. For users, in the process of watching audio and video such as selected clips, if they are interested in the songs in the selected clips, they do not need to exit the current playing page, enter the song name in the search box on the homepage, and click any K in the search results Song option, enter the singing interface of the song, and then the complicated operation process of song recording can be carried out. Just click the "I want to sing" button to quickly realize the demand for recording the song.
图2示出了本公开实施例提供的另一种音视频播放方法的流程图,本实施例在上述实施例提供的多个可选方案的基础上进行了说明,本实施例对于上述实施例提供的多个步骤中如何检测到完整版观看事件进行了介绍。FIG. 2 shows a flowchart of another audio and video playback method provided in an embodiment of the present disclosure. This embodiment is described on the basis of multiple alternative solutions provided in the foregoing embodiment. This embodiment is different from the foregoing embodiment. How to detect the full version viewing event in the multiple steps provided is introduced.
可选的,如图2所示,本实施例中的音视频播放方法可以包括如下步骤:Optionally, as shown in FIG. 2, the audio and video playback method in this embodiment may include the following steps:
S210、在精选片段播放过程中,在检测到暂停事件的情况下,暂停精选片段的播放。S210. During the playback of the selected segment, if a pause event is detected, pause the playback of the selected segment.
本实施例中,暂停事件可以是用户手动或语音等形式触发产生的,用于请求服务端或服务端所提供的K歌应用程序暂停播放精选片段的事件。可选的,当前播放页面中嵌入有播放暂停按键,若检测到用户触摸暂停播放按键,则确定检测到暂停事件,此时可暂停精选片段的播放。In this embodiment, the pause event can be triggered by the user manually or by voice, and is used to request the server or the K song application provided by the server to pause the playback of the selected segment. Optionally, a playback pause button is embedded in the current playback page. If it is detected that the user touches the pause playback button, it is determined that a pause event is detected, and the playback of the selected segment can be paused at this time.
S220、获取用户输入的语音信息。S220: Acquire voice information input by the user.
可选的,若精选片段的播放页面中嵌入的完整版音视频的接口以物理按钮形式体现,且该物理按钮是语音按钮,用户可以通过点击该语音按钮输入语音信息,进而可获取用户输入的语音信息。Optionally, if the interface of the full version of audio and video embedded in the playback page of the selected segment is embodied in the form of a physical button, and the physical button is a voice button, the user can input voice information by clicking the voice button to obtain user input Voice message.
S230、确定语音信息与预设的完整版音视频观看文本是否匹配。S230: Determine whether the voice information matches the preset full-version audio and video viewing text.
本实施例中,预设的完整版音视频观看文本是指预先存储在服务端或服务端所提供的K歌应用程序中的用户想要观看完整版音视频时所使用的语音指令对应的文本,例如,“完整,完整”是预先存储在服务端中的完整版音视频观看文本。In this embodiment, the preset full-version audio and video viewing text refers to the text corresponding to the voice command used when the user wants to watch the full-version audio and video that is pre-stored in the server or the K song application provided by the server. For example, "complete, complete" is the complete version of the audio and video viewing text pre-stored in the server.
用户在具有观看完整版音视频的需求时,可通过语音按钮输入语音信息,当获取到用户输入的语音信息后,通过解析语音信息获得语音信息所对应的文本,将语音信息所对应的文本与预设的完整版音视频观看文本进行匹配;若语音信息与预设的完整版音视频观看文本匹配成功,确定检测到完整版观看事件。When the user has the need to watch the full version of audio and video, he can input the voice information through the voice button. After the voice information input by the user is obtained, the text corresponding to the voice information is obtained by parsing the voice information, and the text corresponding to the voice information is compared with The preset full version audio and video viewing text is matched; if the voice information matches the preset full version audio and video viewing text successfully, it is determined that the full version viewing event is detected.
本实施例中通过在精选片段中嵌入语音按钮,进一步增加了用户选择观看完整版音视频的灵活度。In this embodiment, by embedding the voice button in the selected segment, the flexibility for the user to choose to watch the full version of audio and video is further increased.
S240、若语音信息与预设的完整版音视频观看文本匹配,确定检测到完整版观看事件。S240: If the voice information matches the preset full-version audio and video viewing text, it is determined that the full-version viewing event is detected.
S250、记录精选片段的当前播放时间戳。S250. Record the current playback timestamp of the selected segment.
S260、控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面。S260: Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment.
S270、依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放。S270: Control the playback of the full version audio and video on the full version playback page according to the current playback timestamp.
本公开实施例提供的技术方案,在精选片段播放过程中,可获取用户输入的语音信息,并在语音信息与预设的完整版音视频观看文本匹配时,记录精选片段的当前播放时间戳;之后通过控制当前页面跳转至精选片段对应的完整版音视频的完整版播放页面,进而可依据当前时间戳,在完整版播放页面播放完整版音视频。相比于相关技术方案,本方案不仅可满足用户观看精选片段的需求,同时通过页面跳转还可满足用户观看完整版音视频的需求,即为满足用户观看音视频的多样化需求提供了一种新思路。此外,还为用户提供了一种基于语音方式选择观看完整版音视频的思路,增加了方案的灵活度。The technical solution provided by the embodiments of the present disclosure can obtain the voice information input by the user during the playback of the selected segment, and record the current playback time of the selected segment when the voice information matches the preset full version of the audio and video viewing text Stamp; then by controlling the current page to jump to the full version playback page of the full version of the audio and video corresponding to the selected segment, and then the full version of the audio and video can be played on the full version playback page according to the current timestamp. Compared with related technical solutions, this solution not only meets the needs of users to watch selected clips, but also meets the needs of users to watch the full version of audio and video through page jumps, that is, to meet the diverse needs of users for watching audio and video. A new idea. In addition, it also provides users with a way to choose to watch the full version of audio and video based on voice, which increases the flexibility of the solution.
图3示出了本公开实施例提供的一种音视频播放装置的结构示意图,本公开实施例可适用于如何进行音视频的播放,以满足用户的多样化需求的情况,该装置可以通过的软件和/或硬件来实现,可以配置于电子设备上。可选的,所谓电子设备可以是承载音视频播放功能的服务端设备,还可以是配置服务端所提供的K歌应用程序的终端设备等。如图3所示,本公开实施例中音视频播放装置,包括:时间戳记录模块310,设置为在精选片段播放过程中,在检测到完整版观看事件的情况下,记录精选片段的当前播放时间戳;页面跳转模块320,设置为控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面;播放模块330,设置为依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放;其中,完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,精选片段是在完整版音视频中确定的一个预设时长的片段。Figure 3 shows a schematic structural diagram of an audio and video playback device provided by an embodiment of the present disclosure. The embodiment of the present disclosure may be applicable to how to play audio and video to meet the diverse needs of users. It is implemented by software and/or hardware, and can be configured on an electronic device. Optionally, the so-called electronic device may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server. As shown in FIG. 3, the audio and video playback device in the embodiment of the present disclosure includes: a time stamp recording module 310, which is configured to record the selected clip when a full version viewing event is detected during the playback of the selected clip The current playback time stamp; the page jump module 320 is set to control the current playback page to jump to the full version playback page that includes the full version of the audio and video corresponding to the selected fragment; the playback module 330 is set to control the completeness based on the current playback timestamp Version audio and video are played on the full version playback page; among them, the full version audio and video are generated based on the audio content and image content of the recorded target song, and the selected segment is a segment with a preset duration determined in the full version audio and video .
示例性的,精选片段的播放页面中嵌入有进入完整版音视频的接口,接口以物理按钮或悬浮球形式体现。Exemplarily, an interface for entering the full version of audio and video is embedded in the playback page of the selected segment, and the interface is embodied in the form of a physical button or a floating ball.
示例性的,接口固定嵌入于精选片段的播放页面中,或依据设定的弹出逻辑出现在精选片段的播放页面中。Exemplarily, the interface is fixedly embedded in the play page of the selected segment, or appears in the play page of the selected segment according to a set pop-up logic.
示例性的,设定的弹出逻辑包括:精选片段的当前播放时长与总播放时长之间的比例,达到设定比例值。Exemplarily, the set pop-up logic includes: the ratio between the current playback duration of the selected segment and the total playback duration reaches the preset ratio value.
示例性的,上述装置还包括观看事件检测模块,该模块设置为:在检测到 暂停事件的情况下,暂停精选片段的播放;获取用户输入的语音信息;确定语音信息与预设的完整版音视频观看文本是否匹配;若语音信息与预设的完整版音视频观看文本匹配,确定检测到完整版观看事件。Exemplarily, the above-mentioned device further includes a viewing event detection module, which is set to: in the case of detecting a pause event, pause the playback of the selected segment; obtain the voice information input by the user; determine the voice information and the preset full version Whether the audio and video viewing text matches; if the voice information matches the preset full version audio and video viewing text, it is determined that the full version viewing event is detected.
示例性的,页面跳转模块320是设置为:确定完整版播放页面的加载信息;依据加载信息,控制包括精选片段对应的完整版音视频的完整版播放页面的加载和展示。Exemplarily, the page jump module 320 is configured to: determine the loading information of the full-version playback page; according to the loading information, control the loading and display of the full-version playback page including the full-version audio and video corresponding to the selected fragments.
示例性的,播放模块330还设置为:依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放之时,在依据用户作用于完整版播放页面的操作产生从头开始播放事件的情况下,在完整版播放页面中,从头开始播放完整版音视频。Exemplarily, the playback module 330 is also set to: control the playback of the full version of the audio and video on the full version playback page according to the current playback timestamp, when a restart event is generated based on the user's operation on the full version playback page Next, in the full version playback page, play the full version audio and video from the beginning.
示例性的,上述装置还可以包括:页面跳转模块320,还设置为在精选片段播放过程中,在检测到演唱事件的情况下,控制当前播放页面跳转至目标歌曲的演唱页面;录制模块,设置为在目标歌曲的演唱页面,录制用户演唱的内容。Exemplarily, the above device may further include: a page jump module 320, which is further configured to control the current playback page to jump to the singing page of the target song when a singing event is detected during the playback of the selected segment; The module is set to record the user's singing content on the singing page of the target song.
参见图4,其示出了适于用来实现本公开实施例的电子设备400的结构示意图。本公开实施例中的电子设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(television,TV)、台式计算机等等的固定终端。可选的,本实施例中所谓电子设备可以是承载音视频播放功能的服务端设备,还可以是配置服务端所提供的K歌应用程序的终端设备等。图4示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。Refer to FIG. 4, which shows a schematic structural diagram of an electronic device 400 suitable for implementing embodiments of the present disclosure. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia players Mobile terminals such as Portable Media Player (PMP), in-vehicle terminals (for example, in-vehicle navigation terminals), and fixed terminals such as digital televisions (television, TV), desktop computers, etc. Optionally, the so-called electronic device in this embodiment may be a server device that carries audio and video playback functions, or a terminal device that configures a K song application provided by the server. The electronic device shown in FIG. 4 is only an example, and should not bring any limitation to the function and scope of use of the embodiments of the present disclosure.
如图4所示电子设备400可以包括处理装置(例如中央处理器、图形处理器等)401,处理装置可以根据存储在只读存储器(Read-Only Memory,ROM)402中的程序或者从存储装置408加载到随机访问存储器(Random Access Memory,RAM)403中的程序而执行多种适当的动作和处理。在RAM 403中,还存储有电子设备400操作所需的多种程序和数据。处理装置401、ROM 402以及RAM 403通过总线404彼此相连。输入/输出(I/O)接口405也连接至总线404。As shown in FIG. 4, the electronic device 400 may include a processing device (such as a central processing unit, a graphics processor, etc.) 401. The processing device may be based on a program stored in a read-only memory (Read-Only Memory, ROM) 402 or from a storage device. 408 A program loaded into a random access memory (Random Access Memory, RAM) 403 executes various appropriate actions and processes. The RAM 403 also stores various programs and data required for the operation of the electronic device 400. The processing device 401, ROM 402, and RAM 403 are connected to each other through a bus 404. An input/output (I/O) interface 405 is also connected to the bus 404.
通常,以下装置可以连接至I/O接口405:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置406;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置407;包括例如磁带、硬盘等的存储装置408;以及通信装置409。通信装置409可以允许电子设备400与其他设备进行无线或有线通信以交换数据。虽然图4示出了具有多种装置的电子设备400,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。Generally, the following devices can be connected to the I/O interface 405: including input devices 406 such as touch screen, touch panel, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a liquid crystal display (LCD) , Output devices 407 such as speakers, vibrators, etc.; storage devices 408 such as magnetic tapes, hard disks, etc.; and communication devices 409. The communication device 409 may allow the electronic device 400 to perform wireless or wired communication with other devices to exchange data. Although FIG. 4 shows an electronic device 400 having multiple devices, it should be understood that it is not required to implement or have all the illustrated devices. It may alternatively be implemented or provided with more or fewer devices.
根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置409从网络上被下载和安装,或者从存储装置408被安装,或者从ROM 402被安装。在该计算机程序被处理装置401执行时,执行本公开实施例的方法中限定的上述功能。According to an embodiment of the present disclosure, the process described above with reference to the flowchart may be implemented as a computer software program. For example, the embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是但不限于电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、RAM、ROM、可擦式可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适 的组合。The aforementioned computer-readable medium in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, RAM, ROM, Erasable Programmable Read-Only Memory, EPROM, flash memory, optical fiber, CD-ROM (Compact Disc Read-Only Memory), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer may The readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device. In the present disclosure, a computer-readable signal medium may be included in the baseband or used as a carrier wave A part of the propagated data signal, which carries computer-readable program code. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals or any suitable combination of the above. Computer-readable signal medium It may also be any computer-readable medium other than the computer-readable storage medium, and the computer-readable signal medium can send, propagate, or transmit the program for use by or in combination with the instruction execution system, apparatus, or device. Computer-readable medium The program code contained above can be transmitted by any suitable medium, including but not limited to: wire, optical cable, radio frequency (RF), etc., or any suitable combination of the above.
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:在精选片段播放过程中,在检测到完整版观看事件的情况下,记录精选片段的当前播放时间戳;控制当前播放页面跳转至包括精选片段对应的完整版音视频的完整版播放页面;依据当前播放时间戳,控制完整版音视频在完整版播放页面的播放;其中,完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,精选片段是在完整版音视频中确定的一个预设时长的片段。The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: During the playback of the selected segment, in the case of detecting the full version viewing event , To record the current playback timestamp of the selected segment; control the current playback page to jump to the full version playback page including the full version of the audio and video corresponding to the selected segment; control the full version of the audio and video in the full version playback page according to the current playback timestamp The full version of the audio and video is generated based on the audio content and image content of the recorded target song, and the selected segment is a segment of a preset duration determined in the full version of the audio and video.
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。The computer program code used to perform the operations of the present disclosure may be written in one or more programming languages or a combination thereof. The above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language. The program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any kind of network-including Local Area Network (LAN) or Wide Area Network (WAN)-or it can be connected to an external computer ( For example, use an Internet service provider to connect via the Internet).
附图中的流程图和框图,图示了按照本公开多种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions, and operations of the system, method, and computer program product according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logical function Executable instructions. It should also be noted that, in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two blocks shown in succession can actually be executed substantially in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在一些情况下并不构成对该单元本身的限定。The units involved in the embodiments described in the present disclosure may be implemented in a software manner, or may be implemented in a hardware manner. Among them, the name of the unit does not constitute a limitation on the unit itself in some cases.
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上***(System-on-a-Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。The functions described hereinabove may be performed at least in part by one or more hardware logic components. For example, without limitation, the exemplary types of hardware logic components that can be used include: Field Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), and Application Specific Standard Products (Application Specific Standard Parts, ASSP), System-on-a-Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
在本公开的上下文中,机器可读介质可以是有形的介质,可以包含或存储以供指令执行***、装置或设备使用或与指令执行***、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体***、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、RAM、ROM、EPROM、快闪存储器、光纤、CD-ROM、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium, which may contain or store a program for use by the instruction execution system, apparatus, or device or in combination with the instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include electrical connections based on one or more wires, portable computer disks, hard drives, RAM, ROM, EPROM, flash memory, optical fibers, CD-ROMs, optical storage devices, magnetic storage devices , Or any suitable combination of the above.

Claims (11)

  1. 一种音视频播放方法,包括:An audio and video playback method, including:
    在精选片段播放过程中,在检测到完整版观看事件的情况下,记录所述精选片段的当前播放时间戳;During the playback of the selected segment, in the case of detecting the full version viewing event, record the current playback timestamp of the selected segment;
    控制当前播放页面跳转至包括所述精选片段对应的完整版音视频的完整版播放页面;Control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment;
    依据所述当前播放时间戳,控制所述完整版音视频在所述完整版播放页面的播放;其中,所述完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,所述精选片段是在所述完整版音视频中确定的一个预设时长的片段。According to the current playback timestamp, control the playback of the full version audio and video on the full version playback page; wherein the full version audio and video are generated based on the recorded audio content and image content of the target song. The selected segment is a segment of preset duration determined in the full version of the audio and video.
  2. 根据权利要求1所述的方法,其中,所述精选片段的播放页面中嵌入有进入所述完整版音视频的接口,所述接口以物理按钮或悬浮球形式体现。The method according to claim 1, wherein an interface for entering the full version of audio and video is embedded in the play page of the selected segment, and the interface is embodied in the form of a physical button or a floating ball.
  3. 根据权利要求2所述的方法,其中,所述接口固定嵌入于所述精选片段的播放页面中,或依据设定的弹出逻辑出现在所述精选片段的播放页面中。The method according to claim 2, wherein the interface is fixedly embedded in the play page of the selected segment, or appears in the play page of the selected segment according to a set pop-up logic.
  4. 根据权利要求3所述的方法,其中,所述设定的弹出逻辑包括:The method according to claim 3, wherein the set pop-up logic comprises:
    所述精选片段的当前播放时长与总播放时长之间的比例,达到设定比例值。The ratio between the current playback duration of the selected segment and the total playback duration reaches the set ratio value.
  5. 根据权利要求1所述的方法,其中,检测到完整版观看事件,包括:The method according to claim 1, wherein detecting a full version viewing event includes:
    在检测到暂停事件的情况下,暂停所述精选片段的播放;In the case of detecting a pause event, pause the playback of the selected segment;
    获取输入的语音信息;Obtain the input voice information;
    确定所述语音信息与预设的完整版音视频观看文本是否匹配;Determining whether the voice information matches the preset full-version audio and video viewing text;
    响应于所述语音信息与所述预设的完整版音视频观看文本匹配的确定结果,确定检测到完整版观看事件。In response to a determination result that the voice information matches the preset full-version audio and video viewing text, it is determined that a full-version viewing event is detected.
  6. 根据权利要求1所述的方法,其中,控制当前播放页面跳转至包括所述精选片段对应的完整版音视频的完整版播放页面,包括:The method according to claim 1, wherein controlling the current playback page to jump to a full-version playback page that includes the full-version audio and video corresponding to the selected fragment comprises:
    确定所述完整版播放页面的加载信息;Determining the loading information of the full-version play page;
    依据所述加载信息,控制包括所述精选片段对应的完整版音视频的完整版播放页面的加载和展示。According to the loading information, the loading and display of the full-version playback page including the full-version audio and video corresponding to the selected fragments is controlled.
  7. 根据权利要求1所述的方法,依据当前播放时间戳,控制所述完整版音视频在所述完整版播放页面的播放之时或之后,还包括:The method according to claim 1, controlling the full-version audio and video at or after the full-version playback page according to the current playback timestamp, further comprising:
    在依据作用于所述完整版播放页面的操作产生从头开始播放事件的情况下, 在所述完整版播放页面中,从头开始播放所述完整版音视频。In a case where a playback event from the beginning is generated according to an operation acting on the full version playback page, in the full version playback page, the full version audio and video are played from the beginning.
  8. 根据权利要求1所述的方法,,在精选片段播放过程中,还包括:The method according to claim 1, in the process of playing the selected segment, further comprising:
    在检测到演唱事件的情况下,控制当前播放页面跳转至目标歌曲的演唱页面;In the case of detecting a singing event, control the current playing page to jump to the singing page of the target song;
    在所述目标歌曲的演唱页面,录制用户演唱的内容。On the singing page of the target song, the content sung by the user is recorded.
  9. 一种音视频播放装置,包括:An audio and video playback device, including:
    时间戳记录模块,设置为在精选片段播放过程中,在检测到完整版观看事件的情况下,记录所述精选片段的当前播放时间戳;The time stamp recording module is set to record the current playback time stamp of the selected clip when the full version viewing event is detected during the playback of the selected clip;
    页面跳转模块,设置为控制当前播放页面跳转至包括所述精选片段对应的完整版音视频的完整版播放页面;The page jump module is set to control the current playback page to jump to the full version playback page including the full version audio and video corresponding to the selected fragment;
    播放模块,设置为依据所述当前播放时间戳,控制所述完整版音视频在所述完整版播放页面的播放;其中,所述完整版音视频是依据录制的目标歌曲的音频内容和图像内容生成的,所述精选片段是在所述完整版音视频中确定的一个预设时长的片段。The playback module is configured to control the playback of the full version audio and video on the full version playback page according to the current playback timestamp; wherein, the full version audio and video are based on the audio content and image content of the recorded target song Generated, the selected segment is a segment of a preset duration determined in the full version of the audio and video.
  10. 一种电子设备,包括:An electronic device including:
    至少一个处理器;At least one processor;
    存储器,设置为存储至少一个程序;Memory, set to store at least one program;
    当所述至少一个程序被所述至少一个处理器执行,使得所述至少一个处理器实现如权利要求1-8中任一项所述的音视频播放方法。When the at least one program is executed by the at least one processor, the at least one processor implements the audio and video playback method according to any one of claims 1-8.
  11. 一种可读介质,存储有计算机程序,该程序被处理器执行时实现如权利要求1-8中任一项所述的音视频播放方法。A readable medium storing a computer program, which when executed by a processor, realizes the audio and video playback method according to any one of claims 1-8.
PCT/CN2020/091156 2019-07-19 2020-05-20 Audio-video playback method and apparatus, electronic device, and readable medium WO2021012764A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910656325.8 2019-07-19
CN201910656325.8A CN110225409A (en) 2019-07-19 2019-07-19 Audio and video playing method, apparatus, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
WO2021012764A1 true WO2021012764A1 (en) 2021-01-28

Family

ID=67812621

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/091156 WO2021012764A1 (en) 2019-07-19 2020-05-20 Audio-video playback method and apparatus, electronic device, and readable medium

Country Status (2)

Country Link
CN (1) CN110225409A (en)
WO (1) WO2021012764A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079908A (en) * 2021-03-12 2022-09-20 北京字节跳动网络技术有限公司 Media content collection method and device, electronic equipment and computer readable storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110225409A (en) * 2019-07-19 2019-09-10 北京字节跳动网络技术有限公司 Audio and video playing method, apparatus, electronic equipment and readable medium
CN111274449B (en) * 2020-02-18 2023-08-29 腾讯科技(深圳)有限公司 Video playing method, device, electronic equipment and storage medium
CN112153470B (en) * 2020-09-11 2022-04-08 腾讯科技(深圳)有限公司 Video playing method and device, computer equipment and storage medium
CN114520931B (en) * 2021-12-31 2024-01-23 脸萌有限公司 Video generation method, device, electronic equipment and readable storage medium
CN115811637A (en) * 2022-11-29 2023-03-17 北京字跳网络技术有限公司 Video-based interaction method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916718A (en) * 2013-01-05 2014-07-09 腾讯科技(北京)有限公司 Method and system for playing video based on video clip
CN105208448A (en) * 2015-09-25 2015-12-30 北京奇艺世纪科技有限公司 Advertisement playing method and device
CN105635830A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Video playing method and video playing device
CN105872806A (en) * 2016-05-05 2016-08-17 苏州花坞信息科技有限公司 Online video playing method
CN105959828A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Audio/video sharing method and device, audio/video playing method and device and electronic equipment
CN110225409A (en) * 2019-07-19 2019-09-10 北京字节跳动网络技术有限公司 Audio and video playing method, apparatus, electronic equipment and readable medium
CN110312162A (en) * 2019-06-27 2019-10-08 北京字节跳动网络技术有限公司 Selected stage treatment method, device, electronic equipment and readable medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916718A (en) * 2013-01-05 2014-07-09 腾讯科技(北京)有限公司 Method and system for playing video based on video clip
CN105635830A (en) * 2014-10-31 2016-06-01 广州市动景计算机科技有限公司 Video playing method and video playing device
CN105208448A (en) * 2015-09-25 2015-12-30 北京奇艺世纪科技有限公司 Advertisement playing method and device
CN105872806A (en) * 2016-05-05 2016-08-17 苏州花坞信息科技有限公司 Online video playing method
CN105959828A (en) * 2016-06-27 2016-09-21 乐视控股(北京)有限公司 Audio/video sharing method and device, audio/video playing method and device and electronic equipment
CN110312162A (en) * 2019-06-27 2019-10-08 北京字节跳动网络技术有限公司 Selected stage treatment method, device, electronic equipment and readable medium
CN110225409A (en) * 2019-07-19 2019-09-10 北京字节跳动网络技术有限公司 Audio and video playing method, apparatus, electronic equipment and readable medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115079908A (en) * 2021-03-12 2022-09-20 北京字节跳动网络技术有限公司 Media content collection method and device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110225409A (en) 2019-09-10

Similar Documents

Publication Publication Date Title
WO2021012764A1 (en) Audio-video playback method and apparatus, electronic device, and readable medium
WO2020253806A1 (en) Method and apparatus for generating display video, device and storage medium
WO2020133377A1 (en) Method and device for video previewing, electronic equipment, and computer-readable storage medium
WO2021093737A1 (en) Method and apparatus for generating video, electronic device, and computer readable medium
US20230070812A1 (en) Audio playing method, apparatus, electronic device and storage medium
WO2020259133A1 (en) Method and device for recording chorus section, electronic apparatus, and readable medium
WO2020233142A1 (en) Multimedia file playback method and apparatus, electronic device, and storage medium
WO2022237908A1 (en) Information display method and apparatus, electronic device, and storage medium
WO2020259130A1 (en) Selected clip processing method and device, electronic equipment and readable medium
WO2022033171A1 (en) Method and apparatus for playing multimedia data, and electronic device and storage medium
WO2022193867A1 (en) Video processing method and apparatus, and electronic device and storage medium
WO2022257797A1 (en) Target content display method and apparatus, device, readable storage medium, and product
WO2023072296A1 (en) Multimedia information processing method and apparatus, and electronic device and storage medium
WO2023134559A1 (en) Comment prompting method and apparatus, and electronic device, storage medium and program product
WO2023155716A1 (en) Video playing method and apparatus, and electronic device, storage medium and program product
WO2023103956A1 (en) Data exchange method and apparatus, electronic device, storage medium and program product
WO2023202359A1 (en) Live-streaming content display method and apparatus, and device, readable storage medium and product
WO2024008184A1 (en) Information display method and apparatus, electronic device, and computer readable medium
WO2022179522A1 (en) Recommended video display method and apparatus, medium, and electronic device
WO2020224294A1 (en) Method, system, and apparatus for processing information
WO2022160605A1 (en) Method for recommending podcast in music application, and device
CN109635131B (en) Multimedia content list display method, pushing method, device and storage medium
CN111246245B (en) Method and device for pushing video aggregation page, server and terminal equipment
WO2024094130A1 (en) Content sharing method and apparatus, and device, computer-readable storage medium and product
WO2024099275A1 (en) Media content processing method and apparatus, device, readable storage medium, and product

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: 20843157

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 04/05/2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20843157

Country of ref document: EP

Kind code of ref document: A1