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

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

Info

Publication number
CN114125509B
CN114125509B CN202111448928.2A CN202111448928A CN114125509B CN 114125509 B CN114125509 B CN 114125509B CN 202111448928 A CN202111448928 A CN 202111448928A CN 114125509 B CN114125509 B CN 114125509B
Authority
CN
China
Prior art keywords
video
play
playing
downloading
progress adjustment
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
CN202111448928.2A
Other languages
Chinese (zh)
Other versions
CN114125509A (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111448928.2A priority Critical patent/CN114125509B/en
Publication of CN114125509A publication Critical patent/CN114125509A/en
Application granted granted Critical
Publication of CN114125509B publication Critical patent/CN114125509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • H04N21/2387Stream processing in response to a playback request from an end-user, e.g. for trick-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/24Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
    • H04N21/2408Monitoring of the upstream path of the transmission network, e.g. client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content 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 the scheduling operation being performed under constraints
    • H04N21/26233Content 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 the scheduling operation being performed under constraints involving content or additional data duration or size, e.g. length of a movie, size of an executable file
    • 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/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application discloses a video playing method, a video playing device, electronic equipment and a storage medium; the embodiment of the application can receive the downloading instruction aiming at playing the video, and download the playing video based on the downloading instruction; receiving a play progress adjustment instruction aiming at a play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction; determining a play progress adjustment type of the play video based on the play progress adjustment information; determining a downloading strategy of the playing video based on the playing progress adjustment type; and the downloading adjustment processing is carried out on the played video according to the downloading strategy, so that the reliability of playing and downloading at the same time is improved.

Description

Video playing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a video playing method, a device, an electronic apparatus, and a storage medium.
Background
At present, video related requirements are increasing, and as is well known, video files are generally larger, and large flow is consumed for playing at a mobile terminal. In order to ensure smooth video playing, some users can download the video while playing the video. Through the practice of the prior art, the inventor of the application finds that the prior under-the-side sowing technology has the problem of lower reliability.
Disclosure of Invention
The embodiment of the application provides a video playing method, a video playing device, electronic equipment and a storage medium, which can improve the reliability of downloading videos while playing the videos.
The embodiment of the application provides a video playing method, which comprises the following steps:
receiving a downloading instruction aiming at a playing video, and downloading the playing video based on the downloading instruction;
receiving a play progress adjustment instruction aiming at the play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
determining a play progress adjustment type of the play video based on the play progress adjustment information;
determining a downloading strategy of the playing video based on the playing progress adjustment type;
and carrying out downloading adjustment processing on the playing video according to the downloading strategy.
Correspondingly, the embodiment of the application also provides a video playing device, which comprises:
the receiving unit is used for receiving a downloading instruction aiming at the playing video and downloading the playing video based on the downloading instruction;
the acquisition unit is used for receiving a play progress adjustment instruction aiming at the play video and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
The type determining unit is used for determining the play progress adjustment type of the play video based on the play progress adjustment information;
the measurement determining unit is used for determining the downloading strategy of the playing video based on the playing progress adjustment type;
and the download adjusting unit is used for carrying out download adjusting processing on the playing video according to the download strategy.
In an embodiment, the acquiring unit includes:
the first identification subunit is used for identifying the playing video based on the downloading instruction to obtain a video format of the playing video;
the format discrimination subunit is used for discriminating the video format to obtain a discrimination result;
and the first downloading subunit is used for downloading the playing video based on the judging result.
In an embodiment, the downloading subunit includes:
the link extraction module is used for extracting the play link of the play video based on the discrimination result;
the link conversion module is used for converting the play link to obtain a converted play link;
and the downloading module is used for downloading the playing video based on the converted playing link.
In an embodiment, the link conversion module includes:
The link identification sub-module is used for identifying the play link to obtain a conversion position identifier and a conversion identifier of the play link;
the adding sub-module is used for adding preset supplementary information to the play link based on the conversion position identifier to obtain an added play link;
and the replacing sub-module is used for replacing the conversion identifier of the added play link with a preset identifier to obtain the converted play link.
In an embodiment, the format discrimination subunit includes:
the first matching module is used for matching the video format with a preset conventional video format;
the second matching module is used for matching the video format with a preset target video format when the video format is not matched with the preset conventional video format;
the identification module is used for identifying the playing video when the video format is not matched with the target video format, so as to obtain a format field of the playing video;
and the third matching module is used for matching the format field with a preset format field to obtain the judging result.
In an embodiment, the type determining unit includes:
The second identification subunit is used for identifying the playing video to obtain the downloading information of the playing video;
the comparison subunit is used for comparing the play progress adjustment information with the download information to obtain a comparison result;
and the determining subunit is used for determining the progress adjustment type of the playing video based on the comparison result.
In an embodiment, the download adjusting unit includes:
the analysis subunit is used for analyzing the downloading strategy to obtain an updated downloading time point;
a positioning subunit, configured to position, in the playing video, a target downloading time point corresponding to the updated downloading time point;
and the second downloading subunit is used for downloading the playing video based on the target downloading time point.
In an embodiment, the video playing device provided in the embodiment of the present application further includes:
the instruction receiving unit is used for receiving a video playing ending instruction and acquiring the downloading data of the playing video based on the video playing ending instruction;
the measuring unit is used for measuring the downloading completion degree of the playing video based on the downloading data;
and the perfecting unit is used for perfecting the downloaded data based on the downloading completion degree to obtain the target downloaded data of the playing video.
Correspondingly, the embodiment of the application also provides electronic equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory to execute any one of the video playing methods provided in the embodiments of the present application.
Correspondingly, the embodiment of the application also provides a storage medium, wherein the storage medium stores a computer program, and the computer program realizes the video playing method provided by any one of the embodiments of the application when being executed by a processor.
The embodiment of the application can receive the downloading instruction aiming at playing the video, and download the playing video based on the downloading instruction; receiving a play progress adjustment instruction aiming at a play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction; determining a play progress adjustment type of the play video based on the play progress adjustment information; determining a downloading strategy of the playing video based on the playing progress adjustment type; and carrying out downloading adjustment processing on the played video according to the downloading strategy.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of a video playing method according to an embodiment of the present application;
fig. 2 is a flow chart of a video playing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a video playing method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an existing under-the-side-play model provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of an optimized back-side next-play model provided by an embodiment of the present application;
fig. 6 is a schematic flow chart of a video playing method according to an embodiment of the present disclosure;
fig. 7 is a schematic flow chart of a video playing method according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a video playing device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which embodiments of the present application are shown, however, in which embodiments are shown, by way of illustration, only, and not in any way all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a video playing method, which can be executed by a video playing device, and the video playing device can be integrated in electronic equipment. The electronic device may include at least one of a terminal, a server, and the like. I.e. the video playing method may be performed by the terminal or by the server.
The terminal may include a personal computer, a tablet computer, a smart television, a smart phone, a smart home, a wearable electronic device, a VR/AR device, a vehicle-mounted computer, and the like.
The server may be an interworking server or a background server among a plurality of heterogeneous systems, may be an independent physical server, may be a server cluster or a distributed system formed by a plurality of physical servers, and may be a cloud server for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, basic cloud computing services such as big data and an artificial intelligent platform, and the like.
In an embodiment, as shown in fig. 1, the video playing device may be integrated on an electronic device such as a terminal or a server, so as to implement the video playing method provided in the embodiment of the present application. Specifically, the electronic device may receive a download instruction for playing the video, and download the playing video based on the download instruction; receiving a play progress adjustment instruction aiming at a play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction; determining a play progress adjustment type of the play video based on the play progress adjustment information; determining a downloading strategy of the playing video based on the playing progress adjustment type; and carrying out downloading adjustment processing on the played video according to the downloading strategy.
The following detailed description is given, respectively, of the embodiments, and the description sequence of the following embodiments is not to be taken as a limitation of the preferred sequence of the embodiments.
The video playing method according to the embodiment of the present application will be described in terms of integrating the video playing apparatus in the electronic device.
As shown in fig. 2, a video playing method is provided, and the specific process includes:
101. and receiving a downloading instruction aiming at playing the video, and downloading the playing video based on the downloading instruction.
Wherein playing the video may include the video being played by the user through the video playing device.
In one embodiment, the user may want to download the play video while watching the play video through the video play device. When the user watches the playing video and triggers the downloading instruction, the video playing device receives the downloading instruction for playing the video. Then, the video playing device downloads and plays the video based on the downloading instruction.
102. Receiving a play progress adjustment instruction for playing the video, and acquiring play progress adjustment information of the playing video based on the play progress adjustment instruction.
In one embodiment, when the user is watching the playing video being downloaded, it is possible to adjust the playing progress of the playing video. For example, the user may drag a progress bar of playing the video, thereby changing a playing progress of playing the video. For another example, the user may modify the play rate at which the video is played, thereby changing the play progress of the video being played, and so on. At this time, the video playing device receives a playing progress adjustment command for playing the video, and obtains playing progress adjustment information of the playing video based on the playing progress adjustment command.
The play progress adjustment information may include information indicating what adjustments the user has made to play the video.
For example, when the user drags the progress bar for playing video, the play progress adjustment information may be a position where the progress bar is adjusted. For example, when the playing video is played for 1 minute and 20 seconds, and then the user drags the progress bar of the playing video, so that the playing progress of the playing video becomes 2 minutes and 40 seconds, the playing progress adjustment information may include that the playing progress of the playing video is adjusted from 1 minute and 20 seconds to 2 minutes and 40 seconds.
For another example, when the user modifies the play rate of the play video, thereby changing the play progress of the play video, the play progress adjustment information may include the play rate of the play video after modification and the effect on the download progress of the play video. For example, the original playing rate of the playing video is 0.5 times of the playing rate, and then the user adjusts the playing rate of the playing video to 2 times of the playing rate, the playing progress adjusting information may include the current playing rate adjusted to 2 times of the playing rate, and the effect on the downloading progress of the playing video after the playing speed is adjusted.
103. And determining the play progress adjustment type of the play video based on the play progress adjustment information.
In one embodiment, since the video playing device is downloading the playing video, the downloading process of the playing video may be affected when the user adjusts the playing progress of the playing video. Accordingly, the video playback device can determine the playback progress adjustment type of the playback video based on the playback progress adjustment information. And then determining a downloading strategy of the playing video based on the playing progress adjustment type, and adjusting the playing video based on the downloading strategy.
According to the play progress adjustment information, the play video can be divided into a plurality of play progress adjustment types.
In an embodiment, when the playing progress adjustment information is the position of the progress bar after being adjusted, the playing progress adjustment information and the downloading information of the playing video may be compared, and the playing progress adjustment type may be determined according to the comparison result. The download information of the playing video comprises information which can explain the download condition of the playing video. For example, the download information may include the download amount of the play video, the download start time point, the download end time point, and so on. By downloading the information, it is possible to know how much and where the broadcast video was downloaded.
For example, when the play progress adjustment information exceeds the download end time point of the play video, the play progress adjustment information may be used as a play progress adjustment type of the play video. And when the playing progress adjustment information does not exceed the downloading starting time point of the playing video, the playing progress adjustment information can be used as another progress adjustment type of the playing video, and the like.
In an embodiment, when the play progress adjustment information is a play rate of the play video after modification, the video playing device may calculate a play progress of the play video after modification of the play rate, and compare the calculated play progress with the download information, so as to obtain a play progress adjustment type of the play video.
104. And determining a downloading strategy of the playing video based on the playing progress adjustment type.
In an embodiment, different play progress adjustment types of the play video may have different download policies, so after determining the play progress adjustment type of the play video, the download policy of the play video may be determined.
The downloading strategy of the playing video comprises rules to be followed when the playing video is downloaded. Through the downloading strategy, the video playing device can know what method is adopted to continuously download the playing video under the condition that the playing progress of the playing video is adjusted, so that the influence on the playing video is reduced, and the experience of watching the playing video by a user is improved.
In one embodiment, there are a number of ways in which the download policy for playing the video may be determined based on the type of play progress adjustment. For example, the same identifier may be added to the play progress adjustment type and the corresponding download policy, and the video playing device may determine the download policy of the playing video based on the identifier of the play progress adjustment type, and so on.
105. And carrying out downloading adjustment processing on the played video according to the downloading strategy.
In an embodiment, after determining the download policy corresponding to the play progress adjustment type, the download adjustment process may be performed on the play video according to the download policy.
For example, the play progress adjustment information is a position of the progress bar after being adjusted, and when the play progress adjustment information exceeds a download end time point of the play video, the play video can be continuously downloaded from the position of the progress bar after being adjusted. For another example, when the play progress adjustment information does not exceed the download start time point of the play video, the play video may be downloaded from before the download start time point, thereby avoiding repeated downloading of the video that has already been downloaded.
The embodiment of the application provides a video playing method, which can receive a downloading instruction aiming at playing video and download the playing video based on the downloading instruction; receiving a play progress adjustment instruction aiming at a play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction; determining a play progress adjustment type of the play video based on the play progress adjustment information; determining a downloading strategy of the playing video based on the playing progress adjustment type; and carrying out downloading adjustment processing on the played video according to the downloading strategy. According to the video playing method provided by the embodiment of the application, different downloading strategies can be adopted to carry out downloading adjustment on the playing video according to different playing progress adjustment types of the playing video, so that the influence of the playing progress adjustment on downloading the playing video is reduced, repeated downloading is avoided, the high efficiency and stability of the downloading process can be realized, and the reliability of the video playing process is improved.
According to the method described in the above embodiments, examples are described in further detail below.
The method of the embodiment of the application will be described by taking the example that the video playing method is integrated on the terminal. Specifically, as shown in fig. 3, the flow of the video playing method provided in the embodiment of the present application may include:
201. and the terminal receives a downloading instruction aiming at the playing video, and downloads the playing video based on the downloading instruction.
In one embodiment, many terminals currently support the function of downloading video while playing video, i.e. downloading video while playing video. The existing under-the-side-play model is generally shown in fig. 4. The model comprises a player, a local proxy server and a video resource server. Wherein the video asset server is used for storing video assets. The local proxy server is used for acquiring the links of the video from the video resource server and downloading the video, converting the acquired links and providing the links for the player to play, so that the function of playing at the same time is realized.
However, existing live-under-the-air models generally only support video links as a complete video stream, and are not compatible for downloading and playing various multimedia asset links simultaneously. In addition, the existing under-the-side play model cannot adaptively adjust the downloading of the play video after the user adjusts the play progress of the play video, and when the network bandwidth is insufficient, the problem that the play video is blocked and the downloading cannot be continued is caused.
Thus, the present embodiment optimizes the existing under-the-side-play model, for example, as shown in fig. 5, the under-side-play model after optimization. The optimized back-side simulcast model may be derived from fig. 5, and may include an application layer, a home agent layer, and a player layer.
The application layer may apply for resources from the video resource server, and provide video links (e.g., URL links) and play video to the home agent layer.
The home agent layer extends on the original home agent. Specifically, the local agent layer may include a video format parsing and judging module, a file converting module, and a downloading module. The video format analysis and judgment module is used for identifying and judging the video format of the played video. The file conversion type is used for converting links which cannot be identified by the player layer into links which can be identified by the player layer and providing a download save path. The download module may download the video. In addition, the download module also stores a download strategy, and can adjust the download mode and store and maintain in the download process.
The player layer can acquire video links or downloaded videos from the local agent layer to play, and output decoded data to the application layer to display.
The video playing method provided by the embodiment of the application can support simultaneous downloading and playing of various multimedia resource links by optimizing the back-side play model. In addition, when the playing video is downloaded, if the playing progress of the playing video is adjusted by the user, the embodiment of the application can also adaptively adjust the downloading of the playing video, so that the problems that the playing video is blocked and cannot be continuously played are avoided, and the reliability of the video playing process and the downloading process is improved.
In an embodiment, the video playing device provided in the embodiment of the present application may include an optimized lower edge model, so that the terminal integrated with the video playing device may execute the video playing method provided in the embodiment of the present application by using the optimized lower edge model. Specifically, when the terminal receives a download instruction for playing the video, the playing video may be downloaded based on the download instruction.
The embodiment of the application can support simultaneous downloading and playing of various multimedia resource links, so that when the terminal downloads the playing video based on the downloading instruction, the terminal can identify the video format of the playing video and download the playing video based on the video format of the playing video. Specifically, the step of receiving a download instruction for playing video, downloading the playing video based on the download instruction may include:
Identifying the playing video based on the downloading instruction to obtain a video format of the playing video;
judging the video format to obtain a judging result;
and downloading the playing video based on the judging result.
Wherein the video format comprises a format that holds video. For example, video formats may include AVI (Audio Video Interactive), WMV (Windows Media Video), MPEG (Moving Picture Experts Group), M3U8, MP4, FLV (FLASH VIDEO), and AVI (Audio Video Interleaved), and so on.
In one embodiment, since videos in some video formats cannot be downloaded at the player layer, the local proxy layer needs to perform format conversion for those videos that cannot be downloaded at the player layer so that those videos can be downloaded while being played. Therefore, after receiving the downloading instruction, the terminal can identify the playing video based on the downloading instruction, and a video format of the playing video is obtained. And then judging the video format so as to judge whether the video format needs to be converted. When the video format needs to be converted, the video format is converted and then downloaded. And when the video format does not need to be converted, the video can be directly downloaded.
In one embodiment, the terminal may identify the playing video in a plurality of ways to obtain a video format of the playing video.
For example, the terminal may obtain the play link of the play video by optimizing the play model below the play model, and obtain the video format of the play video by analyzing the play link of the play video.
Wherein, the play link for playing video can include parameters and control commands for delivering the play video information. For example, a play link to play a video may include a uniform resource locator (Uniform Resource Locator, URL), and so on.
For example, the terminal may acquire the URL of the play video, and then parse the URL to obtain the video format of the play video. For example, the terminal may obtain the fileName in the URL of the playing video through the android interface uri. Strings between ' and '/'. Then, the terminal may extract the fileName, thereby obtaining a video format of the played video.
In addition, a format recognition tool can be embedded in the optimized next-play model, so that the terminal can obtain a video format of a played video according to the format recognition tool, and the like.
In an embodiment, after the terminal obtains the video format, the terminal may determine the video format, so as to determine whether the video format needs to be converted. Specifically, the step of "discriminating a video format to obtain a discrimination result" may include:
matching the video format with a preset conventional video format;
when the video format is not matched with the preset conventional video format, matching the video format with a preset target video format;
when the video format is not matched with the target video format, identifying the played video to obtain a format field of the played video;
and matching the format field with a preset format field to obtain a discrimination result.
The preset conventional video format may include a common video format, and the player generally supports downloading. For example, the preset conventional video formats may include MP4, FLV, AVI, and the like video formats.
The target video format may include, among other things, video formats that are unusual, and may not be supported by the partial player. For example, the target video format may include a video format such as M3U 8.
Wherein M3U8 is an index file corresponding to the adaptive bitrate streaming protocol (HTTP Live Streaming, HLS) based on HTTP. The HLS protocol realizes code rate self-adaption, and terminals with different bandwidths can be automatically switched to video playing which is most suitable for own code rate. HLS can cut a video into countless small segments, and then add an index file to each video file for playing. The video is cut into countless small segments, so that the video of each small segment can be quickly adjusted to the playing rate based on the bandwidth, and the code rate self-adaption is realized. Wherein the index file becomes an M3U8 file.
In an embodiment, as shown in fig. 6, after obtaining the video format of the played video, the terminal may first match the video format with a preset conventional video format. For example, the video format is matched with preset conventional videos such as MP4, FLV, AVI, and the like. When the video format is matched with the preset regular video, the video format does not need to be converted, so that the played video can be downloaded.
In one embodiment, when the video format and the preset regular video do not match, the video format and the preset target video format may be matched. For example, as shown in fig. 6, the video format and the M3U8 format may be matched. When the video format is matched with the M3U8 format, the video format of the playing video needs to be converted, so that the local agent layer can download the playing video.
In one embodiment, when the video format and the target video format also do not match, it is stated that the terminal may not correctly recognize the video format of the play video. At this time, the terminal may identify the played video, and obtain a format field of the played video. And then judging the video format of the played video through the format field of the played video.
For example, the terminal may obtain the ContentType according to the getContentType in the httpullconnection class, where ContentType may be a format field of the play video.
After obtaining the format field of the played video, the terminal may match the format field with a preset format field, so as to determine whether the video format of the played video is a preset normal video format or a target video format. The preset format field may be a field that is preset and configured to determine a video format of the video to be played. For example, the preset format field may include a mine Type, and so on.
For example, as shown in fig. 6, the terminal may match the ContentType with the mintype, so as to determine whether the play video is in a preset regular video format or a target video format.
For example, when the video format of the play video is the preset normal video format by matching the format field and the preset format field, the play video may be downloaded. For another example, when the video format of the playing video is the target video format by matching the format field and the preset format field, it is described that the video format needs to be downloaded after the video format of the playing video is converted.
In one embodiment, when the format field of the played video and the preset format field are not matched, the video format of the played video may be an abnormal video format. At this point, the terminal will not support downloading of the play video.
In one embodiment, when the playing video is in the target video format, the playing video needs to be downloaded after format conversion. The format of the play video can be converted by converting the play link of the play video. Specifically, the step of downloading the playing video based on the discrimination result may include:
extracting a playing link for playing the video based on the discrimination result;
converting the play link to obtain a converted play link;
downloading the play video based on the converted play link.
For example, when the video format of the play video is M3U8 format, it is indicated that the play video needs to be downloaded after format conversion. At this time, the terminal may extract a play link of the play video, and perform conversion processing on the play link to obtain a converted play link.
In one embodiment, the step of converting the play link to obtain a converted play link may include:
Identifying the play link to obtain a conversion position identifier and a conversion identifier of the play link;
adding preset supplementary information for the play link based on the conversion position symbol to obtain an added play link;
and replacing the conversion identifier in the added play link with a preset identifier to obtain the converted play link.
Wherein the transition locator includes a symbol that identifies the play link from which the information addition or deletion operation was performed. I.e. by converting the placeholder, the terminal can know which place to play the link to add information or to delete information. For example, the transition locator may include an #EXTINF field in the play link, and so on.
Wherein the transition identifier comprises a symbol that serves as an identification when the content of the play link is subjected to a change operation. I.e. by converting the identifier, the terminal can know which content in the play link to change. For example, the transition identifier may include ": and/symbol, etc.
The preset supplemental information may include preset information added to the play link. For example, the preset supplementary information may include information enabling a download module of the home agent layer to download the play video.
The preset identifier may include preset information added to the play link. For example, the preset identifier may include a symbol that allows the download module of the home agent layer to download the play video.
In an embodiment, after obtaining the conversion location identifier and the conversion identifier of the play link, the terminal may add preset supplementary information to the play link based on the conversion location identifier, to obtain the added play link. For example, the terminal may find the #extnf field in the play link and the links thereafter. For example, after the terminal finds the #extnf field of the play link, the preset supplementary information may be added to the rear of the #extnf field. For another example, after the terminal finds the #extinf field of the play link and the subsequent link, the terminal may add the preset play information to the subsequent link to obtain the added play link.
In an embodiment, after obtaining the post-addition play link, the terminal may replace the conversion identifier of the post-addition play link with a preset identifier to obtain the post-conversion play link. For example, the terminal may replace the conversion identifier of the original play link of the data in the post-addition play link with the preset identifier. For example, the terminal may link ": the "and"/"symbol is replaced with"% 3A "and"% 2F ".
In an embodiment, the terminal may also replace the transition identifier in the play link with a preset identifier first, and then add preset supplemental information to the play link based on the transition identifier.
In an embodiment, the video type conversion of the play video can be achieved by converting the play link of the play video, so that the download module of the local agent layer can identify the converted play link of the play video and download the play video based on the converted play link.
In an embodiment, after the post-conversion play link is obtained, the post-conversion play link may be added to a storage directory of the play video, so that when the download module downloads the play video, the post-conversion play link may be obtained from the storage directory, and the play video may be downloaded based on the post-conversion play link.
202. The terminal receives a play progress adjustment instruction for playing the video, and acquires play progress adjustment information of the playing video based on the play progress adjustment instruction.
In an embodiment, after the terminal downloads the play video, if the user adjusts the play video, the terminal may obtain the play progress adjustment information of the play video based on the play progress adjustment instruction in order to adjust the download process of the play video based on the adjustment of the user.
203. And the terminal determines the play progress adjustment type of the play video based on the play progress adjustment information.
In an embodiment, after the terminal acquires the progress adjustment information, the play progress adjustment type of the play video may be determined based on the play progress adjustment information. Specifically, the step of determining the play progress adjustment type of the play video based on the play progress adjustment information may include:
identifying the playing video to obtain the downloading information of the playing video;
comparing the playing progress adjustment information with the downloading information to obtain a comparison result;
and determining the progress adjustment type of the video playing based on the comparison result.
The download information may include information indicating the progress of playing the video download.
In one embodiment, the embodiments of the present application construct a data structure for representing download information for playing video. The data structure may be expressed as linkedhassmap < Long, video range >. The Long in LinkedHashMap < Long, video range > is the video starting position of the playing video, and video range is the currently downloaded range of the playing video. The video range includes a rangeStart and a rangeEnd, which are respectively a download start time point and a download end time point of the downloaded range.
In an embodiment, the downloaded information of the playing video may be obtained by identifying the playing video. And then comparing the playing progress adjustment information with the downloading information so as to determine the progress adjustment type of the playing video. Specifically, the step of comparing the play progress adjustment information with the download information to obtain a comparison result may include:
and comparing the play progress adjustment time point with the downloading starting time point and the downloading ending time point to obtain a comparison result.
For example, the seek point position of the user dragging progress bar may be represented by seek position. Then, the seekPosition can be compared with the rangeStart and the rangeEnd respectively to obtain a comparison result, and the progress adjustment type of the video playing is determined according to the comparison result.
Specifically, the step of determining a progress adjustment type of playing the video based on the comparison result may include:
when the play progress adjustment time point is greater than the downloading end time point, determining that the progress adjustment type is a first progress adjustment type;
when the play progress adjustment time point is smaller than the downloading starting time point, determining that the progress adjustment type is a second progress adjustment type;
and when the playing progress adjustment time point is larger than the downloading starting time point and smaller than the downloading ending time point, determining that the progress adjustment type is a third progress adjustment type.
The play progress adjustment time point may include a video point corresponding to the user after adjusting the play video progress. For example, if the user adjusts the playing progress of the video from 1 minute 20 seconds to 2 minutes 30 seconds, the playing progress adjustment time point may be 2 minutes 30 seconds.
Wherein, the play progress adjustment time point may be denoted as seekPosition.
For example, when seekPosition > rangeEnd, it is determined that the progress adjustment type of playing the video is the first progress adjustment type. For another example, when seekPosition < rangeStart, it is determined that the progress adjustment type of playing the video is the second progress adjustment type. For another example, when the rangeStart < seekPosition and the rangeEnd > seekPosition, it is determined that the progress adjustment type of playing the video is the third progress adjustment type.
204. And the terminal determines a downloading strategy of the played video based on the play progress adjustment type.
In an embodiment, after determining the play progress adjustment type of the play video, the terminal may determine the downloading policy of the play video based on the play progress adjustment type.
For example, a mapping relationship between a type and a policy may be established in advance, and then a downloading policy for playing the video may be determined according to the mapping relationship between the type and the policy.
205. And the terminal performs downloading adjustment processing on the played video according to the downloading strategy.
In an embodiment, after determining the downloading policy corresponding to the playing video, the terminal may perform the downloading adjustment processing on the playing video according to the downloading policy. Specifically, the step of "performing download adjustment processing on the play video according to the download policy" may include:
analyzing the downloading strategy to obtain an updated downloading time point;
positioning a target downloading time point corresponding to the updated downloading time point in the playing video;
downloading and playing the video based on the target downloading time point.
The update download time point may include a basis for adjusting a download progress of the playing video. For example, the updated download time points may include a download start time point that should be adjusted and/or a download end time point that should be adjusted, and so on.
In an embodiment, after the updated downloading time point is obtained by parsing the downloading policy, the target downloading time point corresponding to the updated downloading time point may be located in the playing video. Then, the play video is downloaded based on the target download time point.
For example, the original download start time point of the play video is k1. And the terminal analyzes the downloading strategy to obtain the starting time point k2 under adjustment. The terminal may adjust the download start time point of the play video from k1 to k2 and then continue downloading the play video at k2.
In one embodiment, since different video schedule adjustment types have different download policies, different video schedule adjustment types may correspond to different update download time points.
For example, the download range in which the video to be played needs to be updated may be denoted as currentRange, and the download start time point and the download end time point in which the video needs to be updated are denoted as currentStart and currentEnd.
For example, as shown in (a) of fig. 7, when seekPosition > rangeEnd, then currentstart=seekposition may be made. That is, when the position of the user-adjusted video is greater than the original download ending time point, the played video can be adjusted from the original download ending time point to the position of the user-adjusted video for downloading.
For example, as shown in (b) in fig. 7, when seekPosition < rangeStart, currentend=rangestart may be made. When the position of the video is adjusted by the user to be smaller than the original downloading starting time point, the original downloading starting time point of the video can be used as the updated downloading ending time point, so that the downloaded video is prevented from being repeatedly downloaded, and resources are saved.
For example, as shown in (c) of fig. 7, when the rangeStart < seekPosition and the rangeEnd > seekPosition, it is explained that the play progress adjustment time point of the user is within the existing download range, so currentstart=rangeend may be made. I.e. the playing video is downloaded from the original end point of download.
In an embodiment, when the playing of the playing video is completed or the user exits the process of playing the video, the downloaded data of the playing video may be verified, so as to determine whether the downloaded data of the playing video is completely downloaded. Specifically, the video playing method provided by the embodiment of the application further includes:
receiving a video playing end instruction, and acquiring downloading data of a playing video based on the video playing end instruction;
measuring the downloading completion degree of the played video based on the downloading data;
and perfecting the downloaded data based on the downloading completion degree to obtain target downloaded data of the played video.
In one embodiment, since the user adjusts the playing progress of the playing video, the downloaded data of the playing video may include a plurality of downloaded clips. For example, if the user makes 2 adjustments to the progress of playing the video, the downloaded data may include 3 downloaded clips. The 3 download segments may include an original download segment, a download segment corresponding to the first adjustment by the user, and a download segment corresponding to the second adjustment by the user.
In an embodiment, when playing the video is completed or the user exits the process of playing the video, the terminal receives a video playing end command and obtains the download data of the played video based on the video playing end command.
When the terminal receives a video playing end instruction, the terminal firstly acquires a plurality of downloading fragments of the playing video, and then integrates the downloading fragments to obtain downloading data.
The terminal may then measure the download completion of playing the video based on the download data. For example, the terminal may obtain the full data length of the played video. Then, the terminal can match the data length of the downloaded data with the complete data length, so that the downloading integrity of the played video is measured according to the matching result.
For example, when the data length of the downloaded data matches the full data length, indicating that the downloaded data of the play video has been downloaded completely, the downloaded data may be stored.
When the data length of the downloaded data is not matched with the whole data length, the downloaded data of the played video is not downloaded, so that the downloaded data is perfected based on the downloading integrity of the downloaded video, and the target downloaded data of the played video is obtained.
For example, when the user adjusts the play progress adjustment time point of the play video all the time, the data in the middle part of the play video cannot be downloaded, and the video fragments are discontinuous, the downloaded data can be deleted and the play video can be downloaded again.
For another example, when the user adjusts the play progress adjustment time point of the play video forward, the play video can be continuously downloaded from the play progress adjustment time point to fill in the intermediate data, so as to obtain complete video download data.
The embodiment of the application can receive the downloading instruction aiming at playing the video, and download the playing video based on the downloading instruction; receiving a play progress adjustment instruction aiming at a play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction; determining a play progress adjustment type of the play video based on the play progress adjustment information; determining a downloading strategy of the playing video based on the playing progress adjustment type; and carrying out downloading adjustment processing on the played video according to the downloading strategy. According to the video playing method provided by the embodiment of the application, different downloading strategies can be adopted to carry out downloading adjustment on the playing video according to different playing progress adjustment types of the playing video, so that the influence of the playing progress adjustment on downloading the playing video is reduced, repeated downloading is avoided, the high efficiency and stability of the downloading process can be realized, and the reliability of the video playing process is improved.
In addition, when the playing video is downloaded, the playing video in the target format can be converted. For example, the play video in M3U8 format may be converted so that the video in M3U8 format may be downloaded.
In order to better implement the video playing method provided by the embodiment of the application, in an embodiment, a video playing device is also provided, and the video playing device can be integrated in an electronic device. The meaning of the nouns is the same as that in the video playing method, and specific implementation details can be referred to the description in the method embodiment.
In one embodiment, a video playing device is provided, which may be integrated in an electronic apparatus, as shown in fig. 8, and includes: a receiving unit 301, an acquiring unit 302, a type determining unit 303, a measurement determining unit 304, and a download adjusting unit 305 are specifically as follows:
a receiving unit 301, configured to receive a download instruction for a playing video, and download the playing video based on the download instruction;
an obtaining unit 302, configured to receive a play progress adjustment instruction for the play video, and obtain play progress adjustment information of the play video based on the play progress adjustment instruction;
A type determining unit 303, configured to determine a play progress adjustment type of the play video based on the play progress adjustment information;
a measurement determining unit 304, configured to determine a downloading policy of the playing video based on the playing progress adjustment type;
and the download adjustment unit 305 is configured to perform download adjustment processing on the playing video according to the download policy.
In an embodiment, the obtaining unit 302 includes:
the first identification subunit is used for identifying the playing video based on the downloading instruction to obtain a video format of the playing video;
the format discrimination subunit is used for discriminating the video format to obtain a discrimination result;
and the first downloading subunit is used for downloading the playing video based on the judging result.
In an embodiment, the downloading subunit includes:
the link extraction module is used for extracting the play link of the play video based on the discrimination result;
the link conversion module is used for converting the play link to obtain a converted play link;
and the downloading module is used for downloading the playing video based on the converted playing link.
In an embodiment, the link conversion module includes:
the link identification sub-module is used for identifying the play link to obtain a conversion position identifier and a conversion identifier of the play link;
the adding sub-module is used for adding preset supplementary information to the play link based on the conversion position identifier to obtain an added play link;
and the replacing sub-module is used for replacing the conversion identifier of the added play link with a preset identifier to obtain the converted play link.
In an embodiment, the format discrimination subunit includes:
the first matching module is used for matching the video format with a preset conventional video format;
the second matching module is used for matching the video format with a preset target video format when the video format is not matched with the preset conventional video format;
the identification module is used for identifying the playing video when the video format is not matched with the target video format, so as to obtain a format field of the playing video;
and the third matching module is used for matching the format field with a preset format field to obtain the judging result.
In an embodiment, the type determining unit 303 includes:
the second identification subunit is used for identifying the playing video to obtain the downloading information of the playing video;
the comparison subunit is used for comparing the play progress adjustment information with the download information to obtain a comparison result;
and the determining subunit is used for determining the progress adjustment type of the playing video based on the comparison result.
In an embodiment, the download adjusting unit 305 includes:
the analysis subunit is used for analyzing the downloading strategy to obtain an updated downloading time point;
a positioning subunit, configured to position, in the playing video, a target downloading time point corresponding to the updated downloading time point;
and the second downloading subunit is used for downloading the playing video based on the target downloading time point.
In an embodiment, the video playing device provided in the embodiment of the present application further includes:
the instruction receiving unit is used for receiving a video playing ending instruction and acquiring the downloading data of the playing video based on the video playing ending instruction;
the measuring unit is used for measuring the downloading completion degree of the playing video based on the downloading data;
And the perfecting unit is used for perfecting the downloaded data based on the downloading completion degree to obtain the target downloaded data of the playing video.
In the implementation, each unit may be implemented as an independent entity, or may be implemented as the same entity or several entities in any combination, and the implementation of each unit may be referred to the foregoing method embodiment, which is not described herein again.
The test feedback data on microscopic granularity can be tested through the test testing device, and the reliability of the test feedback data in the application verification test is improved, so that the accuracy of the test result in the application verification test is improved.
The embodiment of the application also provides electronic equipment, which can comprise a terminal or a server; for example, the electronic device may be a server, such as a video playback server, or the like. As shown in fig. 9, a schematic structural diagram of a terminal according to an embodiment of the present application is shown, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 9 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
The processor 401 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user page, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 402 according to the following instructions, and the processor 401 executes the application programs stored in the memory 402, so as to implement various functions as follows:
receiving a downloading instruction aiming at a playing video, and downloading the playing video based on the downloading instruction;
Receiving a play progress adjustment instruction aiming at the play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
determining a play progress adjustment type of the play video based on the play progress adjustment information;
determining a downloading strategy of the playing video based on the playing progress adjustment type;
and carrying out downloading adjustment processing on the playing video according to the downloading strategy.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
According to one aspect of the present application, there is provided a computer program application or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of the above embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the embodiments of the present application also provide a storage medium in which a computer program is stored, the computer program being capable of being loaded by a processor to perform the steps of any of the video playing methods provided in the embodiments of the present application. For example, the computer program may perform the steps of:
receiving a downloading instruction aiming at a playing video, and downloading the playing video based on the downloading instruction;
receiving a play progress adjustment instruction aiming at the play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
determining a play progress adjustment type of the play video based on the play progress adjustment information;
determining a downloading strategy of the playing video based on the playing progress adjustment type;
and carrying out downloading adjustment processing on the playing video according to the downloading strategy.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
The steps in any video playing method provided in the embodiments of the present application may be executed by the computer program stored in the storage medium, so that the beneficial effects that any video playing method provided in the embodiments of the present application may be achieved, which are detailed in the previous embodiments and are not repeated herein.
The foregoing describes in detail a video playing method, apparatus, electronic device and storage medium provided in the embodiments of the present application, and specific examples are applied to illustrate principles and implementations of the present application, where the foregoing description of the embodiments is only used to help understand the method and core idea of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (9)

1. A video playing method, comprising:
receiving a downloading instruction aiming at a playing video, identifying the playing video based on the downloading instruction to obtain a video format of the playing video, judging the video format to obtain a judging result, and extracting a playing link of the playing video based on the judging result;
identifying the play link to obtain a conversion position symbol and a conversion identifier of the play link, adding preset supplementary information for the play link based on the conversion position symbol to obtain an added play link, replacing the conversion identifier of the added play link with the preset identifier to obtain a converted play link, and downloading the play video based on the converted play link;
Receiving a play progress adjustment instruction aiming at the play video, and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
determining a play progress adjustment type of the play video based on the play progress adjustment information;
determining a downloading strategy of the playing video based on the playing progress adjustment type;
and carrying out downloading adjustment processing on the playing video according to the downloading strategy.
2. The method according to claim 1, wherein the discriminating the video format to obtain the discrimination result includes:
matching the video format with a preset conventional video format;
when the video format is not matched with a preset conventional video format, matching the video format with a preset target video format;
when the video format is not matched with the target video format, identifying the playing video to obtain a format field of the playing video;
and matching the format field with a preset format field to obtain the discrimination result.
3. The method of claim 1, wherein the determining a playback progress adjustment type for the playback video based on the playback progress adjustment information comprises:
Identifying the playing video to obtain the downloading information of the playing video;
comparing the playing progress adjustment information with the downloading information to obtain a comparison result;
and determining the progress adjustment type of the playing video based on the comparison result.
4. A method according to claim 3, wherein the download information includes a download start time point and a download end time point; the play progress adjustment information comprises a play progress adjustment time point; comparing the playing progress adjustment information with the downloading information to obtain a comparison result, wherein the comparing comprises the following steps:
comparing the play progress adjustment time point with the download starting time point and the download ending time point to obtain a comparison result;
the determining the progress adjustment type of the playing video based on the comparison result comprises the following steps:
when the play progress adjustment time point is greater than the downloading ending time point, determining that the progress adjustment type is a first progress adjustment type;
when the play progress adjustment time point is smaller than the downloading starting time point, determining that the progress adjustment type is a second progress adjustment type;
And when the play progress adjustment time point is larger than the downloading starting time point and smaller than the downloading ending time point, determining that the progress adjustment type is a third progress adjustment type.
5. The method of claim 1, wherein the performing a download adjustment process on the play video according to the download policy comprises:
analyzing the downloading strategy to obtain an updated downloading time point;
positioning a target downloading time point corresponding to the updated downloading time point in the playing video;
and downloading the playing video based on the target downloading time point.
6. The method according to claim 1, wherein the method further comprises:
receiving a video playing ending instruction, and acquiring downloading data of the playing video based on the video playing ending instruction;
measuring the downloading completion degree of the playing video based on the downloading data;
and perfecting the downloaded data based on the downloading completion degree to obtain target downloaded data of the playing video.
7. A video playback device, comprising:
the receiving unit is used for receiving a downloading instruction aiming at the playing video, identifying the playing video based on the downloading instruction to obtain a video format of the playing video, judging the video format to obtain a judging result, and extracting a playing link of the playing video based on the judging result;
Identifying the play link to obtain a conversion position symbol and a conversion identifier of the play link, adding preset supplementary information for the play link based on the conversion position symbol to obtain an added play link, replacing the conversion identifier of the added play link with the preset identifier to obtain a converted play link, and downloading the play video based on the converted play link;
the acquisition unit is used for receiving a play progress adjustment instruction aiming at the play video and acquiring play progress adjustment information of the play video based on the play progress adjustment instruction;
the type determining unit is used for determining the play progress adjustment type of the play video based on the play progress adjustment information;
the measurement determining unit is used for determining the downloading strategy of the playing video based on the playing progress adjustment type;
and the download adjusting unit is used for carrying out download adjusting processing on the playing video according to the download strategy.
8. An electronic device comprising a memory and a processor; the memory stores a computer program, and the processor is configured to execute the computer program in the memory to perform the video playing method according to any one of claims 1 to 6.
9. A storage medium storing a plurality of computer programs adapted to be loaded by a processor to perform the video playback method of any one of claims 1 to 6.
CN202111448928.2A 2021-11-30 2021-11-30 Video playing method and device, electronic equipment and storage medium Active CN114125509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111448928.2A CN114125509B (en) 2021-11-30 2021-11-30 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111448928.2A CN114125509B (en) 2021-11-30 2021-11-30 Video playing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114125509A CN114125509A (en) 2022-03-01
CN114125509B true CN114125509B (en) 2024-01-19

Family

ID=80369301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111448928.2A Active CN114125509B (en) 2021-11-30 2021-11-30 Video playing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114125509B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9357277B1 (en) * 2014-09-17 2016-05-31 Cox Communications, Inc. Dynamic URL personalization system for enhancing interactive television
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device
CN106550263A (en) * 2015-09-16 2017-03-29 深圳市腾讯计算机系统有限公司 Media playing method and device
WO2018000646A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Video download method and apparatus, and electronic device
CN108965910A (en) * 2018-08-09 2018-12-07 网宿科技股份有限公司 A kind of video cache method and player
CN110113655A (en) * 2019-05-05 2019-08-09 北京奇艺世纪科技有限公司 A kind of method, apparatus and user terminal of video playing
CN110475121A (en) * 2018-05-10 2019-11-19 腾讯科技(深圳)有限公司 A kind of video data handling procedure, device and relevant device
CN110493324A (en) * 2019-07-29 2019-11-22 咪咕视讯科技有限公司 Method for down loading, downloader and computer readable storage medium
CN111541945A (en) * 2020-04-28 2020-08-14 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
CN112040324A (en) * 2020-09-10 2020-12-04 Tcl通讯(宁波)有限公司 Playing progress adjusting method and device, storage medium and terminal
CN113301424A (en) * 2021-05-21 2021-08-24 北京字跳网络技术有限公司 Play control method, device, storage medium and program product

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7721103B2 (en) * 2001-09-18 2010-05-18 Media Rights Technologies, Inc. System and method for providing global media content delivery
EP2638682A4 (en) * 2010-11-12 2014-07-23 Realnetworks Inc Traffic management in adaptive streaming protocols
CN103581736A (en) * 2012-07-26 2014-02-12 腾讯科技(深圳)有限公司 Digital television terminal, video file playing method and video file playing system
WO2016187592A1 (en) * 2015-05-21 2016-11-24 Viviso Inc. Apparatus and method for replacing conventional commercials with targeted advertisements in online live streams
US9654815B2 (en) * 2015-09-18 2017-05-16 Arris Enterprises, Inc. Advertising detection in adaptive bitrate streaming
US20170171278A1 (en) * 2015-12-14 2017-06-15 Le Holdings (Beijing) Co., Ltd. Method and electronic device for continuously playing video
CN106993238A (en) * 2017-04-14 2017-07-28 网宿科技股份有限公司 Audio and video playing method and device, audio frequency and video live broadcasting method and system based on Html5

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9357277B1 (en) * 2014-09-17 2016-05-31 Cox Communications, Inc. Dynamic URL personalization system for enhancing interactive television
CN105681874A (en) * 2015-06-02 2016-06-15 深圳Tcl数字技术有限公司 Network video online playing method and device
CN106550263A (en) * 2015-09-16 2017-03-29 深圳市腾讯计算机系统有限公司 Media playing method and device
WO2018000646A1 (en) * 2016-06-27 2018-01-04 乐视控股(北京)有限公司 Video download method and apparatus, and electronic device
CN110475121A (en) * 2018-05-10 2019-11-19 腾讯科技(深圳)有限公司 A kind of video data handling procedure, device and relevant device
CN108965910A (en) * 2018-08-09 2018-12-07 网宿科技股份有限公司 A kind of video cache method and player
CN110113655A (en) * 2019-05-05 2019-08-09 北京奇艺世纪科技有限公司 A kind of method, apparatus and user terminal of video playing
CN110493324A (en) * 2019-07-29 2019-11-22 咪咕视讯科技有限公司 Method for down loading, downloader and computer readable storage medium
CN111541945A (en) * 2020-04-28 2020-08-14 Oppo广东移动通信有限公司 Video playing progress control method and device, storage medium and electronic equipment
WO2021218311A1 (en) * 2020-04-28 2021-11-04 Oppo广东移动通信有限公司 Video playing progress control method and apparatus, and storage medium and electronic device
CN112040324A (en) * 2020-09-10 2020-12-04 Tcl通讯(宁波)有限公司 Playing progress adjusting method and device, storage medium and terminal
CN113301424A (en) * 2021-05-21 2021-08-24 北京字跳网络技术有限公司 Play control method, device, storage medium and program product

Also Published As

Publication number Publication date
CN114125509A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
US10643610B2 (en) Voice interaction based method and apparatus for generating multimedia playlist
CN108305636B (en) A kind of audio file processing method and processing device
US11350139B2 (en) Video live broadcast method and apparatus
CN105052107B (en) Media content Adaptive Transmission is carried out using quality information
CN110807128B (en) Video preloading method, device, equipment and storage medium
US9344517B2 (en) Downloading and adaptive streaming of multimedia content to a device with cache assist
CN106791933B (en) The method and system of online quick editor&#39;s video based on web terminal
CN110662017B (en) Video playing quality detection method and device
EP2897060B1 (en) Subtitle processing method, device and system, and storage medium
CN111510770B (en) Method and device for switching definition, computer equipment and readable storage medium
US20210368225A1 (en) Method and system for setting video cover
US11637883B2 (en) Method to insert program boundaries in linear video for adaptive bitrate streaming
KR20170012461A (en) Method for reducing pre-fetching of multimedia streaming data with minimal impact on playback user experience
US20150268808A1 (en) Method, Device and System for Multi-Speed Playing
CN114222086B (en) Method, system, medium and electronic device for scheduling audio and video code stream
CN108769830B (en) Method for caching video and related equipment
CN114125509B (en) Video playing method and device, electronic equipment and storage medium
CN111385660A (en) Video on demand method, device, equipment and storage medium
CN113741814A (en) Data processing method, data processing device, computer readable storage medium and computer equipment
WO2024082688A1 (en) Method and apparatus for playing gift special-effect resource
CN111510790B (en) Video request method, system, computer device and computer readable storage medium
US8850504B2 (en) Method and system for comparing media assets
CN113207007B (en) Live broadcast recording method based on HLS protocol
CN107484040A (en) A kind of method for realizing network acceleration
CN109962948B (en) P2P task processing method and device

Legal Events

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