CN112714365B - Video playing method and system - Google Patents

Video playing method and system Download PDF

Info

Publication number
CN112714365B
CN112714365B CN201911022147.XA CN201911022147A CN112714365B CN 112714365 B CN112714365 B CN 112714365B CN 201911022147 A CN201911022147 A CN 201911022147A CN 112714365 B CN112714365 B CN 112714365B
Authority
CN
China
Prior art keywords
video
video playing
html file
address
access request
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
CN201911022147.XA
Other languages
Chinese (zh)
Other versions
CN112714365A (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.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili 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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN201911022147.XA priority Critical patent/CN112714365B/en
Publication of CN112714365A publication Critical patent/CN112714365A/en
Application granted granted Critical
Publication of CN112714365B publication Critical patent/CN112714365B/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/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/64Addressing
    • H04N21/6402Address allocation for clients
    • 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
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the application discloses a video playing method, which comprises the following steps: receiving a page access request sent by a client terminal; acquiring an HTML file and a video playing address for linking videos according to the page access request; adding the video playing address into the HTML file to obtain a target HTML file; and returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address. The application also provides a video playing system, a computer device and a computer readable storage medium. According to the embodiment of the application, the step of sending the play address request to the content server is performed by the computer equipment at the service side instead of the client terminal at the user side, so that the play speed of the user side under the condition of poor network condition is improved.

Description

Video playing method and system
Technical Field
Embodiments of the present disclosure relate to the field of communications, and in particular, to a video playing method, a video playing system, a computer device, and a computer readable storage medium.
Background
Along with the rapid popularization of network videos, users are gradually used to playing various videos through terminal equipment.
In general, a terminal device enters a video playing page according to a user instruction, and performs a video playing operation on the video playing page.
However, in the process of entering the video playing page, a delay in playing may be caused due to poor network environment.
Disclosure of Invention
In view of the foregoing, an object of an embodiment of the present application is to provide a video playing method, a system, a computer device and a computer readable storage medium for solving the technical problem of a play-on delay.
An aspect of an embodiment of the present application provides a video playing method, including: receiving a page access request sent by a client terminal; acquiring an HTML file and a video playing address for linking videos according to the page access request; adding the video playing address into the HTML file to obtain a target HTML file; and returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address.
Optionally, according to the page access request, acquiring the HTML file and the video play address for linking the video, including: acquiring an HTML file according to the page access request; generating a play address request according to the page access request; and sending the play address request to a content server so that the content server returns the video play address based on the play address request.
Optionally, acquiring the HTML file corresponding to the page access request includes: acquiring page resources and page templates according to the page access request; and performing page rendering operation according to the page resources and the page template to obtain the rendered HTML file.
Optionally, acquiring the HTML file corresponding to the page access request includes: and acquiring a page template according to the page access request, wherein the page template is the HTML file for sending to the client terminal.
Optionally, generating a play address request according to the page access request includes: and generating the play address request according to the preset path address and the video identification in the page access request.
Optionally, the method is used in a computer device, which is located in the same local area network as the content server.
An aspect of an embodiment of the present application further provides a video playing system, including: the receiving module is used for receiving a page access request sent by the client terminal; the acquisition module is used for acquiring an HTML file and a video playing address for linking videos according to the page access request; the adding module is used for adding the video playing address into the HTML file to obtain a target HTML file; and the returning module is used for returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address.
An aspect of the embodiments of the present application further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the steps of the video playing method described above.
An aspect of the embodiments of the present application further provides a computer readable storage medium having a computer program stored therein, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the video playing method described above.
An aspect of an embodiment of the present application further provides a video playing method, including: sending a page access request to a first server, wherein the page access request comprises a video identification of a target video; receiving a target HTML file returned by the first server, wherein the target HTML file comprises a video playing address; and executing video playing operation based on the video playing address in the target HTML file.
Optionally, the video playing address is obtained by the first server requesting from a second server based on the video identifier, where the first server and the second server are located in the same local area network.
According to the video playing method, the system, the device and the computer readable storage medium, after receiving the page access request as the client terminal, an HTML file is acquired, the client terminal is replaced to acquire a video playing address from the content server, the acquired video playing address is added into the HTML file, and after receiving the target HTML file returned by the computer device, the client terminal can execute video playing operation according to the video playing address in the target HTML file. According to the embodiment of the application, the computer equipment at the service side executes the step of sending the play address request to the content server instead of the client terminal at the user side, so that the play speed of the user side under the condition of poor network condition is improved.
Drawings
Fig. 1 schematically illustrates an application environment diagram of a video playing method according to a first embodiment of the present application;
fig. 2 schematically illustrates a flowchart of a video playing method according to a first embodiment of the present application;
fig. 3 schematically shows a flow chart of step S202 in fig. 2;
fig. 4 schematically shows another flow chart of step S202 in fig. 2;
fig. 5 schematically shows another flow chart of step S202 in fig. 2;
fig. 6 schematically shows another flow chart of step S202 in fig. 2;
fig. 7 schematically shows a transmission diagram of a video playback method;
fig. 8 schematically shows a block diagram of a communication system according to a second embodiment of the present application;
fig. 9 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a video playing method according to a third embodiment of the present application; and
fig. 10 schematically shows a flowchart of a video playing method according to a fifth embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the embodiments of the present application, are within the scope of the embodiments of the present application.
It should be noted that the description of "first", "second", etc. in this disclosure is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implying an indication of the number of technical features being indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions of the embodiments may be combined with each other, but it is necessary to base that the technical solutions can be realized by those skilled in the art, and when the technical solutions are contradictory or cannot be realized, the combination of the technical solutions should be considered to be absent and not within the scope of protection claimed in the present invention.
There may be several aspects to the reason for the play delay in entering the video play page, where the inventors found that: in the existing interaction between the server and the client, after the client receives the HTML file of the server, it needs to initiate an authority authentication (auth) operation to the server again, and after the authentication of the server is completed, it sends a play address request to the server. Whether it is an authentication operation or a play address request operation, it causes a delay in the play of video play to some extent, especially in the case where the network condition on the user side or the client operation condition is poor.
Various embodiments are provided below, it being understood that various embodiments provided below may be used to address one or more of the technical problems described above.
Fig. 1 schematically illustrates an environment application diagram of a video playing method according to a first embodiment of the present application. In an exemplary embodiment, the content provider 2 may connect a plurality of client terminals 6 through a network 5 in an exemplary embodiment.
The content provider 2 may provide services through one or more networks 5. The network 5 may include various network devices such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and/or the like. The network 5 may include physical links such as coaxial cable links, twisted pair cable links, fiber optic links, combinations thereof, and/or the like. The network 5 may include wireless links, such as cellular links, satellite links, wi-Fi links, and/or the like.
The content provider 2 may be composed of a plurality of computer devices (e.g., computer device 3, content server 4), wherein the computer device 3 may be a Web server for providing a Web information browsing service; the content server 4 may be used to store video data. The plurality of computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines such as emulation of computer systems, operating systems, servers, and the like. The computing device may load the virtual machine based on a virtual image and/or other data defining particular software (e.g., operating system, dedicated application, server) for emulation. As the demand for different types of processing services changes, different virtual machines may be loaded and/or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device.
The plurality of client terminals 6 may be configured to access the content and services of the content provider 2. The plurality of client terminals 6 may include any type of computing device, such as a mobile device, tablet device, laptop computer, set-top box, smart television, and the like.
A plurality of client terminals 6 may be associated with one or more users. A single user may access the content provider 2 using one or more of the plurality of client terminals 6. Multiple client terminals 6 may use different networks to access the content provider 2.
In an exemplary embodiment, the client terminal 6 may include a browser 7. The browser 7 outputs (e.g., displays, presents) content to the user. The content may be presented page-wise and may include video, audio, comments, text data, and/or the like. The client terminal 6 may comprise a client terminal interface 8, which client terminal interface 8 may comprise input elements. For example, the input element may be configured to receive user instructions that may cause the client terminal 6 to perform various operations, such as sending a page access request into the computer device 3.
Example 1
Fig. 2 schematically shows a flowchart of a video playing method according to a first embodiment of the present application. It will be appreciated that the present method embodiment may be implemented in the computer device 3 and that the flow chart of the present method embodiment is not intended to limit the order in which the steps are implemented.
As shown in fig. 2, the video playing method may include steps S200 to S206, in which:
step S200, receiving a page access request sent by a client terminal.
After receiving the page access request, the computer device 3 performs a corresponding response operation.
The page access request may be an HTTP request based on the HTTP (S) (hypertext transfer protocol ) protocol, e.g., http:// bilibilili.
Step S202, according to the page access request, an HTML (HyperText Markup Language ) file and a video play address for linking the video are acquired.
The computer device 3 parses the page access request and defines an HTTP response based on the parsing result, for example, sends back an HTML file corresponding to the target page. The computer device 3 also obtains the video playing address in the target page, and returns the video playing address to the client terminal 6 along with the HTML file, so that the client terminal 6 can directly perform video playing operation according to the HTML file returned by the computer device 3.
In an exemplary embodiment, as shown in fig. 3, the step S202 may include steps S300 to S304, wherein: step S300, acquiring an HTML file according to the page access request; step S302, generating a play address request according to the page access request; step S304, the play address request is sent to a content server, so that the content server returns the video play address based on the play address request.
The HTML file may be a file that is not page-rendered, or may be a file that is page-rendered. The so-called page rendering consists in running Javascript script to request page data and converting the requested page data into a complete page in combination with a preset page template, which can be shown to the user for viewing through the browser 7.
In an exemplary embodiment, the computer device 3 performs a server rendering operation, as shown in fig. 4, the step S300 may include steps S400 to S402, where: step S400, acquiring page resources and page templates according to the page access request; and step S502, performing page rendering operation according to the page resources and the page template to obtain the rendered HTML file.
In an exemplary embodiment, the computer device 3 does not provide a server rendering operation, and performs a client rendering operation through a client terminal, as shown in fig. 5, the step S300 may include the step S500: and acquiring a page template according to the page access request, wherein the page template is the HTML file for sending to the client terminal.
The execution of the server rendering operation or the client rendering operation may be determined by the operation status of the computer device 3 and/or the client terminal 6, for example, the server rendering operation may be stopped in a high load situation of the computer device 3 to maintain the normal operation of the device.
In an exemplary embodiment, as shown in fig. 6, the step S302 may include a step S600: and generating the play address request according to a preset path address and a video Identification (ID) in the page access request. For example: the computer device 3 receives the page access request sent by the client terminal 6, the URL (uniform resourcelocator ) of the page access request is https:// www.bilibili.com/video/av70877592, and "av70877592" is the video identifier in the page access request, and then the "av70877592" is combined with the preset path address "bilibilili.
After the computer device 3 obtains a play address request "bilibilili.com/play url=av 70877592", the play address request is sent to the content server 4, so that the content server returns the video play address (video url) based on the play address request.
It should be noted that, in different websites, the form and location of the video identifier in url may be different, such as a video page website of the aiqi art: https:// www.iqiyi.com/v_19rvi9ywfo. Html, video identification may be 19rvi9ywfo or v_19rvi9ywfo; a video page web site of the cool: https:// v.you. Com/v_show/id_xmzexmdaznzy2 ma= =.htmlspm = a2h0k.11417342. Solutions.dttle & s = efbfbd4a1a38efbfbdef, the video identification of which may be XMzExMDAzNzY2MA, which is not described in detail herein.
And step S204, adding the video playing address into the HTML file to obtain a target HTML file.
And step S206, returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address.
As described above, the video playing method according to the first embodiment:
the computer device 3 serves as a server, and after receiving a page access request as a client terminal, the computer device obtains an HTML file, and replaces the client to ask the content server 4 for a video playing address, and adds the requested video playing address to the HTML file, so that after receiving a target HTML file returned by the computer device 3, the client terminal can execute video playing operation according to the video playing address in the target HTML file.
Taking client rendering as an example, in the conventional art, the client terminal 6 needs to be able to perform video playback operations by: (1) sending a page access request to the computer device 3; (2) receiving an HTML file returned by the computer equipment; (3) request, download, initialize JS (e.g., loadvideo JS), etc.; (4) performing a right authentication operation with the content server 4; (5) sending a play address request to the content server 4; (6) and receiving a video playing address returned by the content server 4, and executing video playing operation according to the video playing address. It will be appreciated that the network conditions at the user side are involved in step (4) and step (5), and that the time consuming steps of these two steps are catastrophic in the case of poor network conditions at the user side, and can seriously affect the video playing speed.
In this embodiment, the steps (4) and (5) are performed in the computer device 3, so that the problem of delay in playing caused by poor network conditions on the user side is avoided, and the video playing speed of the client terminal 6 is effectively improved. In addition, in some embodiments, the computer device 3 and the content server 4 are located in the same local area network, so that the computer device 3 does not need to perform authority authentication with the content server 4 before sending the play address request "bilibilili. Through many experiments, the computer device 3 requests the video playing address from the content server in the same local area network, and the video playing address can be basically maintained within 10 milliseconds, which is far faster than the traditional video playing address requesting mode.
In order to make the present invention more clearly understood, an example is provided below as shown in fig. 7, and it should be noted that this example is not intended to limit the present invention.
In step S700, the client terminal transmits a page access request, for example, "bilibilili.
Step S702, the computer equipment acquires an HTML file according to the page access request;
step S704, the computer device generates the play address request, for example, "bilibilibili.com/playurlid=av 70877592", according to the preset path address and the video identifier in the page access request;
step S706, the computer device sends the play address request to a content server in the same local area network;
step S708, the content server returns the video playing address based on the playing address request;
in step S710, the computer device adds the video playing address to the HTML file to obtain a target HTML file.
Step S712, the computer device returns the target HTML file to the client terminal;
step S714, the client terminal receives the target HTML file, and first performs JS (e.g., load video. JS) request, download, initialization, etc., and performs page rendering or secondary page rendering, etc.;
in step S716, the client terminal executes the video playing operation according to the video playing address in the target HTML file.
Example two
Fig. 8 schematically illustrates a block diagram of a video playback system according to a second embodiment of the present application, which may be divided into one or more program modules, which are stored in a storage medium and executed by one or more processors to complete the embodiments of the present application. Program modules in the embodiments of the present application refer to a series of computer program instruction segments capable of implementing specific functions, and the following description specifically describes the functions of each program module in the embodiment.
As shown in fig. 8, the video playing system 800 may include a receiving module 810, an obtaining module 820, an adding module 830, and a returning module 840, where:
a receiving module 810, configured to receive a page access request sent by a client terminal;
an obtaining module 820, configured to obtain, according to the page access request, an HTML file and a video play address for linking a video;
an adding module 830, configured to add the video playing address to the HTML file, so as to obtain a target HTML file; and
And a returning module 840, configured to return the target HTML file to the client terminal, so that the client terminal performs a video playing operation according to the video playing address.
In an exemplary embodiment, the obtaining module 820 is further configured to: acquiring an HTML file according to the page access request; generating a play address request according to the page access request; and sending the play address request to a content server so that the content server returns the video play address based on the play address request.
In an exemplary embodiment, the obtaining module 820 is further configured to: acquiring page resources and page templates according to the page access request; and performing page rendering operation according to the page resources and the page template to obtain the rendered HTML file.
In an exemplary embodiment, the obtaining module 820 is further configured to: and acquiring a page template according to the page access request, wherein the page template is the HTML file for sending to the client terminal.
In an exemplary embodiment, the obtaining module 820 is further configured to: and generating the play address request according to the preset path address and the video identification in the page access request.
In an exemplary embodiment, the system operates in a computer device that is located in the same local area network as the content server.
As described above, the video playing system described in the second embodiment:
the video playing system acquires an HTML file after receiving a page access request as a client terminal, and also replaces a client to ask a content server for a video playing address, and adds the obtained video playing address into the HTML file, so that the client terminal can execute video playing operation according to the video playing address in the target HTML file after receiving the target HTML file returned by the computer device. The video playing system replaces the client terminal to execute the playing address request sent to the content server, and improves the playing speed under the condition of poor network conditions of the user side.
Example III
Fig. 9 schematically illustrates a hardware architecture diagram of a computer device adapted to implement a video playing method according to a third embodiment of the present application. In the present embodiment, the computer device 3 is a device capable of automatically performing numerical calculation and/or information processing in accordance with instructions set or stored in advance. For example, it may be a rack server, a blade server, a tower server, or a rack server (including an independent server or a server cluster composed of a plurality of servers), etc. As shown in fig. 9, the computer device 3 includes at least, but is not limited to: memory 910, processor 920, and network interface 930 may be communicatively linked to each other by a system bus. Wherein:
the memory 910 includes at least one type of computer-readable storage medium including flash memory, hard disk, multimedia card, card memory (e.g., SD or DX memory, etc.), random Access Memory (RAM), static Random Access Memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 910 may be an internal storage module of the computer apparatus 3, such as a hard disk or a memory of the computer apparatus 3. In other embodiments, the memory 910 may also be an external storage device of the computer device 3, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card) or the like, which are provided on the computer device 3. Of course, the memory 910 may also include both internal memory modules of the computer device 3 and external memory devices. In this embodiment, the memory 910 is typically used to store an operating system and various types of application software installed on the computer device 3, such as program codes of a video playing method, and the like. In addition, the memory 910 may also be used to temporarily store various types of data that have been output or are to be output.
The processor 920 may be a central processing unit (Central Processing Unit, simply CPU), controller, microcontroller, microprocessor, or other data processing chip in some embodiments. The processor 920 is typically used to control the overall operation of the computer device 3, such as performing control and processing related to data interaction or communication with the computer device 3, and the like. In this embodiment, the processor 920 is configured to execute program codes or process data stored in the memory 910.
The network interface 930 may include a wireless network interface or a wired network interface, which network interface 930 is typically used to establish a communication link between the computer device 3 and other computer devices. For example, the network interface 930 is used to connect the computer device 3 with an external terminal through a network, establish a data transmission channel and a communication link between the computer device 3 and the external terminal, and the like. The network may be a wireless or wired network such as an Intranet (Intranet), the Internet (Internet), a global system for mobile communications (Global System of Mobile communication, abbreviated as GSM), wideband code division multiple access (Wideband Code Division Multiple Access, abbreviated as WCDMA), a 4G network, a 5G network, bluetooth (Bluetooth), wi-Fi, etc.
It should be noted that FIG. 9 only shows a computer device having components 910-930, but it should be understood that not all of the illustrated components are required to be implemented and that more or fewer components may be implemented instead.
In this embodiment, the video playing method stored in the memory 910 may also be divided into one or more program modules and executed by one or more processors (the processor 920 in this embodiment) to complete the present invention.
Example IV
The present embodiment also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the video playback method in the embodiments.
In this embodiment, the computer-readable storage medium includes a flash memory, a hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the computer readable storage medium may be an internal storage unit of a computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may also be an external storage device of a computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash Card (Flash Card), etc. that are provided on the computer device. Of course, the computer-readable storage medium may also include both internal storage units of a computer device and external storage devices. In this embodiment, the computer readable storage medium is typically used to store an operating system and various types of application software installed on a computer device, such as program codes of the video playing method in the embodiment, and the like. Furthermore, the computer-readable storage medium may also be used to temporarily store various types of data that have been output or are to be output.
Example five
Fig. 10 schematically shows a flowchart of a video playing method according to a fifth embodiment of the present application. It will be appreciated that the present method embodiment may be performed in the client terminal 6 and that the flow chart of the present method embodiment is not intended to limit the order in which the steps are performed.
Step S1000, sending a page access request to a first server, where the page access request includes a video identifier of a target video.
For example, a page access request: "bilibilili.com/video/av 70877592", the target video is identified as "av70877592".
Step S1002, receiving a target HTML file returned by the first server, where the target HTML file includes a video playing address.
The first server may be a Web server; the second server may be a content server for providing video data; the video playing address is obtained by the first server requesting a second server based on the video identification, wherein the first server and the second server are located in the same local area network.
Step S1004, executing a video playing operation based on the video playing address in the target HTML file.
After receiving the target HTML file, the client terminal 6 parses the target HTML file, requests and downloads the required JS, renders the target HTML file into a page for the browser to display, requests video data from the second server according to the parsed video play address, and plays the video data on the displayed page according to the requested video data.
According to the embodiment of the application, the step of sending the play address request to the content server is not required to be executed, and the step is executed by the first server at the service side instead, so that the problem that the client terminal encounters a play delay caused by a poor network condition is avoided.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than what is shown or described, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps in them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (9)

