Video playing method and system

文档序号:664144 发布日期:2021-04-27 浏览:6次 中文

阅读说明:本技术 视频播放方法和系统 (Video playing method and system ) 是由 吴俊毅 谭兆歆 刘浩 于 2019-10-25 设计创作,主要内容包括:本申请实施例公开了一种视频播放方法,包括:接收客户终端发送的页面访问请求;根据所述页面访问请求,获取HTML文件以及用于链接视频的视频播放地址;将所述视频播放地址加入所述HTML文件,以得到目标HTML文件;将所述目标HTML文件返回给所述客户终端,以便所述客户终端根据所述视频播放地址执行视频播放操作。本申请还提供了视频播放系统、计算机设备及计算机可读存储介质。本申请实施例,在于通过处于服务侧的计算机设备执行“向内容服务器发送播放地址请求”,替代处于用户侧的客户终端执行“向内容服务器发送播放地址请求”的步骤,提升了用户侧网络状况不佳情形下的开播速度。(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 a video 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, computer equipment 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 executed by the computer equipment on the service side instead of the step of sending the play address request to the content server by the client terminal on the user side, so that the play speed of the user side under the condition of poor network condition is improved.)

1. A video playback method, comprising:

receiving a page access request sent by a client terminal;

acquiring an HTML file and a video playing address for linking a video according to the page access 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 playback method of claim 1, wherein:

acquiring an HTML file and a video playing address for linking a video according to the page access request, wherein the method comprises the following steps:

acquiring an HTML file according to the page access request;

generating a playing address request according to the page access request; and

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.

3. The video playing method according to claim 2, wherein obtaining the HTML file corresponding to the page access request includes:

acquiring a page resource and a page template 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.

4. The video playing method according to claim 2, wherein obtaining 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 sent to the client terminal.

5. The video playing method according to claim 2, wherein generating a playing address request according to the page access request comprises:

and generating the playing address request according to a preset path address and a video identifier in the page access request.

6. The video playback method of claim 2, wherein:

the method is used in a computer device, and the computer device and the content server are located in the same local area network.

7. A video playback system, comprising:

the receiving module is used for receiving a page access request sent by a client terminal;

the acquisition module is used for acquiring an HTML file and a video playing address for linking a video 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

and the return 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.

8. 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 steps of the method of any of claims 1 to 6 are implemented by the processor when executing the computer program.

9. A computer-readable storage medium, having stored thereon a computer program, the computer program being executable by at least one processor to cause the at least one processor to perform the steps of the method according to any one of claims 1 to 6.

10. A video playback method, comprising:

sending a page access request to a first server, wherein the page access request comprises a video identifier 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

and executing video playing operation based on the video playing address in the target HTML file.

11. The video playback method of claim 10, wherein:

the video playing address is obtained by the first server through 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.

Technical Field

Embodiments of the present application 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

With the rapid popularization of network videos, users are gradually accustomed to playing various videos through terminal equipment.

Generally, 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 a video playing page, the playing delay may be caused by poor network environment.

Disclosure of Invention

In view of the above, an object of the embodiments of the present application is to provide a video playing method, a video playing system, a computer device and a computer readable storage medium, which are used to solve the technical problem of playing delay.

One 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 a video 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, acquiring an HTML file and a video playing address for linking a video according to the page access request includes: acquiring an HTML file according to the page access request; generating a playing 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, obtaining an HTML file corresponding to the page access request includes: acquiring a page resource and a page template 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, 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 sent to the client terminal.

Optionally, generating a play address request according to the page access request includes: and generating the playing address request according to a preset path address and a video identifier in the page access request.

Optionally, the method is used in a computer device, and the computer device and the content server are located in the same local area network.

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 a client terminal; the acquisition module is used for acquiring an HTML file and a video playing address for linking a video 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 return 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, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement the steps of the above video playing method.

An aspect of the embodiments of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is executable by at least one processor, so as to cause the at least one processor to execute the steps of the above-mentioned video playing method.

One aspect of the embodiments 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 identifier 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 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 video playing system, the video playing device and the computer readable storage medium, after a page access request serving as a client terminal is received, an HTML file is obtained, a client terminal is replaced to ask for a video playing address from a content server, and the video playing address is added into the HTML file, so that after the client terminal receives a target HTML file returned by the computer device, video playing operation can be executed according to the video playing address in the target HTML file. According to the embodiment of the application, the step of sending the play address request to the content server is executed by the computer equipment on the service side instead of the step of sending the play address request to the content server by the client terminal on 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 shows an application environment diagram of a video playing method according to a first embodiment of the present application;

fig. 2 schematically shows a flow chart of a video playing method according to a first embodiment of the present application;

FIG. 3 schematically shows a flowchart of step S202 in FIG. 2;

FIG. 4 schematically shows another flowchart of step S202 in FIG. 2;

FIG. 5 schematically shows another flowchart of step S202 in FIG. 2;

FIG. 6 schematically shows another flowchart 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 shows a hardware architecture diagram of a computer device suitable for implementing 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 clearly understood, the embodiments of the present application are described in further detail below with reference to the accompanying drawings and the embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the embodiments of the application and are not intended to limit the embodiments of the application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without any creative effort belong to the protection scope of the embodiments in the present application.

It should be noted that the description relating to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.

In the process of entering a video playing page, there may be several reasons for the playing delay, among which the inventor finds that: in the existing interaction between the server and the client, after receiving the HTML file of the server, the client needs to initiate an authority authentication (auth) operation to the server again, and after the authentication of the server is completed, a play address request is sent to the server. Whether the operation is the authentication operation or the play address request operation, the play delay of the video play is caused to a certain extent, especially under the condition that the network condition of the user side or the operation condition of the client side is not good.

The following description will provide a number of embodiments, and it will be appreciated that the various embodiments provided below may be used to address one or more of the technical problems described above.

Fig. 1 schematically shows 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 over one or more networks 5. 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 an online information browsing service; the content server 4 may be used to store video data. The plurality of computing devices may include virtualized compute instances. The virtualized computing instance may include a virtual machine, such as an emulation of a computer system, an operating system, a server, and so forth. The computing device may load the virtual machine based on a virtual image and/or other data that defines the particular software (e.g., operating system, dedicated application, server) used 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.

A plurality of client terminals 6 may be configured to access content and services of the content provider 2. The plurality of client terminals 6 may comprise any type of computing device, such as a mobile device, a tablet device, a laptop computer, a set-top box, a 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. A plurality of client terminals 6 may access the content provider 2 using different networks.

In an exemplary embodiment, the client terminal 6 may include a browser 7. The browser 7 outputs (e.g., displays, presents) the content to the user. The content may be presented in pages that may include video, audio, commentary, textual data, and/or the like. The client terminal 6 may comprise a client terminal interface 8, which client terminal interface 8 may comprise an input element. For example, the input element may be configured to receive user instructions that may cause the client terminal 6 to perform various types of operations, such as sending a page access request to the computer device 3.

Example one

Fig. 2 schematically shows a flowchart of a video playing method according to a first embodiment of the present application. It is to be understood that the present method embodiment may be implemented in the computer device 3, and the flow chart of the present method embodiment is not intended to limit the order in which the steps are performed.

As shown in fig. 2, the video playing method may include steps S200 to S206, wherein:

step S200, receiving a page access request sent by a client terminal.

After receiving the page access request, the computer device 3 executes a corresponding response operation.

The page access request may be an HTTP request based on the HTTP(s) Protocol, e.g., HTTP:// bilibili.

Step S202, according to the page access request, obtaining an HTML (Hypertext Markup Language) file and a video playing address for linking a video.

