CN111726677A - Video playing method and device, computer storage medium and electronic equipment - Google Patents

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

Info

Publication number
CN111726677A
CN111726677A CN202010514982.1A CN202010514982A CN111726677A CN 111726677 A CN111726677 A CN 111726677A CN 202010514982 A CN202010514982 A CN 202010514982A CN 111726677 A CN111726677 A CN 111726677A
Authority
CN
China
Prior art keywords
video
custom
target
trailer
user
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.)
Granted
Application number
CN202010514982.1A
Other languages
Chinese (zh)
Other versions
CN111726677B (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.)
Shenzhen Yayue Technology Co ltd
Original Assignee
Tencent Technology Shenzhen 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 Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202010514982.1A priority Critical patent/CN111726677B/en
Publication of CN111726677A publication Critical patent/CN111726677A/en
Application granted granted Critical
Publication of CN111726677B publication Critical patent/CN111726677B/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/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/432Content retrieval operation from a local storage medium, e.g. hard-disk
    • 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/231Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
    • 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/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • 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

Abstract

The disclosure provides a video playing method and device, a computer storage medium and electronic equipment, and relates to the field of video playing. The method comprises the following steps: responding to a first trigger operation of a user on a target video, and acquiring a video resource corresponding to the target video; before the video resource is played, whether a target custom title corresponding to the target video exists in a local database is inquired; when the custom title exists, playing the target custom title; after the video resource is played to a preset time node, inquiring whether a target custom trailer corresponding to the target video exists in the local database; and when the target custom trailer exists and the video resource is played, playing the target custom trailer. The video playing efficiency can be improved, the user-defined title/title is set, the video is more diversified, and the video using participation of a user is improved.

Description

