CN112118487B - Video playing control method, device, equipment and medium - Google Patents

Video playing control method, device, equipment and medium Download PDF

Info

Publication number
CN112118487B
CN112118487B CN201910543407.1A CN201910543407A CN112118487B CN 112118487 B CN112118487 B CN 112118487B CN 201910543407 A CN201910543407 A CN 201910543407A CN 112118487 B CN112118487 B CN 112118487B
Authority
CN
China
Prior art keywords
video
address information
video resource
playing
background server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910543407.1A
Other languages
Chinese (zh)
Other versions
CN112118487A (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 CN201910543407.1A priority Critical patent/CN112118487B/en
Publication of CN112118487A publication Critical patent/CN112118487A/en
Application granted granted Critical
Publication of CN112118487B publication Critical patent/CN112118487B/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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4668Learning process for intelligent management, e.g. learning user preferences for recommending movies for recommending content, e.g. movies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/84Generation or processing of descriptive data, e.g. content descriptors

Abstract

The invention provides a video playing control method, a video playing control device, video playing control equipment and a video playing control medium, which are used for improving the utilization rate of video resources. The method specifically comprises the following steps: the method comprises the steps that terminal equipment reports target address information to a background server when video playing fails, the background server determines video resource identifiers corresponding to the target address information in a first mapping relation according to the target address information, and at least one piece of video resource address information corresponding to the video resource identifiers of all videos is stored in the first mapping relation; if the corresponding video resource identifier also stores other video resource address information except the target address information in the first mapping relation, the alternative address information is determined in other video resource addresses and returned to the terminal equipment, so that the terminal equipment can play video according to the alternative address information, and therefore when one video resource address information fails, video playing can be performed through the corresponding other video resource address information, and the utilization rate of video resource resources is improved.

Description

Video playing control method, device, equipment and medium
Technical Field
The present invention relates to the field of video processing technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling video playback.
Background
Video, which carries a greater amount of information than traditional text and pictures, is increasingly becoming the primary medium for people to convey and reinforce emotions. The user can play videos anytime and anywhere through the video playing client, wherein the played videos are mainly stored in the video storage server. The videos stored in the server are various in types, including video resources stored in the server, small videos made by users, video segments uploaded after the users cut and edit watched videos, and the like.
A user watches various videos at a video playing client through terminal equipment according to own preference, but when the videos are played, the video playing fails due to various reasons, so that the utilization rate of video resources is reduced. And no solution for video playing failure exists at present.
Disclosure of Invention
The invention provides a video playing control method, a video playing control device, video playing control equipment and a video playing control medium, which are used for improving the utilization rate of video resources.
The embodiment of the invention provides the following specific technical scheme:
in a first aspect, an embodiment of the present invention provides a video playing control method, including:
receiving target address information of a video reported by a terminal device when the video playing fails;
determining a video resource identifier corresponding to the target address information in a first mapping relation, wherein the video resource identifier and the video resource address information of each video are correspondingly stored in the first mapping relation, and each video resource identifier correspondingly stores at least one piece of video resource address information;
if other video resource address information except the target address information is also stored corresponding to the video resource identifier in the first mapping relation, determining alternative address information in other video resource addresses;
and returning the alternative address information to the terminal equipment so that the terminal equipment plays the video according to the alternative address information.
Optionally, the method further includes:
receiving video address information and a video resource identifier reported by terminal equipment when video playing is successful;
and updating the first mapping relation according to the reported video address information and the video resource identifier.
Optionally, the method further includes:
accumulating the times of reporting the target address information by the terminal equipment;
and when the accumulated times reach a set threshold value, deleting the target address information corresponding to the video resource identifier in the first mapping relation.
Optionally, the method further includes:
when a notification message that the terminal equipment fails to play the video according to the alternative address information is received, obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
Optionally, the method further includes:
if the video resource identifier does not store other video resource address information except the target address information in the first mapping relation, obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
Optionally, when the address information of the other video resource includes at least two, the alternative address information includes at least two.
In a second aspect, an embodiment of the present invention provides another video playback control method, including:
when playing video fails according to the target address information, reporting the target address information to a background server;
receiving alternative address information returned by the background server, wherein the alternative address information is determined by the background server in a first mapping relation according to the target address information, video resource identifiers and video resource address information of each video are correspondingly stored in the first mapping relation, and at least one piece of video resource address information is correspondingly stored in each video resource identifier;
and playing the video according to the alternative address information.
Optionally, the method further includes:
and when the video playing is successful according to the video address information, reporting the video source address information and the video resource identifier to the background server, so that the background server updates the first mapping relation according to the reported video address information and the video resource identifier.
Optionally, when receiving at least two alternative address information returned by the background server, and playing according to the alternative address information, if playing of a video according to one of the alternative address information fails, the alternative address information corresponding to the failure in playing the video is removed from the at least two alternative address information returned by the background server, and any one of the remaining alternative address information is selected to play the video.
In a third aspect, an embodiment of the present invention provides a video playback control apparatus, including:
the first receiving unit is used for receiving the video target address information reported by the terminal equipment when the video playing fails;
a first determining unit, configured to determine a video resource identifier corresponding to the target address information in a first mapping relationship, where the first mapping relationship correspondingly stores video resource identifiers and video resource address information of videos, and each video resource identifier correspondingly stores at least one piece of video resource address information;
a second determining unit, configured to determine alternative address information in other video resource addresses if, in the first mapping relationship, other video resource address information other than the target address information is also stored corresponding to the video resource identifier;
and the returning unit is used for returning the alternative address information to the terminal equipment so that the terminal equipment plays the video according to the alternative address information.
Optionally, the video playing control device further includes an updating unit;
the updating unit is used for updating the first mapping relation according to the video address information and the video resource identifier reported by the terminal equipment when the video playing is successful.
Optionally, the updating unit is further configured to accumulate the number of times that the target address information is reported by the terminal device;
and when the accumulated times reach a set threshold value, deleting the target address information corresponding to the video resource identifier in the first mapping relation.
Optionally, the video playing control unit further includes a video recommending unit;
the video recommending unit is used for obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier when receiving a notification message that the terminal equipment fails to play the video according to the alternative address information;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
Optionally, the video recommending unit is further configured to, if address information of other video resources than the target address information is not stored in correspondence to the video resource identifier in the first mapping relationship, obtain a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
Optionally, the returning unit is further configured to, when the address information of the other video resource includes at least two addresses, return at least two alternative address information to the terminal device.
In a fourth aspect, an embodiment of the present invention provides another video playback control apparatus, including:
the reporting unit is used for reporting the target address information to a background server when the video playing fails according to the target address information;
a second receiving unit, configured to receive alternative address information returned by the background server, where the alternative address information is determined by the background server according to the target address information in a first mapping relationship, a video resource identifier and video resource address information of each video are correspondingly stored in the first mapping relationship, and each video resource identifier correspondingly stores at least one piece of video resource address information;
and the playing unit is used for playing the video according to the alternative address information.
Optionally, the reporting unit is further configured to report the video address information and the video resource identifier to the background server when the video playing is successful according to the video address information, so that the background server updates the first mapping relationship according to the reported video address information and the video resource identifier.
Optionally, the playing unit is further configured to, when receiving the at least two alternative address information returned by the background server, if playing of the video fails according to one of the alternative address information, remove the alternative address information corresponding to the failure in playing of the video from the at least two alternative address information returned by the background server, and optionally select one of the remaining alternative address information to play the video.
In a fifth aspect, an embodiment of the present invention provides a video playback control apparatus, including: a memory and a processor, wherein the memory is configured to store computer instructions; the processor is configured to execute the computer instruction to implement the video playing control method provided by the embodiment of the present invention.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor, the method for controlling video playing provided by the embodiment of the present invention is implemented.
In the embodiment of the invention, when video playing fails, the terminal device reports the target address information of the video playing fails to a background server, the background server determines the video resource identifier corresponding to the target address information in a first mapping relation after receiving the target address information reported by the terminal device when video playing fails, the video resource identifier of each video and at least one piece of corresponding video resource address information are stored in the first mapping relation, so that the video resource identifier corresponding to the target address information is determined according to the first mapping relation, further whether the video resource identifier determined according to the target address information correspondingly stores other video resource address information except the target address information can be determined according to the determined first mapping relation, if other video resource address information exists, alternative address information is determined in other video resource address information, and returning the determined alternative address information to the terminal equipment so that the terminal equipment plays the video according to the returned alternative address information, and after the terminal equipment fails to play the video according to the target address information, playing the video according to other alternative address information, thereby improving the utilization rate of video resources.
Additional features and advantages of the application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic view of an application scenario of a video playing control method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a video playing process performed by a terminal device in video playing control according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a process of requesting video resource address information after a video playing of a terminal device fails in video playing control according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a process of requesting video resource address information of a video to be recommended after a video playing failure according to alternative address information in video playing control according to an embodiment of the present invention;
fig. 5 is a schematic flowchart illustrating a process of determining, by a background server, address information to be returned to a terminal device in video playback control according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating that a terminal device updates a first mapping relationship after playing a video successfully in video playing control according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a video playback control apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another video playback control apparatus according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a video playback control apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the present invention better understood by those skilled in the art, the techniques mentioned in the present invention will be first explained.
The video resource identifier is an 'identity card' of the video, and is used for uniquely identifying the played video in video playing control, and is a video resource ID determined according to video content.
The videos to be recommended and the videos requested by the terminal equipment are the same type of videos, wherein the same type of videos are videos with similar video contents; for example, the video content of the video requested by the terminal device belongs to urban life, and the video content of the video to be recommended also belongs to urban life.
The terminal device, which is a hardware device capable of installing a video playing client and playing video, may be a terminal device such as a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a notebook, and a mobile phone, and may also be a Computer having a mobile terminal device, for example, a portable, pocket, handheld, Computer-embedded, or vehicle-mounted mobile device, which can provide a device for providing voice and/or data connectivity to a user and exchange voice and/or data with a radio access network.
And the background server is background running equipment for managing and storing data.
It is to be noted that, the "plurality" mentioned herein means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In order to make the objects, technical solutions and advantages of the present invention more clearly and clearly apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, in the process of playing videos, when a server network has a problem, namely a server resource has a problem, the server cannot solve the problem. The server returns a retry instruction to the terminal equipment, and the retry instruction is displayed on a page playing the video in a retry key mode so as to prompt the user to retry. However, the server resource problem is not solved immediately, and therefore, even if retry is performed, the video cannot be played smoothly. At this time, the user may consider that the server is tried at another time or another server is tried, the problem of playing failure is solved by the user, the utilization rate of video resources is low, and the watching experience of the user is influenced.
Therefore, in the video playing control process, the background server is required to return new resources to the terminal device when determining that the video playing of the terminal device fails, the terminal device performs video playing according to the new resources, and the background server returns new playing address information or resources to the terminal device, so that the utilization rate of video resources is improved, the watching experience of a user is improved, and time is saved.
The following briefly introduces a scenario in which the technical solution of the embodiment of the present invention can be used, and it should be noted that the following scenario is only used for illustrating the embodiment of the present invention and is not limited. In specific implementation, the technical scheme provided by the embodiment of the invention can be flexibly applied according to actual needs.
Fig. 1 is a schematic view of an application scenario of a video playing control method according to an embodiment of the present invention. In the embodiment of the present invention, a user plays a video through a video playing client installed in the terminal device 11, the video playing client installed in the terminal device 11 may send video related information watched by the user to the server 12, and the server 12 sends the received video related information to the corresponding storage device 13. In addition, the user may also send a video playing instruction to the server 12 through a video playing client installed in the terminal device 11, after the server 12 determines the storage device 13 where the video requested to be played by the user is located, the video requested to be played by the user is acquired from the determined storage device 13 and returned to the video playing client installed in the terminal device 11, and the video playing client installed in the terminal device 11 performs video playing based on the video returned by the server 12.
The video playing client installed in the terminal device 11 may be a browser of a web page, or may be an Application (APP) installed in the terminal device 11. The terminal device 11 and the server 12 and the storage device 13 are communicatively connected through a network, which may be a local area network, a cellular network, a wide area network, and the like. The terminal device 11 may be a portable device (e.g., a mobile phone, a tablet, a notebook, a wearable device, or other portable intelligent terminal device), or may be a Personal Computer (PC), and the server 12 and the storage device 13 may be any devices capable of providing internet services. It should be understood that, in particular implementations, the server 12 and the storage device 13 may also be provided in combination.
The video playing control method provided by the exemplary embodiment of the present application is described below with reference to fig. 2 to 9 in conjunction with the application scenarios described above, and it should be noted that the application scenarios described above are shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in this respect.
It should be noted that the video playing control method provided by the embodiment of the present application may be executed on a terminal device, or the terminal device and a background server are cooperatively executed; the terminal device is installed with an application program for playing a video, and the following description uses an example of the cooperation execution of the terminal device and the background server.
As shown in fig. 2, a schematic flow chart of video playing performed by a terminal device in video playing control according to an embodiment of the present invention is shown, where the flow of the video playing control method is as follows:
step 200, the terminal device sends a video playing request to the video storage server.
In practical application, when a user plays a video on a video playing client of a terminal device, the user clicks a video cover to be watched on a display page of the video playing client of the terminal device, the video playing client receives a video playing instruction triggered by the user, and at the moment, the video playing client sends a video playing request to a corresponding video storage server to request corresponding video data.
When the video playing client is a player application program (APP), the video storage server is a video storage server of an operator corresponding to the player application program (APP), for example, if the player application program is a Tencent video APP, the video storage server is a video storage server corresponding to Tencent;
when the video playing client is a web browser, the video storage server is a video storage server of an operator corresponding to a website for watching a video, for example, when the website of the webpage for watching the video is the website of the Tencent video, the video is acquired from the video storage server corresponding to the Tencent.
Step 201, the terminal device receives the video data returned by the video storage server according to the sent video playing request.
In practical application, the video storage server returns corresponding video data according to whether the video storage server stores video content corresponding to the video playing request.
And if the video content corresponding to the video playing request is stored, returning the video data containing the video content to the terminal equipment, and if the video content corresponding to the video playing request is not stored, returning no video content to the terminal equipment.
When the video storage server determines whether the video content corresponding to the video playing request is stored, the video storage server may not return the video content to the terminal device even if the video content corresponding to the video playing request is stored in the video storage server due to a current resource error or a current network error, and the returned video data does not have the video content.
Step 202, the terminal device judges whether the video playing is successful according to whether video content exists in the video data returned by the video storage server, if the video playing is successful, step 203 is executed, otherwise, step 204 is executed.
In practical application, after receiving video data returned by a video storage server, if the returned video data contains video content, the terminal device plays a video corresponding to the video request according to the received video content and determines that the video is successfully played; or
And if the returned video data is determined to have no video content, determining that the video playing fails.
In step 203, the terminal device plays the video on the video playing client.
Step 204, the terminal equipment requests to switch the video playing source.
When a terminal device requests to switch a video playing source (the video playing source is also called as video resource address information) after a video playing fails, the terminal device needs to report the video playing source with the current video playing failure to a background server as a trigger information for requesting a new video playing source.
In the embodiment of the present invention, a video playing source of a current video playing failure is used as the target address information, that is, when the video playing fails according to the current video resource address information, the video resource address information corresponding to the video playing failure is used as the target address information.
Therefore, the terminal device reports the target address information to the background server, so that the background server determines the video resource identifier corresponding to the target address information according to the stored first mapping relationship, further determines the video resource address information according to the video resource identifier, and selects alternative address information from the determined video resource address information except the target address information to return to the terminal device, so that the terminal device performs video playing according to the determined alternative address information.
As shown in fig. 3, a schematic flowchart of a process for requesting video resource address information after a video playback failure of a terminal device in video playback control according to an embodiment of the present invention includes the following steps:
and 300, when the video playing fails, the terminal equipment reports the target address information of the video to the background server.
The background server is a background running device corresponding to a video playing client of the terminal device, and stores video resource identification and video resource address information in the first mapping relation, and also stores information such as a region, an access point, video playing time, video playing success times, video playing failure times and the like of a user playing a video.
And when the video playing client is a player application program (APP), the background server is a background running device corresponding to the playing application program APP and is used for storing the mapping relationship between the video resource address information and the video resource identifier. The video resource address information is video playing address information, and the video playing address information is used for playing videos. For example, if the player application is an update video APP, the background server is a background running device corresponding to the update, and the corresponding relationship between the video playing address and the video resource identifier is stored, and at this time, the video storage server and the background server may be set in a merged manner.
And when the video playing client is a web browser, the background server is a background running device corresponding to the web browser and is used for storing the mapping relationship between the video resource address information and the video resource identifier. The video resource address information comprises video webpage address information and video playing address information; the video webpage address information is used for determining an operator corresponding to a website for watching the video, and the video playing address information is used for playing the video.
Therefore, when the video playing client of the terminal device is a player application program APP, the target address information is video playing address information; when the video playing client of the terminal device is a web browser, the target address information is video web page address information and video playing address information.
In practical application, when the terminal equipment fails to play the video, the target address information is reported, meanwhile, the identification information of the video playing failure can be reported to a background server, and the video playing failure of the terminal equipment is indicated in an explicit mode.
Step 301, a background server receives target address information of a video reported by a terminal device when the video playing fails.
Step 302, the background server determines a video resource identifier corresponding to the target address information in a first mapping relation according to the target address information.
In practical application, when the background server receives the target address information reported by the terminal device, the background server determines that the video playing of the terminal device fails because only the target address information reported by the terminal device is received and no video resource identifier is received.
It should be noted that the video resource identifier is obtained by the terminal device according to the obtained video content through the MD5 algorithm, and when the video content is not obtained, the video resource identifier cannot be determined, and further when the terminal device reports information to the background server, only the target address information can be reported;
therefore, the background server implicitly determines whether the video playing of the terminal equipment is successful according to whether the video resource identifier exists in the received information, if the video resource identifier is contained in the received information, the video playing of the terminal equipment is successful, and if the video resource identifier does not exist in the received information, the video playing of the terminal equipment is failed.
Furthermore, the terminal device can also report the identification information of the video playing condition to the background server, so that the background server displays and determines whether the video playing of the terminal device is successful according to the received video playing condition information;
if the background server receives the identification information of successful video playing, the terminal equipment is determined to successfully play the video; and if the background server receives the identification information of the video playing failure, determining that the video playing of the equipment fails.
In the embodiment of the present invention, the identification information of the video playing condition may be represented by a video playing code, for example, when the video playing codes are all "0", the video playing is successful, and when the video playing codes are not "0", the video playing is failed;
for example, a video playing code of 000 indicates that the video playing is successful, a video playing code of 404 indicates that the playing is failed due to resource failure, and a video playing code of 502 indicates that the playing is failed due to a gateway reason.
And after determining that the terminal equipment fails to play the video according to the target address information reported by the terminal equipment, the background server determines a video resource identifier corresponding to the target address information in the first mapping relation according to the received target address information.
It should be noted that the information reported by the terminal device when the video playing fails necessarily includes the target address information, and may also include identification information of the video playing failure.
Step 303, the background server determines, according to the determined video resource identifier, other video resource address information corresponding to the video resource identifier, except the target address information, in the first mapping relationship.
The video resource identifier and the video resource address information of each video are correspondingly stored in the first mapping relationship, and each video resource identifier correspondingly stores at least one piece of video resource address information, which is a mapping relationship between the video resource identifier and the video resource address information as shown in table 1.
Figure BDA0002103257450000131
TABLE 1
From table 1, it can be seen that: one video asset identification corresponds to one or more video asset address information. Therefore, after the target address information reported by the terminal equipment is received, the video resource identifier can be determined according to the video resource identifier, and all video resource address information corresponding to the resource identifier can be determined according to the video resource identifier.
For example, the destination address information reported by the terminal device is video resource address information a, and according to table 1, it can be determined that the video resource identifier a corresponds to the video resource address information a, and meanwhile, according to table 1, it can be known that all the video resource address information corresponding to the video resource identifier a includes: the video resource address information comprises video resource address information A, video resource address information B and video resource address information C, and the target address information (the video resource address information A) also comprises the video resource address information B and the video resource address information C.
And step 304, the background server selects alternative address information from the address information of other video resources except the target address information.
After the background server determines that the target address information also comprises other video resource addresses, when the alternative address information is selected according to the other video resource address information:
if the video resource address information only contains one piece of video resource address information except the target address information, the background server takes the unique other pieces of video resource address information as alternative address information;
for example, if the video resource address information B is included in addition to the target address information a, the video resource address information B is used as the alternative address information.
If the address information of at least two other video resources is contained besides the target address information, the background server selects at least one address information of the other video resources from the address information of the at least two other video resources as alternative address information;
when the background server selects at least one piece of address information of other video resources as the alternative address information from the address information of at least two other video resources, the alternative address information can be selected in the following way:
the first method is as follows: and selecting the alternative address information according to the region where the terminal equipment is located.
In the embodiment of the invention, the terminal equipment not only sends the target address information to the background server when the video playing fails, but also sends the region information to the background server, so that the background server selects the alternative address information according to the region information and the target address information when selecting the alternative address information.
At this time, the alternative address information selected by the background server is not only the video resource address information corresponding to the same video resource identifier as the target address information, but also the video resource address information corresponding to the video played in the region corresponding to the received region information sent by the terminal device.
The background server stores a playing video record of a region where the video resource address information corresponding to the video resource identifier is stored, and the playing video record can be updated according to the video resource address information and the region information reported by the terminal device when the video playing is successful or the video playing is failed.
The second method comprises the following steps: and selecting the alternative address information according to the access point of the terminal equipment.
In the embodiment of the invention, when video playing fails, the terminal equipment sends target address information to a background server; correspondingly, after receiving the target address information reported by the terminal equipment, the background server can determine the IP address of the terminal equipment according to the received target address information, and searches an IP library according to the IP address of the terminal equipment to determine the access point.
Further, when the background server selects the alternative address information, the alternative address information is selected according to the access point and the target address information.
At this time, the alternative address information selected by the background server is not only the video resource address information corresponding to the same video resource identifier as the target address information, but also the video resource address information corresponding to the video played in the access point corresponding to the terminal device reporting the target address information.
The background server stores a video record of the access point where the video resource address information corresponding to the video resource identifier is played, and the video record can be updated according to the video resource address information reported by the terminal device when the video playing is successful or when the video playing is failed.
The third method comprises the following steps: and selecting alternative address information according to the video resource address information playing video success rate.
In the embodiment of the invention, the terminal equipment reports the video resource address information and the video resource identifier to the background server when the video playing is successful, the background server accumulates the times of the video resource address information reported when the video playing is successful, and the video playing success rate when the video playing is carried out by using the video resource address information is determined according to the times of the video playing success. Further, the alternative address information is selected according to the video playing success rate and the target address information.
At this time, the alternative address information selected by the background server is the video resource address information corresponding to the same video resource identifier as the target address information, and the video resource address information has a high video playing success rate.
The background server stores a video playing success rate when video playing is performed by using the video resource address information, and the video playing success rate is determined by the number of times of playing videos by using the same video resource address information and the total number of times of playing videos by using the video resource address information, so that the video playing success rate can be updated according to the video resource address information reported by the terminal device when video playing is successful or video playing is failed.
The method is as follows: and when video playing is carried out according to the video resource address information, the alternative address information is selected when the video playing is successful.
In the embodiment of the invention, the terminal equipment can report the video playing time to the background server when the video playing is successful, and the background server can record the playing success time of the corresponding video resource address information when the video playing is successful. Further, when the background server selects the alternative address information, the alternative address information is selected according to the successful video playing and the target address information.
After receiving the target address information, the background server determines the time of receiving the target address information, determines that the video playing of the terminal equipment at the current time fails, and selects video resource address information which is successfully played at the current time and has the same video resource identifier as the target address information.
For example, the background server determines that the time for receiving the target address information is 22:00, determines the video resource address information of which the video playing is successful at 22:00, and further determines the video resource address information of which the video resource identifier is the same as the target address information in the video resource address information of which the video playing is successful at 22: 00.
It should be noted that the above-mentioned manner of selecting the alternative address information is only an example, and any manner that can select the alternative address information is applicable to the present invention. For example, the above manners are combined to select the alternative address information. If the first and second modes are combined, the selected alternative address information needs to be video resource address information corresponding to a video played in a region corresponding to the received region information sent by the terminal device, and video resource address information corresponding to a video played in an access point corresponding to the terminal device reporting the target address information, and meanwhile, the same video resource identifier corresponding to the target address information needs to be ensured.
Further, when the other video source address information includes at least two, the alternative address information includes at least two, that is, the background server selects at least two other video resource address information from the at least two other video resource address information as the alternative address information. The background server selects at least two video resource address information as alternative address information to return to the terminal equipment, so that the information interaction times between the terminal equipment and the background server can be reduced, and resources are saved.
And 305, the background server returns the selected alternative address information to the terminal equipment.
If the background server selects one alternative address information, returning the selected alternative address information to the terminal equipment; and if the background server selects a plurality of pieces of alternative address information, returning the selected plurality of pieces of alternative address information to the terminal equipment.
Because the returned alternative address information is selected randomly or according to the information such as the region, the access point, the successful video playing time, the successful video playing rate and the like, when the alternative address information is returned to the terminal equipment, if the alternative address information is selected randomly, the alternative address information can be returned to the terminal equipment, if the alternative address information is selected according to the region, the access point, the successful video playing time and the successful video playing rate, the returned alternative address information is subjected to priority sequencing, so that the successful video playing rate of the terminal equipment is improved.
For example, the returned alternative address information is determined according to the video playing success rate, and when the alternative address information is returned, the alternative address information with the high video playing success rate is preferentially returned to the terminal device.
And step 306, the terminal equipment receives the alternative address information returned by the background server.
And 307, the terminal equipment plays the video according to the alternative address information returned by the background server.
In practical application, the terminal device plays video according to the alternative address information returned by the background server, and when playing video according to the alternative address information:
if the terminal equipment only receives one alternative address information, video playing is carried out according to the unique alternative address information; or
And if the terminal equipment receives at least two pieces of alternative address information, the terminal equipment plays the video according to the received two pieces of alternative address information. When the terminal equipment plays the video according to the received at least two alternative address information:
if the received two alternative address information are alternative address information randomly returned by the background server, when video playing is carried out, firstly video playing is carried out according to one of the alternative address information, after the video playing failure is determined, the alternative address information corresponding to the video playing failure is moved out from the alternative address information returned by the background server, and one alternative address information is reselected from the rest alternative address information to carry out video playing until the video playing is successful or the video playing failure is carried out according to all the alternative address information returned by the background server.
For example, the terminal device receives 3 alternative address information returned by the background server, which are respectively video resource address information 1, video resource address information 2, and video resource address information 3, the terminal device firstly performs video playing by using the video resource address information 1, continues to perform video playing by using the video resource address information 2 after determining that the video playing fails, does not perform video playing by using the video resource address information 3 after determining that the video resource address information 2 is successfully played, and performs video playing by using the video resource address information 3 if the video resource address information 2 fails to be played, and determines whether the video playing is successful.
If the received two alternative address information are the alternative address information returned by the background server according to the information such as the region, the access point, the time of successful video playing, the video playing success rate and the like, when the video playing is carried out, the video playing is carried out according to the priority sequence of the returned alternative address information, the video playing is firstly carried out according to the alternative address information with the highest priority, and if the video playing is failed according to the alternative address information with the highest priority, the video playing is carried out according to the alternative address information with the second priority until the video playing is successful or the video playing is failed according to all the alternative address information returned by the background server.
In the embodiment of the invention, when the terminal equipment fails to play the video according to the alternative address information returned by the background server, the received alternative address information is reported to the background server as the target address information, so that the background server determines that the terminal equipment fails to play the video according to the returned alternative address information, and determines new video resource address information according to the alternative address information and returns the new video resource address information to the background server.
The returned new video resource address information and the alternative address information can be the video resource address information of the same video resource identifier, and can also be the video resource address information of the video to be recommended of the video resource identifier corresponding to the alternative address information. Returning the video resource address information of the video resource identifier corresponding to the alternative address information is shown in fig. 3, and is not described herein again.
The following is a detailed description: and when a notification message that the terminal equipment fails to play the video according to the alternative address information is received, obtaining the video resource identifier of at least one video to be recommended according to the video resource identifier, and returning the video resource address information of the video to be recommended.
As shown in fig. 4, a schematic flowchart of a process for requesting video resource address information of a video to be recommended after a video playing failure according to alternative address information in video playing control provided by an embodiment of the present invention includes the following steps:
step 400, when the terminal device fails to play the video according to the alternative address information, reporting a notification message that the playing of the video by the alternative address information fails to the background server.
In actual application, the notification message that the playing of the video fails by the alternative address information reported by the terminal device to the background server may be alternative address information serving as target address information. When the terminal equipment fails to play the video according to the multiple alternative address information returned by the background server, the multiple alternative address information returned by the background server is all returned to the background server, so that the background server automatically avoids the multiple alternative address information serving as the target address information reported by the terminal equipment when determining new alternative address information according to the target address information.
For example, the terminal device receives 3 alternative address information returned by the background server, which are respectively video resource address information 1, video resource address information 2, and video resource address information 3, and reports the video resource address information 1, the video resource address information 2, and the video resource address information 3 to the background server after video playing fails according to the returned 3 alternative address information, and the background server avoids the received target address information when determining the alternative address information.
Step 401, the background server receives a notification message that playing of the video according to the alternative address information fails, which is reported by the terminal device.
Step 402, the background server determines that the video playing fails according to the received notification message of the failure of playing the video by the alternative address information reported by the terminal device.
Step 403, the background server determines the video resource identifier corresponding to the alternative address information in the first mapping relationship.
Because the first mapping relation stores a plurality of video resource identifications and corresponding video resource address information, when the alternative address information is received, the video resource identification corresponding to the alternative address information can be determined in the first mapping relation according to the alternative address information; the alternative address information is the video resource address information returned to the terminal equipment by the background server according to the video resource identifier.
And step 404, the background server obtains the video resource identifier of at least one video to be recommended according to the video resource identifier.
In practical application, after the background server determines that video playing of the alternative address information fails, the video resource identifier corresponding to the alternative address information is determined according to the first mapping relationship, and further the video resource identifier of the video to be recommended is determined according to the video resource identifier.
A second mapping relationship between the video types and the video resource identifiers is stored in the background server, each video type and each video resource identifier are correspondingly stored in the second mapping relationship, and a plurality of video resource identifiers are correspondingly stored in each video type, as shown in table 2.
Figure BDA0002103257450000191
Figure BDA0002103257450000201
TABLE 2
As can be seen from table 2, each video type corresponds to a plurality of video resource identifiers, so after a video resource identifier corresponding to the alternative address information is determined in the first mapping relationship according to the alternative address information, a video type corresponding to the video resource identifier corresponding to the alternative address information is determined according to the mapping relationship between the video resource identifier and the video type, and further, according to the mapping relationship between the video type and the video resource identifier, video resource identifiers other than the video resource identifier corresponding to the alternative address information are determined.
It should be noted that the above-mentioned method is only one method for determining a video to be recommended, and there are also multiple methods, such as that the video resource identifier corresponds to the video resource identifier, and the corresponding video resource identifier is determined according to the video resource identifier, and the corresponding video resource identifier is determined to be the video resource identifier of the video to be recommended; and determining the content of the corresponding video according to the video resource identifier, determining the video to be recommended according to the keywords of the video content, and the like.
For example, according to the alternative address information, determining that a video resource identifier corresponding to the alternative address information is a video resource identifier 1 in the first mapping relationship;
further, according to the mapping relation between the video resource identifier and the video type, it is determined that the video type corresponding to the video resource identifier 1 is urban life, and according to table 2, it can be known that the video resource identifier 2 and the video resource identifier 3 are also included in the urban life category in addition to the video resource identifier 1, and at this time, the video resource identifier 2 and the video resource identifier 3 are respectively the video resource identifiers of the videos to be recommended.
Step 405, the background server obtains video resource address information of the video to be recommended from the first mapping relation according to the video resource identifier of each video to be recommended.
After the background server determines the video resource identifiers of the videos to be recommended, the video resource address information corresponding to each video resource identifier is stored in the first mapping relation, so that the video resource address information of the videos to be recommended can be determined in the first mapping relation according to the video resource identifiers of the videos to be recommended.
And 406, the background server sends the obtained video resource address information of the video to be recommended to the terminal equipment.
Step 407, the terminal device receives the video resource address information of the video to be recommended returned by the background server.
And step 408, the terminal equipment plays the video to be recommended according to the video resource address information of the video to be recommended.
When the terminal equipment plays the video according to the received video resource address information, because a plurality of videos to be recommended may be returned, and each video to be recommended corresponds to at least one video resource address information, when the terminal equipment plays the video according to the received video resource address information, one video resource address information is randomly selected to play the video, and the corresponding video resource address information can be determined according to the selection of the user to play the video until the video is played successfully, or all the video resource address information fails to play the video.
In the embodiment of the invention, when the background server returns the video resource address information of the video to be recommended to the terminal device, the video resource address information of the video to be recommended is also returned when the background server determines the alternative address information according to the target address information, in addition to receiving the notification message that the video playing is failed according to the alternative address information reported by the terminal device.
The method comprises the steps that firstly, a background server determines a video resource identifier according to target address information, then whether video resource address information corresponding to the video resource identifier has other video resource address information except the target address information is determined in a first mapping relation according to the video resource identifier, if the video resource address information has other video resource address information, alternative address information is selected from the other video resource address information, otherwise, the video resource identifier of a video to be recommended is determined according to the resource identifier information, and the video resource address information corresponding to the video resource identifier of the video to be recommended is returned to a terminal device, so that the terminal device can play the video according to the returned video resource address information of the video to be recommended.
As shown in fig. 5, a schematic flowchart of a process for determining, by a background server in video playing control, address information returned to a terminal device, where the address information is video resource address information corresponding to a video resource identifier corresponding to target address information or video resource address information of a video to be recommended in an embodiment of the present invention, includes the following steps:
step 500, the background server receives the target address information reported by the terminal device when the video playing fails.
Step 501, the background server determines a video resource identifier corresponding to the target address information in a first mapping relation according to the target address information.
Step 502, the background server determines, according to the video resource identifier, video resource identifier address information corresponding to the video resource identifier in a first mapping relationship.
At this time, the video resource address information determined in the first mapping relationship according to the video resource identifier includes target address information reported by the terminal device when the video playing fails.
In step 503, the background server determines whether the video resource identifier address information includes other video resource address information besides the target address information, if so, step 504 is executed, otherwise, step 505 is executed.
And step 504, the background server selects alternative address information from the address information of other video resources except the target address information, and returns the selected alternative address information to the terminal equipment.
The detailed steps of the background server selecting the alternative address information from the other video resource address information except the target address information refer to the embodiment corresponding to fig. 3, which is not described herein again.
And 505, the background server determines the video resource identifier of the video to be recommended according to the video resource identifier.
Step 506, the background server determines the video resource address information of the video to be recommended in the first mapping relation according to the video resource identifier of the video to be recommended, and returns the determined video resource address information of the video to be recommended to the terminal device.
The detailed steps of the background server determining the video resource address information of the video to be recommended refer to the embodiment corresponding to fig. 4, which are not described herein again.
The address information is alternative address information or video resource address information of a video to be recommended.
Because each video resource identifier in the first mapping relation corresponds to at least one piece of video resource address information, if the video resource identifier only corresponds to one piece of video resource address information, the corresponding video resource address information is target address information reported by the terminal device when video playing fails, and at this time, the background server determines that video playing fails according to the target address information, and does not waste resources and return the video resource address information with playing failure to the terminal device, the video resource address information of the video to be recommended is recommended to the terminal device, so that a user watches the video to be recommended according to the video resource address information of the video to be recommended, the user does not need to search other videos for watching, the user time is saved, and the video watching effect of the user is improved.
It should be noted that, after the background server returns the video resource address information of the video to be recommended to the terminal device, mainly determines the video resource identifier according to the target address information or the alternative address information in the first mapping relationship stored in the background server, and returns the video resource address information of the video to be recommended to the terminal device when there is no other video resource address information except the target address information and/or the alternative address information in the video resource address information determined according to the video resource identifier; however, when the video resource address information corresponding to the video resource identifier contains video resource address information other than the target address information and/or the alternative address information, the video resource address information of the video to be recommended may also be returned to the terminal device, at this time, the background server returns the alternative address information and the video resource address information of the video to be recommended to the terminal device, and when the terminal device plays the video according to the received address information, the terminal device first plays the video according to the alternative address information.
In the embodiment of the present invention, the first mapping relationship in the background server may be preset and may be established according to video address information and video resource identifiers reported by the plurality of terminal devices when the video playing is successful. After the first mapping relationship is established, the first mapping relationship in the background server is also updated in real time according to the information reported by the terminal device, if the video playing is successful, the background server updates the first mapping relationship according to the video address information and the video resource identifier reported by the terminal device, and if the video playing is failed, the background server determines whether to delete the target address information in the first mapping relationship according to the cumulative number of times of the target address information reported by the terminal device, which specifically refers to the following embodiments:
the background server updates the first mapping relation according to the video address information and the video resource identifier reported by the terminal equipment when the video playing is successful.
When the terminal device receives data returned by the video storage server and contains video content, video playing is carried out according to the video content, meanwhile, a video resource identifier is determined through an MD5 algorithm according to the video content, the video resource identifier and video address information are further reported to the background server, so that the background server updates the mapping relation between the stored video resource identifier and the video resource address information according to the video resource identifier and the video address information reported by the terminal device, the reported target address information can find available video resource address information according to the mapping relation when video playing fails according to the target address information, and the probability of successful video playing and the utilization rate of the video resource are guaranteed.
In the embodiment of the present invention, the video address information reported by the terminal device is a video playing source for successful video playing, that is, when the video playing is successfully performed according to the current video resource address information, the video resource address information corresponding to the successful video playing is used as the video address information.
As shown in fig. 6, a schematic diagram of updating a first mapping relationship after a video is successfully played by a terminal device in video play control according to an embodiment of the present invention includes the following steps;
step 600, the terminal device reports the video address information and the video resource identifier when the video playing is successful to the background server.
The video address information is corresponding video resource address information when the video playing is successful.
In practical application, the terminal device may report the identification information of the successful video playing to the background server, in addition to reporting the video address information and the video resource identification of the successful video playing to the background server, so that the background server displays and determines that the video playing of the terminal device is successful according to the identification information of the successful video playing.
Step 601, the background server receives video address information and video resource identification reported by the terminal.
Step 602, the background server determines that the video playing of the terminal device is successful according to the received video address information and the video resource identifier reported by the terminal device.
In practical application, the background server implicitly determines that the video playing of the terminal equipment is successful according to the video resource identifier reported by the terminal equipment; and if the background server also receives the identification information of successful video playing, displaying and determining that the video playing of the terminal equipment is successful according to the identification information of successful video playing.
Step 603, the background server updates the first mapping relationship according to the video address information and the video resource identifier.
After the background server determines that the video playing is successful according to the video address information and the video resource identifier reported by the terminal device, the video resource identifier and the corresponding video address information are stored in the first mapping relation, so that the terminal device can find the video resource address information with successful video playing in the first mapping relation according to the target address information after the video playing fails, and the terminal device can be ensured to successfully play the video according to the video resource address information returned by the background server.
And secondly, the background server updates the first mapping relation according to the target address information reported by the terminal equipment when the video playing fails.
In practical application, when video playing is performed according to certain video resource address information, if the playing always fails, it is determined that the video resource address information is invalid, and the video resource address information is deleted from the first mapping relation.
And the background server accumulates the target address information reported when the video playing of the terminal equipment fails, and deletes the target address information corresponding to the video resource identifier in the first mapping relation when the accumulated times reach a set threshold value.
And the background server accumulates the same target address information reported by the terminal equipment each time, determines whether the accumulation frequency of the target address information reaches a threshold value, deletes the target address information if the accumulation frequency of the target address information reaches the threshold value, and otherwise, continuously accumulates the frequency of the target address information reported by the terminal equipment.
And deleting the invalid video resource address information in the first mapping relation, so that the background server is prevented from returning the invalid video resource address information when determining the alternative address information according to the target address information, and the terminal equipment cannot play the video according to the invalid video resource address information, thereby causing resource waste.
Based on the foregoing embodiments, an embodiment of the present invention provides a video playback control apparatus, as shown in fig. 7, the video playback control apparatus 700 at least includes:
a first receiving unit 701, configured to receive target address information of a video, which is reported by a terminal device when video playing fails;
a first determining unit 702, configured to determine a video resource identifier corresponding to the target address information in a first mapping relationship, where the first mapping relationship correspondingly stores video resource identifiers and video resource address information of videos, and each video resource identifier correspondingly stores at least one piece of video resource address information;
a second determining unit 703, configured to determine alternative address information in other video resource addresses if, in the first mapping relationship, other video resource address information is also stored in correspondence to the video resource identifier, except for the target address information;
a returning unit 704, configured to return the alternative address information to the terminal device, so that the terminal device plays the video according to the alternative address information.
The video playback control apparatus 700 provided in the embodiment of the present invention may further include an updating unit 705;
an updating unit 705, configured to update the first mapping relationship according to the video address information and the video resource identifier that are reported by the terminal device when the video is successfully played.
The updating unit 705 in the video playing control apparatus 700 provided in the embodiment of the present invention is further configured to: accumulating the times of reporting the target address information by the terminal equipment;
and when the accumulated times reach a set threshold value, deleting the target address information corresponding to the video resource identifier in the first mapping relation.
The video playing control device 700 provided by the embodiment of the present invention further includes a video recommending unit 706:
the video recommending unit 706 is configured to obtain a video resource identifier of at least one video to be recommended according to the video resource identifier when receiving a notification message that the terminal device fails to play the video according to the alternative address information;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
The video recommending unit 706 in the video playing control apparatus 700 provided by the embodiment of the present invention is further configured to:
if the video resource identifier does not store other video resource address information except the target address information in the first mapping relation, obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
The returning unit 704 in the video playback control apparatus 700 provided in the embodiment of the present invention is further configured to return at least two alternative address information to the terminal device when the address information of other video resources includes at least two alternative address information.
Based on the foregoing embodiments, another video playback control apparatus is provided in the embodiments of the present invention, as shown in fig. 8, the video playback control apparatus 800 at least includes:
a reporting unit 801, configured to report the target address information to a background server when playing of the video fails according to the target address information;
a second receiving unit 802, configured to receive alternative address information returned by the background server, where the alternative address information is determined by the background server according to the target address information in a first mapping relationship, a video resource identifier and video resource address information of each video are correspondingly stored in the first mapping relationship, and each video resource identifier correspondingly stores at least one piece of video resource address information;
a playing unit 803, configured to play the video according to the alternative address information.
The reporting unit 801 in the video playback control apparatus 800 according to the embodiment of the present invention is further configured to:
when the video playing is successful according to the video address information, reporting the video address information and the video resource identifier to the background server, so that the background server updates the first mapping relation according to the reported video resource address information and the video resource identifier.
The playing unit 803 in the video playing control apparatus 800 according to the embodiment of the present invention is further configured to:
when receiving the at least two alternative address information returned by the background server, if playing of the video fails according to one of the alternative address information, removing the alternative address information corresponding to the failed playing of the video from the at least two alternative address information returned by the background server, and optionally selecting one alternative address information from the remaining alternative address information to play the video.
For convenience of description, the above parts are separately described as units (or modules) according to functional division. Of course, the functionality of the various elements (or modules) may be implemented in the same one or more pieces of software or hardware in practicing the present application.
Next, a control apparatus for video playback according to an exemplary embodiment of the present application will be described.
As will be appreciated by one skilled in the art, aspects of the present application may be embodied as a system, method or program product. Accordingly, various aspects of the present application may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible embodiments, a video playback control device according to the present application may include at least a processor and a memory. Wherein the memory stores program code which, when executed by the processor, causes the processor to perform the steps of the video playback control method according to various exemplary embodiments of the present application described in the specification. For example, the processor may perform the steps shown in any of FIGS. 2-6.
A video playback control apparatus 900 according to this embodiment of the present application is described below with reference to fig. 9. The video playback control apparatus 900 of fig. 9 is merely an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As in fig. 9, the components of the video playback control apparatus 900 may include, but are not limited to: the at least one processor 901, the at least one memory 902, and the bus 903 connecting the various system components including the memory 902 and the processor 901.
Bus 903 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
The memory 902 may include readable media in the form of volatile memory, such as Random Access Memory (RAM)9021 and/or cache memory 9022, and may further include Read Only Memory (ROM) 9023.
Memory 902 may also include a program/utility 9025 having a set (at least one) of program modules 9024, such program modules 9024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The video playback control apparatus 900 may also communicate with one or more external devices 904 (e.g., keyboard, pointing device, etc.), with one or more devices that enable a user to interact with the video playback control apparatus 900, and/or with any devices (e.g., router, modem, etc.) that enable the video playback control apparatus 900 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 905. Also, the video playback control device 9000 can communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the internet) via the network adapter 906. As shown, the network adapter 906 communicates with other modules for the video playback control device 900 over the bus 903. It should be understood that although not shown in fig. 9, other hardware and/or software modules may be used in conjunction with video playback control device 900, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
In some possible embodiments, the aspects of the video playback control method provided in the present application may also be implemented in the form of a program product including program code for causing a computer device to perform the steps in the video playback control method according to various exemplary embodiments of the present application described above in this specification when the program product is run on the computer device, for example, the computer device may perform the steps as shown in any one of fig. 2 to 6.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A 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 (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or 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.
The program product for video playback control of embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a computing device. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with a command execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with 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 readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with a command execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on the user equipment, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more units described above may be embodied in one unit, according to embodiments of the application. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.
Further, while the operations of the methods of the present application are depicted in the drawings in a particular order, this does not require or imply that these operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A video playback control method, comprising:
a background server receives target address information of a video reported by a terminal device when the video playing fails;
the background server determines a video resource identifier corresponding to the target address information in a first mapping relation, the video resource identifier and the video resource address information of each video are correspondingly stored in the first mapping relation, and each video resource identifier correspondingly stores at least one piece of video resource address information;
if other video resource address information except the target address information is also stored corresponding to the video resource identifier in the first mapping relation, the background server determines alternative address information in other video resource addresses;
the background server returns the alternative address information to the terminal equipment so that the terminal equipment plays the video according to the alternative address information;
the background server determines alternative address information in other video resource addresses, including:
and if the target address information and the other video resource address information contain at least two pieces of address information of the other video resources, selecting at least one piece of address information of the other video resources from the at least two pieces of address information of the other video resources as alternative address information according to at least one of the region where the terminal equipment is located, the access point of the terminal equipment, the video playing success rate of the video resource address information and the video playing success time corresponding to the video resource address information.
2. The method of claim 1, further comprising:
receiving video address information and a video resource identifier reported by terminal equipment when video playing is successful;
and updating the first mapping relation according to the reported video address information and the video resource identifier.
3. The method of claim 1, further comprising:
accumulating the times of reporting the target address information by the terminal equipment;
and when the accumulated times reach a set threshold value, deleting the target address information corresponding to the video resource identifier in the first mapping relation.
4. The method of claim 1, wherein the method further comprises:
when a notification message that the terminal equipment fails to play the video according to the alternative address information is received, obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
5. The method of claim 1, wherein the method further comprises:
if the video resource identifier does not store other video resource address information except the target address information in the first mapping relation, obtaining a video resource identifier of at least one video to be recommended according to the video resource identifier;
respectively obtaining video resource address information of the video to be recommended from the first mapping relation according to each video resource identifier to be recommended;
and sending the video resource address information of the video to be recommended to the terminal equipment.
6. The method according to any one of claims 1 to 5, wherein when the other video resource address information includes at least two, the alternative address information includes at least two.
7. A video playback control method, comprising:
when the terminal equipment fails to play the video according to the target address information, reporting the target address information to a background server;
the terminal equipment receives the alternative address information returned by the background server, the alternative address information is obtained after the background server determines that other video resource address information corresponding to at least two video resource identifications are stored in the first mapping relation besides the target address information according to the video resource identification corresponding to the target address information, according to at least one of the region where the terminal device is located, the access point of the terminal device, the video playing success rate of the video resource address information and the video playing success time corresponding to the video resource address information, the video resource identifier and the video resource address information of each video are correspondingly stored in the first mapping relation, and each video resource identifier correspondingly stores at least one piece of video resource address information;
and the terminal equipment plays the video according to the alternative address information.
8. The method of claim 7, further comprising:
when the video playing is successful according to the video address information, reporting the video address information and the video resource identifier to the background server, so that the background server updates the first mapping relation according to the reported video address information and the video resource identifier.
9. The method of claim 7, wherein when receiving at least two alternative address information returned by the background server, the playing the video according to the alternative address information comprises:
if the video playing fails according to one of the alternative address information, the alternative address information corresponding to the video playing failure is removed from the at least two alternative address information returned by the background server, and one alternative address information is selected from the remaining alternative address information to play the video.
10. A video playback control apparatus, comprising:
the first receiving unit is used for receiving the video target address information reported by the terminal equipment when the video playing fails;
a first determining unit, configured to determine a video resource identifier corresponding to the target address information in a first mapping relationship, where the first mapping relationship correspondingly stores video resource identifiers and video resource address information of videos, and each video resource identifier correspondingly stores at least one piece of video resource address information;
a second determining unit, configured to determine alternative address information in other video resource addresses if, in the first mapping relationship, other video resource address information other than the target address information is also stored corresponding to the video resource identifier;
a returning unit, configured to return the alternative address information to the terminal device, so that the terminal device plays the video according to the alternative address information;
wherein the second determining unit is specifically configured to:
and if the target address information and the other video resource address information contain at least two pieces of address information of the other video resources, selecting at least one piece of address information of the other video resources from the at least two pieces of address information of the other video resources as alternative address information according to at least one of the region where the terminal equipment is located, the access point of the terminal equipment, the video playing success rate of the video resource address information and the video playing success time corresponding to the video resource address information.
11. The apparatus of claim 10, further comprising an update unit;
the update unit is configured to: and updating the first mapping relation according to the video address information and the video resource identifier reported by the terminal equipment when the video playing is successful.
12. A video playback control apparatus, comprising:
the reporting unit is used for reporting the target address information to a background server when the video playing fails according to the target address information;
a second receiving unit, configured to receive alternative address information returned by the background server, where the alternative address information is obtained after the background server determines, according to the video resource identifier corresponding to the target address information, that other video resource address information corresponding to at least two video resource identifiers are stored in the first mapping relationship in addition to the target address information, according to at least one of the region where the terminal device is located, the access point of the terminal device, the video playing success rate of the video resource address information and the video playing success time corresponding to the video resource address information, the video resource identifier and the video resource address information of each video are correspondingly stored in the first mapping relation, and each video resource identifier correspondingly stores at least one piece of video resource address information;
and the playing unit is used for playing the video according to the alternative address information.
13. The apparatus of claim 12, wherein the reporting unit is further configured to:
when the video playing is successful according to the video address information, reporting the video address information and the video resource identifier to the background server, so that the background server updates the first mapping relation according to the reported video address information and the video resource identifier.
14. A video playback control apparatus, characterized by comprising: a memory and a processor, wherein the memory is configured to store computer instructions; the processor for executing the computer instructions to implement the video playback control method of any of claims 1-9.
15. A computer-readable storage medium storing computer instructions which, when executed by a processor, implement a video playback control method according to any one of claims 1 to 9.
CN201910543407.1A 2019-06-21 2019-06-21 Video playing control method, device, equipment and medium Active CN112118487B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910543407.1A CN112118487B (en) 2019-06-21 2019-06-21 Video playing control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910543407.1A CN112118487B (en) 2019-06-21 2019-06-21 Video playing control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN112118487A CN112118487A (en) 2020-12-22
CN112118487B true CN112118487B (en) 2022-01-28

Family

ID=73795610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910543407.1A Active CN112118487B (en) 2019-06-21 2019-06-21 Video playing control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN112118487B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438498B (en) * 2021-06-24 2022-11-22 湖南快乐阳光互动娱乐传媒有限公司 Video playing method and device
CN113676761B (en) * 2021-08-18 2023-11-17 百度在线网络技术(北京)有限公司 Multimedia resource playing method and device and main control equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016165556A1 (en) * 2015-04-15 2016-10-20 腾讯科技(深圳)有限公司 Data processing method, device and system for video stream

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011193042A (en) * 2010-03-11 2011-09-29 Toshiba Corp Device and method of reproducing video
WO2014101486A1 (en) * 2012-12-25 2014-07-03 北京奇虎科技有限公司 Method and device for playing plug-in in browser
CN103517098B (en) * 2013-08-29 2017-04-05 小米科技有限责任公司 Based on the video broadcasting method of video aggregation service, device and terminal device
CN103546830B (en) * 2013-10-28 2017-08-08 Tcl集团股份有限公司 A kind of processing method and system of video address failure
CN103796046B (en) * 2013-12-24 2018-08-31 Tcl集团股份有限公司 A kind of video source address detection method and device
CN105516734B (en) * 2015-12-10 2019-11-15 腾讯科技(深圳)有限公司 A kind of detection method and device of video playability
CN108513094B (en) * 2017-02-24 2020-02-07 腾讯科技(深圳)有限公司 Video monitoring method and device
CN108174244A (en) * 2017-12-29 2018-06-15 深圳Tcl新技术有限公司 File Mapping method, mapping server, TV and storage medium
CN109348284A (en) * 2018-11-28 2019-02-15 深圳市创维软件有限公司 A kind of channel playback method, device, equipment and medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016165556A1 (en) * 2015-04-15 2016-10-20 腾讯科技(深圳)有限公司 Data processing method, device and system for video stream

Also Published As

Publication number Publication date
CN112118487A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
CN109640173B (en) Video playing method, device, equipment and medium
US11310066B2 (en) Method and apparatus for pushing information
CN103634337A (en) Page recovery method, device and mobile terminal
CN110913135A (en) Video shooting method and device, electronic equipment and storage medium
US20120142319A1 (en) Systems and methods for joint analytics on user level and network level data of a communications network
CN112118487B (en) Video playing control method, device, equipment and medium
CN110401858B (en) Video playing method and device, electronic equipment and storage medium
CN105072139A (en) Recommendation method and recommendation device
CN106101358A (en) A kind of method of contact person information updating and smart machine
WO2024027449A1 (en) Hybrid-playing processing method and system
CN113760278A (en) Page management method and device
CN110347656B (en) Method and device for managing requests in file storage system
US20150067074A1 (en) Personalized bookmarking of textsite applications via a text message
CN110198481B (en) Program updating method and device, electronic equipment and storage medium
CN109302641B (en) Video watching request method, medium and device
CN115563134A (en) Interaction method, interaction device, electronic equipment and computer readable medium
CN110413800B (en) Method and equipment for providing novel information
US11277300B2 (en) Method and apparatus for outputting information
CN113726882A (en) Information service system, method, device, equipment and medium based on 5G network
CN113705683A (en) Recommendation model training method and device, electronic equipment and storage medium
US20150074125A1 (en) Managing content available for content prediction
CN112423099A (en) Video loading method and device and electronic equipment
CN111641690A (en) Session message processing method and device and electronic equipment
KR102296903B1 (en) Apparatus and method for recoverying error in cloud streaming service system
CN113821750B (en) Page data processing method and system, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40035300

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221111

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 518,101

Patentee after: Shenzhen Yayue Technology Co.,Ltd.

Address before: 35th floor, Tencent building, Keji Zhongyi Road, high tech Zone, Nanshan District, Shenzhen City, Guangdong Province

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