CN115474095A - Audio and video playing method and device, electronic equipment and storage medium - Google Patents

Audio and video playing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115474095A
CN115474095A CN202210944986.2A CN202210944986A CN115474095A CN 115474095 A CN115474095 A CN 115474095A CN 202210944986 A CN202210944986 A CN 202210944986A CN 115474095 A CN115474095 A CN 115474095A
Authority
CN
China
Prior art keywords
moving
progress bar
audio
video
playing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210944986.2A
Other languages
Chinese (zh)
Inventor
李扬帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210944986.2A priority Critical patent/CN115474095A/en
Publication of CN115474095A publication Critical patent/CN115474095A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present disclosure relates to an audio and video playing method, device, electronic device and storage medium, including: responding to a moving instruction corresponding to an original progress bar of the played audio and video on a playing page, displaying an extended progress bar in a preset area of the playing page, wherein the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar, adjusting the position of first positioning information on the extended progress bar based on the first moving pixel number corresponding to the moving instruction, and adjusting the current playing content of the audio and video based on the first positioning information. According to the method and the device, the progress bar of the audio and video is adjusted by expanding the time length pixel ratio corresponding to the progress bar, so that a user can accurately adjust the current playing content of the audio and video.

Description

Audio and video playing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to an audio/video playing method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of the current mobile internet, information dissemination based on mobile terminals has become more and more mature. Generally, information can be transmitted by various audios and videos embedded in the terminal.
When a user watches the audio and video, it is assumed that 1 playing time point is set in every 1 second of the total duration of the audio and video, generally, the total playing time point of the audio and video is far greater than the number of pixels corresponding to the progress bar, for example, 1 pixel corresponds to 5 playing time points. Therefore, when the client detects the moving instruction, the playing time point corresponding to the number of pixels in the moving instruction may be far greater than the playing time point that the user wants to move, so that the user may not accurately adjust the current playing content of the audio/video.
Disclosure of Invention
The disclosure provides an audio and video playing method, an audio and video playing device, an electronic device and a storage medium, and the technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an audio and video playing method, including:
responding to a moving instruction corresponding to an original progress bar of the played audio and video on the playing page, and displaying an expansion progress bar in a preset area of the playing page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar;
adjusting the position of first positioning information on the expansion progress bar based on the number of first moving pixels corresponding to the moving instruction;
and adjusting the current playing content of the audio and video based on the first positioning information.
In some possible embodiments, in response to a moving instruction corresponding to an original progress bar of a played audio/video on a play page, displaying an extended progress bar in a preset area of the play page includes:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
and if the moving speed meets the first moving speed, displaying an expansion progress bar in a preset area of the playing page.
In some possible embodiments, adjusting the position of the first positioning information on the extended progress bar based on the first moving pixel number corresponding to the moving instruction includes:
analyzing the moving instruction, and determining the moving direction and the first moving pixel quantity;
and adjusting the position of the first positioning information on the expansion progress bar according to the moving direction based on the first moving pixel quantity.
In some possible embodiments, adjusting the position of the first positioning information on the extended progress bar according to the moving direction based on the first moving pixel number includes:
determining the number of pixels in a playing area and a preset adjusting parameter;
determining the adjustment duration according to the number of the pixels in the playing area, the number of the first moving pixels and a preset adjustment parameter;
based on the adjustment duration, adjusting the position of the first positioning information on the expansion progress bar according to the moving direction;
adjusting the current playing content of the audio and video based on the first positioning information, comprising:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the number of pixels in the playing area and a preset adjusting parameter are determined; determining the adjustment duration according to the first moving pixel number of the playing area and a preset adjustment parameter, wherein the method comprises the following steps:
determining the number of pixels in a playing area, the number of played pixels and preset adjustment parameters;
and determining the adjustment duration according to the number of pixels in the playing area, the number of played pixels, the number of first moving pixels and preset adjustment parameters.
In some possible embodiments, the method further comprises:
and adjusting the position of the second positioning information on the original progress bar from the first position corresponding to the played time length to the second position corresponding to the adjusted time length.
In some possible embodiments, the method further comprises:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the second moving speed, adjusting the position of second positioning information on the original progress bar on the basis of the second moving pixel number corresponding to the moving instruction; the second moving speed is greater than the first moving speed;
and adjusting the current playing content of the audio and video based on the second positioning information.
In some possible embodiments, if the moving speed satisfies the second moving speed, adjusting the position of the second positioning information on the original progress bar based on a second moving pixel number corresponding to the moving instruction includes:
if the moving speed meets the second moving speed, analyzing the moving instruction, and determining the moving direction and the second moving pixel quantity;
and adjusting the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel quantity.
In some possible embodiments, adjusting the position of the second positioning information on the original progress bar in the moving direction based on the second moving pixel number includes:
determining the audio and video duration and the number of pixels in a playing area;
determining the adjustment duration according to the audio and video duration, the number of pixels in the playing area and the number of second moving pixels;
based on the adjustment duration, adjusting the position of the second positioning information on the original progress bar according to the moving direction;
adjusting the current playing content of the audio and video based on the second positioning information, including:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the method further comprises:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the third moving speed, adjusting second positioning information on the original progress bar to a preset position on the original progress bar; the third moving speed is greater than the second moving speed;
and playing the current playing content corresponding to the preset position in the audio and video.
According to a second aspect of the embodiments of the present disclosure, there is provided an audio/video playing device, including:
the progress bar display module is configured to execute a moving instruction corresponding to an original progress bar of the played audio and video in response to the playing page, and display the extended progress bar in a preset area of the playing page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar;
the positioning information adjusting module is configured to adjust the position of the first positioning information on the expansion progress bar based on the first moving pixel number corresponding to the moving instruction;
and the playing content adjusting module is configured to adjust the current playing content of the audio and video based on the first positioning information.
In some possible embodiments, the progress bar display module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
and if the moving speed meets the first moving speed, displaying an expansion progress bar in a preset area of the playing page.
In some possible embodiments, the positioning information adjusting module is configured to perform:
analyzing the moving instruction, and determining the moving direction and the first moving pixel quantity;
and adjusting the position of the first positioning information on the expansion progress bar according to the moving direction based on the first moving pixel quantity.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the number of pixels in a playing area and a preset adjusting parameter;
determining the adjustment duration according to the number of pixels in the playing area, the number of the first moving pixels and a preset adjustment parameter;
based on the adjustment duration, adjusting the position of the first positioning information on the expansion progress bar according to the moving direction;
a play content adjustment module configured to perform:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the number of pixels in a playing area, the number of played pixels and preset adjustment parameters;
and determining the adjustment duration according to the number of pixels in the playing area, the number of played pixels, the number of first moving pixels and a preset adjustment parameter.
In some possible embodiments, the positioning information adjusting module is configured to perform:
and adjusting the position of the second positioning information on the original progress bar from the first position corresponding to the played time length to the second position corresponding to the adjusted time length.
In some possible embodiments, the positioning information adjusting module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the second moving speed, adjusting the position of second positioning information on the original progress bar on the basis of the second moving pixel number corresponding to the moving instruction; the second moving speed is greater than the first moving speed;
a play content adjustment module configured to perform:
and adjusting the current playing content of the audio and video based on the second positioning information.
In some possible embodiments, the positioning information adjusting module is configured to perform:
if the moving speed meets the second moving speed, analyzing the moving instruction, and determining the moving direction and the second moving pixel quantity;
and adjusting the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel quantity.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the audio and video duration and the number of pixels in a playing area;
determining the adjustment time length according to the audio and video time length, the number of pixels in the playing area and the number of second moving pixels;
based on the adjustment duration, adjusting the position of the second positioning information on the original progress bar according to the moving direction;
a play content adjustment module configured to perform:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the positioning information adjusting module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the third moving speed, adjusting second positioning information on the original progress bar to a preset position on the original progress bar; the third moving speed is greater than the second moving speed;
a play content adjustment module configured to perform:
and playing the current playing content corresponding to the preset position in the audio and video.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method of any one of the first aspect as described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium, wherein instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method of any one of the first aspects of the embodiments of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product comprising a computer program, the computer program being stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the method of any one of the first aspects of embodiments of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
responding to a moving instruction corresponding to an original progress bar of the played audio and video on a playing page, displaying an extended progress bar in a preset area of the playing page, wherein the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar, adjusting the position of first positioning information on the extended progress bar based on the first moving pixel number corresponding to the moving instruction, and adjusting the current playing content of the audio and video based on the first positioning information. According to the method and the device, the progress bar of the audio and video is adjusted by expanding the time length pixel ratio corresponding to the progress bar, so that a user can accurately adjust the current playing content of the audio and video.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating an application environment in accordance with an illustrative embodiment;
fig. 2 is a flow diagram illustrating an audio-video playback method in accordance with an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating a play page in accordance with an exemplary embodiment;
FIG. 4 is a schematic diagram illustrating a movement trajectory according to an exemplary embodiment;
FIG. 5 is a first schematic diagram illustrating an original progress bar and an expanded progress bar in accordance with an exemplary embodiment;
FIG. 6 is a diagram two of an original progress bar and an expanded progress bar shown in accordance with an exemplary embodiment;
fig. 7 is a block diagram illustrating an audiovisual playback device in accordance with an exemplary embodiment;
fig. 8 is a block diagram illustrating an electronic device for audiovisual playback in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for presentation, analyzed data, etc.) referred to in the present disclosure are information and data authorized by the user or sufficiently authorized by each party.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an application environment of an audio and video playing method according to an exemplary embodiment, where as shown in fig. 1, the application environment may include a server 01 and a client 02.
In some possible embodiments, the server 01 may include an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, a cloud storage, a Network service, cloud audio/video playing, a middleware service, a domain name service, a security service, a CDN (Content Delivery Network), and a big data and artificial intelligence platform. The operating system running on the server may include, but is not limited to, an android system, an IOS system, linux, windows, unix, and the like.
In some possible embodiments, the client 02 may include, but is not limited to, a smartphone, a desktop computer, a tablet computer, a laptop computer, a smart speaker, a digital assistant, an Augmented Reality (AR)/Virtual Reality (VR) device, a smart wearable device, and the like. The software running on the client may also be an application program, an applet, or the like. Alternatively, the operating system running on the client may include, but is not limited to, an android system, an IOS system, linux, windows, unix, and the like.
In some possible embodiments, the client 02 may respond to a moving instruction corresponding to an original progress bar of a played audio and video on a playing page, display an extended progress bar in a preset area of the playing page, where a duration pixel ratio corresponding to the original progress bar is greater than a duration pixel ratio corresponding to the extended progress bar, adjust a position of first positioning information on the extended progress bar based on a first moving pixel number corresponding to the moving instruction, and adjust a current playing content of the audio and video based on the first positioning information.
In some possible embodiments, the client 02 and the server 01 may be connected through a wired link or a wireless link.
In an exemplary embodiment, the databases corresponding to the client, the server, and the server may be node devices in the blockchain system, and can share the acquired and generated information to other node devices in the blockchain system, so as to implement information sharing among the plurality of node devices. The multiple node devices in the block chain system can be configured with the same block chain, the block chain is composed of multiple blocks, and the adjacent blocks have an association relationship, so that data in any block can be detected by the next block when being tampered, the data in the block chain can be prevented from being tampered, and the safety and reliability of the data in the block chain are ensured.
Fig. 2 is a flowchart illustrating an audio/video playing method according to an exemplary embodiment, where as shown in fig. 2, the audio/video playing method may be applied to a client and may also be applied to other node devices, and includes the following steps:
in step S201, in response to a moving instruction corresponding to an original progress bar of the played audio/video on the playing page, displaying an extended progress bar in a preset area of the playing page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar.
In the embodiment of the application, the client can play the audio and the video on the playing page. Optionally, the audio-video may be audio, silent video, or voiced video.
Fig. 3 is a schematic diagram illustrating a play page according to an exemplary embodiment, and as shown in fig. 3, includes a play page 300, and a play area 301, an original progress bar 302, a preset area 303, and an expanded progress bar 304 on the play page 300.
In an alternative embodiment, as shown in fig. 3, the playing area occupies a partial area of the playing page, and the client may play the audio and video in the playing area. Optionally, when the client detects a moving instruction corresponding to the original progress bar in a first region corresponding to the original progress bar of the audio and video, the original progress bar and a preset region may be displayed on the play page, and the extended progress bar may be displayed in the preset region.
In another alternative embodiment, as shown in fig. 3, when the client detects no instruction of full-screen playing, the playing area occupies a partial area of the playing page. When the client detects an instruction of full-screen playing, the playing area can occupy all areas of the playing page, and the client can play audio and video in the playing area. Optionally, when the client detects a moving instruction corresponding to the original progress bar in a first region corresponding to the original progress bar of the audio and video, the original progress bar and a preset region may be displayed on the play page, and the extended progress bar may be displayed in the preset region.
In some possible embodiments, when the client detects a moving instruction corresponding to the original progress bar in a first area corresponding to the original progress bar of the audio and video, the original progress bar may be displayed on the play page. Assuming that 1 second of the total duration of the audio and video is 1 playing time point, generally, the total playing time point of the audio and video is far greater than the number of pixels corresponding to the original progress bar, for example, 1 pixel corresponds to 5 playing time points. Therefore, when the client detects the moving instruction, the playing time point corresponding to the number of pixels in the moving instruction may be far greater than the playing time point that the user wants to move, so that the user may not accurately adjust the current playing content of the audio/video.
In the embodiment of the application, the time length pixel ratio corresponding to the original progress bar is greater than the time length pixel ratio corresponding to the extended progress bar. The duration pixel ratio is a ratio of the duration to the number of pixels, for example, the duration pixel ratio corresponding to the original progress bar is 5, that is, 5 seconds is equal to 1 pixel, and for example, the duration pixel ratio corresponding to the extended progress bar is 0.2, that is, 0.2 seconds is equal to 1 pixel.
Based on this, in the embodiment of the application, after the client detects the moving instruction corresponding to the original progress bar, the client may display the extended progress bar in the preset area on the playing page. And determining the moving time length corresponding to the number of pixels in the moving instruction based on the time length pixel ratio corresponding to the extended progress bar, so that the user can be ensured to accurately adjust the current playing content of the audio and video as far as possible by reducing the time length pixel ratio.
However, in the embodiment where the movement instruction corresponding to the original progress bar is detected and the extended progress bar is displayed in the preset area on the playing page, although the pixel ratio can be adjusted to a small time, it can be ensured that the user can accurately adjust the current playing content of the audio/video as much as possible. However, if the user wants to quickly adjust to the content with a longer time length from the currently played content, the user needs to issue the moving instruction for many times due to the small pixel ratio of the time length, which increases the user operation and affects the user experience.
Based on the reasons set forth in the above paragraph, in another alternative embodiment, the client may determine whether the client makes the adjustment of the time based on the expanded progress bar or the original progress bar in conjunction with the movement instruction based on the user's intention.
Specifically, the client may respond to a moving instruction corresponding to an original progress bar of the played audio and video on the playing page, determine a moving speed of the moving instruction on a screen of the client, and if the moving speed meets a first moving speed, the client may display the extended progress bar in a preset area of the playing page.
That is, when the client detects a movement instruction corresponding to the original progress bar in a first area corresponding to the original progress bar of the audio/video, the movement speed of the movement instruction on the client screen can be determined. Fig. 4 is a schematic diagram illustrating a movement track according to an exemplary embodiment, and as shown in fig. 4, the movement speed of the movement instruction on the client screen may be determined according to the movement track corresponding to the movement instruction.
Optionally, the client may determine the first moving pixel number corresponding to the moving instruction, which is illustrated by a moving track to the right as shown in fig. 4, where the first moving pixel numbers corresponding to the 2 moving tracks shown in fig. 4 are the same and are all N pixels. Then, the client may determine a moving time corresponding to the moving track. The client may determine a quotient of the first moving pixel number and the moving time as the moving speed.
Optionally, if the moving speed meets the first moving speed, the client may display the expansion progress bar in a preset area of the play page. According to the present application, through research on the user's intention when the user adjusts the time on the original progress bar, it is found that the user generally performs the time adjustment on the original progress bar slowly when the adjusted time is shorter than the current time, and thus, the first preset speed may be a preset slower speed, such as 0 to 100 pixels per second, or 0 to 50 pixels per second.
Therefore, in the embodiment of the application, when the client detects that the moving speed corresponding to the moving instruction meets the first preset speed, the client can display the expansion progress bar in the preset area of the playing page, and further, on the premise of the intention of the user, the user can be ensured to accurately adjust the current playing content of the audio and video as much as possible by adjusting the time-to-pixel ratio.
As mentioned above, generally, the total playing time point of the audio/video is far greater than the number of pixels corresponding to the original progress bar, but some playing time points of the audio/video are slightly greater than, less than or equal to the number of pixels corresponding to the original progress bar, for example, the total playing time point is 1000 seconds, and the number of pixels corresponding to the original progress bar is 1000 pixels. Therefore, when the client detects the moving instruction, the playing time point corresponding to the number of pixels in the moving instruction is the playing time point which the user wants to move, and thus, the user cannot accurately adjust the current playing content of the audio/video.
In another optional embodiment, the client may respond to a moving instruction corresponding to an original progress bar of the played audio and video on the playing page, determine a time length pixel ratio corresponding to the original progress bar of the audio and video and a moving speed of the moving instruction on a screen of the client, and if the moving speed satisfies the first moving speed and the time length pixel ratio corresponding to the original progress bar is greater than a preset time length ratio (for example, the preset time length ratio is 1), the client may display the extended progress bar in a preset area of the playing page.
In step S203, the position of the first positioning information on the extended progress bar is adjusted based on the first moving pixel number corresponding to the movement instruction.
In an alternative embodiment, the move instruction may include a left move instruction and a right move instruction, taking the two directions of left and right movement as an example. As such, step S201 may be embodied as: the client can respond to a left moving instruction (or a right moving instruction) corresponding to an original progress bar of the played audio and video on the playing page, display the expansion progress bar in a preset area of the playing page, and adjust the position of first positioning information on the expansion progress bar leftwards (or rightwards) according to the number of first moving pixels corresponding to the left moving instruction (or the right moving instruction).
In another alternative embodiment, the client may parse the movement instruction, determine the movement direction and the first number of moving pixels, and adjust the position of the first positioning information on the expansion progress bar according to the movement direction based on the first number of moving pixels.
Optionally, the client may analyze the moving instruction, determine that the moving direction is left movement, and determine that the number of moving pixels is the first number of moving pixels. The client may adjust the position of the first positioning information on the extended progress bar to the left based on the first moving pixel number.
Optionally, the client may analyze the moving instruction, determine that the moving direction is right movement, and determine that the number of moving pixels is the first number of moving pixels. The client may adjust the position of the first positioning information on the extended progress bar to the right based on the first moving pixel number.
Fig. 5 is a first schematic diagram illustrating an original progress bar and an extended progress bar according to an exemplary embodiment, as shown in fig. 5, the first schematic diagram includes an original progress bar 302 and an extended progress bar 304, and corresponding first positioning information 501 located on the extended progress bar is shifted to the right, and the first positioning information 501 may be located at a start end of the extended progress bar and second positioning information 502 located on the original progress bar. If the first positioning information 501 located on the extended progress bar corresponds to left shift, the first positioning information 501 may be at the end of the extended progress bar.
In an alternative embodiment, the client may determine the adjustment duration based on a preset duration pixel ratio of the extended progress bar. Taking the moving direction as the right movement as an example, in an embodiment that the position of the first positioning information on the extended progress bar is adjusted to the right based on the first number of moving pixels, the client may obtain a preset time length pixel ratio of the extended progress bar, for example, 0.2, and if the number of the first moving pixels is 20, the adjustment time length is 20 × 0.2=4 seconds. In this way, as shown in fig. 5, the client may adjust the position of the first positioning information on the extended progress bar to the right, specifically, move the first positioning information from the start of 0 second to the position corresponding to 4 seconds.
In another alternative embodiment, the client may determine the adjustment duration based on preset adjustment parameters of the extended progress bar. Fig. 6 is a second schematic diagram illustrating an original progress bar and an extended progress bar according to an exemplary embodiment, as shown in fig. 6, including an original progress bar 302 and an extended progress bar 304, right-shifting corresponding first positioning information 501 located on the extended progress bar, where the first positioning information 501 may be at a start end of the extended progress bar, and second positioning information 502 located on the original progress bar. Optionally, if the first positioning information 501 located on the extended progress bar is corresponding to left shift, the first positioning information 501 may be at the end of the extended progress bar.
In an optional embodiment, the client may determine the number of pixels in the play area and a preset adjustment parameter, determine an adjustment duration according to the number of pixels in the play area, the number of the first moving pixels, and the preset adjustment parameter, and adjust the position of the first positioning information on the expansion progress bar according to the movement direction based on the adjustment duration.
Optionally, the number of pixels in the playing area is the number of pixels corresponding to the original progress bar. Alternatively, the number of pixels corresponding to the original progress bar may be the number of pixels corresponding to the width of the screen, such as W pixels of the screen shown in fig. 6. Optionally, the number of pixels corresponding to the original progress bar may be a pixel vertical direction after the pixels of the unslidable area on both sides of the reduced width of the screen, for example, W1 pixels in the play area shown in fig. 6. The following will describe the number of playback area pixels W1 as the number of playback area pixels (e.g., 1000 pixels).
Optionally, the client may obtain a preset adjustment parameter C of the expansion progress bar, and then, the adjustment duration may be determined according to the number of pixels in the playing area, the number of the first moving pixels, and the preset adjustment parameter, where a specific formula is as follows:
t = C (N2/W1)) … … equation (1)
Wherein t represents the adjustment duration, C represents the preset adjustment parameter, N2 represents the first moving pixel number, and W1 represents the playing area pixel number.
Assuming that the audio-video duration, that is, the total duration of the audio-video is 5000 seconds, the client may determine that the duration pixel ratio corresponding to the original progress bar is 5000/1000=5 seconds per pixel. If the preset adjustment parameter C is 60 and the number of the first moving pixels is 20, the adjustment time duration t =60 × 20/1000) =1.2 seconds. In this way, as shown in fig. 6, the client may adjust the position of the first positioning information on the extended progress bar to the right, specifically, move the first positioning information from the start of 0 second to the position corresponding to 1.2 seconds.
In the embodiment of the present application, C/W1, that is, a quotient of the preset adjustment parameter of the extended progress bar and the playing area pixel, may be regarded as a duration pixel ratio corresponding to the extended progress bar. Assuming that the time length pixel ratio corresponding to the original progress bar is 5, the client may determine the preset adjustment parameter C according to the number N1 of the played pixels because the time length pixel ratio corresponding to the original progress bar is greater than the time length pixel ratio corresponding to the extended progress bar. In the case that the number of pixels in the play area is 1000, the preset adjustment parameter may be a value smaller than 5000.
In another alternative embodiment, the client may determine the number of pixels in the playing area, the number of already played pixels, and a preset adjustment parameter, determine an adjustment duration according to the number of pixels in the playing area, the number of already played pixels, the number of first moving pixels, and the preset adjustment parameter, and adjust the position of the first positioning information on the expansion progress bar according to the moving direction based on the adjustment duration.
Optionally, the number of pixels in the playing area is the number of pixels corresponding to the original progress bar. Alternatively, the number of pixels corresponding to the original progress bar may be the number of pixels corresponding to the width of the screen, such as W pixels of the screen shown in fig. 6. Optionally, the number of pixels corresponding to the original progress bar may be a vertical direction of pixels after pixels in the unslidable area on both sides of the reduced width of the screen, for example, W1 pixels in the play area shown in fig. 6. The following will describe the number of playback area pixels W1 as the number of playback area pixels (e.g., 1000 pixels).
Optionally, the client may obtain a preset adjustment parameter C of the expansion progress bar, and then, the adjustment duration may be determined according to the number of pixels in the playing area, the number of pixels already played, the number of first moving pixels, and the preset adjustment parameter, where a specific formula is as follows:
t = C (N2/(W1-N1)) … … equation (2)
Wherein t represents the adjustment duration, C represents the preset adjustment parameter, N2 represents the first number of moving pixels, W1 represents the number of pixels in the playing area, and N1 represents the number of pixels that have been played.
Assuming that the audio-video duration, that is, the total duration of the audio-video is 5000 seconds, the client may determine that the duration pixel ratio corresponding to the original progress bar is 5000/1000=5 seconds per pixel. Assuming that the played time length corresponding to the second positioning information is T1, 2000 seconds before the adjustment, it can be determined that the number of played pixels corresponding to the second positioning information is N1, 400. If the preset adjustment parameter C is 60 and the number of the first moving pixels is 20, the adjustment time duration t =60 × (20/(1000-400)) =2 seconds. In this way, as shown in fig. 6, the client may adjust the position of the first positioning information on the extended progress bar to the right, specifically, move the first positioning information from the start of 0 second to the position corresponding to 2 seconds.
In the embodiment of the present application, C/(W1-N1), i.e., a quotient of the preset adjustment parameter of the extended progress bar and the remaining pixel number (a difference between the number of pixels of the play area and the number of already played pixels), may be considered as a time duration pixel ratio corresponding to the extended progress bar. Assuming that the time length pixel ratio corresponding to the original progress bar is 5, the client may determine the preset adjustment parameter C according to the number N1 of the played pixels because the time length pixel ratio corresponding to the original progress bar is greater than the time length pixel ratio corresponding to the extended progress bar. In the case where the remaining number of pixels W1-N1 is 600, the preset adjustment parameter may be a value smaller than 3000.
In step S205, the currently played content of the audio and video is adjusted based on the first positioning information.
In this embodiment, if the client moves the first positioning information from the start end of 0 second to the position corresponding to 2 seconds, it may be determined that the first positioning information is 2 seconds. The client can determine that the played time before audio and video adjustment is 2000 seconds, and then, the client can determine the adjusted time according to the played time, the adjusted time and the moving direction, wherein a specific formula is as follows:
T2=T1+t;
t2= T1-T … … equation (3)
Wherein, T2 represents the adjusted time length, T1 represents the played time length, T represents the adjusted time length, the moving direction determines the operation sign between T1 and T, if moving to the right, it is a "+" sign, if moving to the left, it is a "-" sign.
Taking the moving direction as the right movement as an example, the adjusted time length T2=2000+2=2002 seconds. The client can play the content corresponding to 2002 seconds in the audio and video.
In summary, when the extended progress bar appears, the client determines the adjustment duration according to the preset duration pixel ratio of the extended progress bar or according to the preset adjustment parameter, and the adjustment duration corresponds to the shorter adjustment duration through a larger number of pixels, so that the user can accurately adjust the current playing content of the audio and video when the moving speed corresponding to the moving instruction meets the first preset movement.
In this embodiment, the client may adjust the position of the second positioning information 502 on the original progress bar from the first position corresponding to the played time length of 2000 seconds to the second position corresponding to the adjusted time length of 2002 seconds.
Thus, the client completes the time adjustment at the first moving speed.
In this embodiment of the application, the client may also determine time adjustment in other manners based on other moving speeds corresponding to the moving instruction.
In an alternative embodiment, the client may determine the moving speed of the moving instruction on the screen of the client in response to the moving instruction corresponding to the original progress bar. If the moving speed meets the second moving speed, the position of the second positioning information on the original progress bar can be adjusted based on the second moving pixel number corresponding to the moving instruction, wherein the second moving speed is greater than the first moving speed.
That is, when the client detects a movement instruction corresponding to the original progress bar in a first area corresponding to the original progress bar of the audio and video, a movement speed of the movement instruction on the screen of the client may be determined. Referring to fig. 4, the moving speed of the moving instruction on the screen of the client may be determined according to the moving track corresponding to the moving instruction. Optionally, the client may determine the second moving pixel number corresponding to the moving instruction, and then, the client may determine the moving time corresponding to the moving track. The client may determine the quotient of the second moving pixel number and the moving time as the moving speed.
Optionally, if the moving speed meets the second moving speed, the client may adjust a position of the second positioning information on the original progress bar on the basis of a second moving pixel number corresponding to the moving instruction. According to the application, through research on the user intention when the user adjusts the time on the original progress bar, it is found that the time adjustment on the original progress bar is usually performed faster when the adjusted time is longer than the current time, and therefore, the second preset speed may be a preset faster speed, such as 100 to 500 pixels per second.
Therefore, in the embodiment of the application, when the client detects that the moving speed corresponding to the moving instruction meets the second preset speed, on the premise of the intention of the user, the client can ensure that the user can quickly adjust the current playing content of the audio and video through the time length pixel ratio corresponding to the original progress bar.
In an alternative embodiment, the move instruction may include a left move instruction and a right move instruction, taking the two directions of left and right movement as an example. In this way, if the moving speed satisfies the second moving speed, the client may adjust the position of the second positioning information on the original progress bar leftward (or rightward) based on the second moving pixel number corresponding to the left moving instruction or the right moving instruction).
In another optional embodiment, if the moving speed meets the second moving speed, the client may analyze the moving instruction, determine the moving direction and the second moving pixel number, and adjust the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel number.
Optionally, if the moving speed meets the second moving speed, the client may analyze the moving instruction, and determine that the moving direction is left movement, and the number of moving pixels is the second number of moving pixels. The client may adjust the position of the second positioning information on the original progress bar to the left based on the second moving pixel number.
Optionally, if the moving speed meets the second moving speed, the client may analyze the moving instruction, determine that the moving direction is right movement, and determine that the number of moving pixels is the second number of moving pixels. The client may adjust the position of the second positioning information on the original progress bar to the right based on the second moving pixel number.
In an alternative embodiment, the client may determine the adjustment duration based on the duration pixel ratio of the original progress bar. Taking the moving direction as the right movement as an example, the client can determine the audio and video time length and the number of pixels in the playing area, determine the adjustment time length according to the audio and video time length, the number of pixels in the playing area and the number of second moving pixels, and adjust the position of the second positioning information on the original progress bar according to the moving direction based on the adjustment time length.
In an optional embodiment of determining the adjustment duration according to the audio/video duration, the number of pixels in the play area, and the number of second moving pixels, a formula for determining the adjustment duration is as follows:
t = T/W1N 3 … … equation (1)
Wherein T represents the adjustment time length, T represents the audio/video time length, W1 represents the pixel number of the playing area, and N3 represents the second moving pixel number.
Continuing with the example that the audio/video time duration T is 5000 seconds and the number W1 of pixels in the playing area is 1000, assuming that the second number N3 of moving pixels is also 20, the adjustment time duration T =5000/1000 × 20=100 seconds.
Optionally, the client may adjust the position of the second positioning information on the original progress bar rightward, determine the played time length before the audio and video is adjusted, determine the adjusted time length based on the played time length, the adjusted time length and the moving direction, and adjust the current playing content of the audio and video based on the adjusted time length.
Specifically, the client may determine that the played time length is 2000 seconds, and the moving direction is to the right, and then the client may determine that the adjusted time length is 2000+100=2100 seconds. In this way, the client may move the second positioning information from the position corresponding to 2000 seconds to the position corresponding to 2100 seconds, and play the content corresponding to 2100 seconds.
Therefore, according to the embodiment of the application, when the moving speed corresponding to the moving instruction meets the second preset movement, the user can relatively quickly adjust the time on the original progress bar based on the time length pixel corresponding to the original progress bar.
In another alternative embodiment, the client may determine a moving speed of the moving instruction on the screen of the client in response to the moving instruction corresponding to the original progress bar, and adjust the second positioning information on the original progress bar to a preset position on the original progress bar if the moving speed satisfies a third moving speed. Wherein the third moving speed is greater than the second moving speed.
That is, when the client detects a movement instruction corresponding to the original progress bar in a first area corresponding to the original progress bar of the audio/video, the movement speed of the movement instruction on the client screen can be determined. Referring to fig. 4, the moving speed of the moving instruction on the screen of the client may be determined according to the moving track corresponding to the moving instruction. Optionally, the client may determine a third moving pixel number corresponding to the moving instruction, and then, the client may determine a moving time corresponding to the moving track. The client may determine the quotient of the third moving pixel number and the moving time as the moving speed.
Optionally, if the moving speed meets the third moving speed, the client may adjust the second positioning information on the original progress bar to a preset position on the original progress bar. Through research on user intention when the user adjusts the time on the original progress bar, the user usually adjusts the time on the original progress bar very much when adjusting to the end of the audio/video, and therefore, the third preset speed can be a preset fast speed, such as a speed of more than 500 pixels per second.
Specifically, when the moving speed meets the third moving speed, the client may adjust the second positioning information on the original progress bar to the end on the original progress bar, and play the current playing content corresponding to the end in the audio/video.
Specifically, when the moving speed meets the third moving speed and the second positioning information is located at the beginning of the original progress bar, the client may adjust the second positioning information on the original progress bar to the middle of the original progress bar, and play the current playing content corresponding to the middle of the audio and video.
Therefore, according to the embodiment of the application, when the moving speed corresponding to the moving instruction meets the third preset movement, the user can quickly locate the preset duration of the audio and video and play the corresponding content.
In summary, according to the embodiment of the application, under different user intentions, different application scenarios can be considered, and the audio and video content corresponding to the progress bar can be dynamically adjusted according to different time length pixel ratios.
Fig. 7 is a block diagram of an audiovisual playback device shown in accordance with an exemplary embodiment. The device has the function of realizing the data processing method in the method embodiment, and the function can be realized by hardware or by hardware executing corresponding software. Referring to fig. 7, the apparatus includes a progress bar display module 701, a positioning information adjustment module 702, and a play content adjustment module 703.
The progress bar display module 701 is configured to execute a moving instruction corresponding to an original progress bar of the played audio and video in response to the played page, and display an extended progress bar in a preset area of the played page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar;
a positioning information adjusting module 702 configured to perform adjusting a position of the first positioning information on the expansion progress bar based on a first moving pixel number corresponding to the moving instruction;
and the playing content adjusting module 703 is configured to perform adjusting of the currently playing content of the audio and video based on the first positioning information.
In some possible embodiments, the progress bar display module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
and if the moving speed meets the first moving speed, displaying an expansion progress bar in a preset area of the playing page.
In some possible embodiments, the positioning information adjusting module is configured to perform:
analyzing the moving instruction, and determining the moving direction and the first moving pixel quantity;
and adjusting the position of the first positioning information on the expansion progress bar according to the moving direction based on the first moving pixel quantity.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the number of pixels in a playing area and a preset adjusting parameter;
determining the adjustment duration according to the number of pixels in the playing area, the number of the first moving pixels and a preset adjustment parameter;
based on the adjustment duration, adjusting the position of the first positioning information on the expansion progress bar according to the moving direction;
a play content adjustment module configured to perform:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the number of pixels in a playing area, the number of played pixels and preset adjustment parameters;
and determining the adjustment duration according to the number of pixels in the playing area, the number of played pixels, the number of first moving pixels and preset adjustment parameters. In some possible embodiments, the positioning information adjusting module is configured to perform:
and adjusting the position of the second positioning information on the original progress bar from the first position corresponding to the played time length to the second position corresponding to the adjusted time length.
In some possible embodiments, the positioning information adjusting module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the second moving speed, adjusting the position of second positioning information on the original progress bar on the basis of the second moving pixel number corresponding to the moving instruction; the second moving speed is greater than the first moving speed;
a play content adjustment module configured to perform:
and adjusting the current playing content of the audio and video based on the second positioning information.
In some possible embodiments, the positioning information adjusting module is configured to perform:
if the moving speed meets the second moving speed, analyzing the moving instruction, and determining the moving direction and the second moving pixel quantity;
and adjusting the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel quantity.
In some possible embodiments, the positioning information adjusting module is configured to perform:
determining the audio and video duration and the number of pixels in a playing area;
determining the adjustment duration according to the audio and video duration, the number of pixels in the playing area and the number of second moving pixels;
based on the adjustment duration, adjusting the position of the second positioning information on the original progress bar according to the moving direction;
a play content adjustment module configured to perform:
determining the played time length before audio and video adjustment;
determining an adjusted time length based on the played time length, the adjusted time length and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
In some possible embodiments, the positioning information adjusting module is configured to perform:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a screen of the client;
if the moving speed meets the third moving speed, adjusting second positioning information on the original progress bar to a preset position on the original progress bar; the third moving speed is greater than the second moving speed;
a play content adjustment module configured to perform:
and playing the current playing content corresponding to the preset position in the audio and video.
It should be noted that, when the apparatus provided in the foregoing embodiment implements the functions thereof, only the division of the functional modules is illustrated, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the apparatus may be divided into different functional modules to implement all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
Fig. 8 is a block diagram illustrating an apparatus 3000 for audiovisual playback in accordance with an exemplary embodiment. For example, the apparatus 3000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, apparatus 3000 may include one or more of the following components: a processing component 3002, a memory 3004, a power component 3006, a multimedia component 3008, an audio component 3010, an input/output (I/O) interface 3012, a sensor component 3014, and an audio-video playing component 3016.
The processing component 3002 generally controls the overall operation of the device 3000, such as operations associated with display, telephone calls, digital audiovisual playback, camera operations and recording operations. The processing component 3002 may include one or more processors 3020 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 3002 may include one or more modules that facilitate interaction between the processing component 3002 and other components. For example, the processing component 3002 may include a multimedia module to facilitate interaction between the multimedia component 3008 and the processing component 3002.
The memory 3004 is configured to store various types of data to support operations at the device 3000. Examples of such data include instructions for any application or method operating on the device 3000, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 3004 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 3006 provides power to the various components of the device 3000. The power components 3006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 3000.
The multimedia component 3008 comprises a screen providing an output interface between the device 3000 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 3008 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 3000 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 3010 is configured to output and/or input an audio signal. For example, the audio component 3010 may include a Microphone (MIC) configured to receive external audio signals when the apparatus 3000 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in the memory 3004 or transmitted via the audiovisual playback component 3016. In some embodiments, the audio component 3010 further includes a speaker for outputting audio signals.
I/O interface 3012 provides an interface between processing component 3002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 3014 includes one or more sensors for providing status assessment of various aspects to the device 3000. For example, the sensor component 3014 can detect the open/closed state of the device 3000, the relative positioning of components, such as a display and keypad of the apparatus 3000, the sensor component 3014 can also detect a change in position of the apparatus 3000 or a component of the apparatus 3000, the presence or absence of user contact with the apparatus 3000, orientation or acceleration/deceleration of the apparatus 3000, and a change in temperature of the apparatus 3000. The sensor assembly 3014 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 3014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 3014 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The audiovisual playback component 3016 is configured to facilitate audiovisual playback between the apparatus 3000 and other devices in a wired or wireless manner. Device 3000 may access a wireless network based on audio-video playback standards, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the audio video playing component 3016 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the audio-video playing component 3016 further includes a near field audio-video playing (NFC) module to facilitate short-range audio-video playing. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 3000 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
The embodiment of the present invention further provides a computer-readable storage medium, which can be disposed in an electronic device to store at least one instruction or at least one program for implementing an audio/video playing method, where the at least one instruction or the at least one program is loaded and executed by the processor to implement the audio/video playing method provided by the foregoing method embodiment.
Embodiments of the present invention also provide a computer program product comprising a computer program stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the method of any one of the first aspect of the disclosed embodiments.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and should not be taken as limiting the scope of the present invention, which is intended to cover any modifications, equivalents, improvements, etc. within the spirit and scope of the present invention.

