WO2023103325A1 - 视频预览方法及装置 - Google Patents

视频预览方法及装置 Download PDF

Info

Publication number
WO2023103325A1
WO2023103325A1 PCT/CN2022/099677 CN2022099677W WO2023103325A1 WO 2023103325 A1 WO2023103325 A1 WO 2023103325A1 CN 2022099677 W CN2022099677 W CN 2022099677W WO 2023103325 A1 WO2023103325 A1 WO 2023103325A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
cover
player
preview
Prior art date
Application number
PCT/CN2022/099677
Other languages
English (en)
French (fr)
Inventor
杨志博
刘浩
Original Assignee
上海哔哩哔哩科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 上海哔哩哔哩科技有限公司 filed Critical 上海哔哩哔哩科技有限公司
Publication of WO2023103325A1 publication Critical patent/WO2023103325A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • 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

Definitions

  • the present application relates to the technical field of video processing, in particular to a video preview method.
  • the present application also relates to a video preview device, a computing device, a computer-readable storage medium, and a computer program product.
  • each video can be displayed on the video preview page, and each video displays a single static picture cover or multiple picture frames for users to locate the videos they are interested in.
  • the picture frame is only a rough outline of the video content, and incomplete content may lead to incomplete interpretation of the video by the user, and the picture frame is intercepted from the video, with limited definition, unable to adapt to different screen sizes, and unable to support live video , leading to poor video preview effect, users cannot quickly and accurately select the video they are interested in, resulting in frequent playback and exit, and a high rate of false playback.
  • an embodiment of the present application provides a video preview method.
  • the present application also relates to a video preview device, a computing device, a computer-readable storage medium, and a computer program product, so as to solve the problem of poor video preview effect and high error playback rate existing in the prior art. technical problem.
  • a video preview method including:
  • the video preview page includes the video covers of at least two videos, and each video cover is provided with a page container, and the page container is used for Detect the preview operation corresponding to the video cover;
  • the operation duration reaches the duration threshold, determine the player container associated with the page container of the target video cover, where the player container is used to carry the target player for playing the video content;
  • a video preview device including:
  • the detection module is configured to detect the preview operation for the target video cover in the video preview page, and determine the operation duration of the preview operation, wherein the video preview page includes the video covers of at least two videos, and each video cover is provided with a page Container, the page container is used to detect the preview operation of the corresponding video cover;
  • the determination module is configured to determine the player container associated with the page container of the cover of the target video when the operation duration reaches the duration threshold, wherein the player container is used to carry the target player for playing the video content;
  • the playing module is configured to load the target player carried in the player container, and play the video content corresponding to the target video cover at the cover of the target video through the target player.
  • a computing device including:
  • the memory is used to store computer-executable instructions
  • the processor is used to execute computer-executable instructions to implement the following methods:
  • the video preview page includes the video covers of at least two videos, and each video cover is provided with a page container, and the page container is used for Detect the preview operation corresponding to the video cover;
  • the operation duration reaches the duration threshold, determine the player container associated with the page container of the target video cover, where the player container is used to carry the target player for playing the video content;
  • a computer-readable storage medium which stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, the steps of any video preview method are implemented.
  • a computer program product is provided, and when the computer program product is executed in a computer, it causes the computer to execute any of the steps of the above-mentioned video preview method.
  • the video preview method provided by this application can detect the preview operation for the target video cover in the video preview page, and determine the operation duration of the preview operation, wherein the video preview page includes the video covers of at least two videos, and each video cover A page container is set, and the page container is used to detect the preview operation of the corresponding video cover; when the duration of the operation reaches the duration threshold, determine the player container associated with the page container of the target video cover, where the player container is used to host the playback The target player of the video content; load the target player carried in the player container, and use the target player to play the video content corresponding to the cover of the target video at the cover of the target video.
  • each video cover included in the video preview page is provided with a corresponding page container, which can provide detection capabilities for the preview operation of the corresponding video cover, that is, the page container of the target video cover can detect Preview operation, when the operation duration of the preview operation reaches the duration threshold, the player container associated with the page container of the target video cover can be determined, and the target video cover corresponding to the target video cover can be played on the target video cover through the target player carried in the player container of video content.
  • the user only needs to perform a preview operation on any video cover on the video preview page, and the corresponding complete video content can be automatically previewed on the video cover, which is convenient for the user to fully interpret the video, and the preview process is to directly play the original complete video
  • the content does not require screenshots, can adapt to screens with different resolutions, and can also support live videos, which greatly improves the video preview effect. Users can preview the complete video content on the video preview page, so that they can quickly and accurately determine whether they are interested.
  • the operation duration of the preview operation reaches the duration threshold, the corresponding player is called to play the corresponding video content on the video cover for preview, avoiding misoperation during the sliding process , saving playback resources.
  • Fig. 1 is a flow chart of a video preview method provided by an embodiment of the present application
  • Fig. 2 is a schematic diagram of a video preview page provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a playback flow of a video content provided by an embodiment of the present application.
  • FIG. 4 is a flowchart of another video preview method provided by an embodiment of the present application.
  • Fig. 5 is a schematic structural diagram of a video preview device provided by an embodiment of the present application.
  • Fig. 6 is a structural block diagram of a computing device provided by an embodiment of the present application.
  • first, second, etc. may be used to describe various information in one or more embodiments of the present application, the information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, first may also be referred to as second, and similarly, second may also be referred to as first, without departing from the scope of one or more embodiments of the present application. Depending on the context, the word “if” as used herein may be interpreted as “at” or “when” or “in response to a determination.”
  • a video preview method is provided, and the present application also relates to a video preview device, a computing device, a computer-readable storage medium, and a computer program product, which are described in the following embodiments one by one Describe in detail.
  • Figure 1 shows a flow chart of a video preview method provided according to an embodiment of the present application, which specifically includes the following steps:
  • Step 102 Detect the preview operation for the target video cover in the video preview page, and determine the operation duration of the preview operation, wherein the video preview page includes the video covers of at least two videos, and each video cover is provided with a page container, page The container is used to detect the preview operation corresponding to the video cover.
  • the video preview page may refer to a page that includes multiple videos for users to choose to play.
  • the video preview page displays the video cover of the video.
  • the picture frame intercepted in the content the user clicks to select a video cover to enter the video playback interface corresponding to the video cover.
  • the target video cover is any one of multiple video covers included in the video preview page, each video cover corresponds to a page container, and the page container, that is, cardContainer, can provide detection capabilities for the preview operation of the corresponding video cover , that is, the page container can detect whether the preview operation of the corresponding video cover is received.
  • the preview operation may refer to a preset operation of previewing video content corresponding to a certain video cover.
  • the preview operation for the cover of the target video can refer to the operation of controlling the selection control to move into the cover of the target video.
  • the page container can provide a playback entry through its own mouse event, that is, it can detect the mouse-in event ( mouseenter), the user can operate the mouse so that the selection control controlled by the mouse moves into the target video cover, and at this time, the preview operation for the target video cover is detected; or, the page container can also detect the keyboard control signal, that is, the user can operate the keyboard , so that the selection control controlled by the keyboard moves into the cover of the target video, and at this time, the preview operation for the cover of the target video is detected.
  • the page container can also detect the keyboard control signal, that is, the user can operate the keyboard , so that the selection control controlled by the keyboard moves into the cover of the target video, and at this time, the preview operation for the cover of the target video is detected.
  • the screen slide can be controlled by a finger or a touch pen to select a video corresponding to a certain video cover for playback, so the preview operation for the target video cover can also be It is the operation of touching the cover of the target video with a finger or a touch pen, that is, when a finger or a touch pen touches the cover of the target video, a preview operation for the cover of the target video is detected; or, the preview operation for the cover of the target video can also be sliding the cover of the target video The operation to the page edge, etc., that is, when the target video cover slides to the page edge of the video page, a preview operation for the target video cover is detected.
  • the video preview page can include multiple video covers, and a page container is set at the position of each video cover, and each page container can determine whether a preview operation is detected, and the video cover corresponding to the page container where the preview operation is detected It is the cover of the target video, and the player carried in the player container associated with the page container can be called later to play the complete video content corresponding to the cover of the target video for preview, thereby improving the preview effect.
  • the preview operation for the target video cover may be triggered by mistake. Therefore, in order to avoid false triggering, the preview operation can also be determined. Duration, follow-up can determine whether the detected preview operation for the target video cover is a misoperation based on the duration of the operation. If it is not a misoperation, then play the corresponding video content to improve the accuracy of the preview and save playback resources.
  • the duration of the operation is the duration for which the selection control is located in the cover of the target video; if the preview operation is the operation of touching the cover of the target video with a finger or a touch pen, then The duration of the operation may be the duration of touching the cover of the target video; if the preview operation is an operation of sliding the cover of the target video to the edge of the page, the duration of the operation may be the duration of the cover of the target video at the edge of the page.
  • FIG. 2 is a schematic diagram of a video preview page provided by an embodiment of the present application.
  • the video preview page includes video covers of 6 videos, namely video cover 1, video cover 2, video Cover 3, video cover 4, video cover 5, and video cover 6, wherein, video cover 1 is provided with page container 1, video cover 2 is provided with page container 2, video cover 3 is provided with page container 3, and video cover 4 A page container 4 is set at , a page container 5 is set at the video cover 5 , and a page container 6 is set at the video cover 6 .
  • page container 3 detects a mouse-in event (i.e. preview operation)
  • the target video cover is video cover 3.
  • players corresponding to each video can also be pre-packaged and created, and associated with the page container, so that when the preview operation for the target video cover in the video preview page is detected, it can be accessed through Before the corresponding player plays the video content, that is, before detecting the preview operation for the target video cover on the video preview page, it may also include:
  • the target player create a player container, and embed the player container as a child element of the page container of the target video cover.
  • Metadata also known as intermediary data and relay data
  • data describing data data about data
  • data attributes property information
  • video metadata that is, option
  • the playback parameters ie, config
  • the target video cover can refer to any video cover on the video preview page.
  • the video metadata and playback parameters of the corresponding video content can be obtained, and then according to the obtained video metadata and playback parameters parameter, create a target player for the video content corresponding to the target video cover, and the target player can be used to play the video content corresponding to the target video cover later.
  • a player container may also be created according to the target player, that is, the player container is used to carry the created target player.
  • the player container can be associated with the page container, so that after the page container detects the preview operation, the associated player container can be found, and the player contained therein can be called to play the corresponding video content.
  • the corresponding creation method can be called based on the programming language to create a corresponding player container, that is, the player container (playerContainer), which can carry the created target video cover corresponding to The target player for the video content.
  • playerContainer the player container
  • the container container is associated with the page container.
  • the video preview page includes video covers of multiple videos, and the content, type, and duration of the videos corresponding to each video cover are different. Therefore, a corresponding player can be created for each video cover and carried on the In the corresponding player container, the page container corresponding to the video cover is associated, so that the video content of the video cover can be played later by the corresponding player.
  • players corresponding to different video types before creating the target player for the video content corresponding to the cover of the target video, players corresponding to different video types can also be pre-packaged, that is, according to the video metadata and playback parameters, create the target player Before the target player of the video content corresponding to the video cover, it can also include:
  • the video metadata and playback parameters create a target player for the video content corresponding to the cover of the target video.
  • the specific implementation process can be as follows:
  • the target video type call the player instance corresponding to the target video type among at least two pre-packaged player instances corresponding to the video type, and combine the content identifier and playback parameters to create the target player corresponding to the cover of the target video.
  • the video type may refer to the playback type of the video.
  • the video type may be a live broadcast type or an on-demand type.
  • An instance may be called an object, and an object is called an instance.
  • Instantiation refers to the process of instantiating an object.
  • a player instance may refer to an encapsulated player object.
  • videos of different video types often need to be played by different players, so at least two player instances corresponding to video types can be pre-packaged, and each pre-packaged player instance returns a unified method for Called when a player corresponding to a certain video is subsequently created, that is, different players can be instantiated later based on information about the specific video content of a certain video.
  • the on-demand player and the live player can be encapsulated separately in a unified standard, and each returns a unified method of replay (loading), connect (initialization), close (close) and so on.
  • the video metadata can be parsed to determine the target video type and content identifier corresponding to the target video cover, where the target video type refers to the type of video content corresponding to the target video cover, and the corresponding type of player instance can be called subsequently.
  • the content identifier may refer to the identifier of the video content corresponding to the cover of the target video, based on which the video content corresponding to the cover of the target video can be obtained, and the content identifier may be the storage address of the video content corresponding to the cover of the target video, or the file Name ID etc.
  • the target video type call the player instance corresponding to the target video type among at least two pre-packaged player instances corresponding to the video type, combine the content identifier and playback parameters, and create the target player corresponding to the cover of the target video.
  • the created target player is a player capable of playing the video content corresponding to the cover of the target video.
  • the intermediate operation layer in addition to pre-encapsulating at least two player instances corresponding to video types, can also be encapsulated, that is, after encapsulating at least two player instances corresponding to video types , which can also include:
  • An intermediate operation layer is encapsulated, wherein the intermediate operation layer is used to determine the playback operation corresponding to the detected preview operation.
  • the intermediate operation layer can receive the preview operation detected by the page container, and based on the preview operation, combined with the preset control strategy (such as delay strategy, anti-shake strategy, etc.), control the player container associated with the page container In the target player, such as initialization, play, pause, etc., so as to realize the control of the target player.
  • the preset control strategy such as delay strategy, anti-shake strategy, etc.
  • the encapsulated intermediate operation layer carries modules such as mouselns (mouse operation state instance), playerEvents (player life cycle event instance), player (player instance).
  • mouselns mouse operation state instance
  • player player instance
  • playerEvents a player life cycle event instance
  • the middle operation layer can record and pass the corresponding life cycle state to the outer page container through the CustomEvent (custom event) of JS (JavaScript).
  • the preview operation can be synchronized to the pre-packaged intermediate operation layer, and the duration of the preview operation can be determined through the intermediate operation layer , so as to determine whether the preview operation detected by the page container is a misoperation, and further determine what operation the target player corresponding to the video content controlling the cover of the target video performs.
  • the page container can provide a carrier, and the mouse event of the carrier can be used as the entry and exit of the playback operation (mouseenter-mouse movement time, mouseleave event), after the mouse event is triggered, it will respond to the middle operation layer, the middle operation layer After receiving the instruction given by the mouse event, it can combine its own preset strategy to notify the player to play the corresponding video content.
  • the mouse event of the carrier can be used as the entry and exit of the playback operation (mouseenter-mouse movement time, mouseleave event), after the mouse event is triggered, it will respond to the middle operation layer, the middle operation layer After receiving the instruction given by the mouse event, it can combine its own preset strategy to notify the player to play the corresponding video content.
  • the video preview page may include multiple video covers, and a page container is set at the position of each video cover, each page container can determine whether a preview operation is detected, and the page container corresponding to the preview operation is detected
  • the video cover is the cover of the target video, and the player carried in the player container associated with the page container can be called later to play the complete video content corresponding to the cover of the target video for preview, thereby improving the preview effect.
  • the operation duration of the preview operation can also be determined, so as to facilitate the follow-up to determine whether the detected preview operation for the target video cover is a misoperation based on the operation duration, and then play the corresponding video content if it is not a misoperation , improve preview accuracy and save playback resources.
  • Step 104 When the duration of the operation reaches the duration threshold, determine the player container associated with the page container of the cover of the target video, where the player container is used to carry the target player playing the video content.
  • the duration threshold may refer to a preset value for judging whether the preview operation is a wrong operation, for example, the duration threshold may be 200 ms, 300 ms, or the like.
  • the duration of the operation does not reach the duration threshold, it means that the detected preview operation may be just an operation for the user to slide the video preview page normally, and it is not intended to preview the video content corresponding to the cover of the target video. Respond to detected preview actions. If the duration of the operation reaches the duration threshold, it means that the detected preview operation is an operation triggered by the user wanting to preview the video content corresponding to the cover of the target video. At this time, the player container associated with the page container of the cover of the target video can be determined, so as to facilitate Subsequently, the corresponding video content is played through the target player hosted in the player container associated with the page container for preview.
  • the page container can synchronize the detected preview operation to the intermediate operation layer, and the intermediate operation layer can determine whether the duration of the operation reaches the duration threshold, so as to determine whether Call the player container associated with the page container of the target video cover to control the player to play.
  • the intermediate operation layer can be preset with a delay policy, and only when the operation duration of the preview operation reaches the duration threshold, the corresponding player is called to play the corresponding video content on the video cover for preview, avoiding Misoperation during the sliding process is avoided, and playback resources are saved.
  • Step 106 Load the target player carried in the player container, and use the target player to play the video content corresponding to the cover of the target video at the cover of the target video.
  • the target player carried in the player container can be loaded, and the video content corresponding to the target video cover can be played on the target video cover through the target player , to play the complete video content directly on the cover of the target video on the video preview page for users to preview.
  • the video content corresponding to the target video cover can include the audio and video data of the video corresponding to the target video cover, and can also include the bullet chat data in the video corresponding to the target video cover, that is, the bullet chat data in the video corresponding to the target video cover can also You can follow the progress of the video and play it on the cover of the target video on the video preview page for users to preview, thereby enhancing the interactive experience of the content.
  • the audio and video data and barrage data of the video corresponding to video cover 3 can be played at the position of video cover 3 on the video preview page through the target player corresponding to video cover 3, so that users can directly play on the video preview page Preview the complete content of the corresponding video at the position of video cover 3 in .
  • the user only needs to perform a preview operation on any video cover on the video preview page, and the corresponding complete video content can be automatically previewed at the video cover, which is convenient for the user to fully interpret the video, and the preview process is directly played
  • the original and complete video content does not require screenshots, can adapt to screens with different resolutions, and can also support live videos, which greatly improves the video preview effect. Users can preview the complete video content on the video preview page, so that they can quickly and accurately Determine whether you are interested and reduce the false play rate.
  • the player when controlling the player to play the corresponding video content, it is also possible to first determine whether the player has completed initialization, that is, load the target player carried in the player container, and use the target player in the The video content corresponding to the target video cover is played on the cover of the target video.
  • the specific implementation process can be as follows:
  • the target player may be initialized first, and after initialization, the target player is then controlled to play the video content corresponding to the target video cover at the cover of the target video.
  • the initialization after the initialization is completed, it is also possible to determine whether the current user has the video playback authority, and then control the player to play the corresponding video content, that is, play the target video at the cover of the target video through the target player Before the video content corresponding to the cover, it can also include:
  • the video content corresponding to the cover of the target video is paused at the cover of the target video.
  • the target player since some videos require playback permission to play, such as paid videos, member videos, and videos corresponding to different user levels, etc., after the target player is successfully initialized, it can also be determined whether the user who triggered the preview operation has The playback permission of the video content corresponding to the cover of the target video. For example, if the video content corresponding to the cover of the target video is a member video, it can be determined at this time whether the user who triggered the preview operation is logged in.
  • the preview operation may also be canceled. Therefore, after determining that the user has the playback permission, it is also possible to determine whether the preview operation is cancelled, so as to determine whether it is necessary to continue to control the target player to play the target on the cover of the target video.
  • to determine whether the preview operation is canceled can be to determine whether it is detected that the selection control moves out of the cover of the target video, for example, for the preview operation is a mouse-in event, Determines whether the preview operation is canceled, can be to determine whether a mouse out event is detected.
  • the preview operation is an operation in which a finger or touch pen touches the cover of the target video
  • to determine whether the preview operation is canceled may be to determine whether the finger or touch pen is lifted; for the preview operation, the operation is to slide the cover of the target video to the edge of the page , to determine whether the preview operation is cancelled, which can be to determine whether the cover of the target video is far from the page edge of the video page.
  • the preview operation if the preview operation is not cancelled, it means that the user wants to continue to preview the corresponding video content at the cover of the target video, so at this time, the video content corresponding to the cover of the target video can be played on the cover of the target video through the target player If it is detected that the preview operation is cancelled, it means that the user does not need to continue to preview the corresponding video content at the target video cover, so at this time, the video content corresponding to the target video cover can be paused at the target video cover, but it does not Without closing the player, when the preview operation corresponding to the target video cover is detected again, the player can be directly controlled to play the corresponding video content, which is convenient for the user to preview the video content corresponding to the same video cover multiple times in a short period of time.
  • the time point at which the playback is paused can also be recorded for subsequent users to preview the video content corresponding to the target video cover again in a short period of time.
  • playback continues without replaying the video content corresponding to the cover of the target video from the beginning.
  • the target player can be directly controlled to play the corresponding video content without re-initialization, that is, after determining whether the initialization of the target player is completed, you can also include:
  • the video content corresponding to the target video cover is played again through the target player at the cover of the target video.
  • the target player is initialized last time, the video content corresponding to the cover of the target video is only paused at the cover of the target video, and the player is not closed, then when the preview operation corresponding to the cover of the target video is detected again, The target player has been initialized, and the player can be directly controlled to play the corresponding video content.
  • the video content corresponding to the cover of the target video can be played directly from the point in time when playback is paused at the cover of the target video by the target player.
  • the time interval between the operation time and the last pause of playing the video content corresponding to the cover of the target video is not greater than the interval threshold, then the time point of the last pause of playback can be obtained, and the video content corresponding to the cover of the target video can continue to be played from this point of time.
  • the user when the user previews the video content corresponding to the cover of the target video again in a short period of time, the user can directly locate and continue playing at the point in time when the playback was paused last time. There is no need to replay the video content corresponding to the cover of the target video from the beginning.
  • the user triggers the preview operation again it can be connected to the position where the playback was paused last time, which improves the user's viewing experience and saves playback resources.
  • the corresponding target player after the user cancels the preview operation for the cover of the target video, the corresponding target player is not closed, but the playback is only paused, so that the user can preview the video corresponding to the cover of the target video again in a short period of time.
  • content and if the user does not preview the video content corresponding to the target video cover for a long time, the corresponding target player can be closed, that is, after the target player plays the video content corresponding to the target video cover at the target video cover, you can also include:
  • the second preset duration can be a preset time period, which is used to determine whether the user initiates a preview operation again for a certain video cover within a period of time, such as the second preset duration can be 3 minutes, 5 minutes or 10 minutes wait.
  • the target player can pause to play the corresponding video content at the position of the cover of the target video, and then determine the second preset after canceling the preview operation Whether the preview operation for the target video cover is detected again within the duration. If so, it means that the user triggers the preview operation for the target video cover again and wants to preview the corresponding video content again.
  • the target player can be directly controlled without initializing the initialization
  • the completed target player plays the corresponding video content; if not, it means that the user has not triggered the preview operation for the cover of the target video again for a long time. At this time, the target player can be closed to save processing resources and space. If the user triggers the target video cover again later For the preview operation of the target video cover, the target player can be re-initialized to play the corresponding video content at the position of the video cover.
  • data related to the target player can be deleted to save memory space, such as player initialization data, running data, and time points for pausing playback.
  • Fig. 3 is a schematic diagram of a video content playback process provided by an embodiment of the present application.
  • the operation duration of the preview operation can be determined. If the preview If the operation duration of the operation does not reach the duration threshold, no action will be executed. If the operation duration of the preview operation reaches the duration threshold, determine the player container associated with the page container of the target video cover, and determine whether the target player carried in the player container has been initialized. If the initialization is not completed, initialize the target player. After the initialization is successful, determine whether you have the playback permission of the video content corresponding to the cover of the target video. If you have the playback permission, determine whether the preview operation is cancelled. If not, then play normally If the video content has been canceled, the video content will be paused; if the player does not have the permission to play, the player will be destroyed. If initialization fails, destroy the player.
  • the initialization has been completed, it means that the video content corresponding to the target video cover is paused. At this time, you can determine whether you have the playback permission of the video content corresponding to the target video cover. If you have the playback permission, determine whether the preview operation is cancelled. If not, Then jump to the beginning of the title and start playing the video content again. If it has been canceled, no action will be performed; if there is no playback permission, the player will be destroyed.
  • an event can be reported to the intermediate operation layer, so that the intermediate operation layer can record the life cycle status of the target player such as initialization, playback, and pause.
  • the playback operation of the target player can be controlled through the intermediate operation layer, that is, the target video cover is played at the target video cover by the target player.
  • the specific implementation process can be as follows:
  • the target player is controlled to play the video content corresponding to the cover of the target video at the cover of the target video.
  • the intermediate operation layer can receive the preview operation detected by the page container, and then determine the corresponding playback operation based on the preview operation, and control the working status of the target player according to the playback operation, such as initialization, playback, and pause.
  • the preview operation received by the intermediate operation layer is a mouse-in event
  • a preset delay policy can be pre-encapsulated in the intermediate operation layer.
  • the target player carried in the player container after loading the target player carried in the player container, and playing the video content corresponding to the target video cover at the target video cover through the target player, it may also include:
  • the loading state of the target player may include whether initialization is completed, and the playing state includes playing, pausing, and other states.
  • the target player after the target player executes the corresponding operation, it can also return the execution result to the intermediate operation layer, that is, life cycle states such as loading status and/or playback status, and the intermediate operation layer can record the received loading status and/or playback status. Status, etc., and feed back to the outer page container.
  • the outer page container information such as the number of loading times of the target player corresponding to each video cover can be counted for analysis.
  • the preview operation of the cover that is, before loading the target player hosted in the player container, can also include:
  • the first preset duration may refer to a preset time period, which is used to determine whether the user triggers the preview operation on the target video cover multiple times in a short period of time.
  • the first preset duration may be 1 second, 5 seconds, 8 seconds and so on.
  • the detected preview operation is the first preview operation detected for the target video cover within the first preset duration, and if so, it indicates that the detected The preview operation received is the first preview operation initiated by the user on the cover of the target video in a short period of time.
  • the target player carried in the player container can be loaded, and the cover of the target video can be played on the cover of the target video through the target player. corresponding video content. If not, it means that the user has initiated multiple preview operations on the cover of the target video in a short period of time, and only respond when the user initiates a preview operation on the cover of the target video for the first time.
  • each video cover included in the video preview page is provided with a corresponding page container
  • the page container can provide detection capabilities for the preview operation of the corresponding video cover, that is, the page container of the target video cover
  • the preview operation can be detected, and when the operation duration of the preview operation reaches the duration threshold, the player container associated with the page container of the target video cover can be determined, and the target player carried in the player container can play the target at the cover of the target video
  • the video content corresponding to the video cover is
  • the user only needs to perform a preview operation on any video cover on the video preview page, and the corresponding complete video content can be automatically previewed on the video cover, which is convenient for the user to fully interpret the video, and the preview process is to directly play the original complete video
  • the content does not require screenshots, can adapt to screens with different resolutions, and can also support live videos, which greatly improves the video preview effect. Users can preview the complete video content on the video preview page, so that they can quickly and accurately determine whether they are interested. interests and reduce the false play rate.
  • the corresponding player is called to play the corresponding video content on the video cover for preview, which avoids misoperations during the sliding process and saves playback resources.
  • it is sufficient to respond only when the user initiates a preview operation on the cover of the target video for the first time, so as to avoid frequently playing the video content corresponding to the cover of the target video at the cover of the target video in a short period of time and save playback resources.
  • FIG. 4 shows a flow chart of another video preview method provided by an embodiment of the present application, which specifically includes the following steps:
  • Step 402 Encapsulate the player instances corresponding to the live broadcast type and the on-demand type respectively, and each player instance returns a unified method.
  • Step 404 Encapsulate the intermediate operation layer, wherein the intermediate operation layer is used to determine the playback operation corresponding to the detected preview operation.
  • Step 406 For each video cover included in the video preview page, obtain the video metadata and playback parameters corresponding to the video cover.
  • Step 408 Parse the video metadata, and determine the type and content identifier of the target video corresponding to the cover of the target video.
  • Step 410 According to the target video type, call the player instance corresponding to the target video type among the player instances corresponding to the pre-packaged live broadcast type and on-demand type, and create a target player corresponding to the target video cover in combination with the content identifier and playback parameters.
  • Step 412 Create a player container according to the target player.
  • Step 414 Embed the player container as a sub-element of the page container of the target video cover by calling the Append method in the HTML, so as to associate the player container with the page container.
  • Step 416 Monitor the mouse-in event through the page container set at each video cover on the video preview page.
  • Step 418 The page container that has detected the mouse-in event synchronizes the mouse-in event to the intermediate operation layer, and determines whether the operation duration of the mouse-in event reaches the duration threshold through the intermediate operation layer.
  • Step 420 When the duration of the operation reaches the duration threshold, determine the playback operation corresponding to the mouse-in event through the encapsulated intermediate operation layer, load the target player carried in the player container associated with the page container, and play according to the playback operation. Operation, control the target player to play the video content corresponding to the cover of the target video at the cover of the target video.
  • the target video cover is the video cover corresponding to the page container where the mouse-in event is detected.
  • the preview operation of the cover that is, before loading the target player hosted in the player container, can also include:
  • Step 422 Monitor the mouse out event through the page container, and when the mouse out event is detected, control the target player to pause and play the video content corresponding to the target video cover at the cover of the target video.
  • Step 424 The target player returns the loading state and/or playing state to the intermediate operation layer, and feeds back the loading state and/or playing state to the page container through the intermediate operation layer.
  • each video cover included in the video preview page is provided with a corresponding page container
  • the page container can provide detection capabilities for the preview operation of the corresponding video cover, that is, the page container of the target video cover
  • the preview operation can be detected, and when the operation duration of the preview operation reaches the duration threshold, the player container associated with the page container of the target video cover can be determined, and the target player carried in the player container can play the target at the cover of the target video
  • the video content corresponding to the video cover is
  • the user only needs to perform a preview operation on any video cover on the video preview page, and the corresponding complete video content can be automatically previewed on the video cover, which is convenient for the user to fully interpret the video, and the preview process is to directly play the original complete video
  • the content does not require screenshots, can adapt to screens with different resolutions, and can also support live videos, which greatly improves the video preview effect. Users can preview the complete video content on the video preview page, so that they can quickly and accurately determine whether they are interested. interests and reduce the false play rate.
  • the corresponding player is called to play the corresponding video content on the video cover for preview, which avoids misoperations during the sliding process and saves playback resources.
  • it only needs to respond when the user initiates a preview operation on the cover of the target video for the first time, so as to avoid frequently playing the video content corresponding to the cover of the target video at the cover of the target video in a short period of time, and save playback resources.
  • FIG. 5 shows a schematic structural diagram of a video preview device provided by an embodiment of the present application. As shown in Figure 5, the device includes:
  • the detection module 502 is configured to detect the preview operation for the cover of the target video in the video preview page, and determine the operation duration of the preview operation, wherein the video preview page includes at least two video covers of the video, and each video cover is provided with Page container, the page container is used to detect the preview operation of the corresponding video cover;
  • the determination module 504 is configured to determine the player container associated with the page container of the cover of the target video when the operation duration reaches the duration threshold, wherein the player container is used to carry the target player for playing the video content;
  • the playing module 506 is configured to load the target player carried in the player container, and use the target player to play the video content corresponding to the cover of the target video at the cover of the target video.
  • the device further includes a creation module configured to:
  • the target player create a player container, and embed the player container as a child element of the page container of the target video cover.
  • the create module is further configured to:
  • the target video type call the player instance corresponding to the target video type among at least two pre-packaged player instances corresponding to the video type, and combine the content identification and playback parameters to create a target player corresponding to the cover of the target video.
  • the create module is further configured to:
  • the playback module 506 is further configured to:
  • the target player is controlled to play the video content corresponding to the cover of the target video at the cover of the target video.
  • the device further includes an execution module configured to:
  • the playback module 506 is further configured to:
  • the playback module 506 is further configured to:
  • the video content corresponding to the cover of the target video is paused at the cover of the target video.
  • the playback module 506 is further configured to:
  • the video content corresponding to the target video cover is played again through the target player at the cover of the target video.
  • the device also includes a detection module configured to:
  • the device also includes a feedback module configured to:
  • each video cover included in the video preview page is provided with a corresponding page container, which can provide detection capabilities for the preview operation of the corresponding video cover, that is, the page container of the target video cover
  • the preview operation can be detected, and when the operation duration of the preview operation reaches the duration threshold, the player container associated with the page container of the target video cover can be determined, and the target player carried in the player container can play the target at the cover of the target video
  • the video content corresponding to the video cover is provided with a corresponding page container, which can provide detection capabilities for the preview operation of the corresponding video cover, that is, the page container of the target video cover.
  • the user only needs to perform a preview operation on any video cover on the video preview page, and the corresponding complete video content can be automatically previewed on the video cover, which is convenient for the user to fully interpret the video, and the preview process is to directly play the original complete video
  • the content does not require screenshots, can adapt to screens with different resolutions, and can also support live videos, which greatly improves the video preview effect. Users can preview the complete video content on the video preview page, so that they can quickly and accurately determine whether they are interested.
  • the operation duration of the preview operation reaches the duration threshold, the corresponding player is called to play the corresponding video content on the video cover for preview, avoiding misoperation during the sliding process , saving playback resources.
  • Fig. 6 shows a structural block diagram of a computing device provided according to an embodiment of the present application.
  • Components of the computing device 600 include, but are not limited to, memory 610 and processor 620 .
  • the processor 620 is connected to the memory 610 through the bus 630, and the database 650 is used for storing data.
  • Computing device 600 also includes an access device 640 that enables computing device 600 to communicate via one or more networks 660 .
  • networks include the Public Switched Telephone Network (PSTN), Local Area Network (LAN), Wide Area Network (WAN), Personal Area Network (PAN), or a combination of communication networks such as the Internet.
  • Access device 640 may include one or more of any type of network interface (e.g., a network interface card (NIC)), wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, Worldwide Interoperability for Microwave Access ( Wi-MAX) interface, Ethernet interface, Universal Serial Bus (USB) interface, cellular network interface, Bluetooth interface, Near Field Communication (NFC) interface, etc.
  • NIC network interface card
  • the above-mentioned components of the computing device 600 and other components not shown in FIG. 6 may also be connected to each other, for example, through a bus. It should be understood that the structural block diagram of the computing device shown in FIG. 6 is only for the purpose of illustration, rather than limiting the scope of the application. Those skilled in the art can add or replace other components as needed.
  • Computing device 600 may be any type of stationary or mobile computing device, including mobile computers or mobile computing devices (e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.), mobile telephones (e.g., smartphones), ), wearable computing devices (eg, smart watches, smart glasses, etc.), or other types of mobile devices, or stationary computing devices such as desktop computers or PCs.
  • mobile computers or mobile computing devices e.g., tablet computers, personal digital assistants, laptop computers, notebook computers, netbooks, etc.
  • mobile telephones e.g., smartphones
  • wearable computing devices eg, smart watches, smart glasses, etc.
  • desktop computers or PCs e.g., desktop computers or PCs.
  • Computing device 600 may also be a mobile or stationary server.
  • processor 620 is configured to execute the following computer-executable instructions to implement the following methods:
  • the video preview page includes the video covers of at least two videos, and each video cover is provided with a page container, and the page container is used for Detect the preview operation corresponding to the video cover;
  • the operation duration reaches the duration threshold, determine the player container associated with the page container of the target video cover, where the player container is used to carry the target player for playing the video content;
  • An embodiment of the present application also provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to implement the steps of any video preview method when executed by a processor.
  • An embodiment of the present application also provides a computer program product, which, when the computer program product is executed in a computer, causes the computer to execute any of the steps of the above-mentioned video preview method.
  • Computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form.
  • the computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, removable hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal and software distribution medium, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Social Psychology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Software Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本申请提供视频预览方法及装置,其中视频预览方法包括:检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。用户只需针对目标视频封面执行预览操作,即可在目标视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,提高视频预览效果。

Description

视频预览方法及装置
本申请要求于2021年12月6日提交中国专利局、申请号为202111482159.8、发明名称为“视频预览方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频处理技术领域,特别涉及一种视频预览方法。本申请同时涉及一种视频预览装置,一种计算设备,一种计算机可读存储介质,以及一种计算机程序产品。
背景技术
随着计算机技术和网络技术的快速发展,诞生了各种各样的视频,人们工作和生活中许多方面都会涉及到视频,相比于静态的图片,视频携带了更丰富、更具表现力的信息,从而越来越受到用户的关注和喜爱。
现有技术中,视频预览页面中可以展示有多个视频,每个视频展示单张静态图片封面或多张图片帧,以供用户定位自己感兴趣的视频。
然而,图片帧仅是视频内容的概略,内容不完整可能会导致用户解读视频不全面,且图片帧是从视频中截取得到,清晰度有限,无法适应不同的屏幕大小,也无法支持现场类视频,导致视频预览效果较差,用户无法快速准确选择自己感兴趣的视频,导致频繁播放再退出,误播放率较高。
发明内容
有鉴于此,本申请实施例提供了一种视频预览方法。本申请同时涉及一种视频预览装置,一种计算设备,一种计算机可读存储介质,以及一种计算机程序产品,以解决现有技术中存在的视频预览效果较差、误播放率较高的技术问题。
根据本申请实施例的第一方面,提供了一种视频预览方法,包括:
检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;
在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;
加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
根据本申请实施例的第二方面,提供了一种视频预览装置,包括:
检测模块,被配置为检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;
确定模块,被配置为在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;
播放模块,被配置为加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
根据本申请实施例的第三方面,提供了一种计算设备,包括:
存储器和处理器;
存储器用于存储计算机可执行指令,处理器用于执行计算机可执行指令,以实现下述方法:
检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;
在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;
加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
根据本申请实施例的第四方面,提供了一种计算机可读存储介质,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现任意视频预览方法的步骤。
根据本申请实施例的第五方面,提供了一种计算机程序产品,当所述计算机程序产品在计算机中执行时,令计算机执行任意上述视频预览方法的步骤。
本申请提供的视频预览方法,可以检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
这种情况下,视频预览页面中包括的各个视频封面处均设置有对应的页面容器,该页面容器可以提供针对相应视频封面的预览操作的检测能力,也即目标视频封面的页面容器可以检测到预览操作,在预览操作的操作持续时长达到时长阈值时,可以确定目标视频封面的页面容器关联的播放器容器,通过该播放器容器中承载的目标播放器在目标视频封面处播放目标视频封面对应的视频内容。如此,用户只需针对视频预览页面中的任一视频封面执行预览操作,即可在该视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,且预览过程是直接播放原始完整的视频内容,无需截图,可以适应不同分辨率的屏幕,也可以支持现场类视频,极大提高了视频预览效果,用户在视频预览页面即可预览完整的视频内容,从而可以快速准确地确定自己是否感兴趣,降低误播放率;另外,只有在预览操作的操作持续时长达到时长阈值时,才调用相应的播放器在视频封面处播放对应的视频内容,以进行预览,避免了滑动过程中的误操作,节省了播放资源。
附图说明
图1是本申请一实施例提供的一种视频预览方法的流程图;
图2是本申请一实施例提供的一种视频预览页面的示意图;
图3是本申请一实施例提供的一种视频内容的播放流程示意图;
图4是本申请一实施例提供的另一种视频预览方法的流程图;
图5是本申请一实施例提供的一种视频预览装置的结构示意图;
图6是本申请一实施例提供的一种计算设备的结构框图。
具体实施方式
在下面的描述中阐述了很多具体细节以便于充分理解本申请。但是本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似推广,因此本申请不受下面公开的具体实施的限制。
在本申请一个或多个实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请一个或多个实施例。在本申请一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本申请一个或多个实施例中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。
应当理解,尽管在本申请一个或多个实施例中可能采用术语第一、第二等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本申请一个或多个实施例范围的情况下,第一也可以被称为第二,类似地,第二也可以被称为第一。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。
在本申请中,提供了一种视频预览方法,本申请同时涉及一种视频预览装置,一种计算设备,一种计算机可读存储介质,以及一种计算机程序产品,在下面的实施例中逐一进行详细说明。
图1示出了根据本申请一实施例提供的一种视频预览方法的流程图,具体包括以下步骤:
步骤102:检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作。
具体的,视频预览页面可以是指包括多个视频以供用户选择播放的页面,视频预览页面展示的是视频的视频封面,该视频封面可以是对视频进行简介的封面图,也可以是从视频内容中截取的图片帧,用户点击选择某个视频封面后可以进入该视频封面对应的视频的播放界面。
另外,目标视频封面是视频预览页面中包括的多个视频封面中的任一个,每个视频封面对应一个页面容器,该页面容器,即cardContainer,可以提供针对相应的视频封面的预览操作的检测能力,即通过页面容器可以检测是否接收到相应的视频封面的预览操作。其中,预览操作可以是指预先设置的、预览某个视频封面对应的视频内容的操作。
一种可能的实现方式中,针对目标视频封面的预览操作可以是指控制选择控件移动进入目标视频封面的操作,如页面容器可以通过自身的鼠标事件,提 供播放入口,即可以检测鼠标移入事件(mouseenter),用户可以操作鼠标,使得通过鼠标控制的选择控件移动进入目标视频封面,此时即检测到针对目标视频封面的预览操作;或者,页面容器还可以检测键盘控制信号,即用户可以操作键盘,使得通过键盘控制的选择控件移动进入目标视频封面,此时即检测到针对目标视频封面的预览操作。
另一种可能的实现方式中,对于触摸屏类的设备来说,可以通过手指或者触摸笔来控制屏幕滑动,以选择某个视频封面对应的视频进行播放,因而针对目标视频封面的预览操作还可以为手指或者触摸笔触摸目标视频封面的操作,即手指或者触摸笔触摸目标视频封面时,检测到针对目标视频封面的预览操作;或者,针对目标视频封面的预览操作还可以为将目标视频封面滑动至页面边缘的操作等,即目标视频封面滑动至视频页面的页面边缘时,检测到针对目标视频封面的预览操作。
实际应用中,视频预览页面中可以包括多个视频封面,每个视频封面的位置处均设置有页面容器,各个页面容器可以确定是否检测到预览操作,检测到预览操作的页面容器对应的视频封面即为目标视频封面,后续可以调用该页面容器关联的播放器容器中承载的播放器,播放目标视频封面对应的完整视频内容,以进行预览,从而提高预览效果。
另外,用户在查看视频预览页面的过程中,往往会滑动视频预览页面,在滑动过程中,有可能会误触发针对目标视频封面的预览操作,因而为了避免误触发,还可以确定预览操作的操作持续时长,后续可以基于操作持续时长,确定检测到的针对目标视频封面的预览操作是否为误操作,在不是误操作的情况下,再播放相应的视频内容,提高预览准确率,节省播放资源。
具体实现时,若预览操作为选择控件移动进入目标视频封面的操作,那么操作持续时长为选择控件位于目标视频封面中的持续时长;若预览操作为手指或者触摸笔触摸目标视频封面的操作,那么操作持续时长可以为触摸目标视频封面的持续时长;若预览操作为将目标视频封面滑动至页面边缘的操作,那么操作持续时长可以为目标视频封面位于页面边缘的持续时长。
示例的,图2是本申请一实施例提供的一种视频预览页面的示意图,如图2所示,视频预览页面中包括6个视频的视频封面,分别为视频封面1、视频封面2、视频封面3、视频封面4、视频封面5和视频封面6,其中,视频封面1处设置有页面容器1,视频封面2处设置有页面容器2,视频封面3处设置有页面容器3,视频封面4处设置有页面容器4,视频封面5处设置有页面容器5,视频封面6处设置有页面容器6。假设页面容器3检测到了鼠标移入事件(即预览操作),那么目标视频封面为视频封面3,此时说明用户想要预览视频封面3的视频内容,然后可以确定鼠标移入视频封面3的持续时长,便于后续可以确定检测到的针对视频封面3的预览操作是否为滑动过程中的误操作。
本实施例一个可选的实施方式中,还可以预先封装、创建各个视频对应的播放器,并与页面容器关联,从而便于在检测到视频预览页面中针对目标视频封面的预览操作时,可以通过相应的播放器播放视频内容,也即检测视频预览页面中针对目标视频封面的预览操作之前,还可以包括:
获取目标视频封面对应的视频元数据和播放参数;
根据视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器;
根据目标播放器,创建播放器容器,将播放器容器嵌入为目标视频封面的页面容器的子元素。
需要说明的是,元数据(Metadata),又称中介数据、中继数据,为描述数据的数据(data about data),主要是描述数据属性(property)的信息,用来支持如指示存储位置、历史数据、资源查找、文件记录等功能,视频元数据,即option,可以是指描述目标视频封面对应的视频内容的数据。播放参数,即config,可以是指控制目标视频封面对应的视频内容的播放进程的参数,如延迟时间、播放清晰度、播放速度、播放时长等。
实际应用中,目标视频封面可以是指视频预览页面中的任一视频封面,针对目标视频封面,可以获取其对应的视频内容的视频元数据和播放参数,然后根据获取到的视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器,该目标播放器后续可以用于播放目标视频封面对应的视频内容。
另外,创建得到目标视频封面对应的视频内容的目标播放器之后,还可以根据目标播放器,创建播放器容器,也即播放器容器用于承载创建的目标播放器。之后,还可以将播放器容器和页面容器相关联,从而在页面容器检测到预览操作后,可以找到关联的播放器容器,调用其中承载的播放器播放相应的视频内容。
具体实现时,可以根据目标播放器的类型,基于编程语言调用相应的创建方法,创建对应的播放器容器,即播放器承载容器(playerContainer),该播放器容器可以承载创建的目标视频封面对应的视频内容的目标播放器。另外,可以调用HTML(Hyper Text Markup Language,超文本标记语言)中的CardDOM.appendChild()方法,将播放器容器(内层容器)嵌入为页面容器(外层容器)的子元素,以将播放器容器和页面容器关联。
本申请实施例中,视频预览页面中包括多个视频的视频封面,每个视频封面对应的视频的内容、类型、时长各不相同,因而每个视频封面可以创建对应的播放器,并承载于对应的播放器容器中,与该视频封面对应的页面容器相关联,以便后续可以通过相应的播放器播放该视频封面的视频内容。
本实施例一个可选的实施方式中,在创建目标视频封面对应的视频内容的目标播放器之前,还可以预先封装不同视频类型对应的播放器,也即根据视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器之前,还可以包括:
分别封装至少两个视频类型对应的播放器实例;
相应地,根据视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器,具体实现过程可以如下:
解析视频元数据,确定目标视频封面对应的目标视频类型和内容标识;
根据目标视频类型,调用预先封装好的至少两个视频类型对应的播放器实例中目标视频类型对应的播放器实例,结合内容标识和播放参数,创建目标视 频封面对应的目标播放器。
具体的,视频类型可以是指视频的播放类型,如视频类型可以为直播类型或者点播类型,其中,实例可以称为一个对象,一个对象就叫一个实例,实例化是指实例一个对象的过程,播放器实例可以是指封装的播放器对象。
需要说明的是,不同视频类型的视频往往需要通过不同的播放器播放,因而可以预先分别封装至少两个视频类型对应的播放器实例,预先封装的每个播放器实例返回统一的方法,以供后续创建某个视频对应的播放器时调用,即后续可以根据某个视频具体的视频内容的相关信息,实例化不同的播放器。例如,可以统一规范分别封装点播播放器和直播播放器,每个返回统一的方法replay(加载)、connect(初始化)、close(关闭)等。
实际应用中,预先封装有至少两个视频类型对应的播放器实例后,在根据视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器时,可以调用预先封装的、目标视频封面对应类型的播放器,结合目标视频封面对应的视频内容的内容特点,通过构造函数创建对应的播放器,即实例化目标视频封面对应的视频内容的播放器。
具体实现时,可以解析视频元数据,确定目标视频封面对应的目标视频类型和内容标识,其中,目标视频类型是指目标视频封面对应的视频内容的类型,后续可以调用相应类型的播放器实例,另外,内容标识可以是指目标视频封面对应的视频内容的标识,基于该内容标识可以获取到目标视频封面对应的视频内容,该内容标识可以是目标视频封面对应的视频内容的存储地址,或者文件名称标识等。之后,可以根据目标视频类型,调用预先封装好的至少两个视频类型对应的播放器实例中目标视频类型对应的播放器实例,结合内容标识和播放参数,创建目标视频封面对应的目标播放器,创建得到的目标播放器是可以对目标视频封面对应的视频内容进行播放的播放器。
本实施例一个可选的实施方式中,除了预先分别封装至少两个视频类型对应的播放器实例之外,还可以封装中间操作层,也即分别封装至少两个视频类型对应的播放器实例之后,还可以包括:
封装中间操作层,其中,中间操作层用于确定检测到的预览操作对应的播放操作。
需要说明的是,中间操作层可以接收页面容器检测到的预览操作,并基于该预览操作,结合预先设置的控制策略(如延迟策略、防抖策略等),控制该页面容器关联的播放器容器中的目标播放器,如初始化、播放、暂停等,从而实现对目标播放器的控制。
一种可能的实现方式中,封装的中间操作层中承载有mouselns(鼠标操作状态实例)、playerEvents(播放器生命周期事件实例)、player(播放器实例)等模块。其中,mouselns(鼠标操作状态实例)可以获取到页面容器检测到的预览操作;player(播放器实例)可以根据页面容器检测到的预览操作,确定控制播放器执行什么操作,如初始化、播放、暂停等;playerEvents(播放器生命周期事件实例)可以存储和记录播放器的初始化、播放、暂停等生命周期状态,即播放器执行相应的操作后,可以将自身的生命周期状态返回给中间操作层,中间操作层可以记录,并将相应到的生命周期状态通过JS(JavaScript)的 CustomEvent(自定义事件)传给外层的页面容器。
实际应用中,通过目标视频封面处设置的页面容器检测到针对目标视频封面的预览操作后,可以将该预览操作同步给预先封装好的中间操作层,通过中间操作层确定预览操作的操作持续时长,从而确定页面容器检测到的预览操作是否为误操作,并进一步确定控制目标视频封面的视频内容对应的目标播放器执行什么操作。
作为一种示例,页面容器可以提供承载器,承载器的鼠标事件可以作为播放操作的出入口(mouseenter-鼠标移动时间,mouseleave移出事件),鼠标事件触发之后,会响应给中间操作层,中间操作层接收到鼠标事件给到的指令后,可以结合自身预设的策略通知播放器播放相应的视频内容。
本申请实施例中,视频预览页面中可以包括多个视频封面,每个视频封面的位置处均设置有页面容器,各个页面容器可以确定是否检测到预览操作,检测到预览操作的页面容器对应的视频封面即为目标视频封面,后续可以调用该页面容器关联的播放器容器中承载的播放器,播放目标视频封面对应的完整视频内容,以进行预览,从而提高预览效果。另外,还可以确定预览操作的操作持续时长,便于后续可以基于操作持续时长,确定检测到的针对目标视频封面的预览操作是否为误操作,在不是误操作的情况下,再播放相应的视频内容,提高预览准确率,节省播放资源。
步骤104:在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器。
具体的,时长阈值可以是指预先设置的、判断预览操作是否为误操作的数值,如时长阈值可以为200ms、300ms等。
需要说明的是,若操作持续时长未达到时长阈值,则说明检测到的预览操作可能只是用户正常滑动视频预览页面的操作,并不是想要预览目标视频封面对应的视频内容,因而此时可以不响应检测到的预览操作。若操作持续时长达到时长阈值,则说明检测到的预览操作是用户想要预览目标视频封面对应的视频内容而触发的操作,此时可以确定目标视频封面的页面容器关联的播放器容器,从而便于后续通过页面容器关联的播放器容器中承载的目标播放器播放相应的视频内容,以进行预览。
实际应用中,通过页面容器检测到针对目标视频封面的预览操作后,页面容器可以将检测到的预览操作同步给中间操作层,通过中间操作层可以确定操作持续时长是否达到时长阈值,从而确定是否调用目标视频封面的页面容器关联的播放器容器,以控制播放器进行播放操作。
本申请实施例中,中间操作层可以预先设置有延迟策略,只有在预览操作的操作持续时长达到时长阈值时,才调用相应的播放器在视频封面处播放对应的视频内容,以进行预览,避免了滑动过程中的误操作,节省了播放资源。
步骤106:加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
需要说明的是,确定出目标视频封面的页面容器关联的播放器容器后,即 可加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容,以直接在视频预览页面中目标视频封面处播放完整的视频内容,以供用户预览。
其中,目标视频封面对应的视频内容可以包括目标视频封面对应的视频的音视频数据,还可以包括目标视频封面对应的视频中的弹幕数据,即目标视频封面对应的视频中的弹幕数据也可以跟随视频进度,在视频预览页面中目标视频封面处进行播放,以供用户预览,从而增强内容互动体验。
沿用上例,可以通过视频封面3对应的目标播放器,在视频预览页面中视频封面3的位置处播放视频封面3对应的视频的音视频数据和弹幕数据,以供用户直接在视频预览页面中的视频封面3的位置处预览对应的视频的完整内容。
本申请实施例中,用户只需针对视频预览页面中的任一视频封面执行预览操作,即可在该视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,且预览过程是直接播放原始完整的视频内容,无需截图,可以适应不同分辨率的屏幕,也可以支持现场类视频,极大提高了视频预览效果,用户在视频预览页面即可预览完整的视频内容,从而可以快速准确地确定自己是否感兴趣,降低误播放率。
本实施例一个可选的实施方式中,在控制播放器播放对应的视频内容时,还可以先确定播放器是否完成初始化,也即加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容,具体实现过程可以如下:
确定目标播放器是否完成初始化;
在目标播放器未完成初始化的情况下,对目标播放器进行初始化,初始化成功后,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
需要说明的是,若目标播放器没有完成初始化,则可以先对目标播放器进行初始化,初始化之后,再控制目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
本实施例一个可选的实施方式中,初始化完成后,还可以确定当前用户是否具备视频播放权限,再控制播放器播放对应的视频内容,也即通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容之前,还可以包括:
确定是否具备目标视频封面对应的视频内容的播放权限;
若具备播放权限,则确定预览操作是否取消;
在预览操作未取消的情况下,执行通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容的操作步骤;
在预览操作取消的情况下,在目标视频封面处暂停播放目标视频封面对应的视频内容。
实际应用中,由于有些视频是需要播放权限才可以播放,如付费视频、会员视频、不同用户等级对应的视频等,因而在对目标播放器初始化成功后,还可以确定触发预览操作的用户是否具备目标视频封面对应的视频内容的播放权限。例如,目标视频封面对应的视频内容为会员视频,则此时可以确定触发 预览操作的用户是否登录,若未登录,则确定不具备播放权限;若已登录,则进一步确定该用户的用户信息中是否包括会员标识,若包括,则说明该用户是会员用户,具备播放权限,若不包括,则说明该用户不是会员用户,不具备播放权限。
需要说明的是,对于需要播放权限的视频,可以在目标播放器完成初始化后,进一步确定是否具备目标视频封面对应的视频内容的播放权限,从而保证需要播放权限的视频只有具备播放权限的用户才可以预览,提高视频的安全性。
另外,用户针对目标视频封面触发预览操作后,还可能取消预览操作,因而在确定具备播放权限后,还可以确定预览操作是否取消,从而确定是否需要继续控制目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
具体实现时,对于预览操作为选择控件移动进入目标视频封面的操作来说,确定预览操作是否取消,可以为确定是否检测到选择控件移出目标视频封面,如对于预览操作为鼠标移入事件来说,确定预览操作是否取消,可以为确定是否检测到鼠标移出事件。另外,对于预览操作为手指或者触摸笔触摸目标视频封面的操作,确定预览操作是否取消,可以为确定是否检测到手指或者触摸笔抬起;对于预览操作为将目标视频封面滑动至页面边缘的操作,确定预览操作是否取消,可以为确定目标视频封面是否远离视频页面的页面边缘。
本申请实施例中,若预览操作未取消,则说明用户希望继续在目标视频封面处预览相应的视频内容,因而此时可以执行通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容的操作步骤;若检测到预览操作取消,则说明用户暂时不需要继续在目标视频封面处预览相应的视频内容,因而此时可以在目标视频封面处暂停播放目标视频封面对应的视频内容,但是并不关闭播放器,当再次检测到针对目标视频封面对应的预览操作时,可以直接控制播放器播放相应的视频内容,方便短时间内用户多次预览同一视频封面对应的视频内容。
进一步地,在目标视频封面处暂停播放目标视频封面对应的视频内容时,还可以记录暂停播放的时间点,以供后续用户短时间内再次预览目标视频封面对应的视频内容时,可以直接定位至上次暂停播放的时间点,继续播放,无需从头重新播放目标视频封面对应的视频内容。
本实施例一个可选的实施方式中,若确定出目标播放器初始化完成,则可以直接控制目标播放器播放相应的视频内容,无需重新初始化,也即确定目标播放器是否完成初始化之后,还可以包括:
在目标播放器完成初始化的情况下,确定预览操作是否取消;
若未取消,则通过目标播放器在目标视频封面处重新播放目标视频封面对应的视频内容。
需要说明的是,如果上次初始化目标播放器后,只是在目标视频封面处暂停播放目标视频封面对应的视频内容,并未关闭播放器,那么再次检测到针对目标视频封面对应的预览操作时,目标播放器已经完成初始化,此时可以直接控制播放器播放相应的视频内容。
进一步,也可以确定用户是否取消预览操作,从而确定是否需要继续控制 目标播放器在目标视频封面处播放目标视频封面对应的视频内容。若未取消预览操作,则说明用户希望继续在目标视频封面处预览相应的视频内容,因而此时可以直接通过目标播放器在目标视频封面处重新播放目标视频封面对应的视频内容;若取消预览操作,则暂停播放。
本申请实施例中,用户再次想要预览目标视频封面对应的视频内容时,可以无需再次初始化播放器,直接通过初始化完成的目标播放器在目标视频封面处重新播放目标视频封面对应的视频内容即可,节省初始化播放器耗费的处理资源。
另外,除了可以直接通过目标播放器在目标视频封面处重新播放目标视频封面对应的视频内容之外,若在上次暂停播放目标视频封面对应的视频内容时,记录了暂停播放的时间点,那么可以直接通过目标播放器在目标视频封面处从暂停播放的时间点继续播放目标视频封面对应的视频内容。
实际应用中,可以基于此次检测到预览操作的时间与上次暂停播放目标视频封面对应的视频内容之间的时间间隔,确定是重新从头播放目标视频封面对应的视频内容,还是从记录的暂停播放的时间点继续播放目标视频封面对应的视频内容。例如,若此次检测到预览操作的时间与上次暂停播放目标视频封面对应的视频内容之间的时间间隔大于间隔阈值,则重新从头播放目标视频封面对应的视频内容,若此次检测到预览操作的时间与上次暂停播放目标视频封面对应的视频内容之间的时间间隔不大于间隔阈值,则可以获取上次暂停播放的时间点,从该时间点继续播放目标视频封面对应的视频内容。
本申请实施例中,用户短时间内再次预览目标视频封面对应的视频内容时,可以直接定位至上次暂停播放的时间点继续播放,无需从头重新播放目标视频封面对应的视频内容,使得短时间内用户再次触发预览操作时,可以衔接至上次暂停播放的位置,提高用户观看体验,节省了播放资源。
本实施例一个可选的实施方式中,用户取消针对目标视频封面的预览操作后,并不关闭对应的目标播放器,而仅是暂停播放,方便短时间内用户再次预览目标视频封面对应的视频内容,而如果用户长时间未再次预览目标视频封面对应的视频内容,则可以关闭对应的目标播放器,也即通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容之后,还可以包括:
检测预览操作是否取消;
在预览操作取消的情况下,确定取消预览操作后的第二预设时长内是否再次检测到针对目标视频封面的预览操作;
若否,则关闭目标播放器。
具体的,第二预设时长可以是预先设置的时间段,用于确定一段时间内用户是否针对某个视频封面再次发起预览操作,如第二预设时长可以为3分钟、5分钟或10分钟等。
需要说明的是,检测到针对目标视频封面的预览操作取消的情况下,可以暂停通过目标播放器在目标视频封面的位置处播放对应的视频内容,之后可以确定取消预览操作后的第二预设时长内是否再次检测到针对目标视频封面的预览操作,若是,则说明用户再次触发针对目标视频封面的预览操作,想要再 次预览相应的视频内容,此时可以无需初始化目标播放器,直接控制初始化完成的目标播放器播放相应的视频内容;若否,则说明用户长时间未再次触发针对目标视频封面的预览操作,此时可以关闭目标播放器,节省处理资源和空间,若用户之后再次触发针对目标视频封面的预览操作,则可以重新对目标播放器进行初始化,以在视频封面的位置处播放相应的视频内容。
另外,关闭目标播放器后,可以删除目标播放器相关的数据,以节省内存空间,如播放器的初始化数据、运行数据、暂停播放的时间点等数据。
示例的,图3是本申请一实施例提供的一种视频内容的播放流程示意图,如图3所示,检测到针对目标视频封面的预览操作后,可以确定预览操作的操作持续时长,若预览操作的操作持续时长未达到时长阈值,则不执行动作。若预览操作的操作持续时长达到时长阈值,则确定目标视频封面的页面容器关联的播放器容器,确定该播放器容器中承载的目标播放器是否完成初始化。若未完成初始化,则对目标播放器进行初始化,初始化成功后,确定是否具备目标视频封面对应的视频内容的播放权限,若具备播放权限,则确定预览操作是否取消,若未取消,则正常播放视频内容,若已取消,则暂停播放视频内容;若不具备播放权限,则销毁播放器。若初始化失败,则销毁播放器。
若已完成初始化,则说明目标视频封面对应的视频内容暂停播放,此时可以确定是否具备目标视频封面对应的视频内容的播放权限,若具备播放权限,则确定预览操作是否取消,若未取消,则跳转至片头重新开始播放视频内容,若已取消,则不执行动作;若不具备播放权限,则销毁播放器。
另外,如图3所示,每针对目标播放器执行一个动作后,均可以上报事件给中间操作层,以供中间操作层可以记录目标播放器的初始化、播放、暂停等生命周期状态。
本实施例一个可选的实施方式中,若预先封装了中间操作层,那么可以通过中间操作层,控制目标播放器的播放操作,也即通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容,具体实现过程可以如下:
通过封装完成的中间操作层,确定预览操作对应的播放操作;
根据播放操作,控制目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
需要说明的是,中间操作层可以接收页面容器检测到的预览操作,然后基于该预览操作确定出对应的播放操作,根据该播放操作控制目标播放器的工作状态,如初始化、播放、暂停等。
作为一种示例,中间操作层接收到的预览操作为鼠标移入事件,中间操作层中可以预先封装有预设的延迟策略,检测到预览操作后,若该预览操作的操作持续时长达到时长阈值时,则确定鼠标移入事件对应的播放操作为初始化播放器,此时可以加载对应的目标播放器,控制目标播放器进行初始化。
本实施例一个可选的实施方式中,加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容之后,还可以包括:
向页面容器反馈目标播放器的加载状态和/或播放状态。
其中,目标播放器的加载状态可以包括是否完成初始化,播放状态包括播放、暂停等状态。实际应用中,目标播放器执行相应的操作后,还可以向中间操作层返回执行结果,即加载状态和/或播放状态等生命周期状态,中间操作层可以记录接收到的加载状态和/或播放状态等,并反馈给外层的页面容器,通过外层的页面容器,可以统计各个视频封面对应的目标播放器的加载次数等信息,以供分析使用。
本实施例一个可选的实施方式中,除了预先设置延迟策略,以避免滑动视频预览页面的过程中误触发预览操作之外,还可以预先设置防抖策略,避免短时间内多次响应同一视频封面的预览操作,也即加载播放器容器中承载的目标播放器之前,还可以包括:
确定预览操作是否为第一预设时长内针对目标视频封面首次检测到的预览操作;
若是,则执行加载播放器容器中承载的目标播放器的操作步骤。
具体的,第一预设时长可以是指预先设置的时间段,用于判断用户是否在短时间内多次针对目标视频封面触发预览操作,如第一预设时长可以为1秒、5秒、8秒等。
需要说明的是,在加载播放器容器中承载的目标播放器之前,还可以确定检测到的预览操作是否为第一预设时长内针对目标视频封面首次检测到的预览操作,若是,则说明检测到的预览操作是短时间内用户针对目标视频封面首次发起预览操作,此时可以响应该预览操作,加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。若否,则说明短时间内用户针对目标视频封面发起了多次预览操作,只在用户首次针对目标视频封面发起预览操作时进行响应即可,因而此时可以不响应该预览操作,即不执行加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容的操作步骤。如此,可以避免短时间内频繁触发目标视频封面的预览操作,避免短时间内频繁在目标视频封面处播放目标视频封面对应的视频内容,节省播放资源。
本申请提供的视频预览方法,视频预览页面中包括的各个视频封面处均设置有对应的页面容器,该页面容器可以提供针对相应视频封面的预览操作的检测能力,也即目标视频封面的页面容器可以检测到预览操作,在预览操作的操作持续时长达到时长阈值时,可以确定目标视频封面的页面容器关联的播放器容器,通过该播放器容器中承载的目标播放器在目标视频封面处播放目标视频封面对应的视频内容。如此,用户只需针对视频预览页面中的任一视频封面执行预览操作,即可在该视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,且预览过程是直接播放原始完整的视频内容,无需截图,可以适应不同分辨率的屏幕,也可以支持现场类视频,极大提高了视频预览效果,用户在视频预览页面即可预览完整的视频内容,从而可以快速准确地确定自己是否感兴趣,降低误播放率。
另外,只有在预览操作的操作持续时长达到时长阈值时,才调用相应的播放器在视频封面处播放对应的视频内容,以进行预览,避免了滑动过程中的误操作,节省了播放资源。并且,只在用户首次针对目标视频封面发起预览操作 时进行响应即可,避免短时间内频繁在目标视频封面处播放目标视频封面对应的视频内容,节省播放资源。
图4示出了本申请一实施例提供的另一种视频预览方法的流程图,具体包括以下步骤:
步骤402:分别封装直播类型和点播类型对应的播放器实例,每个播放器实例返回统一的方法。
步骤404:封装中间操作层,其中,中间操作层用于确定检测到的预览操作对应的播放操作。
步骤406:针对视频预览页面中包括的每个视频封面,获取该视频封面对应的视频元数据和播放参数。
步骤408:解析视频元数据,确定目标视频封面对应的目标视频类型和内容标识。
步骤410:根据目标视频类型,调用预先封装好的直播类型和点播类型对应的播放器实例中目标视频类型对应的播放器实例,结合内容标识和播放参数,创建目标视频封面对应的目标播放器。
步骤412:根据目标播放器,创建播放器容器。
步骤414:通过调用HTML中的Append方法将播放器容器嵌入为目标视频封面的页面容器的子元素,以将播放器容器和页面容器进行关联。
步骤416:通过视频预览页面中各个视频封面处设置的页面容器监听鼠标移入事件。
步骤418:监听到鼠标移入事件的页面容器将鼠标移入事件同步给中间操作层,通过中间操作层确定鼠标移入事件的操作持续时长是否达到时长阈值。
步骤420:在操作持续时长达到时长阈值的情况下,通过封装完成的中间操作层,确定鼠标移入事件对应的播放操作,加载该页面容器关联的播放器容器中承载的目标播放器,根据该播放操作,控制目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
其中,目标视频封面为监听到鼠标移入事件的页面容器对应的视频封面。
本实施例一个可选的实施方式中,除了预先设置延迟策略,以避免滑动视频预览页面的过程中误触发预览操作之外,还可以预先设置防抖策略,避免短时间内多次响应同一视频封面的预览操作,也即加载播放器容器中承载的目标播放器之前,还可以包括:
确定预览操作是否为第一预设时长内针对目标视频封面首次检测到的预览操作;
若是,则执行加载播放器容器中承载的目标播放器的操作步骤。
步骤422:通过该页面容器监听鼠标移出事件,在监听到鼠标移出事件时,控制目标播放器在目标视频封面处暂停播放目标视频封面对应的视频内容。
步骤424:目标播放器向中间操作层返回加载状态和/或播放状态,通过中间操作层将该加载状态和/或播放状态反馈给页面容器。
本申请提供的视频预览方法,视频预览页面中包括的各个视频封面处均设 置有对应的页面容器,该页面容器可以提供针对相应视频封面的预览操作的检测能力,也即目标视频封面的页面容器可以检测到预览操作,在预览操作的操作持续时长达到时长阈值时,可以确定目标视频封面的页面容器关联的播放器容器,通过该播放器容器中承载的目标播放器在目标视频封面处播放目标视频封面对应的视频内容。如此,用户只需针对视频预览页面中的任一视频封面执行预览操作,即可在该视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,且预览过程是直接播放原始完整的视频内容,无需截图,可以适应不同分辨率的屏幕,也可以支持现场类视频,极大提高了视频预览效果,用户在视频预览页面即可预览完整的视频内容,从而可以快速准确地确定自己是否感兴趣,降低误播放率。
另外,只有在预览操作的操作持续时长达到时长阈值时,才调用相应的播放器在视频封面处播放对应的视频内容,以进行预览,避免了滑动过程中的误操作,节省了播放资源。并且,只在用户首次针对目标视频封面发起预览操作时进行响应即可,避免短时间内频繁在目标视频封面处播放目标视频封面对应的视频内容,节省播放资源。
与上述方法实施例相对应,本申请还提供了视频预览装置实施例,图5示出了本申请一实施例提供的一种视频预览装置的结构示意图。如图5所示,该装置包括:
检测模块502,被配置为检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;
确定模块504,被配置为在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;
播放模块506,被配置为加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
可选地,该装置还包括创建模块,被配置为:
获取目标视频封面对应的视频元数据和播放参数;
根据视频元数据和播放参数,创建目标视频封面对应的视频内容的目标播放器;
根据目标播放器,创建播放器容器,将播放器容器嵌入为目标视频封面的页面容器的子元素。
可选的,创建模块进一步被配置为:
分别封装至少两个视频类型对应的播放器实例;
解析视频元数据,确定目标视频封面对应的目标视频类型和内容标识;
根据目标视频类型,调用预先封装好的至少两个视频类型对应的播放器实例中目标视频类型对应的播放器实例,结合内容标识和播放参数,创建目标视频封面对应的目标播放器。
可选地,创建模块进一步被配置为:
封装中间操作层,其中,中间操作层用于确定检测到的预览操作对应的播放操作;
相应地,播放模块506进一步被配置为:
通过封装完成的中间操作层,确定预览操作对应的播放操作;
根据播放操作,控制目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
可选地,该装置还包括执行模块,被配置为:
确定预览操作是否为第一预设时长内针对目标视频封面首次检测到的预览操作;
若是,则执行加载播放器容器中承载的目标播放器的操作步骤。
可选地,播放模块506进一步被配置为:
确定目标播放器是否完成初始化;
在目标播放器未完成初始化的情况下,对目标播放器进行初始化,初始化成功后,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
可选地,播放模块506进一步被配置为:
确定是否具备目标视频封面对应的视频内容的播放权限;
若具备播放权限,则确定预览操作是否取消;
在预览操作未取消的情况下,执行通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容的操作步骤;
在预览操作取消的情况下,在目标视频封面处暂停播放目标视频封面对应的视频内容。
可选地,播放模块506进一步被配置为:
在目标播放器完成初始化的情况下,确定预览操作是否取消;
若未取消,则通过目标播放器在目标视频封面处重新播放目标视频封面对应的视频内容。
可选地,该装置还包括检测模块,被配置为:
检测预览操作是否取消;
在预览操作取消的情况下,确定取消预览操作后的第二预设时长内是否再次检测到针对目标视频封面的预览操作;
若否,则关闭目标播放器。
可选地,该装置还包括反馈模块,被配置为:
向页面容器反馈目标播放器的加载状态和/或播放状态。
本申请提供的视频预览装置,视频预览页面中包括的各个视频封面处均设置有对应的页面容器,该页面容器可以提供针对相应视频封面的预览操作的检测能力,也即目标视频封面的页面容器可以检测到预览操作,在预览操作的操作持续时长达到时长阈值时,可以确定目标视频封面的页面容器关联的播放器容器,通过该播放器容器中承载的目标播放器在目标视频封面处播放目标视频封面对应的视频内容。如此,用户只需针对视频预览页面中的任一视频封面执 行预览操作,即可在该视频封面处自动预览对应的完整视频内容,便于用户充分解读视频,且预览过程是直接播放原始完整的视频内容,无需截图,可以适应不同分辨率的屏幕,也可以支持现场类视频,极大提高了视频预览效果,用户在视频预览页面即可预览完整的视频内容,从而可以快速准确地确定自己是否感兴趣,降低误播放率;另外,只有在预览操作的操作持续时长达到时长阈值时,才调用相应的播放器在视频封面处播放对应的视频内容,以进行预览,避免了滑动过程中的误操作,节省了播放资源。
上述为本实施例的一种视频预览装置的示意性方案。需要说明的是,该视频预览装置的技术方案与上述的视频预览方法的技术方案属于同一构思,视频预览装置的技术方案未详细描述的细节内容,均可以参见上述视频预览方法的技术方案的描述。
图6示出了根据本申请一实施例提供的一种计算设备的结构框图。该计算设备600的部件包括但不限于存储器610和处理器620。处理器620与存储器610通过总线630相连接,数据库650用于保存数据。
计算设备600还包括接入设备640,接入设备640使得计算设备600能够经由一个或多个网络660通信。这些网络的示例包括公用交换电话网(PSTN)、局域网(LAN)、广域网(WAN)、个域网(PAN)或诸如因特网的通信网络的组合。接入设备640可以包括有线或无线的任何类型的网络接口(例如,网络接口卡(NIC))中的一个或多个,诸如IEEE802.11无线局域网(WLAN)无线接口、全球微波互联接入(Wi-MAX)接口、以太网接口、通用串行总线(USB)接口、蜂窝网络接口、蓝牙接口、近场通信(NFC)接口,等等。
在本申请的一个实施例中,计算设备600的上述部件以及图6中未示出的其他部件也可以彼此相连接,例如通过总线。应当理解,图6所示的计算设备结构框图仅仅是出于示例的目的,而不是对本申请范围的限制。本领域技术人员可以根据需要,增添或替换其他部件。
计算设备600可以是任何类型的静止或移动计算设备,包括移动计算机或移动计算设备(例如,平板计算机、个人数字助理、膝上型计算机、笔记本计算机、上网本等)、移动电话(例如,智能手机)、可佩戴的计算设备(例如,智能手表、智能眼镜等)或其他类型的移动设备,或者诸如台式计算机或PC的静止计算设备。计算设备600还可以是移动式或静止式的服务器。
其中,处理器620用于执行如下计算机可执行指令,以实现下述方法:
检测视频预览页面中针对目标视频封面的预览操作,确定预览操作的操作持续时长,其中,视频预览页面中包括至少两个视频的视频封面,每个视频封面处设置有页面容器,页面容器用于检测对应视频封面的预览操作;
在操作持续时长达到时长阈值的情况下,确定目标视频封面的页面容器关联的播放器容器,其中,播放器容器用于承载播放视频内容的目标播放器;
加载播放器容器中承载的目标播放器,通过目标播放器在目标视频封面处播放目标视频封面对应的视频内容。
上述为本实施例的一种计算设备的示意性方案。需要说明的是,该计算设备的技术方案与上述的视频预览方法的技术方案属于同一构思,计算设备的技 术方案未详细描述的细节内容,均可以参见上述视频预览方法的技术方案的描述。
本申请一实施例还提供一种计算机可读存储介质,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时以用于实现任意视频预览方法的步骤。
上述为本实施例的一种计算机可读存储介质的示意性方案。需要说明的是,该存储介质的技术方案与上述的视频预览方法的技术方案属于同一构思,存储介质的技术方案未详细描述的细节内容,均可以参见上述视频预览方法的技术方案的描述。
本申请一实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机中执行时,令计算机执行任意上述视频预览方法的步骤。
上述为本实施例的一种计算机程序产品的示意性方案。需要说明的是,该计算机程序产品的技术方案与上述的视频预览方法的技术方案属于同一构思,计算机程序产品的技术方案未详细描述的细节内容,均可以参见上述视频预览方法的技术方案的描述。
上述对本申请特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。
计算机指令包括计算机程序代码,计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。计算机可读介质可以包括:能够携带计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。
需要说明的是,对于前述的各方法实施例,为了简便描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其它顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定都是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。
以上公开的本申请优选实施例只是用于帮助阐述本申请。可选实施例并没有详尽叙述所有的细节,也不限制该发明仅为所述的具体实施方式。显然,根据本申请的内容,可作很多的修改和变化。本申请选取并具体描述这些实施例,是为了更好地解释本申请的原理和实际应用,从而使所属技术领域技术人员能很好地理解和利用本申请。本申请仅受权利要求书及其全部范围和等效物的限制。

Claims (14)

  1. 一种视频预览方法,包括:
    检测视频预览页面中针对目标视频封面的预览操作,确定所述预览操作的操作持续时长,其中,所述视频预览页面中包括至少两个视频的视频封面,每个所述视频封面处设置有页面容器,所述页面容器用于检测对应视频封面的预览操作;
    在所述操作持续时长达到时长阈值的情况下,确定所述目标视频封面的页面容器关联的播放器容器,其中,所述播放器容器用于承载播放视频内容的目标播放器;
    加载所述播放器容器中承载的目标播放器,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容。
  2. 根据权利要求1所述的视频预览方法,所述检测视频预览页面中针对目标视频封面的预览操作之前,还包括:
    获取所述目标视频封面对应的视频元数据和播放参数;
    根据所述视频元数据和所述播放参数,创建所述目标视频封面对应的视频内容的目标播放器;
    根据所述目标播放器,创建播放器容器,将所述播放器容器嵌入为所述目标视频封面的页面容器的子元素。
  3. 根据权利要求2所述的视频预览方法,所述根据所述视频元数据和所述播放参数,创建所述目标视频封面对应的视频内容的目标播放器之前,还包括:
    分别封装至少两个视频类型对应的播放器实例;
    相应地,所述根据所述视频元数据和所述播放参数,创建所述目标视频封面对应的视频内容的目标播放器,包括:
    解析所述视频元数据,确定所述目标视频封面对应的目标视频类型和内容标识;
    根据所述目标视频类型,调用预先封装好的至少两个视频类型对应的播放器实例中所述目标视频类型对应的播放器实例,结合所述内容标识和所述播放参数,创建所述目标视频封面对应的目标播放器。
  4. 根据权利要求3所述的视频预览方法,所述分别封装至少两个视频类型对应的播放器实例之后,还包括:
    封装中间操作层,其中,所述中间操作层用于确定检测到的预览操作对应的播放操作;
    相应地,所述通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容,包括:
    通过封装完成的所述中间操作层,确定所述预览操作对应的播放操作;
    根据所述播放操作,控制所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容。
  5. 根据权利要求1-4任一项所述的视频预览方法,所述加载所述播放器 容器中承载的目标播放器之前,还包括:
    确定所述预览操作是否为第一预设时长内针对所述目标视频封面首次检测到的预览操作;
    若是,则执行加载所述播放器容器中承载的目标播放器的操作步骤。
  6. 根据权利要求1-5任一项所述的视频预览方法,所述加载所述播放器容器中承载的目标播放器,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容,包括:
    确定所述目标播放器是否完成初始化;
    在所述目标播放器未完成初始化的情况下,对所述目标播放器进行初始化,初始化成功后,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容。
  7. 根据权利要求6所述的视频预览方法,所述通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容之前,还包括:
    确定是否具备所述目标视频封面对应的视频内容的播放权限;
    若具备所述播放权限,则确定所述预览操作是否取消;
    在所述预览操作未取消的情况下,执行所述通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容的操作步骤;
    在所述预览操作取消的情况下,在所述目标视频封面处暂停播放所述目标视频封面对应的视频内容。
  8. 根据权利要求6所述的视频预览方法,所述确定所述目标播放器是否完成初始化之后,还包括:
    在所述目标播放器完成初始化的情况下,确定所述预览操作是否取消;
    若未取消,则通过所述目标播放器在所述目标视频封面处重新播放所述目标视频封面对应的视频内容。
  9. 根据权利要求1-8任一项所述的视频预览方法,所述通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容之后,还包括:
    检测所述预览操作是否取消;
    在所述预览操作取消的情况下,确定取消所述预览操作后的第二预设时长内是否再次检测到针对所述目标视频封面的预览操作;
    若否,则关闭所述目标播放器。
  10. 根据权利要求1-9任一项所述的视频预览方法,所述加载所述播放器容器中承载的目标播放器,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容之后,还包括:
    向所述页面容器反馈所述目标播放器的加载状态和/或播放状态。
  11. 一种视频预览装置,其特征在于,包括:
    检测模块,被配置为检测视频预览页面中针对目标视频封面的预览操作,确定所述预览操作的操作持续时长,其中,所述视频预览页面中包括至少两个 视频的视频封面,每个所述视频封面处设置有页面容器,所述页面容器用于检测对应视频封面的预览操作;
    确定模块,被配置为在所述操作持续时长达到时长阈值的情况下,确定所述目标视频封面的页面容器关联的播放器容器,其中,所述播放器容器用于承载播放视频内容的目标播放器;
    播放模块,被配置为加载所述播放器容器中承载的目标播放器,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容。
  12. 一种计算设备,其特征在于,包括:
    存储器和处理器;
    所述存储器用于存储计算机可执行指令,所述处理器用于执行所述计算机可执行指令,以实现下述方法:
    检测视频预览页面中针对目标视频封面的预览操作,确定所述预览操作的操作持续时长,其中,所述视频预览页面中包括至少两个视频的视频封面,每个所述视频封面处设置有页面容器,所述页面容器用于检测对应视频封面的预览操作;
    在所述操作持续时长达到时长阈值的情况下,确定所述目标视频封面的页面容器关联的播放器容器,其中,所述播放器容器用于承载播放视频内容的目标播放器;
    加载所述播放器容器中承载的目标播放器,通过所述目标播放器在所述目标视频封面处播放所述目标视频封面对应的视频内容。
  13. 一种计算机可读存储介质,其特征在于,其存储有计算机可执行指令,该计算机可执行指令被处理器执行时实现权利要求1至10任意一项所述视频预览方法的步骤。
  14. 一种计算机程序产品,当所述计算机程序产品在计算机中执行时,令计算机执行权利要求1至10任意一项所述视频预览方法的步骤。
PCT/CN2022/099677 2021-12-06 2022-06-20 视频预览方法及装置 WO2023103325A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111482159.8A CN114205675B (zh) 2021-12-06 2021-12-06 视频预览方法及装置
CN202111482159.8 2021-12-06

Publications (1)

Publication Number Publication Date
WO2023103325A1 true WO2023103325A1 (zh) 2023-06-15

Family

ID=80650825

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/099677 WO2023103325A1 (zh) 2021-12-06 2022-06-20 视频预览方法及装置

Country Status (2)

Country Link
CN (1) CN114205675B (zh)
WO (1) WO2023103325A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205675B (zh) * 2021-12-06 2023-04-11 上海哔哩哔哩科技有限公司 视频预览方法及装置
CN117632123A (zh) * 2022-08-09 2024-03-01 腾讯科技(深圳)有限公司 局部动态化页面生成方法、装置、设备及存储介质

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634686A (zh) * 2013-12-19 2014-03-12 北京奇艺世纪科技有限公司 一种用于预览视频的方法及装置
US20160334973A1 (en) * 2015-05-11 2016-11-17 Facebook, Inc. Methods and Systems for Playing Video while Transitioning from a Content-Item Preview to the Content Item
CN106231437A (zh) * 2016-07-25 2016-12-14 深圳Tcl新技术有限公司 视频节目预览方法及装置
CN108810641A (zh) * 2018-06-04 2018-11-13 北京潘达互娱科技有限公司 一种视频播放方法、装置及电子设备
CN109246461A (zh) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 视频预加载的方法、应用客户端及电子设备
CN110691282A (zh) * 2019-10-16 2020-01-14 北京字节跳动网络技术有限公司 视频处理方法、装置、存储介质及电子设备
CN111327917A (zh) * 2020-03-09 2020-06-23 北京达佳互联信息技术有限公司 直播内容的预览方法、装置、设备及存储介质
CN111432278A (zh) * 2020-02-27 2020-07-17 北京达佳互联信息技术有限公司 视频控制方法、装置、终端及存储介质
CN113286189A (zh) * 2021-04-23 2021-08-20 北京奇艺世纪科技有限公司 视频播放方法、装置、服务器及存储介质
CN114205675A (zh) * 2021-12-06 2022-03-18 上海哔哩哔哩科技有限公司 视频预览方法及装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110016000A1 (en) * 2009-07-15 2011-01-20 Brian David Cronshaw Creating content experience with video widgets
EP2646970A4 (en) * 2010-12-02 2015-08-05 Dayspark Inc SYSTEMS, APPARATUS AND METHOD FOR STREAMING MULTIPLE DIFFERENT MEDIA CONTENT IN A DIGITAL CONTAINER
GB2538997A (en) * 2015-06-03 2016-12-07 Nokia Technologies Oy A method, an apparatus, a computer program for video coding
US20180024717A1 (en) * 2016-07-25 2018-01-25 Google Inc. Playback of media content inline within a scrollable mixed multimedia display background
CN106791953B (zh) * 2016-12-22 2020-04-21 北京奇艺世纪科技有限公司 多播放器控制方法、服务器及客户端
CN110611844B (zh) * 2019-10-18 2021-12-28 网易(杭州)网络有限公司 应用中播放器的控制方法、装置和视频播放装置
CN110636366A (zh) * 2019-10-25 2019-12-31 百度在线网络技术(北京)有限公司 视频的播放处理方法、装置、电子设备和介质
CN111970566A (zh) * 2020-08-26 2020-11-20 北京达佳互联信息技术有限公司 视频播放方法、装置、电子设备及存储介质
CN112770168B (zh) * 2020-12-23 2023-10-17 广州虎牙科技有限公司 视频的播放方法以及相关装置、设备
CN113365150B (zh) * 2021-06-04 2023-02-07 上海哔哩哔哩科技有限公司 视频处理方法和视频处理装置

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634686A (zh) * 2013-12-19 2014-03-12 北京奇艺世纪科技有限公司 一种用于预览视频的方法及装置
US20160334973A1 (en) * 2015-05-11 2016-11-17 Facebook, Inc. Methods and Systems for Playing Video while Transitioning from a Content-Item Preview to the Content Item
CN106231437A (zh) * 2016-07-25 2016-12-14 深圳Tcl新技术有限公司 视频节目预览方法及装置
CN108810641A (zh) * 2018-06-04 2018-11-13 北京潘达互娱科技有限公司 一种视频播放方法、装置及电子设备
CN109246461A (zh) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 视频预加载的方法、应用客户端及电子设备
CN110691282A (zh) * 2019-10-16 2020-01-14 北京字节跳动网络技术有限公司 视频处理方法、装置、存储介质及电子设备
CN111432278A (zh) * 2020-02-27 2020-07-17 北京达佳互联信息技术有限公司 视频控制方法、装置、终端及存储介质
CN111327917A (zh) * 2020-03-09 2020-06-23 北京达佳互联信息技术有限公司 直播内容的预览方法、装置、设备及存储介质
CN113286189A (zh) * 2021-04-23 2021-08-20 北京奇艺世纪科技有限公司 视频播放方法、装置、服务器及存储介质
CN114205675A (zh) * 2021-12-06 2022-03-18 上海哔哩哔哩科技有限公司 视频预览方法及装置

Also Published As

Publication number Publication date
CN114205675A (zh) 2022-03-18
CN114205675B (zh) 2023-04-11

Similar Documents

Publication Publication Date Title
WO2023103325A1 (zh) 视频预览方法及装置
JP7263442B2 (ja) モバイルアプリケーションのリアルタイム遠隔制御のためのシステムおよび方法
US11231959B2 (en) Foreground and background switching entry generation and display following quit operations
US11399090B2 (en) Page control for history pages of browsed data
WO2021159771A1 (zh) 弹幕处理方法、装置、电子设备及计算机可读存储介质
US20160188363A1 (en) Method, apparatus, and device for managing tasks in multi-task interface
TW201810071A (zh) 頁面元件動態佈局方法、裝置及客戶端
US20210397309A1 (en) Interface display method and apparatus, and storage medium
US20150082239A1 (en) Remote Virtualization of Mobile Apps with Transformed Ad Target Preview
US20120079119A1 (en) Interacting with cloud-based applications using unrelated devices
WO2013062599A1 (en) Enhanced multimedia content preview rendering in a cloud content management system
WO2013075667A1 (zh) 应用程序的操作、生成、启动的方法及其装置
US20190028768A1 (en) Display method and device for attached media information
CN109814801A (zh) 应用登录方法、装置、终端及存储介质
WO2018130085A1 (zh) 一种页面展示方法及装置
US20180196584A1 (en) Execution of multiple applications on a device
US20150199058A1 (en) Information processing method and electronic device
CN113268212A (zh) 投屏方法、装置、存储介质及电子设备
CN111901695B (zh) 视频内容截取方法、装置和设备及计算机存储介质
US10338937B2 (en) Multi-pane graphical user interface with dynamic panes to present web data
WO2023179549A1 (zh) 一种文档块分享方法、装置、系统及存储介质
US20170070784A1 (en) Interactive content generation for thin client applications
CN107911482A (zh) 目标应用打开方法及装置
CN110798521B (zh) 分享文件的方法、装置、电子设备及存储介质
CN112055164A (zh) 信息互动方法、装置、终端及存储介质

Legal Events

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

Ref document number: 22902763

Country of ref document: EP

Kind code of ref document: A1