







技术领域technical field
本发明实施例涉及计算机技术,尤其涉及一种网页数据的处理方法和装置及通信系统。Embodiments of the present invention relate to computer technology, and in particular to a method and device for processing webpage data and a communication system.
背景技术Background technique
图1为现有技术中该桌面云系统的结构示意图,如图1所示,该桌面云系统包括:云服务器11、云终端12、关联的网络13(例如互联网)以及显示器14等。其中,操作系统和用户数据均在云服务器11上。另外,基于桌面云系统的在线视频播放主要采用如下方式:云终端12可以通过远程桌面协议连接到云服务器11中的虚拟机,以进入windows系统,并打开浏览器,当用户通过显示器14输入视频类型网站时,浏览器导向Flash类型的视频网站,并在用户选择待观看的视频时,虚拟机从互联网获取用户选择的待观看的视频,并对该待观看视频进行解码,并在浏览器中进行播放,虚拟机再对播放后的画面压缩成加工码流,通过远程桌面协议将该加工码流发送到云终端12上。云终端12接收到码流后,对其进行解码并将解码后的码流渲染到显示器14上,从而完成桌面云系统的在线视频播放的过程。FIG. 1 is a schematic structural diagram of the desktop cloud system in the prior art. As shown in FIG. 1 , the desktop cloud system includes: a
但是,由于一台云服务器需要支持多个云终端,即云服务器需要为每个云终端的待观看的视频分别进行处理,因此,导致了云服务器负担较重,从而不能及时把码流转换并转发给云终端,进而造成了云终端上音视频流播放不流畅,发生卡顿和丢帧的现象,给用户的使用带来了不便。However, since one cloud server needs to support multiple cloud terminals, that is, the cloud server needs to process the video to be watched for each cloud terminal separately, therefore, the cloud server has a heavy burden, so that the code stream cannot be converted and processed in time. Forwarding to the cloud terminal, which in turn causes the audio and video streams on the cloud terminal to play unsmoothly, stuttering and frame loss occur, which brings inconvenience to the user.
发明内容Contents of the invention
本发明实施例提供一种网页数据的处理方法和装置及通信系统,以解决现有技术中由于云服务器需要为每个云终端的待观看的视频分别进行处理而造成的云终端上音视频流播放不流畅,发生卡顿和丢帧的现象的问题。Embodiments of the present invention provide a method and device for processing web page data and a communication system to solve the problem of audio and video streams on cloud terminals caused by the cloud server needing to process each cloud terminal's video to be watched separately in the prior art. The playback is not smooth, and there are problems of stuttering and frame dropping.
本发明实施例的第一个方面提供一种网页数据的处理方法,包括:The first aspect of the embodiments of the present invention provides a method for processing webpage data, including:
接收数据访问请求,所述数据访问请求包括:待访问地址;receiving a data access request, the data access request including: an address to be accessed;
将所述数据访问请求发送给云服务器,以供所述云服务器根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据;Sending the data access request to a cloud server, so that the cloud server can obtain the webpage data to be accessed corresponding to the address to be accessed according to the data access request;
接收所述云服务器发送的所述待访问的网页数据,并对所述待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,以对所述内存中的数据进行显示处理。receiving the to-be-visited webpage data sent by the cloud server, processing the to-be-visited webpage data, and rendering the processed webpage data into the memory, so as to perform display processing on the data in the memory.
在第一个方面的第一种可能实现方式中,所述对所述待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,包括:In a first possible implementation manner of the first aspect, the processing the webpage data to be accessed, and rendering the processed webpage data into memory includes:
对所述待访问的网页数据进行解析处理,获取网页中的页面元素,并将所述网页中的页面元素渲染到所述内存中。Analyzing and processing the webpage data to be accessed, obtaining page elements in the webpage, and rendering the page elements in the webpage into the memory.
结合第一个方面,在第一个方面的第二种可能实现方式中,所述对所述待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,包括:With reference to the first aspect, in a second possible implementation of the first aspect, the processing the webpage data to be accessed, and rendering the processed webpage data into the memory includes:
对所述待访问的网页数据进行解析处理,获取网页中的页面元素和网页中嵌入的音频和/或视频;Analyzing and processing the webpage data to be accessed, obtaining page elements in the webpage and audio and/or video embedded in the webpage;
对所述音频和/或视频进行解压缩和解码处理;Decompress and decode the audio and/or video;
将所述网页中的页面元素,以及解压缩和解码后的音频和/或视频渲染到所述内存中。rendering the page elements in the webpage, and the decompressed and decoded audio and/or video into the memory.
结合第一个方面至第一个方面的第二种中任一种可能实现方式,在第一个方面的第三种可能实现方式中,还包括:In combination with any one of the first aspect to the second possible implementation of the first aspect, in the third possible implementation of the first aspect, it also includes:
向所述云服务器发送握手请求,所述握手请求包括所述云终端支持的网页类型或者所述云终端的能力信息,以供所述云服务器根据所述握手请求,获取与所述云终端支持的网页类型或者所述云终端的能力信息对应的数据类型,并根据所述数据访问请求,获取与所述待访问地址和所述数据类型对应的待访问的网页数据。Sending a handshake request to the cloud server, where the handshake request includes the type of webpage supported by the cloud terminal or the capability information of the cloud terminal, so that the cloud server can obtain information related to the webpage supported by the cloud terminal according to the handshake request. or the data type corresponding to the capability information of the cloud terminal, and obtain the web page data to be accessed corresponding to the address to be accessed and the data type according to the data access request.
本发明实施例的第二个方面提供一种网页数据的处理方法,包括:A second aspect of the embodiments of the present invention provides a method for processing webpage data, including:
接收云终端发送的数据访问请求,所述数据访问请求包括待访问地址;receiving a data access request sent by the cloud terminal, where the data access request includes an address to be accessed;
根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据;According to the data access request, obtain the web page data to be accessed corresponding to the address to be accessed;
将所述待访问的网页数据发送给所述云终端,以供所述云终端对所述待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中,以对所述内存中的数据进行显示处理。Sending the webpage data to be accessed to the cloud terminal, so that the cloud terminal can process the webpage data to be accessed, and render the processed webpage data into the memory, so as to process the webpage data in the memory data for display processing.
在第二个方面的第一种可能实现方式中,还包括:In the first possible implementation manner of the second aspect, it also includes:
接收所述云终端发送的握手请求,所述握手请求包括所述云终端支持的网页类型或者所述云终端的能力信息;receiving a handshake request sent by the cloud terminal, where the handshake request includes the webpage type supported by the cloud terminal or capability information of the cloud terminal;
根据所述握手请求,获取与所述云终端支持的网页类型或者所述云终端的能力信息对应的数据类型;According to the handshake request, acquire a data type corresponding to the type of webpage supported by the cloud terminal or the capability information of the cloud terminal;
则所述根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据,包括:Then, according to the data access request, obtaining the webpage data to be accessed corresponding to the address to be accessed includes:
根据所述数据访问请求,获取与所述待访问地址和所述数据类型对应的待访问的网页数据。According to the data access request, the to-be-visited webpage data corresponding to the to-be-visited address and the data type is acquired.
本发明实施例的第三个方面提供一种网页数据的处理装置,包括:A third aspect of the embodiments of the present invention provides a device for processing web page data, including:
收发模块,用于接收数据访问请求,所述数据访问请求包括:待访问地址,并将所述数据访问请求发送给云服务器,以供所述云服务器根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据;A transceiver module, configured to receive a data access request, the data access request including: an address to be accessed, and sending the data access request to a cloud server, so that the cloud server can obtain the address related to the data access request according to the data access request. The web page data to be accessed corresponding to the address to be accessed;
所述收发模块还用于接收所述云服务器发送的所述待访问的网页数据;The transceiver module is also used to receive the webpage data to be accessed sent by the cloud server;
处理模块,用于对所述待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中;A processing module, configured to process the webpage data to be accessed, and render the processed webpage data into the memory;
显示模块,用于对所述内存中的数据进行显示处理。The display module is used to display and process the data in the memory.
在第三个方面的第一种可能实现方式中,所述处理模块包括:In a first possible implementation manner of the third aspect, the processing module includes:
解析单元,用于对所述待访问的网页数据进行解析处理,获取网页中的页面元素;a parsing unit, configured to parse and process the webpage data to be accessed, and obtain page elements in the webpage;
渲染单元,用于将所述网页中的页面元素渲染到所述内存中。The rendering unit is configured to render the page elements in the webpage into the memory.
结合第三个方面,在第三个方面的第二种可能实现方式中,所述处理模块包括:With reference to the third aspect, in a second possible implementation manner of the third aspect, the processing module includes:
解析单元,用于对所述待访问的网页数据进行解析处理,获取网页中的页面元素和网页中嵌入的音频和/或视频;A parsing unit, configured to parse and process the webpage data to be accessed, and obtain page elements in the webpage and audio and/or video embedded in the webpage;
解压缩和解码单元,用于对所述音频和/或视频进行解压缩和解码处理;a decompression and decoding unit, configured to decompress and decode the audio and/or video;
渲染单元,用于将所述网页中的页面元素,以及解码后的音频和/或视频渲染到所述内存中。The rendering unit is configured to render the page elements in the webpage and the decoded audio and/or video into the memory.
结合第三个方面至第一个方面的第二种中任一种可能实现方式,在第三个方面的第三种可能实现方式中,所述收发模块还用于向所述云服务器发送握手请求,所述握手请求包括所述云终端支持的网页类型或者所述云终端的能力信息,以供所述云服务器根据所述握手请求,获取与所述云终端支持的网页类型或者所述云终端的能力信息对应的数据类型,并根据所述数据访问请求,获取与所述待访问地址和所述数据类型对应的待访问的网页数据。In combination with any possible implementation manner of the third aspect to the second aspect of the first aspect, in a third possible implementation manner of the third aspect, the transceiver module is further configured to send a handshake to the cloud server Request, the handshake request includes the type of webpage supported by the cloud terminal or the capability information of the cloud terminal, so that the cloud server can obtain the type of webpage supported by the cloud terminal or the capability information of the cloud terminal according to the handshake request. The data type corresponding to the capability information of the terminal, and according to the data access request, obtain the webpage data to be accessed corresponding to the address to be accessed and the data type.
本发明实施例的第四个方面提供一种网页数据的处理装置,包括:A fourth aspect of the embodiments of the present invention provides a device for processing web page data, including:
收发模块,用于接收云终端发送的数据访问请求,所述数据访问请求包括待访问地址;A transceiver module, configured to receive a data access request sent by a cloud terminal, where the data access request includes an address to be accessed;
获取模块,用于根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据;An acquisition module, configured to acquire webpage data to be accessed corresponding to the address to be accessed according to the data access request;
所述收发模块还用于将所述待访问的网页数据发送给所述云终端,以供所述云终端对所述待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中,以对所述内存中的数据进行显示处理。The transceiver module is also used to send the webpage data to be accessed to the cloud terminal, so that the cloud terminal can process the webpage data to be accessed, and render the processed webpage data into the memory , to perform display processing on the data in the memory.
在第四个方面的第一种可能实现方式中,所述收发模块还用于接收所述云终端发送的握手请求,所述握手请求包括所述云终端支持的网页类型或者所述云终端的能力信息;In a first possible implementation manner of the fourth aspect, the transceiver module is further configured to receive a handshake request sent by the cloud terminal, where the handshake request includes the webpage type supported by the cloud terminal or the capability information;
则所述获取模块还用于根据所述握手请求,获取与所述云终端支持的网页类型或者所述云终端的能力信息对应的数据类型;The acquiring module is further configured to acquire a data type corresponding to the webpage type supported by the cloud terminal or the capability information of the cloud terminal according to the handshake request;
则所述获取模块具体用于根据所述数据访问请求,获取与所述待访问地址和所述数据类型对应的待访问的网页数据。The acquiring module is specifically configured to acquire the web page data to be accessed corresponding to the address to be accessed and the data type according to the data access request.
本发明实施例的第五个方面提供一种通信系统,包括:云终端和云服务器,其中,所述云终端为如上述第三个方面所述的网页数据的处理装置,所述云服务器为如上述第四个方面所述的网页数据的处理装置。A fifth aspect of the embodiments of the present invention provides a communication system, including: a cloud terminal and a cloud server, wherein the cloud terminal is a web page data processing device as described in the third aspect above, and the cloud server is The device for processing webpage data as described in the fourth aspect above.
本发明实施例网页数据的处理方法和装置及通信系统,通过将接收到的数据访问请求发送给云服务器,以供云服务器根据该数据访问请求,获取与该数据请求中的待访问地址对应的待访问的网页数据,接收该云服务器发送的待访问的网页数据,并对该待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,以对该内存中的数据进行显示处理,由于云服务器将待访问的网页数据发送给云终端,由云终端对该待访问的网页数据进行处理,因此,有效地降低了云服务器的负荷,并解决了现有技术中由于云服务器需要为每个云终端的待观看的视频分别进行处理而造成的云终端上音视频流播放不流畅,发生卡顿和丢帧的现象的问题,从而有效地提高了用户的体验。The method and device for processing web page data and the communication system in the embodiment of the present invention send the received data access request to the cloud server, so that the cloud server can obtain the address corresponding to the address to be accessed in the data request according to the data access request. Webpage data to be accessed, receiving the webpage data to be accessed sent by the cloud server, processing the webpage data to be accessed, rendering the processed webpage data into the memory, and displaying the data in the memory , because the cloud server sends the webpage data to be accessed to the cloud terminal, and the cloud terminal processes the webpage data to be accessed, therefore, the load on the cloud server is effectively reduced, and the problem of the need for the cloud server in the prior art is solved. The audio and video streams on the cloud terminal are not played smoothly due to the separate processing of the video to be watched on each cloud terminal, and the phenomenon of stuttering and frame loss occurs, thereby effectively improving the user experience.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为现有技术中该桌面云系统的结构示意图;FIG. 1 is a schematic structural diagram of the desktop cloud system in the prior art;
图2为本发明网页数据的处理方法的一个实施例的流程图;Fig. 2 is the flowchart of an embodiment of the processing method of webpage data of the present invention;
图3为本发明网页数据的处理的另一个实施例的流程图;Fig. 3 is the flow chart of another embodiment of the processing of webpage data of the present invention;
图4为本发明网页数据的处理的又一个实施例的流程图;Fig. 4 is the flow chart of another embodiment of the processing of webpage data of the present invention;
图5为本发明网页数据的处理的还一个实施例的流程图;Fig. 5 is the flow chart of still another embodiment of the processing of webpage data of the present invention;
图6为本发明网页数据的处理方法的再一个实施例的流程图;Fig. 6 is the flow chart of another embodiment of the method for processing webpage data of the present invention;
图7为本发明网页数据的处理装置的一个实施例的结构示意图;FIG. 7 is a schematic structural diagram of an embodiment of a device for processing web page data according to the present invention;
图8为本发明网页数据的处理装置的另一个实施例的结构示意图;FIG. 8 is a schematic structural diagram of another embodiment of a device for processing web page data according to the present invention;
图9为本发明网页数据的处理装置的又一个实施例的结构示意图。FIG. 9 is a schematic structural diagram of another embodiment of a device for processing webpage data according to the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
图2为本发明网页数据的处理方法的一个实施例的流程图,如图2所示,本实施例的方法的执行主体为云终端,则该方法可以包括:Fig. 2 is the flow chart of an embodiment of the method for processing webpage data of the present invention, as shown in Fig. 2, the execution subject of the method of this embodiment is a cloud terminal, then the method may include:
步骤101、接收数据访问请求,该数据访问请求包括:待访问地址。
在本实施例中,该待访问地址可以具体为统一资源定位符(UniformResource Locator;简称:URL)地址。In this embodiment, the address to be accessed may specifically be a Uniform Resource Locator (UniformResource Locator; URL for short) address.
步骤102、将该数据访问请求发送给云服务器,以供该云服务器根据该数据访问请求,获取与该待访问地址对应的待访问的网页数据。
在本实施例中,可选地,每个云终端在云服务器中均对应一个虚拟机,并在每个虚拟机中内置一个浏览器代理模块。另外,云终端中也内置一个浏览器,例如:Chrome浏览器、Firefox浏览器等。具体的,云终端的浏览器将数据访问请求发送给云服务器,云服务器中该云终端对应的虚拟机中的浏览器代理模块接收该数据访问请求,可以从网络中获取与该待访问地址对应的待访问的网页数据。In this embodiment, optionally, each cloud terminal corresponds to a virtual machine in the cloud server, and a browser proxy module is built in each virtual machine. In addition, there is also a built-in browser in the cloud terminal, for example: Chrome browser, Firefox browser, etc. Specifically, the browser of the cloud terminal sends the data access request to the cloud server, and the browser agent module in the virtual machine corresponding to the cloud terminal in the cloud server receives the data access request, and can obtain the data corresponding to the address to be accessed from the network. The webpage data to be visited.
步骤103、接收该云服务器发送的该待访问的网页数据,并对该待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,以对该内存中的数据进行显示处理。Step 103: Receive the webpage data to be accessed sent by the cloud server, process the webpage data to be accessed, and render the processed webpage data into the memory, so as to perform display processing on the data in the memory.
在本实施例中,举例来说,该待访问的网页数据可以包括:网页的页面元素,或者网页的页面元素和网页中嵌入的音频和/或视频。In this embodiment, for example, the webpage data to be accessed may include: page elements of the webpage, or audio and/or video embedded in the page elements of the webpage and the webpage.
在本实施例中,通过将接收到的数据访问请求发送给云服务器,以供云服务器根据该数据访问请求,获取与该数据请求中的待访问地址对应的待访问的网页数据,接收该云服务器发送的待访问的网页数据,并对该待访问的网页数据进行处理,将处理后的网页数据渲染到内存中,以对该内存中的数据进行显示处理,由于云服务器将待访问的网页数据发送给云终端,由云终端对该待访问的网页数据进行处理,因此,有效地降低了云服务器的负荷,并解决了现有技术中由于云服务器需要为每个云终端的待观看的视频分别进行处理而造成的云终端上音视频流播放不流畅,发生卡顿和丢帧的现象的问题,从而有效地提高了用户的体验。In this embodiment, by sending the received data access request to the cloud server, the cloud server obtains the webpage data to be accessed corresponding to the address to be accessed in the data request according to the data access request, and receives the cloud server The webpage data to be accessed is sent by the server, and the webpage data to be accessed is processed, and the processed webpage data is rendered into the memory to display and process the data in the memory. The data is sent to the cloud terminal, and the webpage data to be accessed is processed by the cloud terminal, thereby effectively reducing the load on the cloud server and solving the problem in the prior art that the cloud server needs to provide the web page data to be viewed for each cloud terminal. The audio and video streams on the cloud terminal caused by the separate processing of the video are not smooth, and the phenomenon of freezing and frame loss occurs, thus effectively improving the user experience.
下面采用几个具体的实施例,对图1所示方法实施例的技术方案进行详细说明。The technical solution of the method embodiment shown in FIG. 1 will be described in detail below using several specific embodiments.
图3为本发明网页数据的处理的另一个实施例的流程图,在上述图2所示实施例的基础上,如图3所示,步骤103的一种具体实现方式为:Fig. 3 is the flow chart of another embodiment of the processing of webpage data of the present invention, on the basis of the embodiment shown in above-mentioned Fig. 2, as shown in Fig. 3, a kind of concrete realization mode of
步骤201、接收该云服务器发送的该待访问的网页数据。
步骤202、对该待访问的网页数据进行解析,并将解析后获取的页面元素渲染到该内存中。
在本实施例中,若该待访问的网页数据包括网页的页面元素时,可以对该待访问网页数据进行解析,获取网页的页面元素,例如:该网页的页面元素包括:网页标题、背景、文字、背景颜色、文字大小等。并将该网页的页面元素渲染到内存中,以对该内存中的网页的页面元素进行显示处理,从而在云终端与之连接的显示器上显示网页。In this embodiment, if the webpage data to be accessed includes page elements of the webpage, the webpage data to be accessed can be parsed to obtain the page elements of the webpage, for example: the page elements of the webpage include: webpage title, background, Text, background color, text size, etc. and rendering the page elements of the webpage into the memory to perform display processing on the page elements of the webpage in the memory, so as to display the webpage on the display connected to the cloud terminal.
图4为本发明网页数据的处理的又一个实施例的流程图,在上述图2所示实施例的基础上,如图4所示,步骤103的一种具体实现方式为:Fig. 4 is the flow chart of another embodiment of the processing of webpage data of the present invention, on the basis of the embodiment shown in above-mentioned Fig. 2, as shown in Fig. 4, a kind of specific implementation mode of
步骤301、接收该云服务器发送的该待访问的网页数据。
步骤302、对该待访问的网页数据进行解析处理,获取网页中的页面元素和网页中嵌入的音频和/或视频。Step 302, analyze and process the webpage data to be accessed, and obtain page elements in the webpage and audio and/or video embedded in the webpage.
步骤303、对该音频和/或视频进行解压缩和解码处理。
步骤304、将该网页中的页面元素,以及解压缩和解码后的音频和/或视频渲染到该内存中。Step 304: Render the page elements in the webpage and the decompressed and decoded audio and/or video into the memory.
图5为本发明网页数据的处理的还一个实施例的流程图,在上述图2所示实施例的基础上,如图5所示,该方法还可以包括:Fig. 5 is the flow chart of still another embodiment of the processing of webpage data of the present invention, on the basis of the embodiment shown in above-mentioned Fig. 2, as shown in Fig. 5, this method can also comprise:
步骤401、向云服务器发送握手请求,该握手请求包括该云终端支持的网页类型或者该云终端的能力信息。Step 401: Send a handshake request to the cloud server, where the handshake request includes the type of webpage supported by the cloud terminal or the capability information of the cloud terminal.
则步骤102具体为:Then step 102 is specifically:
步骤402、将该数据访问请求发送给云服务器,以供该云服务器根据该握手请求,获取与该云终端支持的网页类型或者该云终端的能力信息对应的数据类型,并根据该数据访问请求,获取与该待访问地址和该数据类型对应的待访问的网页数据。Step 402: Send the data access request to the cloud server, so that the cloud server can obtain the data type corresponding to the web page type supported by the cloud terminal or the capability information of the cloud terminal according to the handshake request, and obtain the data type according to the data access request to obtain the web page data to be accessed corresponding to the address to be accessed and the data type.
在本实施例中,不同的云终端支持的网页的类型可能相同也可能不相同,该云终端支持的网页的类型可以为超文本标记语言第5版(Hypertext MarkupLanguage5;简称:HTML5)网页的类型或者Flash网页的类型。因此,云服务器上的虚拟机需要根据云终端支持的网页类型确定所支持的数据类型。另外,不同的云终端的能力信息可能相同也可能不相同,该能力信息可以包括:处理器类型等,以供云服务器上的虚拟机根据能力信息确定该云终端支持的网页的类型,再根据该网页的类型获取对应的数据类型。从而在互联网上获取与该数据类型对应的待访问的网页数据,相较于现有技术中需要云终端支持Flash Player,且云服务器需要定向Flash类型而言,本实施例的方法有效地提高了桌面云系统播放在线视频的稳定性。In this embodiment, the types of web pages supported by different cloud terminals may be the same or different, and the type of web pages supported by the cloud terminals may be the type of Hypertext Markup Language 5 (Hypertext Markup Language 5; HTML5 for short) web pages Or the type of Flash page. Therefore, the virtual machine on the cloud server needs to determine the supported data type according to the webpage type supported by the cloud terminal. In addition, the capability information of different cloud terminals may be the same or different, and the capability information may include: processor type, etc., so that the virtual machine on the cloud server can determine the type of webpage supported by the cloud terminal according to the capability information, and then according to The type of the web page obtains the corresponding data type. Thereby obtain the web page data to be visited corresponding to this data type on the Internet, compared with the need in the prior art that the cloud terminal supports Flash Player, and the cloud server needs to be directed to the Flash type, the method of the present embodiment has effectively improved The stability of online video playback on the desktop cloud system.
图6为本发明网页数据的处理方法的再一个实施例的流程图,如图6所示,本实施例方法的执行主体为云服务器,则该方法包括:Fig. 6 is the flow chart of another embodiment of the method for processing webpage data of the present invention, as shown in Fig. 6, the execution subject of the method of this embodiment is a cloud server, then the method includes:
步骤501、接收云终端发送的数据访问请求,该数据访问请求包括待访问地址。Step 501. Receive a data access request sent by a cloud terminal, where the data access request includes an address to be accessed.
在本实施例中,云终端可以执行图2至图5任一实施例所示方法的技术方案,其实现原理相类似,此处不再赘述。In this embodiment, the cloud terminal can execute the technical solution of the method shown in any one of the embodiments shown in FIG. 2 to FIG. 5 , and the implementation principles thereof are similar, and details are not repeated here.
步骤502、根据该数据访问请求,获取与该待访问地址对应的待访问的网页数据。
步骤503、将该待访问的网页数据发送给该云终端,以供该云终端对该待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中,以对该内存中的数据进行显示处理。Step 503: Send the webpage data to be accessed to the cloud terminal, so that the cloud terminal can process the webpage data to be accessed, and render the processed webpage data into the memory, so that the data in the memory Perform display processing.
在本实施例中,通过接收云终端发送的数据访问请求,该数据访问请求包括待访问地址,根据该数据访问请求,获取与该待访问地址对应的待访问的网页数据,将该待访问的网页数据发送给该云终端,以供该云终端对该待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中,以对该内存中的数据进行显示处理,由于云服务器中的虚拟机将待访问的网页数据发送给云终端,由云终端对该待访问的网页数据进行处理,因此,有效地降低了云服务器的负荷,并解决了现有技术中由于云服务器需要为每个云终端的待观看的视频分别进行处理而造成的云终端上音视频流播放不流畅,发生卡顿和丢帧的现象的问题,从而有效地提高了用户的体验。In this embodiment, by receiving the data access request sent by the cloud terminal, the data access request includes the address to be accessed, and according to the data access request, the web page data to be accessed corresponding to the address to be accessed is obtained, and the web page data to be accessed is obtained. The webpage data is sent to the cloud terminal for the cloud terminal to process the webpage data to be accessed, and render the processed webpage data into the memory to display and process the data in the memory. The virtual machine sends the webpage data to be accessed to the cloud terminal, and the webpage data to be accessed is processed by the cloud terminal, thus effectively reducing the load on the cloud server and solving the problem in the prior art that the cloud server needs to The video to be watched on each cloud terminal is processed separately, which causes problems such as unsmooth playback of audio and video streams on the cloud terminal, stuttering and frame loss, thereby effectively improving the user experience.
进一步的,在本发明的另一个实施例中,在上述图6所示实施例的基础上,该方法还可以包括:Further, in another embodiment of the present invention, on the basis of the above-mentioned embodiment shown in FIG. 6, the method may further include:
接收该云终端发送的握手请求,该握手请求包括该云终端支持的网页类型或者该云终端的能力信息。Receive the handshake request sent by the cloud terminal, where the handshake request includes the webpage type supported by the cloud terminal or the capability information of the cloud terminal.
根据该握手请求,获取与该云终端支持的网页的类型或者该云终端的能力信息对应的数据类型。According to the handshake request, the data type corresponding to the type of webpage supported by the cloud terminal or the capability information of the cloud terminal is obtained.
则步骤402的一种具体实现方式为:A specific implementation of
根据该数据访问请求,从该互联网中获取与该待访问地址和该数据类型对应的待访问的网页数据。According to the data access request, the to-be-visited webpage data corresponding to the to-be-visited address and the data type is obtained from the Internet.
图7为本发明网页数据的处理装置的一个实施例的结构示意图,如图7所示,本实施例的装置可以具体为云终端,则该装置可以包括:收发模块21、处理模块22和显示模块23,其中,收发模块21用于接收数据访问请求,该数据访问请求包括:待访问地址,并将该数据访问请求发送给云服务器,以供该云服务器根据该数据访问请求,获取与该待访问地址对应的待访问的网页数据;收发模块21还用于接收该云服务器发送的该待访问的网页数据;处理模块22用于对该待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中;显示模块23用于对该内存中的数据进行显示处理。Fig. 7 is a schematic structural diagram of an embodiment of a device for processing web page data according to the present invention. As shown in Fig. 7, the device of this embodiment may be specifically a cloud terminal, and the device may include: a
本实施例的装置,可以用于执行图2所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 2 , and its implementation principle and technical effect are similar, and will not be repeated here.
图8为本发明网页数据的处理装置的另一个实施例的结构示意图,如图8所示,本实施例的装置在图7所示装置结构的基础上,进一步地,该处理模块22包括:解析单元221和渲染单元222;其中,解析单元221用于对该待访问的网页数据进行解析处理,获取网页中的页面元素;渲染单元222用于将该网页中的页面元素渲染到该内存中。FIG. 8 is a schematic structural diagram of another embodiment of a webpage data processing device of the present invention. As shown in FIG. 8, the device of this embodiment is based on the device structure shown in FIG. 7. Further, the
可选地,解析单元221还用于对该待访问的网页数据进行解析处理,获取网页中的页面元素和网页中嵌入的音频和/或视频;则该处理模块22还可以进一步包括:解压缩和解码单元223,用于对该音频和/或视频进行解压缩和解码处理;则渲染单元222还用于将该网页中的页面元素,以及解码后的音频和/或视频渲染到该内存中。Optionally, the
本实施例的装置,可以用于执行图3或图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 3 or FIG. 4 , and its implementation principle and technical effect are similar, and will not be repeated here.
可选地,该收发模块21还用于向该云服务器发送握手请求,该握手请求包括该云终端支持的网页类型或者该云终端的能力信息,以供该云服务器根据该握手请求,获取与该云终端支持的网页类型或者该云终端的能力信息对应的数据类型,并根据该数据访问请求,获取与该待访问地址和该数据类型对应的待访问的网页数据。Optionally, the
本实施例的装置,可以用于执行图5所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to implement the technical solution of the method embodiment shown in FIG. 5 , and its implementation principle and technical effect are similar, and will not be repeated here.
图9为本发明网页数据的处理装置的又一个实施例的结构示意图,如图9所示,本实施例的装置可以具体为云服务器,则该装置可以包括:收发模块31和获取模块32,其中,收发模块31用于接收云终端发送的数据访问请求,所述数据访问请求包括待访问地址;获取模块32用于根据所述数据访问请求,获取与所述待访问地址对应的待访问的网页数据;收发模块31还用于将所述待访问的网页数据发送给所述云终端,以供所述云终端对所述待访问的网页数据进行处理,并将处理后的网页数据渲染到内存中,以对所述内存中的数据进行显示处理。Fig. 9 is a schematic structural diagram of another embodiment of a webpage data processing device of the present invention. As shown in Fig. 9, the device of this embodiment may be specifically a cloud server, and the device may include: a transceiver module 31 and an acquisition module 32, Wherein, the transceiver module 31 is used to receive the data access request sent by the cloud terminal, and the data access request includes the address to be accessed; Web page data; the transceiving module 31 is also used to send the web page data to be accessed to the cloud terminal for the cloud terminal to process the web page data to be accessed, and render the processed web page data to in the internal memory, to display and process the data in the internal memory.
本实施例的装置,可以用于执行图6所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The device of this embodiment can be used to execute the technical solution of the method embodiment shown in FIG. 6 , and its implementation principle and technical effect are similar, and will not be repeated here.
进一步的,在本发明的又一个实施例中,在上述图9该实施的基础上,该收发模块31还用于接收该云终端发送的握手请求,该握手请求包括该云终端支持的网页类型或者该云终端的能力信息;则该获取模块32还用于根据该握手请求,获取与该云终端支持的网页类型或者该云终端的能力信息对应的数据类型;则该获取模块32具体用于根据该数据访问请求,获取与该待访问地址和该数据类型对应的待访问的网页数据。Further, in yet another embodiment of the present invention, on the basis of the above-mentioned implementation in FIG. 9 , the transceiver module 31 is also configured to receive the handshake request sent by the cloud terminal, the handshake request includes the type of web page supported by the cloud terminal Or the capability information of the cloud terminal; then the acquisition module 32 is also used to obtain the webpage type supported by the cloud terminal or the data type corresponding to the capability information of the cloud terminal according to the handshake request; then the acquisition module 32 is specifically used for According to the data access request, the web page data to be accessed corresponding to the address to be accessed and the data type is obtained.
本发明还提供了一种通信系统,包括:云终端和云服务器,其中,该云终端为上述图6或图7所示的网页数据的处理装置,该云服务器为上述图8所示的网页数据的处理装置,其实现原理和技术效果类似,此处不再赘述。The present invention also provides a communication system, including: a cloud terminal and a cloud server, wherein the cloud terminal is the processing device for the webpage data shown in FIG. 6 or 7 above, and the cloud server is the webpage data shown in FIG. 8 above. The implementation principle and technical effect of the data processing device are similar, and will not be repeated here.
本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above method embodiments can be completed by program instructions and related hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above-mentioned method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than limiting them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: It is still possible to modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the various embodiments of the present invention. scope.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310729170.9ACN103714143A (en) | 2013-12-25 | 2013-12-25 | Webpage data processing method and device and communication system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310729170.9ACN103714143A (en) | 2013-12-25 | 2013-12-25 | Webpage data processing method and device and communication system |
| Publication Number | Publication Date |
|---|---|
| CN103714143Atrue CN103714143A (en) | 2014-04-09 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310729170.9APendingCN103714143A (en) | 2013-12-25 | 2013-12-25 | Webpage data processing method and device and communication system |
| Country | Link |
|---|---|
| CN (1) | CN103714143A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015188575A1 (en)* | 2014-06-11 | 2015-12-17 | 中兴通讯股份有限公司 | Video data providing method, video playback method, device, and system |
| CN105208340A (en)* | 2015-09-24 | 2015-12-30 | 浙江宇视科技有限公司 | Method and device for displaying video data |
| CN106210576A (en)* | 2016-07-13 | 2016-12-07 | 青岛海信电器股份有限公司 | Display system, content display and content display method |
| CN106407009A (en)* | 2016-09-06 | 2017-02-15 | 青岛海信电器股份有限公司 | Picture display method and device |
| CN106790704A (en)* | 2017-02-27 | 2017-05-31 | 网宿科技股份有限公司 | A kind of method and system for accessing cloud storage file |
| CN106961435A (en)* | 2017-03-22 | 2017-07-18 | 北京深思数盾科技股份有限公司 | A kind of access protection method and system |
| CN107135405A (en)* | 2017-04-28 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The player method and device of a kind of Online Video |
| CN107920259A (en)* | 2017-10-31 | 2018-04-17 | 深信服科技股份有限公司 | Virtual platform video playing accelerated method, virtual machine server and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2015188575A1 (en)* | 2014-06-11 | 2015-12-17 | 中兴通讯股份有限公司 | Video data providing method, video playback method, device, and system |
| CN105208406A (en)* | 2014-06-11 | 2015-12-30 | 中兴通讯股份有限公司 | Video data providing method and apparatus, video playing method and apparatuses, and video playing system |
| CN105208340A (en)* | 2015-09-24 | 2015-12-30 | 浙江宇视科技有限公司 | Method and device for displaying video data |
| CN106210576A (en)* | 2016-07-13 | 2016-12-07 | 青岛海信电器股份有限公司 | Display system, content display and content display method |
| CN106407009A (en)* | 2016-09-06 | 2017-02-15 | 青岛海信电器股份有限公司 | Picture display method and device |
| CN106790704A (en)* | 2017-02-27 | 2017-05-31 | 网宿科技股份有限公司 | A kind of method and system for accessing cloud storage file |
| CN106790704B (en)* | 2017-02-27 | 2019-09-13 | 网宿科技股份有限公司 | A method and system for accessing cloud storage files |
| CN106961435A (en)* | 2017-03-22 | 2017-07-18 | 北京深思数盾科技股份有限公司 | A kind of access protection method and system |
| CN106961435B (en)* | 2017-03-22 | 2019-12-13 | 北京深思数盾科技股份有限公司 | access protection method and system |
| CN107135405A (en)* | 2017-04-28 | 2017-09-05 | 武汉斗鱼网络科技有限公司 | The player method and device of a kind of Online Video |
| CN107135405B (en)* | 2017-04-28 | 2020-02-07 | 武汉斗鱼网络科技有限公司 | Online video playing method and device |
| CN107920259A (en)* | 2017-10-31 | 2018-04-17 | 深信服科技股份有限公司 | Virtual platform video playing accelerated method, virtual machine server and storage medium |
| Publication | Publication Date | Title |
|---|---|---|
| CN103714143A (en) | Webpage data processing method and device and communication system | |
| CN108337528B (en) | Method and equipment for previewing video | |
| US10552508B2 (en) | Method and apparatus for processing a webpage | |
| CN102902761B (en) | Cross-terminal cloud browse method and system | |
| CN104217024B (en) | Web data treating method and apparatus | |
| US20100306643A1 (en) | Methods and Systems for Processing Document Object Models (DOM) to Process Video Content | |
| CN110446114B (en) | Multimedia data processing device, method, electronic device and storage medium | |
| US20140201617A1 (en) | Method for Browsing Web Page on Mobile Terminal | |
| US9712589B2 (en) | System and method for playing a video on mobile web environments | |
| US8929459B2 (en) | Systems and methods utilizing efficient video compression techniques for browsing of static image data | |
| CN104469528B (en) | A kind of method, apparatus and browser client for carrying out video data loading | |
| WO2021082299A1 (en) | Video playback method and device | |
| CN112653700A (en) | Website video communication method based on WEBRTC | |
| WO2017206396A1 (en) | Video playing method and device | |
| CN103412896A (en) | Browser resource showing method and system | |
| CN107918619B (en) | Advertisement display method and device | |
| CN114416330B (en) | Video redirection method, virtual machine, terminal, device and storage medium | |
| CN104462571A (en) | Webpage loading method and device and browser client-side | |
| CN103064958A (en) | Method for automatic recognition and analysis of browser and based on hyper text makeup language (HTML) 5 video label | |
| CN112449250B (en) | Method, device, equipment and medium for downloading video resources | |
| CN111510791B (en) | Method and device for playing audio and video, computer equipment and readable storage medium | |
| CN104080016B (en) | The method and apparatus that audio/video information is shown are carried out in a kind of browser | |
| US20200186580A1 (en) | Dynamic rotation of streaming protocols | |
| US8868785B1 (en) | Method and apparatus for displaying multimedia content | |
| CN104247364B (en) | Video transmission method, device, and system applied to remote desktop |
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | Application publication date:20140409 | |
| RJ01 | Rejection of invention patent application after publication |