The computer device 3 parses the page access request, and defines an HTTP response based on the parsing result, such as sending back an HTML file corresponding to the target page. The computer device 3 can also obtain the video playing address in the target page, and the video playing address is returned 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, obtaining an HTML file according to the page access request; step S302, generating a play address request according to the page access request; step S304, 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.

The HTML file may be a file that has not been subjected to page rendering, or a file that has been subjected to page rendering. The page rendering is to run Javascript to request page data, and convert the requested page data into a complete page in combination with a preset page template, where the complete page can be displayed to a user 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 a page template according to the page access request; step S502, performing page rendering operation according to the page resource 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 executes 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 sent to the client terminal.

The execution of the server rendering operation or the client rendering operation may be determined by the operating state of the computer device 3 and/or the client terminal 6, for example, in a high load situation of the computer device 3, the server rendering operation may be stopped to maintain the normal operation of the device.

In an exemplary embodiment, as shown in fig. 6, the step S302 may include the step S600: and generating the playing address request according to a preset path address and a video Identification (ID) in the page access request. For example: when the computer device 3 receives a page access request sent by the client terminal 6 and a URL (uniform resource locator) of the page access request is https:// www.bilibili.com/video/av70877592 and "av 70877592" is a video identifier in the page access request, the "av 70877592" is combined with a preset path address "bilili. com/playurrid ═" to obtain a play address request "bilili.

After obtaining the play address request "bilili. com/playurl ═ av 70877592", the computer device 3 sends the play address request 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 the website of a certain video page in the love art: html, whose video identification might be 19rvi9ywfo or v _19rvi9 ywfo; a certain video page website of you and cool: https:// v.youku.com/v _ show/id _ xmzamdazzy 2MA ═ htmlspm ═ a2h0k.11417342. souresults ═ dtle ═ efbfbd4a1a38efbfbdef, and the video identifier thereof may be xmzamdazzy 2MA, which is not repeated 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 is used as a server, acquires an HTML file after receiving a page access request as a client terminal, and also replaces a client to ask for a video playing address from the content server 4, and adds the 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 3.

In terms of conventional technology, taking client rendering as an example, the client terminal 6 needs to perform video playing operation through the following steps: firstly, sending a page access request to computer equipment 3; receiving an HTML file returned by the computer equipment; ③ request, download, initialize JS (e.g., loadvideo. JS), etc.; fourthly, performing authority authentication operation with the content server 4; fifthly, sending a play address request to the content server 4; sixthly, receiving the video playing address returned by the content server 4, and executing the video playing operation according to the video playing address. It is understood that the network conditions of the user side are involved in the step four and the step five, and in the case of poor network conditions of the user side, the time consumption of the two steps is catastrophic, and the video playing speed is seriously influenced.

For the embodiment, the step (iv) and the step (v) are executed in the computer device 3, so that the problem of playback delay caused by poor network conditions at the user side is avoided, and the video playback speed of the client terminal 6 is effectively increased. 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 permission authentication with the content server 4 before sending the play address request "bilili.com/playurrid ═ av 70877592", that is, step (r) is reduced, and efficiency of obtaining the video play address from the content server 4 is improved. Through a plurality of tests, the computer device 3 requests the content server in the same local area network for the video playing address, which can be basically maintained within 10 milliseconds, and the speed is much faster than that of the traditional video playing address requesting mode.

In order to make the invention more clear and understandable, an example is provided below as shown in fig. 7, and it should be noted that the example is not used to limit the invention.

In step S700, the client terminal sends 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, "bilibilili. com/playurrid ═ av 70877592", according to a preset path address and a video identifier in the page access request;

step S706, the computer equipment sends the play address request to a content server in the same local area network;

step S708, the content server returns the video play address based on the play address request;

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, first performs JS (e.g., load video.js) request, download, initialization, and the like, and performs page rendering or secondary page rendering and the like;

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 shows a block diagram of a video playback system according to the second embodiment of the present application, which may be partitioned into one or more program modules, stored in a storage medium, and executed by one or more processors to implement the second embodiment of the present application. The program modules referred to in the embodiments of the present application refer to a series of computer program instruction segments that can perform specific functions, and the following description will specifically describe the functions of the program modules in the embodiments.

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, wherein:

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 playing address for linking a video;