Video playing method and device, computer storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of video playing technologies, and in particular, to a video playing method, a video playing apparatus, a computer-readable storage medium, and an electronic device.
Background
With the increase of network coverage and the popularization of intelligent electronic devices, more and more users select to download video playing clients and watch videos in the video playing clients. For video types such as drama and movie, the video types are generally divided into three parts, namely, a title + a feature content + a title, wherein the title and the title are formed by editing the feature content. For users who do not want to waste time to watch the head and the end of the title, the users usually skip the head and the end of the title by sliding a progress bar, or turn on a function of automatically skipping the head and the end of the title in a video playing client. Meanwhile, when skipping the head and the tail of the film, the platform usually gives some prompt to the user, such as "the head is skipped for you" and "the tail is to be skipped". Therefore, the user experience is poor, meanwhile, various prompts are added to the video playing client to inform the user, and the resource consumption is increased.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The embodiment of the disclosure provides a video playing method, a video playing device, a computer readable storage medium and an electronic device, so that the playing efficiency of a video can be improved at least to a certain extent, the waiting time can be reduced, meanwhile, the video is more diversified, the participation degree of a user in using the video is improved, and the active user amount in a video playing client is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows, or in part will be obvious from the description, or may be learned by practice of the disclosure.
According to an aspect of the embodiments of the present disclosure, there is provided a video playing method, including: responding to a first trigger operation of a user on a target video, and acquiring a video resource corresponding to the target video; before the video resource is played, whether a target custom title corresponding to the target video exists in a local database is inquired; when the custom title exists, playing the target custom title; after the video resource is played to a preset time node, inquiring whether a target custom trailer corresponding to the target video exists in the local database; and when the target custom trailer exists and the video resource is played, playing the target custom trailer.
According to an aspect of the embodiments of the present disclosure, there is provided a video playback apparatus including: the video resource acquisition module is used for responding to a first trigger operation of a user on a target video and acquiring a video resource corresponding to the target video; the user-defined title query module is used for querying whether a target user-defined title corresponding to the target video exists in a local database before the video resource is played; the user-defined title playing module is used for playing the target user-defined title when the user-defined title exists; the user-defined film trailer query module is used for querying whether a target user-defined film trailer corresponding to the target video exists in the local database after the video resource is played to a preset time node; and the custom trailer playing module is used for playing the target custom trailer when the target custom trailer exists and the video resource playing is finished.
In some embodiments of the present disclosure, based on the foregoing solution, the local database stores a first auxiliary file, a second auxiliary file, or both, where the first auxiliary file includes a video identifier.
In some embodiments of the present disclosure, based on the foregoing solution, the custom leader query module is configured to: when the first auxiliary file is stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; and if so, acquiring a storage path of a user-defined title in the first auxiliary file, acquiring the user-defined title according to the storage path of the user-defined title, and taking the user-defined title as the target user-defined title.
In some embodiments of the present disclosure, based on the foregoing solution, the custom leader query module is configured to: and when the second auxiliary file is stored in the local database, acquiring a storage path of a custom title in the second auxiliary file, acquiring the custom title according to the storage path of the custom title, and taking the custom title as the target custom title.
In some embodiments of the present disclosure, based on the foregoing solution, the custom leader query module is configured to: when a first auxiliary file and a second auxiliary file are stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; if the first auxiliary file is matched with the target custom title, acquiring a storage path of the custom title in the first auxiliary file, acquiring the custom title according to the storage path of the custom title, and taking the custom title as the target custom title; and if not, acquiring a storage path of the user-defined slice in the second auxiliary file, acquiring a user-defined slice header according to the storage path of the user-defined slice header, and taking the user-defined slice header as the target user-defined slice header.
In some embodiments of the present disclosure, based on the foregoing solution, the video playing apparatus is configured to: and when the first auxiliary file, the second auxiliary file or the storage paths of the custom titles in the first auxiliary file and the second auxiliary file do not contain, directly playing the video resources.
In some embodiments of the present disclosure, based on the foregoing solution, the custom trailer query module is configured to: when a first auxiliary file is stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; and if so, acquiring a storage path of the custom film trailer in the first auxiliary file, acquiring the custom film trailer according to the storage path of the custom film trailer, and taking the custom film trailer as the target custom film trailer.
In some embodiments of the present disclosure, based on the foregoing solution, the custom trailer query module is configured to: when a second auxiliary file is stored in the local database, acquiring a storage path of a custom trailer in the second auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer.
In some embodiments of the present disclosure, based on the foregoing solution, the custom trailer query module is configured to: when a first auxiliary file and a second auxiliary file are stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; if the first auxiliary file is matched with the target custom trailer, acquiring a storage path of the custom trailer in the first auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer; and if not, acquiring a storage path of the custom film trailer in the second auxiliary file, acquiring the custom film trailer according to the storage path of the custom film trailer, and taking the custom film trailer as the target custom film trailer.
In some embodiments of the present disclosure, based on the foregoing solution, the video playing apparatus is further configured to: and when the first auxiliary file, the second auxiliary file or the storage paths of the custom trailers are not contained in the first auxiliary file and the second auxiliary file, stopping playing or playing the new video resource after the video resource is played.
In some embodiments of the present disclosure, based on the foregoing solution, the video playing apparatus is further configured to: before responding to the first trigger operation, responding to a second trigger operation of the user, and acquiring a video identifier and a storage path of a custom title, a storage path of a custom trailer or a storage path of the custom title and the trailer corresponding to the video identifier; and constructing a first auxiliary file according to the video identifier and a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer corresponding to the video identifier.
In some embodiments of the present disclosure, based on the foregoing solution, the video playing apparatus is further configured to: before responding to the first trigger operation, responding to a third trigger operation of the user, and acquiring a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer; and constructing a second auxiliary file according to the storage path of the user-defined title, the storage path of the user-defined title or the storage paths of the user-defined title and the title.
According to an aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the video playing method according to the above embodiments.
According to an aspect of an embodiment of the present disclosure, there is provided an electronic device including: one or more processors; a storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform a video playback method as described in the above embodiments.
In the technical scheme provided by some embodiments of the present disclosure, first, a first trigger operation of a user on a target video is responded, and a video resource corresponding to the first trigger operation is acquired; secondly, before playing the video resource, inquiring whether a target self-defined title corresponding to the target video exists locally, and playing the self-defined title when the target self-defined title exists; and then after the video resource is played to a preset time node, inquiring whether a target custom trailer corresponding to the target video exists locally or not, and playing the custom trailer when the target custom trailer exists and the video resource is played. According to the technical scheme, on one hand, the required self-defined title or self-defined title is obtained from the local database according to the playing progress, so that the data processing efficiency can be improved, the waiting time is reduced, and the playing efficiency is improved; on the other hand, the user-defined title/trailer can be set, so that the video is more diversified, the participation degree of the user in using the video is improved, and the user experience is further improved; on the other hand, the active user quantity of the video playing client can be increased.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty. In the drawings:
fig. 1 shows a schematic diagram of an exemplary system architecture to which technical aspects of embodiments of the present disclosure may be applied;
fig. 2 schematically shows a flow diagram of a video playing method performed by a terminal device according to an embodiment of the present disclosure;
3A-3D schematically illustrate interface diagrams for setting a custom leader and/or a custom trailer according to one embodiment of the present disclosure;
4A-4C schematically illustrate interface diagrams for setting custom leader and trailer applicability according to one embodiment of the present disclosure;
FIG. 5 schematically shows a flowchart for obtaining a target custom title according to one embodiment of the present disclosure;
FIG. 6 schematically shows a flowchart for obtaining a target custom title according to an embodiment of the present disclosure;
FIG. 7 schematically shows a flowchart for obtaining a target custom trailer according to an embodiment of the present disclosure;
FIG. 8 schematically shows a flowchart for obtaining a target custom trailer according to an embodiment of the present disclosure;
fig. 9 schematically shows a flowchart of a video playing method performed by a server according to an embodiment of the present disclosure;
fig. 10 schematically shows a flowchart for forming a video slice list file according to an embodiment of the present disclosure;
FIG. 11 schematically shows a block diagram of a video playback device according to an embodiment of the present disclosure;
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 includes a terminal device 101, a network 102, and a server 103, wherein the terminal device 101 may be any electronic device with a display screen, such as a tablet computer, a notebook computer, a desktop computer, a smart phone, a smart television, and the like; the medium used by network 102 to provide communication links between terminal devices 101 and server 103, network 102 may include various connection types, such as wired communication links, wireless communication links, and so forth; the server 103 may be an independent server, or may be a server cluster or a cloud server composed of a plurality of servers.
It should be understood that the number of terminal devices 101, networks 102, servers 103 in fig. 1 is merely illustrative. There may be any number of terminal devices 101, networks 102, servers 103, as desired.
In an embodiment of the present disclosure, a video playing client may be installed in the terminal device 101, and after a user logs in the video playing client, the user may watch a video. Meanwhile, the user can also customize the leader and the trailer in the video playing client, for example, images or videos containing favorite characters, animals and natural landscapes are used as the leader or the trailer, so that the user-defined leader different from the video leader can be watched before the video playing, the user-defined trailer different from the video trailer can be watched after the video playing is finished, and the participation degree and the interestingness of the video are improved. The user can store the custom title/trailer locally or on the server when setting the custom title/trailer, and can limit the video suitable for the custom title/trailer, for example, the custom title/trailer can be played only when playing a certain tv series, or the custom title/trailer can be played when playing any video in the platform. When the custom title/trailer is set locally, first, a first trigger operation of a user on a target video can be responded, and a corresponding video resource is acquired from a local database of the terminal device 101 or the server 103 according to the first trigger operation; before playing the video resource, whether a target custom film header corresponding to a target video exists or not can be searched in a local database, if so, the video is played, and if not, a video positive film is directly played; and then, when the video resource is played to a preset time node, searching whether a target custom trailer corresponding to the target video exists in the local database, if so, playing the target custom trailer after the video resource is played, and if not, stopping playing or playing a new video resource after the video resource is played. When the custom title/trailer is set in the server, the set custom title/trailer can be obtained according to the account number of the user in the video playing client, and after the video resource which the user wants to play is obtained, format modification and integration can be performed on the custom title/trailer and the video resource to form a playable complete video and play the playable complete video.
According to the technical scheme of the embodiment of the disclosure, on one hand, the required custom title or custom title is obtained from the local database according to the playing progress, so that the data processing efficiency can be improved, the waiting time is reduced, and the playing efficiency is improved; on the other hand, the diversity and the interestingness of the video can be increased by setting the self-defined leader/trailer, the participation degree of the user in the video is enhanced, and the user experience is further improved; on the other hand, the downloading amount of video playing software and the user activity of the video playing client can be increased.
It should be noted that the video playing method provided by the embodiment of the present disclosure may be executed by a terminal device or a server, or the terminal device and the server may execute the video playing method provided by the embodiment of the present disclosure together.
In the related art in the field, taking a television drama episode as an example, it is composed of three parts, a title, episode contents and a trailer, when playing, generally the first episode configuration does not skip the title and the trailer, and the rest of dramas skip the title and the trailer by default, and of course, the user may select "do not skip the title and the trailer" in the setting, but since the title and the trailer are all repeatedly played, the attraction to the user is not great, and there are few user settings that are not skipped. In addition, skipping the head and the tail of the film generally gives some prompt to the user, such as "the head of the film is skipped for you" and "the tail of the film is to be skipped".
Correspondingly, the related technology has the defects that the user can not look at the head and the tail of the film specially, so that the bad experience is brought to the user when the head and the tail of the film are played; in addition, even if the video playing client is set to automatically skip the head and the tail of the video, various prompts are added to inform the user, so that the impression of the user is influenced, and resources are wasted.
In view of the problems in the related art, the embodiments of the present disclosure provide a video playing method, which can utilize the beginning and the end of a film, implement the interaction between a user and a video, and improve the user experience.
Fig. 2 schematically shows a flowchart of a video playing method according to an embodiment of the present disclosure, where the method may be performed by a terminal device or a server, and may also be performed by both the terminal device and the server, where the terminal device and the server may be the terminal device 101 and the server 103 shown in fig. 1, and the video playing method performed by the terminal device is described as an example. Referring to fig. 2, the video playing method at least includes steps S210 to S250, which are described in detail as follows:
in step S210, in response to a first trigger operation of a target video by a user, a video resource corresponding to the target video is acquired.
In an embodiment of the present disclosure, after a user logs in a video playing client, the user may browse video information in each plate, for example, the content of the video is roughly known through information such as a video name, a video cover, a video introduction, and the like, and when it is determined that the video is a target video that the user wants to watch, the user may perform a first trigger operation on the target video to send a video loading request. The first trigger operation may specifically be a single-click operation, a double-click operation, and the like, and when a user clicks related video information, a video loading request related to a target video is sent out. The video in the embodiments of the present disclosure may be a regular post-production video, such as a movie, a tv show, etc.; the video may also be a homemade video, which is not specifically limited in this disclosure.
In an embodiment of the present disclosure, after receiving a video loading request, a terminal device may obtain, in response to the video loading request, a video resource corresponding to a target video, where the video resource corresponding to the target video may be a video resource stored in a cache or a video resource stored in a database connected to a server. When responding to a first trigger operation of a user on a target video, acquiring identification information of the target video, such as a video number and the like, then performing matching search in a cache according to the identification information, and if a video resource matched with the identification information exists in the cache, acquiring the video resource as a video resource corresponding to the target video; and if the matched video resources do not exist in the cache, sending a resource acquisition request to the server, and after responding to the resource acquisition request, the server can acquire the corresponding video resources from the cloud and return the video resources to the terminal equipment. After the terminal equipment acquires the video resources corresponding to the target video, the video resources can be loaded and played locally for the user to view.
In step S220, before playing the video resource, it is queried whether a target custom title corresponding to the target video exists in a local database.
In an embodiment of the present disclosure, in order to improve the participation degree of a user in a video and improve the diversity and interest in the process of viewing the video, the user may set a custom title/trailer, specifically, only set the custom title, only set the custom trailer, both set the custom title and the custom trailer, when the user only sets the custom title or the custom trailer, the custom title may be played first before the video feature is played or the custom trailer may be played after the video feature is played; when the user-defined title and the user-defined trailer are set, the user-defined title can be played before the video feature is played, and the user-defined trailer can be played after the video feature is played. In the embodiment of the present disclosure, the custom header and the custom trailer may be pictures or videos obtained by a user through a terminal device having a camera unit, or pictures or videos obtained by a user through downloading from a network, for example, the user may browse an album or a multimedia library of the terminal device and select one or more pictures and one or more videos as the custom header/trailer, or may also process the selected pictures and/or videos to form the custom header/trailer.
In an embodiment of the present disclosure, in order to ensure that the video playing client can timely obtain the custom title/trailer when playing the video feature, the user can set and store the custom title/trailer in the video playing client in advance, so that when the video playing client is preparing to play the video resource, the custom title can be timely obtained to play, and when the video resource is nearly finished playing, the custom trailer can be obtained and played after the video resource is finished playing. 3A-3D show schematic diagrams of an interface for setting a custom title/trailer, and as shown in FIG. 3A, options of "automatically skipping title/trailer" and "custom title/trailer" are set in the setting interface, and a user can open or close the function of "automatically skipping title/trailer" by selecting a key, and simultaneously open the setting interface of the custom title/trailer by clicking the key corresponding to the "custom title/trailer"; as shown in fig. 3B, an address bar and a browse key corresponding to the "custom film leader" and an address bar and a browse key corresponding to the "custom film trailer" exist on the setting interface of the custom film leader and the custom film trailer; the user can click a browse key to enter an album, an album or a multimedia library, and select a picture or a video which is to be used as a custom title or a custom trailer from the album, the album or the multimedia library, as shown in fig. 3C; when the user selects the desired picture or video, the interface returns to the setting interface of the custom title/trailer, and the storage path of the selected picture or video is displayed in the corresponding address bar, as shown in fig. 3D. .
In an embodiment of the present disclosure, the system defaults that the priority of the custom title/trailer is higher than that of the video title, and after the user sets the custom title/trailer, no matter whether the function of "automatically skipping the title/trailer" is turned on, only the custom title/trailer is played during playing, but not the video title/trailer. However, for the situation that the user-defined title/title is not set, if the user does not open the function of "automatically skipping title and title", the title or title of the video will be played during playing, and only when the user opens the function of "automatically skipping title and title", the feature of the video will be directly played during playing.
In an embodiment of the present disclosure, an applicable range of the custom leader/trailer may also be set, for example, the custom leader/trailer is set only for a certain video, or the custom leader/trailer is set for all videos. Fig. 4A-4C show schematic diagrams of an interface for setting an application range of a custom title and a trailer, as shown in fig. 4A, an identification bar and a browse key corresponding to an applicable video are provided under an address bar and a browse key corresponding to the custom trailer, and a user can enter a candidate video selection interface by clicking the browse key, as shown in fig. 4B, in the candidate video selection interface, the user can select a certain video that the user wants to set the custom title/trailer, and after selecting the certain video, the user can return to a custom title and trailer setting page by clicking a return key, and a video identification of the selected video is displayed in the identification bar, as shown in fig. 4C. Further, there is also an "all videos" option in the candidate video selection interface shown in fig. 4B, which cannot be selected simultaneously with other video options, and when the user selects this option, other video options will not be selected, and if the user selects "all videos" it means that a custom title/trailer needs to be played while any video is being played. Meanwhile, the user can select the video by clicking the option and cancel the selected video by clicking again, so that the convenience of operation is further improved.
In an embodiment of the present disclosure, when the user selects the custom title/trailer or selects the custom title/trailer and the corresponding video identifier, the custom title/trailer or the custom title/trailer and the corresponding video identifier may be saved by clicking the save button shown in fig. 3D or fig. 4C. The information can be stored in a local database, and specifically, before responding to a first trigger operation of a user, the terminal device can respond to a second trigger operation of the user to obtain a video identifier and a storage path of a custom leader, a storage path of a custom trailer or a storage path of the custom leader and the trailer corresponding to the video identifier; constructing a first auxiliary file according to the video identifier and a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer corresponding to the video identifier; or responding to a third trigger operation of the user to acquire a storage path of a user-defined title, a storage path of a user-defined title or storage paths of the user-defined title and the title; and constructing a second auxiliary file according to the storage path of the user-defined title, the storage path of the user-defined title or the storage paths of the user-defined title and the title. That is to say, the first auxiliary file is a file in which the custom title/trailer is only applicable to a single video, the second auxiliary file is a file in which the custom title/trailer is applicable to all videos, the first auxiliary file and the second auxiliary file both include a storage path of the custom title/trailer, and the custom title/trailer can be obtained from the local database according to the storage path. The second trigger operation and the third trigger operation may be the same trigger operation, and may be, for example, an operation of clicking a save button.
In an embodiment of the present disclosure, a local database may store a first auxiliary file, a second auxiliary file, a first auxiliary file, and a second auxiliary file, and the number of the first auxiliary file may be multiple, for example, if a user sets a custom title/trailer for video a at a first time point, sets a custom title/trailer for video B and video C at a second time point, and so on, then multiple first auxiliary files containing different video identifiers are formed in the local database. The second auxiliary file is a globally-oriented self-defined title/trailer, and only one second auxiliary file is usually set, so that the old self-defined title/trailer can be replaced by the new self-defined title/trailer during updating. Of course, a plurality of globally oriented custom titles and trailers can be set according to actual needs, and the playing order of each custom title and trailer is set respectively.
In an embodiment of the present disclosure, when only the first auxiliary file exists in the local database, the target custom title corresponding to the target video may be obtained from the local database according to the target video identifier corresponding to the target video. Fig. 5 is a schematic flowchart illustrating a process of obtaining a target custom title, and as shown in fig. 5, in step S501, a target video identifier corresponding to a target video is obtained; in step S502, it is determined whether the target video identifier matches the video identifier in the first auxiliary file; in step S503, if the matching is performed, a storage path of the custom title in the first auxiliary file is obtained, and the custom title is obtained according to the storage path of the custom title and is used as the target custom title. For example, the target video identifier corresponding to the target video is Mt, three first auxiliary files D1-D3 are stored in the local database, where the video identifiers included therein are Ma, Mb, and Mt, respectively, and it can be known through matching that the target video identifier is the same as the video identifier in D3, then the storage path of the custom title in D3 can be obtained, and the target custom title is obtained in the local database according to the storage path.
In an embodiment of the present disclosure, when only the second auxiliary file exists in the local database, since the custom slice header corresponding to the second auxiliary file is global-oriented, and is applicable to any video, the storage path of the custom slice header therein may be obtained when only the second auxiliary file exists, and the target custom slice header is obtained according to the storage path.
In one embodiment of the present disclosure, when the first auxiliary file and the second auxiliary file are stored in the local database, the first auxiliary file is queried first, and then the second auxiliary file is queried. Fig. 6 is a schematic flowchart illustrating a process of obtaining a target custom title, and as shown in fig. 6, in step S601, a target video identifier corresponding to a target video is obtained; in step S602, determining whether the target video identifier matches the video identifier in the first auxiliary file; in step S603, if the matching is performed, a storage path of the custom title in the first auxiliary file is obtained, the custom title is obtained according to the storage path of the custom title, and the custom title is used as a target custom title; in step S604, if the first auxiliary file is not matched with the second auxiliary file, a storage path of the custom slice in the second auxiliary file is obtained, and the custom slice header is obtained according to the storage path of the custom slice header and is used as a target custom slice header.
In an embodiment of the present disclosure, when the first auxiliary file, the second auxiliary file, or neither the first auxiliary file nor the second auxiliary file includes a storage path of a custom title, the video resource may be directly played.
In step S230, when the custom title exists, playing the target custom title.
In an embodiment of the present disclosure, after determining that the target custom title exists in the local database according to the query in step S220, all information of the target custom title may be obtained from the local database, and played in the graphical user interface of the terminal device. And after the target custom title is played, starting to load and play the video resource of the target video.
In step S240, after the video resource is played to a preset time node, whether a target custom trailer corresponding to the target video exists in the local database is queried.
In an embodiment of the present disclosure, with the playing of the video resource, it is required to query whether a target custom trailer corresponding to the target video exists in the local database when the playing is about to end, that is, after the video resource is played to a preset time node, if the target custom trailer exists, the related information needs to be obtained in time and the target custom trailer is played immediately after the playing of the video resource ends, so that an interval between the target video and the custom trailer can be reduced, and viewing experience of a user is improved. The preset time node may be a time point 5min or 3min away from the video end start time point in the feature of the video resource, and may also be another time node before the video end start time point, which is not specifically limited in this embodiment of the disclosure.
In one embodiment of the present disclosure, similar to the custom title, the manner of obtaining the target custom title is different according to the difference of the auxiliary files stored in the local database.
In an embodiment of the present disclosure, when only the first auxiliary file exists in the local database, the target custom trailer corresponding to the target video may be obtained from the local database according to the target video identifier corresponding to the target video. Fig. 7 is a schematic flowchart illustrating a process of obtaining a target custom trailer, and as shown in fig. 7, in step S701, a target video identifier corresponding to a target video is obtained; in step S702, it is determined whether the target video identifier matches the video identifier in the first auxiliary file; in step S703, if the first auxiliary file is matched with the second auxiliary file, a storage path of the custom trailer in the first auxiliary file is obtained, the custom trailer is obtained according to the storage path of the custom trailer, and the custom trailer is used as a target custom trailer. For example, the target video identifier corresponding to the target video is Mt, three first auxiliary files D1-D3 are stored in the local database, where the video identifiers included therein are Ma, Mb, and Mt, respectively, and it can be known through matching that the target video identifier is the same as the video identifier in D3, then the storage path of the custom trailer in D3 can be obtained, and the target custom trailer is obtained in the local database according to the storage path.
In an embodiment of the present disclosure, when only the second auxiliary file exists in the local database, since the custom trailer corresponding to the second auxiliary file is global-oriented, and is applicable to any video, the storage path of the custom trailer in the second auxiliary file can be obtained only when the second auxiliary file exists, and the target custom trailer is obtained according to the storage path.
In one embodiment of the present disclosure, when the first auxiliary file and the second auxiliary file are stored in the local database, the first auxiliary file may be queried first, and then the second auxiliary file may be queried. Fig. 8 is a schematic flowchart illustrating a process of obtaining a target custom trailer, and as shown in fig. 8, in step S801, a target video identifier corresponding to a target video is obtained; in step S802, it is determined whether the target video identifier matches the video identifier in the first auxiliary file; in step S803, if the first auxiliary file is matched with the second auxiliary file, a storage path of the custom trailer in the first auxiliary file is obtained, the custom trailer is obtained according to the storage path of the custom trailer, and the custom trailer is used as a target custom trailer; in step S804, if the first auxiliary file is not matched with the second auxiliary file, a storage path of the custom piece in the second auxiliary file is obtained, the custom piece trailer is obtained according to the storage path of the custom piece trailer, and the custom piece trailer is used as a target custom piece trailer.
In an embodiment of the present disclosure, when the first auxiliary file, the second auxiliary file, or neither the first auxiliary file nor the second auxiliary file includes a storage path of the custom title, the playing may be stopped after the video resource is played or the new video resource is directly played, and when the new video resource is played, the custom title/title may also be played according to the method of the foregoing embodiment.
In step S250, when the target custom trailer exists and the playing of the video resource is finished, playing the target custom trailer.
In an embodiment of the present disclosure, after determining that the target custom trailer exists in the local database according to the query in step S240, all information of the target custom trailer may be obtained from the local database, and played in the graphical user interface of the terminal device. After the playing of the target custom film trailer is finished, the playing can be stopped or the new video resource can be directly played.
In an embodiment of the present disclosure, in the above embodiment, it is described that the custom title is obtained and played before the video resource is played, when the video resource is played to the preset time node, the custom trailer may be obtained, and the custom trailer is played after the feature film playing of the video resource is finished. Of course, the user-defined title can be obtained at the same time as the user-defined title is obtained, and the user-defined title can be directly played when the user-defined title needs to be played.
In an embodiment of the present disclosure, since the custom title/trailer is stored locally, when the user logs in the video playing client in the same terminal device to watch the video using different account numbers, the user can enjoy the custom title/trailer, and the server does not need to be changed during setting, thereby avoiding unnecessary configuration and debugging of the server by the developer. In addition, in the embodiment of the disclosure, the user-defined title/trailer can be set in the server, so that the user can enjoy the user-defined title/trailer when watching videos when logging in the video playing client side at different terminals.
Fig. 9 schematically shows a flow diagram of a video playing method according to an embodiment of the present disclosure, which may be performed by a server, which may be the server 103 shown in fig. 1. Referring to fig. 9, the video playing method at least includes steps S910 to S930, which are described in detail as follows:
in step S910, a resource request sent by a terminal device is received, and a target video identifier and account information in the resource request are obtained;
in an embodiment of the disclosure, after responding to a first trigger operation of a user on a target video, a terminal device may form a resource request and send the resource request to a server, so that the server responds to the resource request to obtain a video playing resource corresponding to the target video. The resource request may specifically include a target video identifier corresponding to a target video that the user wants to watch, for example, a video number, and account information registered by the user in the video playing client. When storing the custom title/trailer set by different users in the video playing client, the account information of the user and the custom title/trailer set by the user are necessarily stored correspondingly, so that the custom title/trailer set by the user can be accurately obtained after the user logs in the video playing client.
In step S920, a target video subject is obtained according to the target video identifier, and a custom auxiliary segment is obtained according to the account information;
in an embodiment of the present disclosure, after the target video identifier and the account information in the resource request are obtained, query may be performed in the server according to the target video identifier to obtain a target video main body corresponding to the target video identifier, and query may be performed according to the account information to obtain a custom auxiliary segment corresponding to the account information, where the custom auxiliary segment may only include a custom leader and a custom trailer, or may include both the custom leader and the custom trailer, and further, a video playing resource may be formed according to the target video main body and the custom auxiliary segment.
In an embodiment of the present disclosure, a user may set one or more customized auxiliary segments corresponding to a single video through a video playing client, or may set one customized auxiliary segment corresponding to all videos in the video playing client, and upload the customized auxiliary segments to a server. The server can match the target video identification with the video identification of the self-defined auxiliary segment corresponding to a single video after acquiring the target video identification, and if the target video identification is matched with the video identification of the self-defined auxiliary segment, the matched self-defined auxiliary segment and the target video main body are integrated to form a video playing resource; and if not, integrating the custom auxiliary segments corresponding to all the videos with the target video main body to form a video playing resource. It should be noted that a plurality of customized auxiliary segments corresponding to all videos may also be set corresponding to the same account information, and one or more customized auxiliary segments among the plurality of customized auxiliary segments and the target video main body are obtained according to a certain rule to form a video playing resource.
In step S930, a video playing resource is formed according to the target video main body and the custom auxiliary segment, and the video playing resource is sent to the terminal device for playing.
In an embodiment of the present disclosure, the target video body has a format of m3u8 and is stored in the server in the form of a video slice list file, and the storage format of the custom title and the format of the target video body are different, so in order to form a playable complete video playing resource, the formats of the custom title and the target video body need to be unified, both converted into ts format, and combined to form a final video slice list file. The m3u8 is a video playing standard, is one of m3u, and is specifically a file retrieval format, wherein a video is cut into ts format video files of small segments, and then the ts format video files are stored in a server, and a path is analyzed through m3u8 to request resources.
In an embodiment of the present disclosure, fig. 10 illustrates a flowchart of forming a video slice list file, as shown in fig. 10, in step S1001, a video stream list file corresponding to a target video is obtained according to a target video identifier; in step S1002, whether a corresponding custom title exists is searched for according to the account information; in step S1003, if yes, replacing the slice header in the video stream manifest file with the custom slice header in ts format; in step S1004, after replacing the title with the custom title, updating the video stream manifest file; in step S1005, if not, searching whether a corresponding custom trailer exists according to the account information; in step S1006, if yes, replacing the trailer in the video stream manifest file with the custom trailer in ts format; in step S1007, after replacing the trailer with the custom trailer, updating the video stream manifest file, and obtaining video playing resources for playing according to the path request of the video fragments in the video stream manifest file; in step S1008, if the video fragment does not exist, the video fragment returns to the video stream manifest file, and obtains a video playing resource according to the path request of the video fragment in the video stream manifest file for playing.
In an embodiment of the present disclosure, after obtaining a video playing resource according to a video stream manifest file, the video playing resource may be sent to a terminal device, and the terminal device plays according to a playing mode of a slice header and a slice trailer set in a video playing client by a user, for example, the user sets to automatically skip the slice header and the slice trailer, and then the slice header and the slice trailer are not played, and if the user sets to play the slice header and the slice trailer, the slice header and the slice trailer are played.
The video playing method in the embodiment of the present disclosure may be executed by a terminal device or a server, or may be executed by both the terminal device and the server. When the method is executed through terminal equipment, firstly responding to a first trigger operation of a user on a target video, and acquiring a video resource corresponding to the first trigger operation; secondly, before playing the video resource, inquiring whether a target self-defined title corresponding to the target video exists locally, and playing the self-defined title when the target self-defined title exists; and then after the video resource is played to a preset time node, inquiring whether a target custom trailer corresponding to the target video exists locally or not, and playing the custom trailer when the target custom trailer exists. When the terminal equipment and the server are executed together, the terminal equipment can respond to a first trigger operation of a user on a target video and send a video resource acquisition request to the server; after receiving the video resource corresponding to the target video returned by the server, the terminal device may store the video resource in the cache; then before playing the video resource, the terminal equipment inquires whether a target self-defined title corresponding to the target video exists locally or not, and when the target self-defined title exists, the self-defined title is played; and then after the video resource is played to a preset time node, the terminal equipment inquires whether a target custom trailer corresponding to the target video exists locally or not, and plays the custom trailer when the target custom trailer exists and the video resource is played. When the method is executed through a server, firstly, a target video main body and a user-defined auxiliary segment are obtained according to a target video identifier and account information in a received resource obtaining request, then a video stream list file is formed according to the target video main body and the user-defined auxiliary segment, then, a request is made according to a path of a video segment in the video stream list file to obtain video playing resources, and finally, the video playing resources are sent to terminal equipment to be played. According to the technical scheme, on one hand, the title/the trailer can be customized by setting, and configuring different forms, such as local single-chip taking effect, local global taking effect, single-chip taking effect along with an account number and global taking effect along with the account number, so that videos are more diversified, the participation degree of the users in using the videos is improved, and the user experience is further improved; on the other hand, the active user quantity of the video playing client can be increased; on the other hand, the user-defined title is obtained before playing, and the user-defined title is obtained when playing is about to end, so that resource loss can be reduced, and playing efficiency is improved.
The following describes embodiments of the apparatus of the present disclosure, which may be used to execute the video playing method in the above embodiments of the present disclosure. For details that are not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the video playing method described above in the present disclosure.
Fig. 11 schematically shows a block diagram of a video playback device according to an embodiment of the present disclosure. The apparatus may be used to perform the corresponding steps in the methods provided by the embodiments of the present application.
Referring to fig. 11, a video playback device 1100 according to an embodiment of the present disclosure includes: the video resource acquisition module 1101, a custom title query module 1102, a custom title playback module 1103, a custom title query module 1104 and a custom title playback module 1105.
The video resource acquiring module 1101 is configured to, in response to a first trigger operation of a user on a target video, acquire a video resource corresponding to the target video; a custom leader query module 1102, configured to query whether a target custom leader corresponding to the target video exists in a local database before playing the video resource; a custom title playing module 1103, configured to play the target custom title when the custom title exists; a custom trailer query module 1104, configured to query whether a target custom trailer corresponding to the target video exists in the local database after the video resource is played to a preset time node; and a custom trailer playing module 1105, configured to play the target custom trailer when the target custom trailer exists and the playing of the video resource is finished.
In an embodiment of the present disclosure, the local database stores a first auxiliary file, a second auxiliary file, or both, where the first auxiliary file includes a video identifier.
In an embodiment of the present disclosure, the custom leader query module 1102 is configured to: when the first auxiliary file is stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; and if so, acquiring a storage path of a user-defined title in the first auxiliary file, acquiring the user-defined title according to the storage path of the user-defined title, and taking the user-defined title as the target user-defined title.
In an embodiment of the present disclosure, the custom leader query module 1102 is configured to: and when the second auxiliary file is stored in the local database, acquiring a storage path of a custom title in the second auxiliary file, acquiring the custom title according to the storage path of the custom title, and taking the custom title as the target custom title.
In an embodiment of the present disclosure, the custom leader query module 1102 is configured to: when a first auxiliary file and a second auxiliary file are stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; if the first auxiliary file is matched with the target custom title, acquiring a storage path of the custom title in the first auxiliary file, acquiring the custom title according to the storage path of the custom title, and taking the custom title as the target custom title; and if not, acquiring a storage path of the user-defined slice in the second auxiliary file, acquiring a user-defined slice header according to the storage path of the user-defined slice header, and taking the user-defined slice header as the target user-defined slice header.
In one embodiment of the present disclosure, the video playback device 1100 is configured to: and when the first auxiliary file, the second auxiliary file or the storage paths of the custom titles in the first auxiliary file and the second auxiliary file do not contain, directly playing the video resources.
In one embodiment of the present disclosure, the custom trailer query module 1104 is configured to: when a first auxiliary file is stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; and if so, acquiring a storage path of the custom film trailer in the first auxiliary file, acquiring the custom film trailer according to the storage path of the custom film trailer, and taking the custom film trailer as the target custom film trailer.
In one embodiment of the present disclosure, the custom trailer query module 1104 is configured to: when a second auxiliary file is stored in the local database, acquiring a storage path of a custom trailer in the second auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer.
In one embodiment of the present disclosure, the custom trailer query module 1104 is configured to: when a first auxiliary file and a second auxiliary file are stored in the local database, acquiring a target video identifier corresponding to the target video; judging whether the target video identification is matched with the video identification in the first auxiliary file; if the first auxiliary file is matched with the target custom trailer, acquiring a storage path of the custom trailer in the first auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer; and if not, acquiring a storage path of the custom film trailer in the second auxiliary file, acquiring the custom film trailer according to the storage path of the custom film trailer, and taking the custom film trailer as the target custom film trailer.
In an embodiment of the present disclosure, the video playback device 1100 is further configured to: and when the first auxiliary file, the second auxiliary file or the storage paths of the custom trailers are not contained in the first auxiliary file and the second auxiliary file, stopping playing or playing the new video resource after the video resource is played.
In an embodiment of the present disclosure, the video playback device 1100 is further configured to: before responding to the first trigger operation, responding to a second trigger operation of the user, and acquiring a video identifier and a storage path of a custom title, a storage path of a custom trailer or a storage path of the custom title and the trailer corresponding to the video identifier; and constructing a first auxiliary file according to the video identifier and a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer corresponding to the video identifier.
In an embodiment of the present disclosure, the video playback device 1100 is further configured to: before responding to the first trigger operation, responding to a third trigger operation of the user, and acquiring a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer; and constructing a second auxiliary file according to the storage path of the user-defined title, the storage path of the user-defined title or the storage paths of the user-defined title and the title.
The embodiment of the present disclosure further discloses a video playing device, which includes: the device comprises a receiving module, an obtaining module and a resource forming module.
Specifically, the receiving module is configured to receive a resource request sent by a terminal device, and acquire a target video identifier and account information in the resource request; the acquisition module is used for acquiring a target video main body according to the target video identifier and acquiring a custom auxiliary segment according to the account information; and the resource forming module is used for forming a video playing resource according to the target video main body and the user-defined auxiliary segment, and sending the video playing resource to the terminal equipment for playing.
The video playing device in the disclosure can define the title/the trailer by setting and configure different forms, such as local single-chip taking effect, local global taking effect, single-chip taking effect along with an account number and global taking effect along with the account number, so that the video is more diversified, the participation degree of the user in using the video is improved, and the user experience is further improved; on the other hand, the active user quantity of the video playing client can be increased; on the other hand, the user-defined title is obtained before playing, and the user-defined title is obtained when playing is about to end, so that resource loss can be reduced, and playing efficiency is improved.
FIG. 12 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure. The electronic device may be the terminal device or the server in fig. 1, and this embodiment is described by taking the electronic device as the terminal device as an example.
It should be noted that the computer system 1200 of the electronic device shown in fig. 12 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 12, the computer system 1200 includes a Central Processing Unit (CPU)1201, which can perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 1202 or a program loaded from a storage section 1208 into a Random Access Memory (RAM) 1203, and implements the image labeling method described in the above-described embodiment. In the RAM1203, various programs and data necessary for system operation are also stored. The CPU 1201, ROM 1202, and RAM1203 are connected to each other by a bus 1204. An Input/Output (I/O) interface 1205 is also connected to bus 1204.
The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, and the like; an output section 1207 including a Display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 1208 including a hard disk and the like; and a communication section 1209 including a network interface card such as a LAN (Local area network) card, a modem, or the like. The communication section 1209 performs communication processing via a network such as the internet. A driver 1210 is also connected to the I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is mounted on the drive 1210 as necessary, so that a computer program read out therefrom is mounted into the storage section 1208 as necessary.
In particular, the processes described below with reference to the flowcharts may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 1209, and/or installed from the removable medium 1211. The computer program, when executed by a Central Processing Unit (CPU)1201, performs various functions defined in the system of the present disclosure.
It should be noted that the computer readable medium shown in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software, or may be implemented by hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present disclosure also provides a computer-readable medium, which may be included in the video playback apparatus described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the present disclosure. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present disclosure.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. A video playback method, comprising:
responding to a first trigger operation of a user on a target video, and acquiring a video resource corresponding to the target video;
before the video resource is played, whether a target custom title corresponding to the target video exists in a local database is inquired;
when the custom title exists, playing the target custom title;
after the video resource is played to a preset time node, inquiring whether a target custom trailer corresponding to the target video exists in the local database;
and when the target custom trailer exists and the video resource is played, playing the target custom trailer.
2. The video playing method according to claim 1, wherein the local database stores a first auxiliary file, a second auxiliary file, or a first auxiliary file and a second auxiliary file, wherein the first auxiliary file contains a video identifier.
3. The video playing method according to claim 2, wherein when the first auxiliary file is stored in the local database, the querying whether a target custom title corresponding to the target video exists in the local database comprises:
acquiring a target video identifier corresponding to the target video;
judging whether the target video identification is matched with the video identification in the first auxiliary file;
and if so, acquiring a storage path of a user-defined title in the first auxiliary file, acquiring the user-defined title according to the storage path of the user-defined title, and taking the user-defined title as the target user-defined title.
4. The video playing method according to claim 2, wherein when the second auxiliary file is stored in the local database, the querying whether a target custom title corresponding to the target video exists in the local database comprises:
and acquiring a storage path of a user-defined title in the second auxiliary file, acquiring the user-defined title according to the storage path of the user-defined title, and taking the user-defined title as the target user-defined title.
5. The video playing method according to claim 2, wherein when the local database stores a first auxiliary file and a second auxiliary file, the querying whether a target custom title corresponding to the target video exists in the local database comprises:
acquiring a target video identifier corresponding to the target video;
judging whether the target video identification is matched with the video identification in the first auxiliary file;
if the first auxiliary file is matched with the target custom title, acquiring a storage path of the custom title in the first auxiliary file, acquiring the custom title according to the storage path of the custom title, and taking the custom title as the target custom title;
and if not, acquiring a storage path of the user-defined slice in the second auxiliary file, acquiring a user-defined slice header according to the storage path of the user-defined slice header, and taking the user-defined slice header as the target user-defined slice header.
6. The video playback method of claim 2, further comprising:
and when the first auxiliary file, the second auxiliary file or the storage paths of the custom titles in the first auxiliary file and the second auxiliary file do not contain, directly playing the video resources.
7. The video playing method according to claim 2, wherein when the local database stores the first auxiliary file, the querying whether a target custom trailer corresponding to the target video exists in the local database comprises:
acquiring a target video identifier corresponding to the target video;
judging whether the target video identification is matched with the video identification in the first auxiliary file;
and if so, acquiring a storage path of the custom trailer in the first auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer.
8. The video playing method according to claim 2, wherein when the local database stores the second auxiliary file, the querying whether the local database has a target custom trailer corresponding to the target video includes:
and acquiring a storage path of the custom film trailer in the second auxiliary file, acquiring the custom film trailer according to the storage path of the custom film trailer, and taking the custom film trailer as the target custom film trailer.
9. The video playing method according to claim 2, wherein when the local database stores a first auxiliary file and a second auxiliary file, the querying whether a target custom trailer corresponding to the target video exists in the local database comprises:
acquiring a target video identifier corresponding to the target video;
judging whether the target video identification is matched with the video identification in the first auxiliary file;
if the first auxiliary file is matched with the target custom trailer, acquiring a storage path of the custom trailer in the first auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer;
and if not, acquiring a storage path of the custom trailer in the second auxiliary file, acquiring the custom trailer according to the storage path of the custom trailer, and taking the custom trailer as the target custom trailer.
10. The video playback method of claim 2, further comprising:
and when the first auxiliary file, the second auxiliary file or the storage paths of the custom trailers are not contained in the first auxiliary file and the second auxiliary file, stopping playing or playing the new video resource after the video resource is played.
11. The video playback method of claim 1, wherein prior to responding to the first trigger operation, the method further comprises:
responding to a second trigger operation of the user, and acquiring a video identifier and a storage path of a self-defined title, a storage path of a self-defined trailer or storage paths of the self-defined title and the trailer corresponding to the video identifier;
and constructing a first auxiliary file according to the video identifier and a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer corresponding to the video identifier.
12. The video playback method of claim 1, wherein prior to responding to the first trigger operation, the method further comprises:
responding to the third trigger operation of the user, and acquiring a storage path of a user-defined title, a storage path of a user-defined trailer or storage paths of the user-defined title and the trailer;
and constructing a second auxiliary file according to the storage path of the user-defined title, the storage path of the user-defined title or the storage paths of the user-defined title and the title.
13. A video playback apparatus, comprising:
the video resource acquisition module is used for responding to a first trigger operation of a user on a target video and acquiring a video resource corresponding to the target video;
the user-defined title query module is used for querying whether a target user-defined title corresponding to the target video exists in a local database before the video resource is played;
the user-defined title playing module is used for playing the target user-defined title when the user-defined title exists;
the user-defined film trailer query module is used for querying whether a target user-defined film trailer corresponding to the target video exists in the local database after the video resource is played to a preset time node;
and the custom trailer playing module is used for playing the target custom trailer when the target custom trailer exists and the video resource playing is finished.
14. A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, implements a video playback method as claimed in any one of claims 1 to 12.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to perform the video playback method of any of claims 1-12.
CN202010514982.1A 2020-06-08 2020-06-08 Video playing method and device, computer storage medium and electronic equipment Active CN111726677B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010514982.1A CN111726677B (en) 2020-06-08 2020-06-08 Video playing method and device, computer storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010514982.1A CN111726677B (en) 2020-06-08 2020-06-08 Video playing method and device, computer storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN111726677A true CN111726677A (en) 2020-09-29
CN111726677B CN111726677B (en) 2021-09-17