1. A video playing method, applied to a computer device of a provider network, comprising:
receiving a page access request sent by a client terminal; the page access request comprises a video identification of a target video;
acquiring an HTML file according to the page access request; generating a play address request of the target video according to the video identification of the page access request, and sending the play address request to a content server so that the content server returns a video play address of the target video based on the play address request;
adding the video playing address into the HTML file to obtain a target HTML file; and
And returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address.
2. The video playing method according to claim 1, wherein obtaining an HTML file corresponding to the page access request includes:
acquiring page resources and page templates according to the page access request; and
And performing page rendering operation according to the page resources and the page template to obtain the rendered HTML file.
3. The video playing method according to claim 1, wherein obtaining an HTML file corresponding to the page access request includes:
and acquiring a page template according to the page access request, wherein the page template is the HTML file for sending to the client terminal.
4. The video playback method of claim 1, wherein generating a playback address request from the page access request comprises:
and generating the play address request according to the preset path address and the video identification in the page access request.
5. The video playing method according to claim 1, wherein:
the method is used in a computer device, which is located in the same local area network as the content server.
6. A video playback system, characterized by a computer device for application to a provider network, comprising:
the receiving module is used for receiving a page access request sent by the client terminal; the page access request comprises a video identification of a target video;
the acquisition module is used for acquiring an HTML file according to the page access request; the video playing address request is used for generating a playing address request of the target video according to the video identification of the page access request, and the playing address request is sent to a content server, so that the content server returns a video playing address of the target video based on the playing address request;
the adding module is used for adding the video playing address into the HTML file to obtain a target HTML file; and
And the returning module is used for returning the target HTML file to the client terminal so that the client terminal can execute video playing operation according to the video playing address.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any one of claims 1 to 5 when the computer program is executed by the processor.
8. A computer readable storage medium having stored thereon a computer program, wherein the computer program is executable by at least one processor to cause the at least one processor to perform the steps of the method according to any of claims 1 to 5.
9. A video playing method, applied to a client terminal, comprising:
sending a page access request to a first server, wherein the page access request comprises a video identification of a target video;
receiving a target HTML file returned by the first server, wherein the target HTML file comprises a video playing address; and
Executing video playing operation based on the video playing address in the target HTML file; wherein,
the video playing address is obtained by the first server requesting a second server based on the video identification, wherein the first server and the second server are located in the same local area network.
CN201911022147.XA 2019-10-25 2019-10-25 Video playing method and system Active CN112714365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911022147.XA CN112714365B (en) 2019-10-25 2019-10-25 Video playing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911022147.XA CN112714365B (en) 2019-10-25 2019-10-25 Video playing method and system

Publications (2)

Publication Number Publication Date
CN112714365A CN112714365A (en) 2021-04-27
CN112714365B true CN112714365B (en) 2024-02-09

Family

ID=75541381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911022147.XA Active CN112714365B (en) 2019-10-25 2019-10-25 Video playing method and system

Country Status (1)

Country Link
CN (1) CN112714365B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113315982B (en) * 2021-05-07 2023-06-27 广州虎牙科技有限公司 Live broadcast method, computer storage medium and equipment
CN114071192A (en) * 2021-11-11 2022-02-18 北京百度网讯科技有限公司 Information acquisition method, terminal, server, electronic device, and storage medium
CN114422831B (en) * 2022-01-20 2024-03-19 北京奇艺世纪科技有限公司 Media playing method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667182A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Method, system and device for performing secondary operation on web pages
CN103327411A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser
CN103475931A (en) * 2013-08-23 2013-12-25 四川长虹电器股份有限公司 Method for playing network media at digital television terminal
CN103763638A (en) * 2014-01-23 2014-04-30 中国联合网络通信集团有限公司 Video resource obtaining method and device
WO2015003663A1 (en) * 2013-07-12 2015-01-15 贝壳网际(北京)安全技术有限公司 Method, device, server, and client device for video processing
CN104602034A (en) * 2014-12-31 2015-05-06 北京奇艺世纪科技有限公司 Mobile webpage playing method and system
CN108965912A (en) * 2017-12-29 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method, client and the server of video data processing

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3979049B2 (en) * 2001-03-21 2007-09-19 株式会社日立製作所 Hypermedia document presentation method, browser device, and hypermedia document creation support device
CN101504648A (en) * 2008-11-14 2009-08-12 北京搜狗科技发展有限公司 Method and apparatus for showing web page resources
CN101794298A (en) * 2010-01-22 2010-08-04 中兴通讯股份有限公司 Method for realizing page adaptation, page adaptation system and communication system
CN102868938B (en) * 2011-07-07 2018-06-05 上海聚力传媒技术有限公司 A kind of method and apparatus for being used to obtain segmented video files in network
CN103577176A (en) * 2012-08-02 2014-02-12 腾讯科技(深圳)有限公司 Method for realizing independent video play and mobile terminal device for realizing the method
CN103942225B (en) * 2013-01-23 2018-06-08 阿里巴巴集团控股有限公司 A kind of resource transfer method, client and the system of mixed type applications client
CN104572843B (en) * 2014-12-12 2018-06-08 百度在线网络技术(北京)有限公司 The loading method and device of a kind of page
CN104881452B (en) * 2015-05-18 2020-05-29 百度在线网络技术(北京)有限公司 Resource address sniffing method, device and system
CN105792022B (en) * 2016-03-15 2018-09-14 北京齐尔布莱特科技有限公司 A kind of adaptive video playback method, device and audio/video player system
CN108234402B (en) * 2016-12-15 2020-12-08 北京小度互娱科技有限公司 Method and device for acquiring video stream at mobile client and method and device for providing executable code to mobile client
CN108415963A (en) * 2018-02-07 2018-08-17 阿里巴巴集团控股有限公司 A kind of page generation method and device
CN109068153B (en) * 2018-09-28 2020-10-16 华为技术有限公司 Video playing method and device and computer readable storage medium
CN109714628B (en) * 2018-12-29 2021-08-03 广州方硅信息技术有限公司 Method, device, equipment, storage medium and system for playing audio and video

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101667182A (en) * 2008-09-05 2010-03-10 华为技术有限公司 Method, system and device for performing secondary operation on web pages
CN103327411A (en) * 2013-06-03 2013-09-25 贝壳网际(北京)安全技术有限公司 Video playing method, device and system for mobile terminal browser
WO2015003663A1 (en) * 2013-07-12 2015-01-15 贝壳网际(北京)安全技术有限公司 Method, device, server, and client device for video processing
CN103475931A (en) * 2013-08-23 2013-12-25 四川长虹电器股份有限公司 Method for playing network media at digital television terminal
CN103763638A (en) * 2014-01-23 2014-04-30 中国联合网络通信集团有限公司 Video resource obtaining method and device
CN104602034A (en) * 2014-12-31 2015-05-06 北京奇艺世纪科技有限公司 Mobile webpage playing method and system
CN108965912A (en) * 2017-12-29 2018-12-07 北京视联动力国际信息技术有限公司 A kind of method, client and the server of video data processing

Also Published As

Publication number Publication date
CN112714365A (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN112714365B (en) Video playing method and system
CN111756674B (en) Network communication method, system, device and computer readable storage medium
CN111309279B (en) Multi-screen interactive display method and device
CN111368235B (en) Page rendering and displaying method and device, server and storage medium
CN112836152B (en) Page rendering method, system, computer device and computer readable storage medium
US10158691B2 (en) Method and apparatus for providing network resources at intermediary server
CN111510789B (en) Video playing method, system, computer equipment and computer readable storage medium
EP3125541A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN113727189A (en) Media playing method and system supporting multiple streaming media transmission protocols
CN114915565B (en) Network debugging method and system
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN115225950A (en) Video playing control method and device
CN113037848B (en) File uploading method and system
CN114416420A (en) Equipment problem feedback method and system
CN114610331A (en) Software installation method and system
EP3079312B1 (en) Method of service synchronization and sharing and multi-device control in digital home
CN115190338B (en) Video preloading method and system
CN111176969B (en) Data processing method, device, equipment and storage medium
CN113891174B (en) Bandwidth statistics method and system for live video
CN113438313B (en) Video continuous playing processing method, related device and readable storage medium
CN111026558B (en) Bullet screen processing method and system based on WeChat applet
CN115766243A (en) Model resource management method and system
CN117708455A (en) Webpage loading method and management method
CN117909602A (en) Page content recommendation 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