Nothing Special   »   [go: up one dir, main page]

CN107690081B - Video playing method and device, storage medium and electronic device - Google Patents

Video playing method and device, storage medium and electronic device Download PDF

Info

Publication number
CN107690081B
CN107690081B CN201710382154.5A CN201710382154A CN107690081B CN 107690081 B CN107690081 B CN 107690081B CN 201710382154 A CN201710382154 A CN 201710382154A CN 107690081 B CN107690081 B CN 107690081B
Authority
CN
China
Prior art keywords
target
video
playing
media file
fast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710382154.5A
Other languages
Chinese (zh)
Other versions
CN107690081A (en
Inventor
郑强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing 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 Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201710382154.5A priority Critical patent/CN107690081B/en
Publication of CN107690081A publication Critical patent/CN107690081A/en
Application granted granted Critical
Publication of CN107690081B publication Critical patent/CN107690081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2668Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/23424Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving splicing one content stream with another content stream, e.g. for inserting or substituting an advertisement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/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/47202End-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 requesting content on demand, e.g. video on demand
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data
    • 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/84Generation or processing of descriptive data, e.g. content descriptors

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Human Computer Interaction (AREA)
  • Television Signal Processing For Recording (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a video playing method and device, a storage medium and an electronic device. Wherein, the method comprises the following steps: receiving a video playing request, wherein the video playing request is used for requesting to play a target video; acquiring a target media file from a first server in response to a video playing request; detecting a target operation in the playing process of the target video, wherein the target operation is used for indicating that the target video is played in a fast forward or fast backward mode; and playing the target media file in the process of fast-forwarding or fast-rewinding the played target video in response to the target operation. The invention solves the technical problem that the exposure of the advertisement corresponding to the video is low because the advertisement can only be played before the video is played or after the video is played in the related technology.

Description

Video playing method and device, storage medium and electronic device
Technical Field
The invention relates to the field of computers, in particular to a video playing method and device, a storage medium and an electronic device.
Background
At present, the scheme of playing advertisements in the video playing process is to use a video patch advertisement mode to play advertisements before or after the video is played.
In a specific application process, the video patch advertisement can adopt a video offline advertisement form, wherein the video offline advertisement can be divided into two modes, namely IOS and android:
IOS mode: the offline advertisement is cached when the user actively requests to cache the video content, then the offline advertisement content is played during offline playing, and then the data is reported during next online.
In the Android mode, when a user plays a video and requests L D and KB advertisements by the SDK, the user also requests offline advertisements, then plays offline advertisement contents during offline playing, and then reports data during next online.
The video offline advertisement also adopts a video patch advertisement mode, and the advertisement is played before the video starts to be played or after the video is played, so that the exposure of the advertisement corresponding to the video is low, and the advertisement is not flexible to be put.
Aiming at the problem that the related technology can only play the advertisement before the video starts to play or after the video finishes playing, so that the exposure of the advertisement corresponding to the video is low, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a video playing method and device, a storage medium and an electronic device, which at least solve the technical problem that the exposure of advertisements corresponding to videos is low because related technologies can only play the advertisements before the videos are played or after the videos are played.
According to an aspect of an embodiment of the present invention, there is provided a video playing method, including: receiving a video playing request, wherein the video playing request is used for requesting to play a target video; acquiring a target media file from a first server in response to the video playing request; detecting a target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video; and responding to the target operation to play the target media file in the process of fast-forwarding or fast-rewinding playing the target video.
According to another aspect of the embodiments of the present invention, there is also provided a video playing apparatus, including: the device comprises a receiving unit, a processing unit and a display unit, wherein the receiving unit is used for receiving a video playing request, and the video playing request is used for requesting to play a target video; a first response unit, wherein the user responds to the video playing request to acquire a target media file from a first server; the device comprises a detection unit, a processing unit and a control unit, wherein the detection unit is used for detecting target operation in the playing process of the target video, and the target operation is used for indicating fast forward or fast backward playing of the target video; and the second response unit is used for responding to the target operation and playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video.
According to another aspect of the embodiments of the present invention, there is also provided a storage medium, where the storage medium includes a stored program, and the program executes any one of the video playing methods in the embodiments of the present invention when running.
According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes any one of the video playing methods according to the embodiments of the present invention through the computer program.
In the embodiment of the invention, a video playing request for requesting to play a target video is received, a target media file is acquired from a first server in response to the video playing request, a target operation is detected in the process of playing the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video, and the target media file is played in the process of fast forward or fast backward of the target video when the target operation is detected. Under the condition that the target media file is the advertisement file, the advertisement file is played in the process of fast forwarding or fast rewinding the target video, the advertisement file is more flexible in the delivery process of video playing, the technical problem that the advertisement exposure corresponding to the video is lower due to the fact that the advertisement can only be played before the video starts to be played or after the video is played in the related technology can be solved, and the technical effect of increasing the advertisement exposure is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic diagram of a hardware environment of a video playback method according to an embodiment of the present invention;
FIG. 2 is a flow chart of an alternative video playback method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alternative fast forward advertising hardware environment in accordance with an embodiment of the present invention;
FIG. 4 is a diagram illustrating an optional fast forward advertisement being played in an APP application, according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an alternative fast-forward advertisement being played in a video website according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of an alternative video playback device according to an embodiment of the present invention;
fig. 14 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, 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 derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection 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 invention and in the drawings described above 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 invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, a method embodiment of a video playing method is provided.
Alternatively, in the present embodiment, the video playing method described above may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. As shown in fig. 1, a server 102 is connected to a terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The video playing method according to the embodiment of the present invention may be executed by the server 102, or executed by the terminal 104, or executed by both the server 102 and the terminal 104. The terminal 104 may execute the video playing method according to the embodiment of the present invention by a client installed thereon.
Fig. 2 is a flowchart of an alternative video playing method according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:
step S202, receiving a video playing request, wherein the video playing request is used for requesting to play a target video;
step S204, a target media file is obtained from a first server in response to a video playing request;
step S206, detecting target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video;
in step S208, the target media file is played in the process of fast-forwarding or fast-rewinding the target video in response to the target operation.
Through the above steps S202 to S208, a video playing request for requesting playing of a target video is received, a target media file is obtained from a first server in response to the video playing request, a target operation is detected in the process of playing the target video, wherein the target operation is used for instructing fast forward or fast backward playing of the target video, and the target media file is played when the target operation is detected. Under the condition that the target media file is the advertisement file, the advertisement file can be played in the process of fast forwarding or fast rewinding the target video, the advertisement file is more flexible in the delivery process of video playing, the technical problem that the advertisement exposure corresponding to the video is lower due to the fact that the advertisement can only be played before the video starts to be played or after the video is played in the related technology can be solved, and the technical effect of increasing the advertisement exposure is achieved.
In the technical solution provided in step S202, the video playing request may include target video information, and when a user needs to watch a certain target video, the user may send a video playing request including the certain target video information, receive the video playing request through the SDK or the player, and after receiving the video playing request, obtain a target video corresponding to the video playing request from the video server for playing.
As an alternative example, if the user needs to watch the target video a, the user may send a video playing request by clicking or double clicking the link corresponding to the player without the target video a.
Alternatively, the video server may be a player storing a plurality of video files corresponding to the SDK or the player.
As an optional example, the video server corresponds to the player a, and after the user sends a video playing request requesting to play the target video B, the video player a receives the corresponding video playing request, obtains the target video B from the video server corresponding to the player a, and then plays the target video B through the player a.
Optionally, the number of the video servers may be multiple, and in the process of acquiring the target video by the player, the player may be allocated with a video server that is occupied less, and may also be allocated with a video player that has the highest transmission speed with the player, so that it may be ensured that the player can acquire the target video quickly.
Alternatively, the target video may be a video file that can be selected by the user in various forms of movies, fantasy, series, and the like.
Optionally, the player may perform detection in real time, so that the player may receive the video playing request at the first time when the user issues the video playing request, so that the player may quickly respond to the video playing request to play the target video.
Alternatively, the player may be a locally installed player client, and may also be a web page player.
In the technical solution provided in step S204, the video playing request further includes target media file information, and the player can respond to the video player request in real time, and obtain the target media file from the corresponding first server according to the target media file information in the video playing request.
Alternatively, the first server may be a background server storing a plurality of target media files.
Optionally, the target media file may be an advertisement file, and the first server may be a video advertisement engine background server storing a plurality of advertisement files, where the first server may include a tile advertisement for playing before or after the target video is played; video-ported advertisements for playing in a targeted video playing process may be included; an advertisement file for playing during fast forward or fast reverse play of the target video may also be included.
As an optional example, a user sends a video playing request when needing to watch a target video, and after receiving the video playing request, a player responds to target media file information in the video playing request to obtain a corresponding advertisement file from a video advertisement engine background server.
As an alternative embodiment, obtaining the target media file from the first server in response to the video playback request includes: judging whether a cached media file exists or not; and in the case that the cached media file exists, replacing the cached media file with the target media file.
By adopting the embodiment of the invention, whether the cached media file exists locally can be judged under the condition that the target media file is obtained from the first server in response to the video playing request, and the target media file is used for replacing the locally cached media file under the condition that the cached media file exists locally, so that the locally cached media file is updated, and the locally cached media file is ensured to be the latest target media file.
As an optional example, in a case that the player acquires the advertisement file from the video advertisement engine background server, it is determined whether a cached advertisement file exists locally on the player, and if the cached advertisement file exists locally on the player, the advertisement file acquired from the video advertisement engine background server is used to replace the cached advertisement file, so as to update the cached advertisement file.
Optionally, assuming that the advertisement file acquired from the video advertisement engine background server is an advertisement file a and the locally cached advertisement file of the player is an advertisement file B, the advertisement file B is replaced by the advertisement file a, the cached advertisement file is updated, and the updated cached advertisement file is the advertisement file a.
As an alternative embodiment, the process of the player obtaining the target media file from the first server in response to the video playing request may include: the method includes that a player firstly sends a media file request to a first server, wherein the media file request may carry an identifier for indicating a type of a requested media file, that is, the media file request may carry a target type identifier for indicating a target type, and the target type may be a type of a target media file. After the first server receives the media file request sent by the player, the first server may search a target media file corresponding to the target type from the media files locally stored in the server, and send the searched target media file to the player, so that the player receives the target media file of which the type sent by the first server is the target type.
It should be noted that, in this embodiment, by sending the media file request carrying the target type identifier to the first server, the first server can quickly and accurately find the target media file corresponding to the target type identifier according to the target type identifier, and thus, the purpose of the player obtaining the time of the target media file from the first server can be achieved.
As an optional embodiment, the video playing request received by the player may also carry identification information of the target video and user history playing information, where the identification information of the target video may include, but is not limited to, information such as a tag and a description of the target video, and the user history playing information may include, but is not limited to, a type and a name of a video played by the user. When the player acquires the target media file from the first server, the player can send a media file request carrying identification information of the target video and historical playing information of the user to the server, so that the target media file acquired from the first server can be associated with the target video or can be associated with the historical playing information of the user, and therefore the correlation between the target media file released in the process of playing the target video and the target video can be increased, or the correlation between the released target media file and the user can be increased, the purposes of increasing the exposure of the target media file and improving the viewing experience of the user are achieved.
In the technical solution provided in step S206, the target operation may be used to instruct fast-forward or fast-reverse playing of the target video, where a fast-forward or fast-reverse played video segment in the target video may be the target video segment. For example, the duration of normal playing of the video file B is 60 minutes, and the fast forward playing operation is performed at 20 minutes to 30 minutes of the video file B, where a video clip of the video file B during the fast forward playing, that is, a video clip of the video file B at 20 minutes to 30 minutes, is a target video clip.
Optionally, the player may perform a target operation of real-time detection in the playing process of the target video, detect the target operation at the first time when the user performs the target operation, and respond according to the target operation, so that the player can be ensured to respond according to the target operation in time, and user experience is enhanced.
As an alternative embodiment, the player detects the target operation during the playing process of the target video, which may include but is not limited to at least one of the following:
detecting touch operation executed on a target button, wherein the target button can be a button which is arranged in a player and used for indicating fast forward or fast backward playing of a target video; when the click operation is performed on the fast backward button, the fast backward operation on the target video can be triggered.
And detecting dragging operation of a playing progress bar of the target video, wherein the playing progress bar is used for indicating the playing progress of the target video, and a user can realize fast skip to any playing moment by dragging the playing progress bar or can realize fast forward or fast backward of the target video by dragging the playing progress bar.
And detecting a voice operation instruction for the target video, wherein the voice operation instruction is used for indicating fast forward or fast backward of the target video. During the playing process of the target video, the player may also detect whether a voice operation instruction of the user is received in real time, for example, the voice operation instruction may include, but is not limited to, "fast forward", "fast rewind", and the like. When the player detects the voice operation instruction, it may first perform voice recognition, and then convert the voice recognition result into a corresponding control instruction to perform a corresponding control operation.
It should be noted that the above-listed manners for detecting the target operation are only preferred embodiments of the present invention, and the present invention may also detect the target operation by other manners, which are not illustrated herein.
In the technical solution provided in step S208, after detecting the target operation, the player may respond to the target operation, which may include fast-forwarding or fast-rewinding to play the target video, and play the target media file during the process of fast-forwarding or fast-rewinding to play the target video. Optionally, after receiving the video playing request, the player may obtain the target media file from the first server, and cache the obtained target media file. After detecting the target operation, the player may first search for a target media file of which the type is the target type corresponding to the target operation according to the target operation, and then play the searched target media file in a process of fast forwarding or fast rewinding the target video through a play process of the player.
As an alternative example, the target video may be a video file a, the target operation may be a fast forward operation, and the target media file may be an advertisement file B, and assuming that the duration of the video file a is 60 minutes, when the video file a is played for 20 minutes, a fast forward play operation is performed on a video segment of 20 minutes to 30 minutes, and then the player responds to the fast forward play operation to play the advertisement file B during the fast forward play of the video file a.
As an alternative embodiment, playing the target media file during fast forward or fast reverse playing of the target video in response to the target operation may include at least one of: only playing the target media file in the player; the method comprises the steps of playing a target media file in a first playing area in a player, and playing a key frame in a target video segment in a second playing area in the player, wherein the target video segment is a video segment which is played in a fast forward or fast backward mode in the target video, and the first playing area and the second playing area are arranged in the player.
By adopting the embodiment of the invention, the player can only play the target video file in the target time period, so that the target video file can be completely played in the process of fast-forwarding or fast-rewinding playing the target video; the target media file can be played by the player through the first playing area in the process of fast-forwarding or fast-rewinding playing the target video, the key frame of the target video segment is played through the second playing area, and a user can know the playing content of the target video according to the key frame of the target video segment, so that the target media file can be played without influencing the user to watch the playing content of the target file.
As an alternative example, the target video file may be video file a, the target media file may be advertisement file B, the target operation may be a fast forward play operation, and the player fast-forwards plays video file a in response to the fast forward play operation. During fast forward play of the video file a, the advertisement file B may be fully displayed within the window of the player, so that the user may view the advertisement file B during fast forward play of the video file a.
As another alternative example, the target video file may be a video file a, the target media file may be an advertisement file B, the target operation may be a fast forward play operation, the player fast-forwards plays the video file a in response to the fast forward play operation, and a plurality of play areas are divided within a player window, wherein the advertisement file B is played in a first play area, and a key frame picture of the video file a is played in a second play area, and a user may be allowed to determine a position of the fast forward operation in the video file a through the key frame picture of the video file a played in the second play area, and may be allowed to view the advertisement file B while viewing the key frame picture of the video file a.
Alternatively, the first play area may be plural.
As an alternative embodiment, the target media file comprises a plurality of media files, wherein playing the target media file during fast-forward or fast-rewind of the target video in response to the target operation may comprise at least one of: sequentially playing a plurality of media files according to a preset playing sequence in the process of fast-forwarding or fast-rewinding playing the target video; and randomly selecting one media file from the plurality of media files to play in the process of fast-forwarding or fast-rewinding the playing target video.
By adopting the above embodiment of the present invention, the target media file may include a plurality of media files, and the plurality of media files may be sequentially played according to a predetermined playing sequence in the process of fast-forwarding or fast-rewinding playing the target video, so as to ensure that the plurality of media files may be played according to the same frequency; in the process of fast-forwarding or fast-rewinding playing of the target video, one media file can be randomly selected from a plurality of media files to be played, so that the display of the media files is random and unpredictable, the novelty of playing the media files is ensured, and the user experience can be enhanced.
Alternatively, the target media file may be played within a certain predetermined time period, and in the case that the target time period corresponding to fast-forward or fast-backward is greater than the predetermined time period, one target time period is divided into a plurality of predetermined time periods, and a different target media file is played within each predetermined time period.
As an optional example, in the case that the target media file includes a plurality of media files, the media files may be an advertisement file a, an advertisement file B, and an advertisement file C, wherein the predetermined playing sequence is the advertisement file a, the advertisement file B, and the advertisement file C in sequence, the predetermined time period for playing the media files is 5S, the target time period is 18S, and the target time period may be divided into 4 predetermined time periods, wherein the first predetermined time period is 0-5S; the second preset time period is 5-10S; the third preset time period is 10-15S; the fourth predetermined period of time is 15-18S. The player may play advertisement file a for a first predetermined time period, advertisement file B for a second predetermined time period, advertisement file C for a third predetermined time period, and advertisement file a for a fourth predetermined time period within the target time period.
As another alternative example, in the case where the target media file includes a plurality of media files, the media files may be an advertisement file a, an advertisement file B, and an advertisement file C, wherein the predetermined period of time for which the media files are played is 5S, the target period of time is 18S, and the target period of time may be divided into 4 predetermined periods of time, wherein the first predetermined period of time is 0-5S; the second preset time period is 5-10S; the third preset time period is 10-15S; the fourth predetermined period of time is 15-18S. The player can randomly select the advertisement file B within a first preset time period within the target time period, and then the advertisement file B is played within the first preset time period; obtaining an advertisement file C through random selection in a second preset time period, and playing the advertisement file C in the second preset time period; obtaining an advertisement file A through random selection in a third preset time period, and playing the advertisement file A in the third preset time period; and if the advertisement file C is obtained by random selection in the fourth preset time period, playing the advertisement file C in the fourth preset time period.
As an alternative embodiment, after playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video in response to the target operation, the embodiment may further include: and transmitting the exposure of the target media file corresponding to the target video to the second server.
By adopting the implementation of the invention, after the target media file is played in the process of fast-forwarding or fast-rewinding the played target video, the exposure of the target media file corresponding to the target video can be transmitted to the second server, and the exposure condition of the target media file can be counted by the second server, so that the exposure of the target media file can be monitored conveniently.
Alternatively, the second server may be an exposure server for counting the exposure of the target media file.
As an alternative example, the target media file may be an advertisement file a, the target video may be a video file B, the second server may be an exposure server, the advertisement file a is played during fast forward or fast backward playing of the target video, and the exposure amount of the advertisement file a corresponding to the video file B may be transmitted to the exposure server through the SDK or the player.
In addition, if the target media file includes a plurality of media files, the exposure amounts of the plurality of media files corresponding to the target video may be transmitted to the exposure server, respectively.
As an optional example, the target media file includes an advertisement file a and an advertisement file B, and the target video is a video file C, after the video file C is played, the exposure amounts of the advertisement file a and the advertisement file B corresponding to the video file C may be respectively transmitted to the exposure server through the SDK or the player.
As an alternative embodiment, reporting the exposure of the target media file corresponding to the target video to the second server includes: after the target video is played, acquiring the playing times of the target media file; and transmitting the playing times of the target media file as the exposure of the target media file corresponding to the target video to the second server.
By adopting the embodiment of the invention, after the target video is played, the playing frequency of the target media file can be obtained through the SDK or the player, statistics is carried out, the counted playing frequency of the target video file is taken as the exposure of the target media file and is transmitted to the second server, and the exposure of the target media file is locally counted through the player, so that a user can know the exposure of the target media file locally in the player.
As an alternative example, the second server may be an exposure server, the target video may be a video file a, the target media file may be an advertisement file B, and in the process of playing the video file a, the advertisement file B is played a total of 4 times, and the number of players of the advertisement file B is transmitted to the second server as the exposure of the advertisement file B corresponding to the video file a.
Optionally, when the target media file includes a plurality of media files, the number of playing times corresponding to each media file may be counted, and then the number of playing times corresponding to each media file is transmitted to the second server.
As an optional example, taking the target media file includes two advertisement files as an example, the second server may be an exposure server, the target media file includes an advertisement file a and an advertisement file B, and after the target video is played, the SDK or the player counts the playing times of the target media file (i.e., the advertisement file a and the advertisement file B) corresponding to the target video. For example, if the number of times of playing the advertisement file a is 4 and the number of times of playing the advertisement file B is 5, the number of times of playing the advertisement file a and the number of times of playing the advertisement file B are transmitted to the exposure server as the exposure amount, respectively.
As an alternative embodiment, reporting the exposure of the target media file corresponding to the target video to the second server includes: and in the playing process of the target video, sending a notification message to the second server every time the target media file is played, wherein the notification message is used for notifying the second server that the target media file is played once, and the number of times the second server receives the notification message is the exposure of the target media file corresponding to the target video.
By adopting the embodiment of the invention, in the playing process of the target video, the second server sends the notification message once every time the target media file is played, and the second server can know the exposure of the target media file by counting the number of the received notification messages, so that the exposure of the target media file can be monitored by the second server without locally counting the exposure of the target media file at a user, the structure of the local SDK or the player of the user can be simplified, and the user can conveniently watch the target video by using the SDK or the player.
Optionally, during the playing process of the target video, the notification message may be sent once to the second server after the target media file is played once through the SDK or the player.
As an alternative example, the second server may be an exposure server, the target media file may include an advertisement file a, and during the playing of the target video, after the advertisement file a is played for the first time, the player sends a first notification message to the exposure server; after playing the advertisement file A for the second time, the player sends a second notification message to the exposure server; after playing the advertisement file a for the third time, the player sends a third notification message to the exposure server. Therefore, in the case where the advertisement file is played three times, the exposure amount server may receive the message notification three times, so that the exposure amount server may determine that the advertisement file a is played three times according to the received message notifications three times.
Alternatively, in the case where the target media file includes a plurality of media files, a corresponding notification message may be set for each media file.
As an alternative example, the second server may be an exposure server, and the target media file may include an advertisement file a corresponding to the notification message a and an advertisement file B corresponding to the notification message B. In the process of playing the target video, if the advertisement file a is played 4 times and the advertisement file B is played 5 times, 4 times of notification messages a and 5 times of notification messages B are sent to the second server. The second server may receive the notification message a 4 times and the notification message B5 times, and may determine that the exposure of the target media file is played for 4 times for the advertisement file a and 5 times for the advertisement file B.
As an alternative embodiment, the target media file is a media file in any one of the following forms: text files, picture files.
By adopting the embodiment of the invention, the text file or the picture file is used as the target media file, and the text file or the picture file is played in the process of fast forwarding or fast rewinding the target video.
It should be noted that, compared with the video file, the text file and the picture file have no time limit for displaying, and the time factor needs to be considered for displaying the video file. For example, the advertisement a is a video file, the playing time of the advertisement is 30 seconds, if the target playing time period is 5 seconds at an abnormal playing speed, the advertisement a cannot be played, and the advertisement of the text file or the picture file can be completely displayed without considering a time factor during playing, so that the complete exposure of the advertisement can be ensured, and the user experience can be enhanced.
The invention also provides a preferred embodiment, which provides a technical scheme of video push fast forward out-of-advertisement-fast forward advertisement.
In the video playing process, scenes using fast forward or fast backward are often encountered, but advertisements do not appear in the video in the fast forward or fast backward process, so that the advertisement display can be increased when a user fast forwards the video.
Optionally, the advertisement format can be presented in cooperation with a video SDK/player on the basis of the existing advertisement delivery background, and when the SDK/player detects that the user is dragging to fast forward, the SDK/player presents a preloaded fast forward advertisement.
Optionally, fast-forwarding the advertisement may add a request for advertisement type based on the existing system, and then the display time is controlled by the SDK; the SDK replaces the originally cached fast-forward advertisement (target media file) each time a new fast-forward advertisement is pulled.
FIG. 3 is a schematic diagram of an alternative fast forward advertising hardware environment according to an embodiment of the invention, as shown in FIG. 3, including an SDK or Player, a video advertisement engine background ad _ server, and an exposure server.
(1) And when the video starts to play, the fast forward advertisement (target media file), the video front patch advertisement and the video interface advertisement together request the video advertisement engine, and the order is selected by the video advertisement engine background ad _ server and then returned to the SDK or the player.
(2) After receiving the returned order, the SDK or the player plays the front paster advertisement and the video interface advertisement when the video starts to play, then caches the advertisement order of the fast forward advertisement, and if the fast forward advertisement order is cached before, the newly pulled fast forward advertisement order is replaced.
(3) When the SDK or the player monitors that the user sends the operation of dragging fast forward, the advertisement order of the fast forward advertisement is displayed.
(4) And reporting the exposure data of the fast forwarding advertisement order to an exposure server.
Optionally, fast-forward advertising may be supported in the SDK or player request; the SDK or player may take the type of fast forward ad when requesting the background.
Alternatively, the SDK or player may show fast forward advertisements; logic may be provided for the SDK or player to present the fast forward ad when a dragging fast forward is detected.
Optionally, the video advertisement engine background may support fast forward advertising: corresponding advertisement positions and advertisement types can be configured in a video advertisement engine, and then a menu of fast-forward advertisements can be performed and returned when requested by an SDK or a player;
alternatively, the foreground may bid in favor of fast forward advertisements.
Fig. 4 is a schematic diagram of an optional fast-forward advertisement being played in an APP application according to an embodiment of the present invention, as shown in fig. 4, a video file being played in the APP application, in the case of fast-forward playing of the video file, a key frame of the video file is shown in a middle dashed box of the player shown in fig. 4, so that a user can preview video content through content in the dashed box; in addition, fast forward advertisements are shown in solid boxes on both sides of the dashed box, wherein the fast forward advertisements may be in the form of text.
Fig. 5 is a schematic diagram of an optional fast-forward advertisement being played in a video website according to an embodiment of the present invention, and as shown in fig. 5, a video file is played in the video website, and when a progress bar is dragged to fast forward, the video file can be previewed in a dashed box at the bottom of a player, and at this time, the video file is not played, and the fast-forward advertisement is shown in an implementation box in the video player.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to the embodiment of the invention, the video playing device for implementing the video playing method is also provided. Fig. 6 is a schematic diagram of an alternative video playing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus may include: a receiving unit 61, configured to receive a video playing request, where the video playing request is used to request to play a target video; a first response unit 63, in which the user acquires the target media file from the first server in response to the video playing request; a detection unit 65 configured to detect a target operation in a playing process of a target video, wherein the target operation is used to instruct fast-forward or fast-reverse playing of the target video; and a second response unit 67 for playing the target media file in the course of fast-forwarding or fast-rewinding the playing target video in response to the target operation.
It should be noted that the receiving unit 61 in this embodiment may be configured to execute step S202 in embodiment 1 of this application, the first responding unit 63 in this embodiment may be configured to execute step S204 in embodiment 1 of this application, the detecting unit 65 in this embodiment may be configured to execute step S206 in embodiment 1 of this application, and the second responding unit 67 in this embodiment may be configured to execute step S208 in embodiment 1 of this application.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of embodiment 1 described above. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
As an alternative embodiment, as shown in fig. 7, the first response unit 63 may include: a first sending module 631, configured to send a media file request to a first server, where the media file request carries a target type identifier for indicating a target type; the receiving module 633 is configured to receive a target media file, which is sent by the first server and of which the type is the target type. Accordingly, the second response unit 67 may include: a searching module 671, configured to search, according to a target operation, a target media file of which the type is a target type, where the target operation and the target type have a corresponding relationship; the playing module 673 is configured to play the target media file during fast-forward or fast-rewind of the target video through a playing process.
As an alternative embodiment, as shown in fig. 8, the second response unit 67 includes at least one of: a first playing module 675 for playing only the target media file in the player; the second playing module 676 is configured to play the target media file in a first playing area of the player, and play the key frame in the target video segment in a second playing area of the player, where the target video segment is a video segment that is fast-forwarded or fast-rewound and played in the target video, and the player is provided with the first playing area and the second playing area.
As an alternative embodiment, as shown in fig. 9, the target media file includes a plurality of media files, wherein the second response unit 67 includes at least one of: a third playing module 677, configured to play the plurality of media files in sequence according to a predetermined playing order; the fourth playing module 678 is used for randomly selecting one media file from the multiple media files to play.
As an alternative embodiment, as shown in fig. 10, the apparatus further includes: a transmission unit 69 for transmitting the exposure amount of the target media file corresponding to the target video to the second server after playing the target media file in the course of fast-forwarding or fast-rewinding the played target video in response to the target operation.
As an alternative embodiment, as shown in fig. 11, the transmission unit 69 includes: an obtaining module 691, configured to obtain the playing times of the target media file after the target video is played; a transmission module 693, configured to transmit the playing frequency of the target media file to the second server as an exposure of the target media file corresponding to the target video.
As an alternative embodiment, as shown in fig. 12, the transmission unit 69 includes: the second sending module 695 is configured to send a notification message to the second server once each time the target media file is played in the playing process of the target video, where the notification message is used to notify the second server that the target media file is played once, and the number of times the second server receives the notification message is an exposure amount of the target media file corresponding to the target video.
As an alternative embodiment, as shown in fig. 13, the detection unit 65 may include at least one of: a first detection module 651, configured to detect a touch operation performed on a target button, where the target button is used to instruct fast forwarding or fast rewinding of a target video; the second detection module 653 is configured to detect a dragging operation of a play progress bar of the target video, where the play progress bar is used to indicate a play progress of the target video; the third detecting module 655 is configured to detect a voice operation instruction for the target video, where the voice operation instruction is used to instruct fast forwarding or fast rewinding the target video.
It should be noted here that the modules described above are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to the disclosure of embodiment 1 described above. It should be noted that the modules described above as a part of the apparatus may operate in a hardware environment as shown in fig. 1, and may be implemented by software or hardware.
Through the modules, a video playing request for requesting playing of a target video is received, a target media file is obtained from a first server in response to the video playing request, target operation is detected in the process of playing the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video, and the target media file is played when the target operation is detected. Under the condition that the target media file is the advertisement file, the advertisement file is played in the process of fast-forwarding or fast-rewinding playing of the target video, the advertisement file is more flexible in the process of putting the video, the technical problem that the exposure of the advertisement corresponding to the video is low due to the fact that the advertisement can only be played before the video starts to be played or after the video is played in the related technology can be solved, and the technical effect of increasing the exposure of the advertisement is achieved.
Example 3
According to the embodiment of the invention, the electronic device for implementing the video playing method is also provided.
Fig. 14 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 14, the electronic device may include: one or more processors 201 (only one of which is shown), a memory 203, and a transmission device 205, as shown in fig. 14, the electronic device may further include an input-output device 207.
The memory 203 may be used to store software programs and modules, such as program instructions/modules corresponding to the video playing method and apparatus in the embodiments of the present invention, and the processor 201 executes various functional applications and data processing by running the software programs and modules stored in the memory 203, that is, implements the video playing method described above. The memory 203 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 203 may further include memory located remotely from the processor 201, which may be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 205 is used for receiving or transmitting data via a network. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 205 includes a network adapter (NIC) that can be connected to a router via a network cable and other network devices to communicate with the internet or a local area network. In one example, the transmission device 205 is a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
Wherein the memory 203 is specifically used for storing application programs.
The processor 201 may call an application stored in the memory 203 to perform the following steps: receiving a video playing request, wherein the video playing request is used for requesting to play a target video; acquiring a target media file from a first server in response to a video playing request; detecting target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video; and playing the target media file in the process of fast-forwarding or fast-rewinding the played target video in response to the target operation.
The processor 201 is further configured to perform the following steps: sending a media file request to a first server, wherein the media file request carries a target type identifier for indicating a target type; receiving a target media file which is sent by a first server and of which the type is a target type; searching a target media file with the type as the target type according to the target operation, wherein the target operation and the target type have a corresponding relation; and playing the target media file in the process of fast-forwarding or fast-rewinding the played target video through the playing process.
The processor 201 is further configured to perform the following steps: only playing the target media file in the player; the method comprises the steps of playing a target media file in a first playing area in a player, and playing a key frame in a target video segment in a second playing area in the player, wherein the target video segment is a video segment which is played in a fast forward or fast backward mode in the target video, and the first playing area and the second playing area are arranged in the player.
The processor 201 is further configured to perform the following steps: sequentially playing a plurality of media files according to a preset playing sequence; and randomly selecting one media file from the plurality of media files to play.
The processor 201 is further configured to perform the following steps: and transmitting the exposure of the target media file corresponding to the target video to the second server.
The processor 201 is further configured to perform the following steps: after the target video is played, acquiring the playing times of the target media file; and transmitting the playing times of the target media file as the exposure of the target media file corresponding to the target video to the second server.
The processor 201 is further configured to perform the following steps: and in the playing process of the target video, sending a notification message to the second server every time the target media file is played, wherein the notification message is used for notifying the second server that the target media file is played once, and the number of times the second server receives the notification message is the exposure of the target media file corresponding to the target video.
The processor 201 is further configured to perform the following steps: detecting touch operation executed on a target button, wherein the target button is used for indicating fast forward or fast backward of a target video; detecting a dragging operation of a playing progress bar of the target video, wherein the playing progress bar is used for indicating the playing progress of the target video; and detecting a voice operation instruction for the target video, wherein the voice operation instruction is used for indicating fast forward or fast backward of the target video.
The embodiment of the invention provides a video playing scheme, which comprises the steps of receiving a video playing request for requesting to play a target video, responding to the video playing request to acquire a target media file from a first server, detecting a target operation in the process of playing the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video, and playing the target media file when the target operation is detected. Under the condition that the target media file is the advertisement file, the advertisement file is played in the process of fast-forwarding or fast-rewinding playing of the target video, so that the advertisement file is more flexible in the playing process of video playing, the technical problem that the advertisement exposure corresponding to the video is lower due to the fact that the advertisement can only be played before the video starts to be played or after the video is played in the related technology can be solved, and the technical effect of increasing the advertisement exposure is further achieved.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 14 is only an illustration, and the electronic device may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 14 is a diagram illustrating a structure of the electronic device. For example, the electronic device may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 14, or have a different configuration than shown in FIG. 14.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 4
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing a video playing method.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the above embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
s1, receiving a video playing request, wherein the video playing request is used for requesting to play a target video;
s2, responding to the video playing request, and acquiring the target media file from the first server;
s3, detecting a target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video;
s4, playing the target media file in fast-forwarding or fast-rewinding the playing target video in response to the target operation.
Optionally, the storage medium is further arranged to store program code for performing the steps of: sending a media file request to a first server, wherein the media file request carries a target type identifier for indicating a target type; receiving a target media file which is sent by a first server and of which the type is a target type; searching a target media file with the type as the target type according to the target operation, wherein the target operation and the target type have a corresponding relation; and playing the target media file in the process of fast-forwarding or fast-rewinding the played target video through the playing process.
Optionally, the storage medium is further arranged to store program code for performing the steps of: only playing the target media file in the player; the method comprises the steps of playing a target media file in a first playing area in a player, and playing a key frame in a target video segment in a second playing area in the player, wherein the target video segment is a video segment which is played in a fast forward or fast backward mode in the target video, and the first playing area and the second playing area are arranged in the player.
Optionally, the storage medium is further arranged to store program code for performing the steps of: sequentially playing a plurality of media files according to a preset playing sequence; and randomly selecting one media file from the plurality of media files to play.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and transmitting the exposure of the target media file corresponding to the target video to the second server.
Optionally, the storage medium is further arranged to store program code for performing the steps of: after the target video is played, acquiring the playing times of the target media file; and transmitting the playing times of the target media file as the exposure of the target media file corresponding to the target video to the second server.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and in the playing process of the target video, sending a notification message to the second server every time the target media file is played, wherein the notification message is used for notifying the second server that the target media file is played once, and the number of times the second server receives the notification message is the exposure of the target media file corresponding to the target video.
Optionally, the storage medium is further arranged to store program code for performing the steps of: detecting touch operation executed on a target button, wherein the target button is used for indicating fast forward or fast backward of a target video; detecting a dragging operation of a playing progress bar of the target video, wherein the playing progress bar is used for indicating the playing progress of the target video; and detecting a voice operation instruction for the target video, wherein the voice operation instruction is used for indicating fast forward or fast backward of the target video.
Optionally, the specific examples in this embodiment may refer to the examples described in embodiment 1 and embodiment 2, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other manners. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A video playback method, comprising:
receiving a video playing request, wherein the video playing request is used for requesting to play a target video, and the video playing request carries identification information of the target video;
acquiring a target media file associated with the identification information of the target video from a first server in response to the video playing request;
detecting a target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video; and
responding to the target operation to play the target media file in the process of fast-forwarding or fast-rewinding playing the target video;
wherein playing the target media file in fast-forward or fast-reverse playing the target video in response to the target operation comprises: playing the target media file in a first playing area in a player, and playing a key frame in a target video segment in a second playing area in the player, wherein the target video segment is a video segment which is played in a fast forward or fast backward mode in the target video, and the first playing area and the second playing area are arranged in the player;
wherein, after playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video in response to the target operation, transmitting the exposure of the target media file corresponding to the target video to a second server comprises: and in the playing process of the target video, sending a notification message to the second server once every time the target media file is played, wherein the notification message is used for notifying the second server that the target media file is played once, and the number of times the second server receives the notification message is the exposure of the target media file corresponding to the target video.
2. The method of claim 1,
the obtaining the target media file from the first server in response to the video playing request comprises: sending a media file request to the first server, wherein the media file request carries a target type identifier for indicating a target type; receiving the target media file which is sent by the first server and of which the type is the target type;
the playing the target media file in the process of fast-forwarding or fast-rewinding the played target video in response to the target operation comprises: searching the target media file with the target type according to the target operation, wherein the target operation and the target type have a corresponding relation; and playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video through a playing process.
3. The method of claim 1, wherein playing the target media file during fast forward or fast reverse play of the target video in response to the target operation further comprises:
only the target media file is played in the player.
4. The method of claim 1, wherein the target media file comprises a plurality of media files, and wherein playing the target media file during fast forward or fast reverse play of the target video in response to the target operation comprises at least one of:
sequentially playing the plurality of media files according to a preset playing sequence;
and randomly selecting one media file from the plurality of media files to play.
5. The method of claim 1, wherein transmitting the exposure of the target media file corresponding to the target video to a second server comprises:
after the target video is played, acquiring the playing times of the target media file;
and transmitting the playing times of the target media file to the second server as the exposure of the target media file corresponding to the target video.
6. The method according to any one of claims 1 to 5, wherein the detecting the target operation during the playing of the target video comprises at least one of:
detecting touch operation performed on a target button, wherein the target button is used for indicating fast forwarding or fast rewinding of the target video;
detecting a dragging operation of a playing progress bar of the target video, wherein the playing progress bar is used for indicating the playing progress of the target video;
and detecting a voice operation instruction on the target video, wherein the voice operation instruction is used for indicating fast forward or fast backward of the target video.
7. A video playback apparatus, comprising:
the device comprises a receiving unit, a processing unit and a processing unit, wherein the receiving unit is used for receiving a video playing request, the video playing request is used for requesting to play a target video, and the video playing request carries identification information of the target video;
a first response unit, configured to acquire, from a first server, a target media file associated with identification information of the target video in response to the video playback request;
the detection unit is used for detecting target operation in the playing process of the target video, wherein the target operation is used for indicating fast forward or fast backward playing of the target video; and
the second response unit is used for responding to the target operation and playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video;
the second response unit is further configured to play the target media file in a first play area in a player, and play a key frame in a target video segment in a second play area in the player, where the target video segment is a video segment that is fast-forwarded or fast-rewound and played in the target video, and the first play area and the second play area are set in the player;
the transmission unit is used for transmitting the exposure of the target media file corresponding to the target video to a second server after the target media file is played in the process of fast-forwarding or fast-rewinding playing of the target video in response to the target operation;
the transmission unit includes: and a second sending module, configured to send a notification message to the second server once each time the target media file is played in the playing process of the target video, where the notification message is used to notify the second server that the target media file is played once, and the number of times the second server receives the notification message is an exposure amount of the target media file corresponding to the target video.
8. The apparatus of claim 7,
the first response unit includes: a first sending module, configured to send a media file request to the first server, where the media file request carries a target type identifier for indicating a target type; a receiving module, configured to receive the target media file of the target type sent by the first server;
the second response unit includes: the searching module is used for searching the target media file with the target type according to the target operation, wherein the target operation and the target type have a corresponding relation; and the playing module is used for playing the target media file in the process of fast-forwarding or fast-rewinding playing the target video through a playing process.
9. The apparatus of claim 7, wherein the transmission unit comprises:
the acquisition module is used for acquiring the playing times of the target media file after the target video is played;
and the transmission module is used for transmitting the playing times of the target media file to the second server as the exposure of the target media file corresponding to the target video.
10. A storage medium, characterized in that the storage medium comprises a stored program, wherein the program when executed performs the method of any one of claims 1 to 6.
11. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor executes the method of any one of claims 1 to 6 by means of the computer program.
CN201710382154.5A 2017-05-25 2017-05-25 Video playing method and device, storage medium and electronic device Active CN107690081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710382154.5A CN107690081B (en) 2017-05-25 2017-05-25 Video playing method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710382154.5A CN107690081B (en) 2017-05-25 2017-05-25 Video playing method and device, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN107690081A CN107690081A (en) 2018-02-13
CN107690081B true CN107690081B (en) 2020-07-28

Family

ID=61152558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710382154.5A Active CN107690081B (en) 2017-05-25 2017-05-25 Video playing method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN107690081B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763375A (en) * 2018-05-17 2018-11-06 上海七牛信息技术有限公司 A kind of media file caching method, device and multimedia play system
CN108600779B (en) * 2018-05-18 2021-04-06 新华三信息技术有限公司 Target object operation method and device based on video content
CN110545467B (en) * 2018-05-29 2023-05-02 北京字节跳动网络技术有限公司 Media file loading control method, device and storage medium
CN109413474B (en) * 2018-12-19 2021-02-26 北京奇艺世纪科技有限公司 Online video playing acceleration method and device
CN109767771A (en) * 2019-03-04 2019-05-17 出门问问信息科技有限公司 A kind of playback progress control method, intelligent wearable device and multi-media display device
CN114640876B (en) * 2020-12-16 2024-04-09 腾讯科技(深圳)有限公司 Multimedia service video display method, device, computer equipment and storage medium
CN112990984A (en) * 2021-04-19 2021-06-18 广州欢网科技有限责任公司 Advertisement video recommendation method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290351B2 (en) * 2001-04-03 2012-10-16 Prime Research Alliance E., Inc. Alternative advertising in prerecorded media
CN103618920A (en) * 2013-11-29 2014-03-05 乐视网信息技术(北京)股份有限公司 Advertisement insertion method and player
CN104935981A (en) * 2015-06-17 2015-09-23 Tcl集团股份有限公司 Method and system for pushing advertising information
CN105744311A (en) * 2014-12-09 2016-07-06 深圳Tcl数字技术有限公司 Terminal and method for inserting advertisement in video application
CN105763951A (en) * 2014-12-19 2016-07-13 深圳Tcl数字技术有限公司 Advertisement insertion method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8290351B2 (en) * 2001-04-03 2012-10-16 Prime Research Alliance E., Inc. Alternative advertising in prerecorded media
CN103618920A (en) * 2013-11-29 2014-03-05 乐视网信息技术(北京)股份有限公司 Advertisement insertion method and player
CN105744311A (en) * 2014-12-09 2016-07-06 深圳Tcl数字技术有限公司 Terminal and method for inserting advertisement in video application
CN105763951A (en) * 2014-12-19 2016-07-13 深圳Tcl数字技术有限公司 Advertisement insertion method and device
CN104935981A (en) * 2015-06-17 2015-09-23 Tcl集团股份有限公司 Method and system for pushing advertising information

Also Published As

Publication number Publication date
CN107690081A (en) 2018-02-13

Similar Documents

Publication Publication Date Title
CN107690081B (en) Video playing method and device, storage medium and electronic device
TWI581625B (en) Information transmitting method and system thereof
US9432431B2 (en) Manifest re-assembler for a streaming video channel
US20140040026A1 (en) Systems and methods for including advertisements in streaming content
US11153658B2 (en) Image display method and generating method, device, storage medium and electronic device
US20120083256A1 (en) System and Method for Managing Data Sharing Over a Hotspot Network
US20130263182A1 (en) Customizing additional content provided with video advertisements
CN104822090A (en) Video playing method, device and system
CN110166838A (en) Advertisement, which plays, launches control method, display equipment and server
US9807447B2 (en) Intelligent scheduling of DVR commands and DVR client status updates
CN110673833A (en) Information management system and advertisement putting platform applied to programmed advertisement putting
CN106412106B (en) Message sending method and device
CN111954005B (en) Multimedia resource transmission method and device
US10643239B2 (en) Monitoring an application on a processing device and generating rewards
CN107690080B (en) media information playing method and device
CN112312145B (en) Access server, burst traffic caching method, system, computer device and readable storage medium
CN110798701B (en) Video update pushing method and terminal
US10783552B2 (en) Method and apparatus for managing advertisements
CN104581337A (en) Play control method and device for videos
CN109767268A (en) A kind of advertisement sending method, device, storage medium and computer equipment
US8745650B1 (en) Content segment selection based on time-shifted content viewing
WO2017032237A1 (en) Method and device for refreshing playlist
CN113568616A (en) Data processing method, device, equipment and medium
CN114025184A (en) Video live broadcast method and electronic equipment
WO2018103977A1 (en) Delivery of media content

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
GR01 Patent grant
GR01 Patent grant