Claims (14)

1. An audio/video playing method is characterized by comprising the following steps:
responding to a moving instruction corresponding to an original progress bar of the played audio and video on a playing page, and displaying an expanded progress bar in a preset area of the playing page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar;
adjusting the position of first positioning information on the expansion progress bar based on the number of first moving pixels corresponding to the moving instruction;
and adjusting the current playing content of the audio and video based on the first positioning information.
2. The audio/video playing method according to claim 1, wherein the displaying an extended progress bar in a preset area of the playing page in response to a moving instruction corresponding to an original progress bar of the played audio/video on the playing page includes:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a client screen;
and if the moving speed meets a first moving speed, displaying the expansion progress bar in a preset area of the playing page.
3. The audio/video playing method according to claim 1 or 2, wherein the adjusting the position of the first positioning information on the extended progress bar based on the first number of moving pixels corresponding to the moving instruction includes:
analyzing the moving instruction, and determining the moving direction and the first moving pixel quantity;
and adjusting the position of the first positioning information on the expansion progress bar according to the moving direction based on the first moving pixel quantity.
4. The audio/video playing method according to claim 3, wherein the adjusting the position of the first positioning information on the extended progress bar according to the moving direction based on the first moving pixel number includes:
determining the number of pixels in a playing area and a preset adjusting parameter;
determining an adjustment duration according to the number of the pixels in the playing area, the number of the first moving pixels and the preset adjustment parameter;
based on the adjustment duration, adjusting the position of the first positioning information on the expansion progress bar according to the moving direction;
the adjusting the current playing content of the audio and video based on the first positioning information comprises:
determining the played time length before the audio and video is adjusted;
determining an adjusted duration based on the played duration, the adjusted duration, and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
5. The audio/video playing method according to claim 4, wherein the number of pixels in the playing area and preset adjustment parameters are determined; determining an adjustment duration according to the first moving pixel quantity of the playing area and the preset adjustment parameter, wherein the adjustment duration comprises the following steps:
determining the number of pixels in the playing area, the number of played pixels and the preset adjusting parameter;
and determining the adjustment duration according to the number of the pixels in the playing area, the number of the played pixels, the number of the first moving pixels and the preset adjustment parameter.
6. The audio-video playback method according to claim 4 or 5, wherein the method further comprises:
and adjusting the position of the second positioning information on the original progress bar from the first position corresponding to the played time length to the second position corresponding to the adjusted time length.
7. The audio-video playback method according to claim 2, further comprising:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a client screen;
if the moving speed meets a second moving speed, adjusting the position of second positioning information on the original progress bar on the basis of a second moving pixel number corresponding to the moving instruction; the second moving speed is greater than the first moving speed;
and adjusting the current playing content of the audio and video based on the second positioning information.
8. The audio/video playing method according to claim 7, wherein if the moving speed satisfies a second moving speed, adjusting a position of second positioning information on the original progress bar based on a second moving pixel number corresponding to the moving instruction includes:
if the moving speed meets the second moving speed, analyzing the moving instruction, and determining the moving direction and the second moving pixel quantity;
and adjusting the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel quantity.
9. The audio/video playing method according to claim 8, wherein the adjusting the position of the second positioning information on the original progress bar according to the moving direction based on the second moving pixel number includes:
determining the audio and video duration and the number of pixels in a playing area;
determining an adjustment time length according to the audio and video time length, the number of pixels in the playing area and the number of second moving pixels;
based on the adjustment duration, adjusting the position of the second positioning information on the original progress bar according to the moving direction;
the adjusting the current playing content of the audio and video based on the second positioning information comprises:
determining the played time length before the audio and video is adjusted;
determining an adjusted duration based on the played duration, the adjusted duration, and the moving direction;
and adjusting the current playing content of the audio and video based on the adjusted duration.
10. The audio-video playback method according to claim 7, further comprising:
responding to a moving instruction corresponding to the original progress bar, and determining the moving speed of the moving instruction on a client screen;
if the moving speed meets a third moving speed, adjusting second positioning information on the original progress bar to a preset position on the original progress bar; the third moving speed is greater than the second moving speed;
and playing the current playing content corresponding to the preset position in the audio and video.
11. An audio-video playback device, comprising:
the progress bar display module is configured to execute a moving instruction corresponding to an original progress bar of the played audio and video in response to a playing page, and display an expanded progress bar in a preset area of the playing page; the time length pixel ratio corresponding to the original progress bar is larger than the time length pixel ratio corresponding to the extended progress bar;
a positioning information adjusting module configured to perform adjusting a position of first positioning information on the extended progress bar based on a first moving pixel number corresponding to the moving instruction;
and the playing content adjusting module is configured to adjust the current playing content of the audio and video based on the first positioning information.
12. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the audio-video playback method as claimed in any one of claims 1 to 10.
13. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the audio-video playback method of any of claims 1-10.
14. A computer program product, characterized in that the computer program product comprises a computer program, which is stored in a readable storage medium, from which at least one processor of a computer device reads and executes the computer program, causing the computer device to perform the audio-video playback method according to any one of claims 1 to 10.
CN202210944986.2A 2022-08-08 2022-08-08 Audio and video playing method and device, electronic equipment and storage medium Pending CN115474095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210944986.2A CN115474095A (en) 2022-08-08 2022-08-08 Audio and video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210944986.2A CN115474095A (en) 2022-08-08 2022-08-08 Audio and video playing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115474095A true CN115474095A (en) 2022-12-13