Family

ID=72567297

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010514982.1A Active CN111726677B (en) 2020-06-08 2020-06-08 Video playing method and device, computer storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111726677B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032082A (en) * 2021-04-19 2021-06-25 北京新三优秀科技有限公司 Control display method, electronic equipment and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497594A (en) * 2011-12-16 2012-06-13 乐视网信息技术(北京)股份有限公司 Play method of serial video files
US20120210351A1 (en) * 2011-02-11 2012-08-16 Microsoft Corporation Presentation of customized digital media programming
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN103747298A (en) * 2014-01-10 2014-04-23 北京酷云互动科技有限公司 Method and device for replacing video advertisement program of television
CN104581197A (en) * 2014-12-31 2015-04-29 苏州阔地网络科技有限公司 Video title and end adding method and device
CN106101843A (en) * 2016-06-06 2016-11-09 腾讯科技(北京)有限公司 The methods of exhibiting of rich media file and device
CN106162352A (en) * 2015-03-25 2016-11-23 阿里巴巴集团控股有限公司 Video ads interactive play method and device
CN110225383A (en) * 2019-06-13 2019-09-10 北京连屏科技有限公司 The loading method of pushed information in Interactive Internet TV

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120210351A1 (en) * 2011-02-11 2012-08-16 Microsoft Corporation Presentation of customized digital media programming
CN102497594A (en) * 2011-12-16 2012-06-13 乐视网信息技术(北京)股份有限公司 Play method of serial video files
CN102855909A (en) * 2012-08-29 2013-01-02 四三九九网络股份有限公司 Batch dynamic loading method for video titles
CN103747298A (en) * 2014-01-10 2014-04-23 北京酷云互动科技有限公司 Method and device for replacing video advertisement program of television
CN104581197A (en) * 2014-12-31 2015-04-29 苏州阔地网络科技有限公司 Video title and end adding method and device
CN106162352A (en) * 2015-03-25 2016-11-23 阿里巴巴集团控股有限公司 Video ads interactive play method and device
CN106101843A (en) * 2016-06-06 2016-11-09 腾讯科技(北京)有限公司 The methods of exhibiting of rich media file and device
CN110225383A (en) * 2019-06-13 2019-09-10 北京连屏科技有限公司 The loading method of pushed information in Interactive Internet TV

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113032082A (en) * 2021-04-19 2021-06-25 北京新三优秀科技有限公司 Control display method, electronic equipment and computer readable storage medium
CN113032082B (en) * 2021-04-19 2023-08-11 北京新三优秀科技有限公司 Control display method, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN111726677B (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN107832434B (en) Method and device for generating multimedia play list based on voice interaction
CN110719524B (en) Video playing method and device, intelligent playing equipment and storage medium
CN109474843B (en) Method for voice control of terminal, client and server
CN102255951B (en) Asset resolvable bookmarks
CN110139162B (en) Media content sharing method and device, storage medium and electronic device
US20040150663A1 (en) System and method for editing multimedia file using internet
CN108781311B (en) Video player framework for media distribution and management platform
US10268760B2 (en) Apparatus and method for reproducing multimedia content successively in a broadcasting system based on one integrated metadata
CN109491739B (en) Theme color dynamic determination method and device, electronic equipment and storage medium
WO2018107719A1 (en) Data sharing method, apparatus, terminal device and server
CN111654730B (en) Video playing method, data processing method, related device and medium
US10511704B2 (en) Method and device for displaying video information, and mobile terminal
JP2022531339A (en) Resource configuration method, resource configuration device, computer equipment, and computer program
CN111046292A (en) Live broadcast recommendation method and device, computer-readable storage medium and electronic device
CN111240564B (en) Material display method and device, electronic equipment and storage medium
US20170171605A1 (en) Method and Electronic Device for Switching Live Broadcast to On-Demand Unicast
CN109600625A (en) A kind of program searching method, device, equipment and medium
CN111726677B (en) Video playing method and device, computer storage medium and electronic equipment
US9721321B1 (en) Automated interactive dynamic audio/visual performance with integrated data assembly system and methods
JP2001292383A (en) Receiving device and method
US20070110169A1 (en) Method and device for creating a video sequence representative of a digital video sequence and associated methods and devices for transmitting and receiving video data
CN115278339B (en) Mixed broadcast processing method and system
US20230283824A1 (en) Dynamic scheduling of content
US20090167769A1 (en) Method, device and system for managing structure data in a graphic scene
US20170134781A1 (en) Method and apparatus for realizing custom menu, client and server

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
TR01 Transfer of patent right

Effective date of registration: 20221114

Address after: 1402, Floor 14, Block A, Haina Baichuan Headquarters Building, No. 6, Baoxing Road, Haibin Community, Xin'an Street, Bao'an District, Shenzhen, Guangdong 518000

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 518057 Tencent Building, No. 1 High-tech Zone, Nanshan District, Shenzhen City, Guangdong Province, 35 floors

Patentee before: TENCENT TECHNOLOGY (SHENZHEN) Co.,Ltd.

TR01 Transfer of patent right