an adding module 830, configured to add the video playing address to the HTML file to obtain a target HTML file; and

a returning module 840, configured to return the target HTML file to the client terminal, so that the client terminal executes 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 playing 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 a page resource and a page template 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 sent to the client terminal.

In an exemplary embodiment, the obtaining module 820 is further configured to: and generating the playing address request according to a preset path address and a video identifier 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 playback system according to the second embodiment:

the video playing system acquires an HTML file after receiving a page access request serving as a client terminal, replaces a client terminal to ask a content server for a video playing address, and adds the video playing address to the HTML file, so that the client terminal can execute video playing operation according to the video playing address in a target HTML file after receiving the target HTML file returned by the computer equipment. The video playing system replaces a client terminal to execute a 'sending playing address request to a content server', and improves the playing speed under the condition of bad network conditions at a user side.

EXAMPLE III

Fig. 9 schematically shows a hardware architecture diagram of a computer device suitable for implementing 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 a command set or stored in advance. For example, the server 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). As shown in fig. 9, the computer device 3 includes at least, but is not limited to: the memory 910, processor 920, and network interface 930 may be communicatively linked to each other via a system bus. Wherein:

the memory 910 includes at least one type of computer-readable storage medium including a flash memory, a hard disk, a multimedia card, a card-type 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, etc. In some embodiments, the storage 910 may be an internal storage module of the computer device 3, such as a hard disk or a memory of the computer device 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 provided on the computer device 3, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Of course, the memory 910 may also include both internal and external memory modules of the computer device 3. In this embodiment, the memory 910 is generally used for storing an operating system installed in the computer device 3 and various application software, such as program codes of a video playing method. 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.

Processor 920 may be, in some embodiments, a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip. The processor 920 is generally configured 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. In this embodiment, the processor 920 is configured to execute program codes stored in the memory 910 or process data.

Network interface 930 may include a wireless network interface or a wired network interface, with network interface 930 typically being used to establish communication links between 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 of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), a 4G network, a 5G network, Bluetooth (Bluetooth), or Wi-Fi.

It is noted that FIG. 9 only shows a computer device having components 910 and 930, but it is to be understood that not all of the shown components are required and that more or fewer components may be implemented instead.

In this embodiment, the video playing method stored in the memory 910 may be further divided into one or more program modules and executed by one or more processors (in this embodiment, the processor 920) to complete the present invention.

Example four

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 type 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 the computer device, such as a hard disk or a memory of the computer device. In other embodiments, the computer readable storage medium may be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the computer device. Of course, the computer-readable storage medium may also include both internal and external storage devices of the computer device. In this embodiment, the computer-readable storage medium is generally used for storing an operating system and various types of application software installed in the computer device, for example, the program codes of the video playing method in the embodiment, and the like. Further, 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 is to be understood that the present method embodiment may be implemented in the client terminal 6, and the flow chart of the present method embodiment is not intended to limit the order in which the steps are executed.

Step S1000, a page access request is sent to a first server, and the page access request comprises a video identifier of a target video.

For example, a page access request: com/video/av70877592 ", 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 through 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, based on the video playing address in the target HTML file, executing a video playing operation.

After receiving the target HTML file, the client terminal 6 parses the target HTML file, requests and downloads the required JS, renders the JS into a page which can be displayed by the browser, requests video data from the second server according to the parsed video playing address, and plays the requested video data on the displayed page.

According to the embodiment of the application, the step of sending the playing address request to the content server is not required to be executed, and the first server on the service side executes the step, so that the playing delay caused by the situation that the network condition of the client terminal is poor 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 by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of 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 above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

18页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种无线通信基站

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类