Family

ID=84366392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210944986.2A Pending CN115474095A (en) 2022-08-08 2022-08-08 Audio and video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115474095A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123079A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Method and device for adjusting position of progress bars
CN104199611A (en) * 2014-08-29 2014-12-10 广东欧珀移动通信有限公司 Method and device for adjusting playing progress through mobile terminal
CN104375763A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Progress adjusting method and electronic equipment
CN104850347A (en) * 2015-05-05 2015-08-19 天脉聚源(北京)教育科技有限公司 Method and device for drawing progress bar
CN105933751A (en) * 2016-04-28 2016-09-07 北京小米移动软件有限公司 Method and device for adjusting play progress of media file
CN110719531A (en) * 2019-10-16 2020-01-21 维沃移动通信有限公司 Video playing progress adjusting method and electronic equipment
CN112511906A (en) * 2020-11-27 2021-03-16 上海幽癸信息科技有限公司 Audio and video playing progress control system and method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123079A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Method and device for adjusting position of progress bars
CN104375763A (en) * 2013-08-15 2015-02-25 联想(北京)有限公司 Progress adjusting method and electronic equipment
CN104199611A (en) * 2014-08-29 2014-12-10 广东欧珀移动通信有限公司 Method and device for adjusting playing progress through mobile terminal
CN104850347A (en) * 2015-05-05 2015-08-19 天脉聚源(北京)教育科技有限公司 Method and device for drawing progress bar
CN105933751A (en) * 2016-04-28 2016-09-07 北京小米移动软件有限公司 Method and device for adjusting play progress of media file
CN110719531A (en) * 2019-10-16 2020-01-21 维沃移动通信有限公司 Video playing progress adjusting method and electronic equipment
CN112511906A (en) * 2020-11-27 2021-03-16 上海幽癸信息科技有限公司 Audio and video playing progress control system and method

Similar Documents

Publication Publication Date Title
CN108259991B (en) Video processing method and device
US10831514B2 (en) Display method and device of application interface
CN106775235B (en) Screen wallpaper display method and device
CN111970566A (en) Video playing method and device, electronic equipment and storage medium
CN108769769B (en) Video playing method and device and computer readable storage medium
US20220256230A1 (en) Method and apparatus for video playing
CN112929561A (en) Multimedia data processing method and device, electronic equipment and storage medium
CN107272896B (en) Method and device for switching between VR mode and non-VR mode
CN115719586A (en) Screen refresh rate adjusting method and device, electronic equipment and storage medium
CN109151553B (en) Display control method and device, electronic equipment and storage medium
WO2019095810A1 (en) Interface display method and device
CN112911372A (en) Page data processing method and device, electronic equipment and server
CN115278273B (en) Resource display method and device, electronic equipment and storage medium
CN108829473B (en) Event response method, device and storage medium
CN112866612B (en) Frame insertion method, device, terminal and computer readable storage medium
CN114356476B (en) Content display method, content display device, electronic equipment and storage medium
CN113360708B (en) Video playing method and device, electronic equipment and storage medium
CN115065840A (en) Information processing method and device, electronic equipment and storage medium
CN114125528B (en) Video special effect processing method and device, electronic equipment and storage medium
CN114554231A (en) Information display method and device, electronic equipment and storage medium
CN114827721A (en) Video special effect processing method and device, storage medium and electronic equipment
CN115474095A (en) Audio and video playing method and device, electronic equipment and storage medium
CN108769780B (en) Advertisement playing method and device
CN114186154A (en) Page processing method and device, electronic equipment and storage medium
CN113709538B (en) Multimedia data playing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination