[go: up one dir, main page]

CN109068153B - Video playback method, device and computer-readable storage medium - Google Patents

Video playback method, device and computer-readable storage medium Download PDF

Info

Publication number
CN109068153B
CN109068153B CN201811143452.XA CN201811143452A CN109068153B CN 109068153 B CN109068153 B CN 109068153B CN 201811143452 A CN201811143452 A CN 201811143452A CN 109068153 B CN109068153 B CN 109068153B
Authority
CN
China
Prior art keywords
video
address
webpage
page
information
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
CN201811143452.XA
Other languages
Chinese (zh)
Other versions
CN109068153A (en
Inventor
杨光旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Huawei Cloud Computing Technology Co ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811143452.XA priority Critical patent/CN109068153B/en
Publication of CN109068153A publication Critical patent/CN109068153A/en
Application granted granted Critical
Publication of CN109068153B publication Critical patent/CN109068153B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/235Processing of additional data, e.g. scrambling of additional data or processing content descriptors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/239Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests
    • H04N21/2393Interfacing the upstream path of the transmission network, e.g. prioritizing client content requests involving handling client requests
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/437Interfacing the upstream path of the transmission network, e.g. for transmitting client requests to a VOD server

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种视频播放方法、装置和计算机可读存储介质,属于计算机技术领域。所述方法包括:当接收到终端发送的目标网页的访问指令时,向网页服务器发送目标网页的网页请求;接收网页服务器发送的目标网页的网页信息;当目标网页中存在视频时,从所述网页信息中获取所述视频的视频标识;根据所述视频的视频标识,生成所述视频的页面地址;构建iframe标签,并将所述页面地址设置为所述iframe标签的src属性值;将所述iframe标签发送给终端,由终端根据所述iframe标签获取所述视频并播放。本申请中终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。

Figure 201811143452

The present application discloses a video playback method, device and computer-readable storage medium, which belong to the technical field of computers. The method includes: when receiving the access instruction of the target webpage sent by the terminal, sending a webpage request of the target webpage to the webpage server; receiving webpage information of the target webpage sent by the webpage server; when there is a video in the target webpage, from the Obtain the video identification of the video from the webpage information; generate the page address of the video according to the video identification of the video; construct an iframe tag, and set the page address as the src attribute value of the iframe tag; The iframe tag is sent to the terminal, and the terminal acquires and plays the video according to the iframe tag. In this application, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the redirection of the video can be successfully implemented.

Figure 201811143452

Description

视频播放方法、装置和计算机可读存储介质Video playback method, device and computer-readable storage medium

技术领域technical field

本申请涉及计算机技术领域,特别涉及一种视频播放方法、装置和计算机可读存储介质。The present application relates to the field of computer technology, and in particular, to a video playback method, device, and computer-readable storage medium.

背景技术Background technique

虚拟桌面可以为用户提供部署在云端的远程计算机桌面服务,其可以使用虚拟化技术将服务器虚拟化为多台虚拟机,并在各台虚拟机中运行用户所需的操作系统和应用软件,用户可以在终端登录虚拟机并访问虚拟机资源。在虚拟桌面下,虚拟机播放视频时大量占用虚拟机资源,此时虚拟机对服务器的资源的占用率也较大,因而导致虚拟机和服务器的性能均有所下降,因此,对视频进行重定向对于提升虚拟桌面的体验有着重要的意义。The virtual desktop can provide users with remote computer desktop services deployed in the cloud. It can use virtualization technology to virtualize the server into multiple virtual machines, and run the operating system and application software required by the user in each virtual machine. You can log in to the virtual machine and access virtual machine resources at the terminal. Under the virtual desktop, the virtual machine occupies a large amount of virtual machine resources when playing videos. At this time, the virtual machine occupies a large amount of server resources, which leads to the performance of both the virtual machine and the server. Orientation plays an important role in enhancing the virtual desktop experience.

目前,在对视频进行重定向时,虚拟机可以获取待加载的超文本标记语言(HyperText Markup Language,HTML)网页的视频(video)标签的src属性值作为该HTML网页中存在的视频的视频地址,然后将该视频地址发送给终端。终端接收到该视频地址后,可以根据该视频地址获取该视频并播放,从而完成视频重定向。Currently, when redirecting a video, the virtual machine can obtain the value of the src attribute of the video (video) tag of the HyperText Markup Language (HTML) webpage to be loaded as the video address of the video existing in the HTML webpage , and then send the video address to the terminal. After receiving the video address, the terminal can obtain the video according to the video address and play it, thereby completing the video redirection.

然而,HTML网页的video标签的src属性值一般都是经过加密之后转换为的临时二进制大对象(binary large object,blob)地址,即HTML网页的video标签的src属性值通常不是视频的真实地址,因而终端根据该video标签的src属性值往往无法获取到视频,从而无法成功对视频进行重定向。However, the value of the src attribute of the video tag of an HTML webpage is generally a temporary binary large object (blob) address converted into a temporary binary large object (blob) address after encryption, that is, the value of the src attribute of the video tag of an HTML webpage is usually not the real address of the video. Therefore, the terminal often cannot obtain the video according to the value of the src attribute of the video tag, so that the video cannot be successfully redirected.

发明内容SUMMARY OF THE INVENTION

本申请提供了一种视频播放方法、装置和计算机可读存储介质,可以解决相关技术中无法成功对视频进行重定向的问题。所述技术方案如下:The present application provides a video playback method, device, and computer-readable storage medium, which can solve the problem that the video cannot be successfully redirected in the related art. The technical solution is as follows:

第一方面,提供了一种视频播放方法,应用于虚拟桌面服务器中安装的虚拟机,所述方法包括:In a first aspect, a video playback method is provided, which is applied to a virtual machine installed in a virtual desktop server, and the method includes:

当接收到终端发送的目标网页的访问指令时,向网页服务器发送所述目标网页的网页请求;接收所述网页服务器发送的所述目标网页的网页信息;当所述目标网页中存在视频时,从所述网页信息中获取所述视频的视频标识;根据所述视频的视频标识,生成所述视频的页面地址;构建浮动框架(iframe)标签,并将所述页面地址设置为所述iframe标签的src属性值;将所述iframe标签发送给所述终端,由所述终端根据所述iframe标签获取所述视频并播放。When receiving the access instruction of the target web page sent by the terminal, send the web page request of the target web page to the web server; receive the web page information of the target web page sent by the web server; when there is a video in the target web page, Obtain the video identifier of the video from the webpage information; generate the page address of the video according to the video identifier of the video; construct a floating frame (iframe) tag, and set the page address as the iframe tag src attribute value; send the iframe tag to the terminal, and the terminal acquires the video according to the iframe tag and plays it.

需要说明的是,该视频的页面地址可以指示该视频所在的页面的位置,即根据该视频的页面地址可以获取到该视频所在的页面,该页面中播放有该视频。此外,该页面中还可以包括有目标网页中用于播放该视频的播放器,此时该视频是在该页面中包括的该播放器的窗体中播放。It should be noted that the page address of the video may indicate the location of the page where the video is located, that is, the page where the video is located can be obtained according to the page address of the video, and the video is played on the page. In addition, the page may also include a player for playing the video in the target webpage, and at this time the video is played in the form of the player included in the page.

另外,iframe标签用于创建包含另外一个文档的内联框架。iframe标签具有多个属性,其中iframe标签的src属性值为要显示的文档的文档地址。Additionally, the iframe tag is used to create an iframe that contains another document. The iframe tag has multiple attributes, where the src attribute value of the iframe tag is the document address of the document to be displayed.

在本申请实施例中,由于该虚拟机是根据该视频的视频标识构建的iframe标签并发送给终端的,所以终端根据接收到的该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。In the embodiment of the present application, since the virtual machine constructs an iframe tag based on the video identifier of the video and sends it to the terminal, the terminal can successfully obtain the video that plays the video according to the received src attribute value of the iframe tag. page, so that the redirection of the video can be successfully implemented.

其中,所述当所述目标网页中存在视频时,从所述网页信息中获取所述视频的视频标识,包括:当所述目标网页中存在视频时,从所述网页信息中获取所述视频的视频地址;当所述视频地址不满足预设条件时,从所述网页信息中获取所述视频的视频标识。Wherein, acquiring the video identifier of the video from the web page information when there is a video in the target web page includes: acquiring the video from the web page information when there is a video in the target web page The video address of the video address; when the video address does not meet the preset condition, the video identifier of the video is obtained from the webpage information.

进一步地,当所述视频地址满足所述预设条件时,将所述视频地址发送给所述终端,由所述终端根据所述视频地址获取所述视频并播放。Further, when the video address satisfies the preset condition, the video address is sent to the terminal, and the terminal acquires and plays the video according to the video address.

需要说明的是,该视频的视频地址可以指示该视频的位置,即根据该视频的视频地址可以获取该视频。It should be noted that the video address of the video may indicate the location of the video, that is, the video may be acquired according to the video address of the video.

另外,预设条件可以预先进行设置,且预设条件是用于判断从网页信息中获取的视频地址是否是真实地址的条件,即是用于判断根据从网页信息中获取的视频地址是否能够成功获取到视频的条件。In addition, the preset condition can be set in advance, and the preset condition is a condition for judging whether the video address obtained from the web page information is a real address, that is, it is used for judging whether the video address obtained from the web page information can be successfully The condition to get the video.

在本申请实施例中,当该视频地址不满足预设条件时,表明该视频地址不是真实地址,此时该虚拟机可以获取该视频的视频标识,以据此生成该视频的页面地址。而当该视频地址满足预设条件时,表明该视频地址是真实地址,此时该虚拟机可以将该视频地址发送给终端,以供终端根据该视频地址直接获取该视频并播放。In the embodiment of the present application, when the video address does not meet the preset conditions, it indicates that the video address is not a real address, and the virtual machine can obtain the video identifier of the video to generate the page address of the video accordingly. When the video address satisfies the preset condition, it indicates that the video address is a real address, and the virtual machine can send the video address to the terminal so that the terminal can directly acquire and play the video according to the video address.

进一步地,所述当所述目标网页中存在视频时,从所述网页信息中获取所述视频的视频地址之前,还包括:当所述网页信息中存在video标签时,确定所述目标网页中存在视频。相应地,所述当所述目标网页中存在视频时,从所述网页信息中获取所述视频的视频地址,包括:当所述网页信息中存在video标签时,获取所述video标签的src属性值作为所述视频的视频地址。Further, before obtaining the video address of the video from the webpage information when there is a video in the target webpage, the method further includes: when there is a video tag in the webpage information, determining that the target webpage contains a video. Video exists. Correspondingly, acquiring the video address of the video from the web page information when there is a video in the target web page includes: when a video tag exists in the web page information, acquiring the src attribute of the video tag value as the video address of the video.

需要说明的是,video标签用于定义视频,如定义电影片段或其他视频流。video标签具有多个属性,其中video标签的src属性值为要播放的视频的视频地址。It should be noted that the video tag is used to define a video, such as a movie clip or other video stream. The video tag has multiple attributes, where the src attribute value of the video tag is the video address of the video to be played.

在本申请实施例中,该虚拟机可以根据video标签的存在与否快速判断目标网页中是否存在视频,且当目标网页中存在视频时,可以根据video标签快速获取目标网页中的视频,从而可以提高视频重定向的速度。In the embodiment of the present application, the virtual machine can quickly determine whether there is a video in the target webpage according to the existence of the video tag, and when there is a video in the target webpage, it can quickly obtain the video in the target webpage according to the video tag, so that it can Improve the speed of video redirection.

进一步地,所述当所述视频地址不满足预设条件时,从所述网页信息中获取所述视频的视频标识之前,还包括:当所述视频地址中不包括预设字符串时,确定所述视频地址不满足所述预设条件。当所述视频地址包括预设字符串时,确定所述视频地址满足预设条件。Further, before obtaining the video identification of the video from the webpage information when the video address does not meet the preset condition, the method further includes: when the video address does not include a preset character string, determining The video address does not meet the preset condition. When the video address includes a preset character string, it is determined that the video address satisfies a preset condition.

其中,判断所述视频地址中是否包括预设字符串时,可以判断所述视频地址的后缀是否为预设字符串,当所述视频地址的后缀不为预设字符串时,确定所述视频地址不满足预设条件,当所述视频地址的后缀为预设字符串时,确定所述视频地址满足预设条件。Wherein, when judging whether the video address includes a preset character string, it can be determined whether the suffix of the video address is a preset character string, and when the suffix of the video address is not a preset character string, determine the video address The address does not meet the preset condition, and when the suffix of the video address is a preset character string, it is determined that the video address meets the preset condition.

其中,所述根据所述视频的视频标识,生成所述视频的页面地址,包括:获取所述目标网页对应的构建规则;获取所述构建规则中指示的多个构建元素,所述多个构建元素中的一个构建元素为所述视频的视频标识;按照所述构建规则将所述多个构建元素进行组合,得到所述视频的页面地址。Wherein, generating the page address of the video according to the video identifier of the video includes: acquiring a construction rule corresponding to the target web page; acquiring a plurality of construction elements indicated in the construction rule, the plurality of construction One of the building elements is a video identifier of the video; the multiple building elements are combined according to the building rule to obtain the page address of the video.

需要说明的是,目标网页对应的构建规则为构建目标网页中的视频的页面地址的规则。It should be noted that the construction rule corresponding to the target webpage is a rule for constructing the page address of the video in the target webpage.

另外,该构建规则中指示的多个构建元素为构建目标网页中的视频的页面地址所需的多个信息。In addition, the plurality of construction elements indicated in the construction rule are pieces of information required to construct the page address of the video in the target web page.

值得注意的是,当该虚拟机成功获取到目标网页对应的构建规则时,表明目标网页支持视频的页面地址的分享,此时可以根据该构建规则生成该视频的页面地址。当该虚拟机未获取到目标网页对应的构建规则时,表明目标网页不支持视频的页面地址的分享,此时可以结束操作。It is worth noting that when the virtual machine successfully obtains the construction rule corresponding to the target webpage, it indicates that the target webpage supports the sharing of the page address of the video, and the page address of the video can be generated according to the construction rule at this time. When the virtual machine does not obtain the construction rule corresponding to the target web page, it indicates that the target web page does not support sharing of the page address of the video, and the operation can be ended at this time.

进一步地,所述方法还包括:获取所述视频的窗口参数,所述窗口参数包括窗口位置、窗口大小和遮挡信息;将所述窗口参数发送给所述终端,由所述终端根据所述窗口参数显示视频窗口,所述视频窗口用于播放所述视频。Further, the method further includes: acquiring window parameters of the video, where the window parameters include window position, window size, and occlusion information; sending the window parameters to the terminal, and the terminal according to the window The parameter displays a video window, which is used to play the video.

在本申请实施例中,该虚拟机可以定时或实时获取该视频的窗口参数,一旦发现该视频的窗口参数发生变化,就向终端发送变化后的窗口参数,以便终端可以根据变化后的窗口参数快速调整用于播放该视频的视频窗口。In this embodiment of the present application, the virtual machine may acquire the window parameters of the video regularly or in real time, and once it is found that the window parameters of the video have changed, it will send the changed window parameters to the terminal, so that the terminal can Quickly adjust the video window used to play the video.

进一步地,所述方法还包括:接收所述网页服务器发送的登录信息;将所述登录信息发送给所述终端,所述登录信息用于取得所述视频的访问权限。Further, the method further includes: receiving login information sent by the web server; and sending the login information to the terminal, where the login information is used to obtain the access right of the video.

需要说明的是,登录信息用于取得该视频的访问权限,登录信息是该虚拟机在访问网页服务器时所使用的用于辨别用户身份的信息,一般是该虚拟机在首次访问网页服务器时由网页服务器生成并发送给该虚拟机的。实际应用中,为了保证该登录信息的安全性,可以先对该登录信息进行加密,再将加密后的该登录信息发送给终端。It should be noted that the login information is used to obtain the access authority of the video, and the login information is the information used by the virtual machine to identify the user's identity when accessing the web server. Generally, when the virtual machine accesses the web server for the first time, generated by the web server and sent to this virtual machine. In practical applications, in order to ensure the security of the login information, the login information may be encrypted first, and then the encrypted login information is sent to the terminal.

在本申请实施例中,该虚拟机可以将登录信息发送给终端,此时终端可以使用该登录信息从网页服务器中获取视频,从而可以保证终端具有足够的权限访问网页服务器来获取视频,进而可以提高视频重定向的成功率。In this embodiment of the present application, the virtual machine can send the login information to the terminal, and the terminal can use the login information to obtain the video from the web server, thereby ensuring that the terminal has sufficient authority to access the web server to obtain the video, and further can Improve the success rate of video redirection.

第二方面,提供了一种视频播放方法,应用于终端,所述方法包括:In a second aspect, a video playback method is provided, applied to a terminal, the method includes:

向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令;接收所述虚拟机发送的iframe标签,所述iframe标签的src属性值为所述目标网页中存在的视频的页面地址,所述页面地址是根据所述视频的视频标识生成得到,所述视频的视频标识是从所述目标网页的网页信息中获取得到;根据所述iframe标签,获取所述视频并播放。Send the access instruction of the target web page to the virtual machine installed in the virtual desktop server; receive the iframe tag sent by the virtual machine, the src attribute value of the iframe tag is the page address of the video existing in the target web page, the page The address is generated according to the video identification of the video, and the video identification of the video is obtained from the webpage information of the target webpage; according to the iframe tag, the video is obtained and played.

在本申请实施例中,终端向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令。然后终端接收该虚拟机发送的iframe标签,该iframe标签的src属性值为目标网页中存在的视频的页面地址,该页面地址是根据该视频的视频标识生成得到,该视频的视频标识是从目标网页的网页信息中获取得到。之后,终端根据该iframe标签获取该视频并播放。由于本申请实施例是根据该视频的视频标识构建的iframe标签,所以终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。In the embodiment of the present application, the terminal sends an access instruction of the target webpage to the virtual machine installed in the virtual desktop server. Then the terminal receives the iframe tag sent by the virtual machine, the src attribute value of the iframe tag is the page address of the video existing in the target webpage, the page address is generated according to the video ID of the video, and the video ID of the video is obtained from the target page It can be obtained from the webpage information of the webpage. After that, the terminal acquires the video according to the iframe tag and plays it. Since the embodiment of the present application is an iframe tag constructed according to the video identification of the video, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the video can be redirected successfully.

进一步地,所述向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令之后,还包括:接收所述虚拟机发送的所述视频的视频地址,所述视频地址是从所述目标网页的网页信息中获取得到;根据所述视频地址,获取所述视频并播放。Further, after sending the access instruction of the target webpage to the virtual machine installed in the virtual desktop server, the method further includes: receiving the video address of the video sent by the virtual machine, where the video address is from the target webpage. Obtained from webpage information; according to the video address, the video is obtained and played.

在本申请实施例中,终端不仅可以根据接收到的iframe标签来获取视频并播放,还可以根据接收到的视频地址来获取视频并播放,从而提高了视频获取的灵活性,进而提高了视频重定向的成功率。In the embodiment of the present application, the terminal can not only acquire and play the video according to the received iframe tag, but also acquire and play the video according to the received video address, thereby improving the flexibility of video acquisition and further improving the video reproducibility. Orientation success rate.

进一步地,所述向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令之后,还包括:接收所述虚拟机发送的所述视频的窗口参数,所述窗口参数包括窗口位置、窗口大小和遮挡信息;根据所述窗口参数显示视频窗口。相应地,所述获取所述视频并播放,包括:获取所述视频,并在所述视频窗口中播放所述视频。Further, after sending the access instruction of the target web page to the virtual machine installed in the virtual desktop server, the method further includes: receiving window parameters of the video sent by the virtual machine, where the window parameters include window position, window size and Occlusion information; display the video window according to the window parameter. Correspondingly, the acquiring and playing the video includes: acquiring the video and playing the video in the video window.

其中,终端根据该窗口参数显示视频窗口时,可以将该视频窗口的大小设置为该窗口参数中的窗口大小,将该视频窗口显示在该窗口参数中的窗口位置,并根据该窗口参数中的遮挡信息确定该视频窗口中被遮挡的部分,将该视频窗口中被遮挡的部分设置为透明状态。Wherein, when the terminal displays the video window according to the window parameter, the size of the video window can be set to the window size in the window parameter, and the video window is displayed at the window position in the window parameter, and according to the window parameter in the window parameter The occlusion information determines the occluded part in the video window, and sets the occluded part in the video window to a transparent state.

进一步地,所述向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令之后,还包括:接收所述虚拟机发送的登录信息,所述登录信息用于取得所述视频的访问权限;相应地,所述根据所述iframe标签,获取所述视频并播放,包括:生成携带有所述iframe标签的src属性值的页面获取请求,所述页面获取请求用于请求获取所述iframe标签的src属性值指向的页面,所述页面中播放有所述视频;向网页服务器发送所述页面获取请求和所述登录信息;当接收到所述网页服务器发送的所述页面的页面信息时,根据所述页面的页面信息显示所述页面。Further, after sending the access instruction of the target webpage to the virtual machine installed in the virtual desktop server, the method further includes: receiving login information sent by the virtual machine, where the login information is used to obtain the access authority of the video; correspondingly The acquiring and playing the video according to the iframe tag includes: generating a page acquisition request carrying the src attribute value of the iframe tag, where the page acquisition request is used to request acquisition of the src of the iframe tag The page pointed to by the attribute value, in which the video is played; send the page acquisition request and the login information to the web server; when receiving the page information of the page sent by the web server, according to the The page information of the page is displayed.

在本申请实施例中,终端接收到该虚拟机发送的登录信息时,可以使用该登录信息从网页服务器中获取视频,从而可以保证终端具有足够的权限访问网页服务器来获取视频,进而可以提高视频重定向的成功率。并且,为了保证该登录信息的安全性,该登录信息可以采用加密传输,且在终端使用该登录信息从网页服务器中获取视频后,终端可以删除该登录信息。In this embodiment of the present application, when the terminal receives the login information sent by the virtual machine, it can use the login information to obtain the video from the web server, thereby ensuring that the terminal has sufficient authority to access the web server to obtain the video, thereby improving the video quality. The success rate of redirection. In addition, in order to ensure the security of the login information, the login information may be encrypted and transmitted, and after the terminal uses the login information to obtain the video from the web server, the terminal may delete the login information.

第三方面,提供了一种视频播放装置,所述视频播放装置具有实现上述第一方面中视频播放方法行为的功能。所述视频播放装置包括至少一个模块,所述至少一个模块用于实现上述第一方面所提供的视频播放方法。In a third aspect, a video playback device is provided, and the video playback device has a function of implementing the behavior of the video playback method in the first aspect. The video playback apparatus includes at least one module, and the at least one module is configured to implement the video playback method provided in the first aspect.

第四方面,提供了一种视频播放装置,所述视频播放装置具有实现上述第二方面中视频播放方法行为的功能。所述视频播放装置包括至少一个模块,所述至少一个模块用于实现上述第二方面所提供的视频播放方法。In a fourth aspect, a video playback device is provided, and the video playback device has a function of implementing the behavior of the video playback method in the second aspect. The video playback apparatus includes at least one module, and the at least one module is configured to implement the video playback method provided in the second aspect.

第五方面,提供了一种视频播放装置,所述视频播放装置的结构中包括处理器和存储器,所述存储器用于存储支持视频播放装置执行上述第一方面所提供的视频播放方法的程序,以及存储用于实现上述第一方面所述的视频播放方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述视频播放装置还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。A fifth aspect provides a video playback device, the structure of the video playback device includes a processor and a memory, and the memory is used to store a program that supports the video playback device to perform the video playback method provided in the first aspect, and storing the data involved in implementing the video playback method described in the first aspect. The processor is configured to execute programs stored in the memory. The video playback apparatus may further include a communication bus for establishing a connection between the processor and the memory.

第六方面,提供了一种视频播放装置,所述视频播放装置的结构中包括处理器和存储器,所述存储器用于存储支持视频播放装置执行上述第二方面所提供的视频播放方法的程序,以及存储用于实现上述第二方面所述的视频播放方法所涉及的数据。所述处理器被配置为用于执行所述存储器中存储的程序。所述视频播放装置还可以包括通信总线,所述通信总线用于在所述处理器与所述存储器之间建立连接。In a sixth aspect, a video playback device is provided, the structure of the video playback device includes a processor and a memory, and the memory is used to store a program that supports the video playback device to perform the video playback method provided in the second aspect, and storing the data involved in implementing the video playback method described in the second aspect. The processor is configured to execute programs stored in the memory. The video playback apparatus may further include a communication bus for establishing a connection between the processor and the memory.

第七方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面所述的视频播放方法。In a seventh aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer executes the video playback method described in the first aspect.

第八方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第二方面所述的视频播放方法。In an eighth aspect, a computer-readable storage medium is provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium runs on a computer, the computer executes the video playback method described in the second aspect.

第九方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第一方面所述的视频播放方法。In a ninth aspect, there is provided a computer program product containing instructions, which, when run on a computer, cause the computer to execute the video playback method described in the first aspect.

第十方面,提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述第二方面所述的视频播放方法。In a tenth aspect, there is provided a computer program product containing instructions, which, when executed on a computer, cause the computer to execute the video playback method described in the second aspect above.

上述第三方面、第五方面、第七方面和第九方面所获得的技术效果与上述第一方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the third aspect, the fifth aspect, the seventh aspect and the ninth aspect are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here.

上述第四方面、第六方面、第八方面和第十方面所获得的技术效果与上述第二方面中对应的技术手段获得的技术效果近似,在这里不再赘述。The technical effects obtained by the fourth aspect, the sixth aspect, the eighth aspect and the tenth aspect are similar to the technical effects obtained by the corresponding technical means in the second aspect, and will not be repeated here.

本申请提供的技术方案至少可以带来以下有益效果:当虚拟桌面服务器中安装的虚拟机接收到终端发送的目标网页的访问指令时,向网页服务器发送目标网页的网页请求。之后,该虚拟机接收网页服务器发送的目标网页的网页信息,当目标网页中存在视频时,从目标网页的网页信息中获取该视频的视频标识,再根据该视频的视频标识,生成该视频的页面地址,然后构建iframe标签,并将该视频的页面地址设置为该iframe标签的src属性值。之后,该虚拟机将该iframe标签发送给终端,由终端根据该iframe标签获取该视频并播放。由于本申请实施例是根据该视频的视频标识构建的iframe标签,所以终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。The technical solution provided by the present application can at least bring the following beneficial effects: when the virtual machine installed in the virtual desktop server receives the access instruction of the target web page sent by the terminal, it sends a web page request of the target web page to the web server. After that, the virtual machine receives the webpage information of the target webpage sent by the webpage server, when there is a video in the target webpage, obtains the video identification of the video from the webpage information of the target webpage, and then generates the video identification of the video according to the video identification of the video. page address, then build the iframe tag and set the page address of the video to the value of the src attribute of the iframe tag. After that, the virtual machine sends the iframe tag to the terminal, and the terminal acquires and plays the video according to the iframe tag. Since the embodiment of the present application is an iframe tag constructed according to the video identification of the video, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the video can be redirected successfully.

附图说明Description of drawings

图1是本申请实施例提供的一种虚拟桌面系统的结构示意图;1 is a schematic structural diagram of a virtual desktop system provided by an embodiment of the present application;

图2是本申请实施例提供的一种计算机设备的结构示意图;2 is a schematic structural diagram of a computer device provided by an embodiment of the present application;

图3是本申请实施例提供的一种视频播放方法的流程图;3 is a flowchart of a video playback method provided by an embodiment of the present application;

图4是本申请实施例提供的一种视频播放装置的结构示意图;4 is a schematic structural diagram of a video playback device provided by an embodiment of the present application;

图5是本申请实施例提供的另一种视频播放装置的结构示意图。FIG. 5 is a schematic structural diagram of another video playback device provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请的实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

在对本申请实施例进行详细地解释说明之前,对本申请实施例涉及的应用场景和系统架构予以说明。Before explaining the embodiments of the present application in detail, the application scenarios and system architectures involved in the embodiments of the present application are described.

首先,对本申请实施例的应用场景进行说明。First, the application scenarios of the embodiments of the present application are described.

虚拟桌面是一种典型的云计算应用,可以为用户提供部署在云端的远程计算机桌面服务,具体是使用虚拟化技术将服务器虚拟化为多台虚拟机,并在各台虚拟机中运行用户所需的操作系统和应用软件,用户可以在终端登录虚拟机并访问虚拟机资源。由于虚拟桌面中所有的业务都是在虚拟机中处理的,所以虚拟桌面时时刻刻都在消耗着服务器的资源,尤其是虚拟桌面中的视频播放对服务器的资源消耗相当大,很有可能会影响服务器的性能,因此,对视频进行重定向对于提升虚拟桌面的体验有着重要的意义。本申请实施例就应用于虚拟桌面下的视频重定向场景中。Virtual desktop is a typical cloud computing application, which can provide users with remote computer desktop services deployed in the cloud. If the required operating system and application software are required, users can log in to the virtual machine on the terminal and access the virtual machine resources. Since all the services in the virtual desktop are processed in the virtual machine, the virtual desktop is consuming the resources of the server all the time, especially the video playback in the virtual desktop consumes a lot of resources on the server, and it is very likely that It affects the performance of the server. Therefore, redirecting the video is of great significance to improve the experience of the virtual desktop. The embodiments of the present application are applied to a video redirection scenario under a virtual desktop.

其次,对本申请实施例的系统架构进行说明。Next, the system architecture of the embodiment of the present application is described.

图1是本申请实施例提供的一种虚拟桌面系统的结构示意图。参见图1,该虚拟桌面系统包括:虚拟桌面服务器110和终端120。虚拟桌面服务器110与终端120之间可以通过桌面协议进行通信,该桌面协议可以为远程桌面协议(Remote Desktop Protocol,RDP)等,本申请实施例对此不作限定。FIG. 1 is a schematic structural diagram of a virtual desktop system provided by an embodiment of the present application. Referring to FIG. 1 , the virtual desktop system includes: a virtual desktop server 110 and a terminal 120 . The virtual desktop server 110 and the terminal 120 may communicate through a desktop protocol, and the desktop protocol may be a Remote Desktop Protocol (Remote Desktop Protocol, RDP), etc., which is not limited in this embodiment of the present application.

虚拟桌面服务器110可以提供虚拟机的软件运行环境和虚拟机控制平台,虚拟机用于提供虚拟桌面环境,虚拟机中可以安装虚拟桌面服务来处理客户端与虚拟机的操作系统之间的消息交互,并接收该操作系统的消息来呈现桌面。虚拟桌面服务器110可以为一个服务器,也可以为多个服务器组成的服务器集群,本申请实施例对此不作限定。The virtual desktop server 110 can provide a software running environment and a virtual machine control platform of a virtual machine, the virtual machine is used to provide a virtual desktop environment, and a virtual desktop service can be installed in the virtual machine to process the message interaction between the client and the operating system of the virtual machine , and receive messages from that operating system to render the desktop. The virtual desktop server 110 may be one server, or may be a server cluster composed of multiple servers, which is not limited in this embodiment of the present application.

终端120可以访问虚拟桌面服务器110中的虚拟机提供的虚拟桌面环境,终端120中可以安装客户端来接收和处理桌面协议消息。终端120可以为个人计算机(personalcomputer,PC)、瘦客户机(thin client,TC)、安卓(Android)系统设备、ios系统设备等,本申请实施例对此不作限定。The terminal 120 can access the virtual desktop environment provided by the virtual machine in the virtual desktop server 110, and a client can be installed in the terminal 120 to receive and process desktop protocol messages. The terminal 120 may be a personal computer (personal computer, PC), a thin client (thin client, TC), an Android (Android) system device, an ios system device, etc., which is not limited in this embodiment of the present application.

其中,虚拟桌面服务器110中安装有虚拟机111,虚拟机111中可以安装有浏览器和浏览器插件。浏览器在打开网页时,可以调用浏览器插件来进行视频重定向,具体地,浏览器插件可以先判断该网页中是否存在视频,如果该网页中存在视频,则从该网页的网页信息中获取该视频的视频标识,并根据该视频的视频标识来生成该视频的页面地址,将该页面地址发送给终端120。A virtual machine 111 is installed in the virtual desktop server 110, and a browser and a browser plug-in may be installed in the virtual machine 111. When the browser opens a webpage, it can call the browser plug-in to perform video redirection. Specifically, the browser plug-in can first determine whether there is a video in the webpage, and if there is a video in the webpage, it can be obtained from the webpage information of the webpage. The video identifier of the video, and the page address of the video is generated according to the video identifier of the video, and the page address is sent to the terminal 120 .

其中,终端120中安装有客户端121和浏览器引擎122。客户端121接收到虚拟桌面服务器110中安装的虚拟机111发送的页面地址时,可以调用浏览器引擎122来获取视频,具体地,浏览器引擎122可以根据该页面地址获取页面并显示,该页面显示后其中播放有视频。此外,终端120中还可以包括有输出设备(如显示器等),用以显示桌面内容,以及可以包括输入设备(如鼠标、键盘等),用以进行用户输入。The client 121 and the browser engine 122 are installed in the terminal 120 . When the client 121 receives the page address sent by the virtual machine 111 installed in the virtual desktop server 110, it can call the browser engine 122 to obtain the video. Specifically, the browser engine 122 can obtain and display the page according to the page address. After the display, there is a video playing in it. In addition, the terminal 120 may further include an output device (such as a monitor, etc.) for displaying desktop contents, and may include an input device (such as a mouse, a keyboard, etc.) for user input.

图2是本申请实施例提供的一种计算机设备的结构示意图,该计算机设备可以是图1中所示的虚拟桌面服务器110或终端120。参见图2,该计算机设备包括至少一个处理器201、通信总线202、存储器203以及至少一个通信接口204。FIG. 2 is a schematic structural diagram of a computer device provided by an embodiment of the present application, and the computer device may be the virtual desktop server 110 or the terminal 120 shown in FIG. 1 . Referring to FIG. 2 , the computer device includes at least one processor 201 , a communication bus 202 , a memory 203 and at least one communication interface 204 .

处理器201可以是一个通用中央处理器(Central Processing Unit,CPU)、微处理器、特定应用集成电路(application-specific integrated circuit,ASIC),或者可以是一个或多个用于控制本申请方案程序执行的集成电路。The processor 201 may be a general-purpose central processing unit (Central Processing Unit, CPU), microprocessor, application-specific integrated circuit (application-specific integrated circuit, ASIC), or may be one or more programs for controlling the solution of the present application implemented integrated circuits.

通信总线202可包括一通路,用于在上述组件之间传送信息。Communication bus 202 may include a path for transferring information between the aforementioned components.

存储器203可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,也可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器203可以是独立存在,并通过通信总线202与处理器201相连接。存储器203也可以和处理器201集成在一起。The memory 203 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be a random access memory (RAM) or can store information and instructions Other types of dynamic storage devices such as electronically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CompactDisc Read-Only Memory (CD-ROM) or other optical disk storage, Optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media, or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and Any other medium that can be accessed by a computer, but is not limited to this. The memory 203 may exist independently and be connected to the processor 201 through the communication bus 202 . The memory 203 may also be integrated with the processor 201 .

通信接口204使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(Radio Access Network,RAN)、无线局域网(Wireless Local AreaNetworks,WLAN)等。The communication interface 204 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), and the like.

在具体实现中,作为一种实施例,处理器201可以包括一个或多个CPU,如图2中所示的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs, such as CPU0 and CPU1 as shown in FIG. 2 .

在具体实现中,作为一种实施例,计算机设备可以包括多个处理器,如图2中所示的处理器201和处理器205。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the computer device may include multiple processors, such as the processor 201 and the processor 205 as shown in FIG. 2 . Each of these processors can be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).

在具体实现中,作为一种实施例,计算机设备还可以包括输出设备206和输入设备207。输出设备206和处理器201通信,可以以多种方式来显示信息。例如,输出设备206可以是液晶显示器(liquid crystal display,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathode ray tube,CRT)显示设备或投影仪(projector)等。输入设备207和处理器201通信,可以以多种方式接收用户的输入。例如,输入设备207可以是鼠标、键盘、触摸屏设备或传感设备等。In a specific implementation, as an embodiment, the computer device may further include an output device 206 and an input device 207 . The output device 206 is in communication with the processor 201 and can display information in a variety of ways. For example, the output device 206 may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, a projector, or the like . The input device 207 is in communication with the processor 201 and can receive user input in a variety of ways. For example, the input device 207 may be a mouse, a keyboard, a touch screen device, a sensor device, or the like.

上述的计算机设备可以是一个通用计算机设备或一个专用计算机设备。在具体实现中,计算机设备可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal DigitalAssistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或嵌入式设备,本申请实施例不限定计算机设备的类型。The aforementioned computer device may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a PDA (Personal Digital Assistant, PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device, or an embedded device, which is not limited in the embodiments of the present application. Type of computer equipment.

其中,存储器203用于存储执行本申请方案的程序代码210,处理器201用于执行存储器203中存储的程序代码210。该计算机设备可以通过处理器201以及存储器203中的程序代码210,来实现下文图3实施例提供的视频播放方法。The memory 203 is used for storing the program code 210 for executing the solution of the present application, and the processor 201 is used for executing the program code 210 stored in the memory 203 . The computer device can implement the video playback method provided in the embodiment of FIG. 3 below through the processor 201 and the program code 210 in the memory 203 .

值得注意的是,在执行本申请实施例提供的视频播放方法之前,终端可以先使用桌面协议连接到虚拟桌面服务器中的虚拟机,此时该虚拟机可以为终端提供虚拟桌面环境,之后,可以在该虚拟机中安装浏览器和浏览器插件来实现视频重定向技术。并且,终端可以向该虚拟机通知终端的设备信息,该设备信息可以包括终端类型(可以以操作系统来划分)、是否支持视频重定向等。当终端支持视频重定向时,可以通过本申请实施例提供的视频播放方法来实现虚拟桌面下的视频重定向。It is worth noting that, before executing the video playback method provided by the embodiment of the present application, the terminal may first use the desktop protocol to connect to the virtual machine in the virtual desktop server, and the virtual machine may provide a virtual desktop environment for the terminal. A browser and browser plug-ins are installed in the virtual machine to implement the video redirection technology. In addition, the terminal may notify the virtual machine of device information of the terminal, where the device information may include terminal type (which may be divided by operating system), whether video redirection is supported, and the like. When the terminal supports video redirection, video redirection under the virtual desktop can be implemented by using the video playback method provided in the embodiment of the present application.

图3是本申请实施例提供的一种视频播放方法的流程图,该方法应用于图1所示的虚拟桌面系统中。参见图3,该方法包括:FIG. 3 is a flowchart of a video playback method provided by an embodiment of the present application, and the method is applied to the virtual desktop system shown in FIG. 1 . Referring to Figure 3, the method includes:

步骤301:终端向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令。Step 301: The terminal sends an access instruction of the target webpage to the virtual machine installed in the virtual desktop server.

需要说明的是,步骤301可以由终端中安装的客户端执行。It should be noted that step 301 may be performed by a client installed in the terminal.

另外,目标网页可以为HTML网页,如可以为HTML5网页等,本申请实施例对此不作限定。In addition, the target webpage may be an HTML webpage, such as an HTML5 webpage, which is not limited in this embodiment of the present application.

再者,目标网页的访问指令用于指示对目标网页进行访问,目标网页的访问指令可以由用户触发,用户可以通过鼠标操作、键盘操作等操作触发。Furthermore, the access instruction of the target web page is used to instruct to access the target web page, and the access instruction of the target web page may be triggered by the user, and the user may be triggered by operations such as mouse operation and keyboard operation.

步骤302:当该虚拟机接收到终端发送的目标网页的访问指令时,向网页服务器发送目标网页的网页请求。Step 302: When the virtual machine receives the access instruction of the target web page sent by the terminal, it sends a web page request of the target web page to the web server.

需要说明的是,步骤302可以由该虚拟机中安装的浏览器执行。It should be noted that step 302 may be performed by a browser installed in the virtual machine.

另外,目标网页的网页请求用于请求获取目标网页,目标网页的网页请求中可以携带目标网页的网页地址,如可以携带目标网页的统一资源定位符(Uniform ResourceLocator,URL)等。In addition, the web page request of the target web page is used to request to obtain the target web page, and the web page request of the target web page may carry the web page address of the target web page, for example, may carry the uniform resource locator (Uniform Resource Locator, URL) of the target web page.

再者,网页服务器接收到目标网页的网页请求后,可以获取目标网页的网页信息并将目标网页的网页信息返回给该虚拟机。Furthermore, after receiving the webpage request of the target webpage, the webpage server can obtain webpage information of the target webpage and return the webpage information of the target webpage to the virtual machine.

步骤303:该虚拟机接收网页服务器发送的目标网页的网页信息。Step 303: The virtual machine receives the webpage information of the target webpage sent by the webpage server.

需要说明的是,步骤303可以由该虚拟机中安装的浏览器执行。It should be noted that step 303 may be performed by a browser installed in the virtual machine.

另外,目标网页的网页信息包括目标网页中的所有内容的相关信息,如可以包括目标网页中的文字、图片、音乐等内容的相关信息。In addition, the webpage information of the target webpage includes relevant information of all the contents in the target webpage, for example, it may include relevant information of the content such as text, pictures, and music in the target webpage.

值得注意的是,该虚拟机中安装的浏览器获取到目标网页的网页信息之后,该浏览器就可以调用该虚拟机中安装的浏览器插件来进行视频重定向,具体可以通过如下步骤304-步骤308实现。It is worth noting that after the browser installed in the virtual machine obtains the webpage information of the target webpage, the browser can call the browser plug-in installed in the virtual machine to perform video redirection. Specifically, the following steps 304- Step 308 is implemented.

步骤304:该虚拟机判断目标网页中是否存在视频。Step 304: The virtual machine determines whether there is a video in the target webpage.

需要说明的是,步骤304可以由该虚拟机中安装的浏览器插件执行。It should be noted that step 304 may be performed by a browser plug-in installed in the virtual machine.

具体地,该虚拟机可以判断目标网页的网页信息中是否存在video标签;当目标网页的网页信息中存在video标签时,确定目标网页中存在视频;当目标网页的网页信息中不存在video标签时,确定目标网页中不存在视频。当然,也可以通过其它方式判断目标网页中是否存在视频,本申请实施例对此不作限定。Specifically, the virtual machine can determine whether there is a video tag in the webpage information of the target webpage; when there is a video tag in the webpage information of the target webpage, it is determined that a video exists in the target webpage; when there is no video tag in the webpage information of the target webpage , determine that the video does not exist on the landing page. Of course, other methods may also be used to determine whether there is a video in the target webpage, which is not limited in this embodiment of the present application.

需要说明的是,video标签用于定义视频,如定义电影片段或其他视频流。video标签具有多个属性,其中video标签的src属性值为要播放的视频的视频地址,如可以为要播放的视频的URL。It should be noted that the video tag is used to define a video, such as a movie clip or other video stream. The video tag has multiple attributes, where the value of the src attribute of the video tag is the video address of the video to be played, such as the URL of the video to be played.

步骤305:当目标网页中存在视频时,该虚拟机从目标网页的网页信息中获取该视频的视频标识。Step 305: When there is a video in the target webpage, the virtual machine obtains the video identifier of the video from the webpage information of the target webpage.

需要说明的是,步骤305可以由该虚拟机中安装的浏览器插件执行。It should be noted that step 305 may be performed by a browser plug-in installed in the virtual machine.

另外,该视频的视频标识用于唯一标识该视频,该视频的视频标识可以从目标网页的网页地址中获取,也可以从目标网页的网页代码中获取,本申请实施例对此不作限定。In addition, the video identifier of the video is used to uniquely identify the video, and the video identifier of the video can be obtained from the webpage address of the target webpage or from the webpage code of the target webpage, which is not limited in this embodiment of the present application.

具体地,当目标网页中存在视频时,该虚拟机可以直接从目标网页的网页信息中获取该视频的视频标识;或者,当目标网页中存在视频时,该虚拟机可以先从目标网页的网页信息中获取该视频的视频地址,再判断该视频地址是否满足预设条件,当该视频地址不满足预设条件时,从目标网页的网页信息中获取该视频的视频标识。Specifically, when there is a video in the target webpage, the virtual machine can directly obtain the video identifier of the video from the webpage information of the target webpage; or, when there is a video in the target webpage, the virtual machine can first obtain the video identifier from the webpage of the target webpage The video address of the video is obtained from the information, and then it is judged whether the video address satisfies the preset condition, and when the video address does not meet the preset condition, the video identifier of the video is obtained from the webpage information of the target webpage.

进一步地,当该视频地址满足预设条件时,该虚拟机可以将该视频地址发送给终端。Further, when the video address satisfies the preset condition, the virtual machine can send the video address to the terminal.

需要说明的是,该视频的视频地址可以指示该视频的位置,即根据该视频的视频地址可以获取该视频。It should be noted that the video address of the video may indicate the location of the video, that is, the video may be acquired according to the video address of the video.

另外,预设条件可以预先进行设置,且预设条件是用于判断从网页信息中获取的视频地址是否是真实地址的条件,即是用于判断根据从网页信息中获取的视频地址是否能够成功获取到视频的条件。In addition, the preset condition can be set in advance, and the preset condition is a condition for judging whether the video address obtained from the web page information is a real address, that is, it is used for judging whether the video address obtained from the web page information can be successfully The condition to get the video.

再者,当该视频地址不满足预设条件时,表明该视频地址不是真实地址,此时可以获取该视频的视频标识,以据此生成该视频的页面地址。而当该视频地址满足预设条件时,表明该视频地址是真实地址,此时可以将该视频地址发送给终端,以供终端根据该视频地址直接获取该视频并播放。Furthermore, when the video address does not meet the preset conditions, it indicates that the video address is not a real address, and at this time, the video identification of the video can be obtained, so as to generate the page address of the video accordingly. When the video address satisfies the preset condition, it indicates that the video address is a real address. At this time, the video address can be sent to the terminal, so that the terminal can directly obtain and play the video according to the video address.

其中,当目标网页中存在视频时,该虚拟机从目标网页的网页信息中获取该视频的视频地址的操作可以为:当目标网页的网页信息中存在video标签时,获取该video标签的src属性值作为该视频的视频地址。Wherein, when there is a video in the target web page, the operation of the virtual machine acquiring the video address of the video from the web page information of the target web page may be: when a video tag exists in the web page information of the target web page, acquiring the src attribute of the video tag value as the video address of this video.

其中,该虚拟机判断该视频地址是否满足预设条件的操作可以为:该虚拟机判断该视频地址中是否包括预设字符串;当该视频地址中不包括预设字符串时,确定该视频地址不满足预设条件;当该视频地址包括预设字符串时,确定该视频地址满足预设条件。Wherein, the operation of the virtual machine to determine whether the video address satisfies the preset condition may be: the virtual machine determines whether the video address includes a preset character string; when the video address does not include the preset character string, determine the video address The address does not satisfy the preset condition; when the video address includes a preset character string, it is determined that the video address satisfies the preset condition.

需要说明的是,预设字符串可以预先进行设置,如预设字符串可以为视频类型,视频类型可以包括音频视频交错(audio video interleaved,avi)类型、运动图像专家组(Motion Picture Experts Group,MPEG)4类型等。It should be noted that the preset character string may be set in advance, for example, the preset character string may be a video type, and the video type may include an audio video interleaved (avi) type, a Motion Picture Experts Group (Motion Picture Experts Group, MPEG) 4 type, etc.

另外,判断该视频地址中是否包括预设字符串时,具体可以判断该视频地址的后缀是否为预设字符串,当该视频地址的后缀不为预设字符串时,确定该视频地址不满足预设条件,当该视频地址的后缀为预设字符串时,确定该视频地址满足预设条件。In addition, when judging whether the video address includes a preset character string, it can be specifically determined whether the suffix of the video address is a preset character string, and when the suffix of the video address is not a preset character string, it is determined that the video address does not satisfy the The preset condition, when the suffix of the video address is a preset character string, it is determined that the video address satisfies the preset condition.

步骤306:该虚拟机根据该视频的视频标识,生成该视频的页面地址。Step 306: The virtual machine generates a page address of the video according to the video identifier of the video.

需要说明的是,步骤306可以由该虚拟机中安装的浏览器插件执行。It should be noted that step 306 may be performed by a browser plug-in installed in the virtual machine.

另外,该视频的页面地址可以指示该视频所在的页面的位置,即根据该视频的页面地址可以获取到该视频所在的页面,该页面中播放有该视频。此外,该页面中还可以包括有目标网页中用于播放该视频的播放器,此时该视频是在该页面中包括的该播放器的窗体中播放。In addition, the page address of the video may indicate the position of the page where the video is located, that is, the page where the video is located can be obtained according to the page address of the video, and the video is played on the page. In addition, the page may also include a player for playing the video in the target webpage, and at this time the video is played in the form of the player included in the page.

具体地,该虚拟机可以获取目标网页对应的构建规则;获取该构建规则中指示的多个构建元素,该多个构建元素中的一个构建元素为该视频的视频标识;按照该构建规则将该多个构建元素进行组合,得到该视频的页面地址。当然,也可以根据该视频的视频标识,以其它方式生成该视频的页面地址,本申请实施例对此不作限定。Specifically, the virtual machine can acquire the construction rule corresponding to the target web page; acquire a plurality of construction elements indicated in the construction rule, where one construction element of the plurality of construction elements is the video identifier of the video; according to the construction rule Multiple building elements are combined to obtain the page address of the video. Of course, the page address of the video may also be generated in other ways according to the video identifier of the video, which is not limited in this embodiment of the present application.

需要说明的是,目标网页对应的构建规则为构建目标网页中的视频的页面地址的规则。例如,目标网页对应的构建规则可以为“所在网站的域名/embed/视频标识”等。It should be noted that the construction rule corresponding to the target webpage is a rule for constructing the page address of the video in the target webpage. For example, the construction rule corresponding to the target web page may be "domain name of the website where it is located/embed/video ID" and the like.

另外,该构建规则中指示的多个构建元素为构建目标网页中的视频的页面地址所需的多个信息。例如,当该构建规则为“所在网站的域名/embed/视频标识”时,该构建规则指示的多个构建元素即为目标网页所在网站的域名、embed和该视频的视频标识。In addition, the plurality of construction elements indicated in the construction rule are pieces of information required to construct the page address of the video in the target web page. For example, when the construction rule is "domain name of the website where it is located/embed/video identifier", the multiple construction elements indicated by the construction rule are the domain name of the website where the target page is located, the embed, and the video identifier of the video.

其中,该虚拟机获取目标网页对应的构建规则时,可以根据目标网页所在网站的网站标识,从存储的网站标识与构建规则之间的对应关系中,获取对应的构建规则作为目标网页对应的构建规则。当然,也可以通过其它方式获取目标网页对应的构建规则,本申请实施例对此不作限定。Wherein, when the virtual machine acquires the construction rule corresponding to the target webpage, it can acquire the corresponding construction rule from the stored correspondence between the website identifier and the construction rule according to the website identifier of the website where the target webpage is located as the construction rule corresponding to the target webpage rule. Of course, the construction rule corresponding to the target webpage may also be obtained in other ways, which is not limited in this embodiment of the present application.

需要说明的是,网站的网站标识用于唯一标识该网站,如网站的网站标识可以为该网站的名称、域名等,本申请实施例对此不作限定。It should be noted that the website identifier of the website is used to uniquely identify the website. For example, the website identifier of the website may be the name, domain name, etc. of the website, which is not limited in this embodiment of the present application.

另外,当成功获取到目标网页对应的构建规则时,表明目标网页支持视频的页面地址的分享,此时可以根据该构建规则生成该视频的页面地址。当未获取到目标网页对应的构建规则时,表明目标网页不支持视频的页面地址的分享,此时可以结束操作。In addition, when the construction rule corresponding to the target webpage is successfully obtained, it indicates that the target webpage supports sharing of the page address of the video, and at this time, the page address of the video can be generated according to the construction rule. When the construction rule corresponding to the target webpage is not obtained, it indicates that the target webpage does not support sharing of the page address of the video, and the operation can be ended at this time.

步骤307:该虚拟机构建iframe标签,并将该视频的页面地址设置为该iframe标签的src属性值。Step 307: The virtual machine constructs an iframe tag, and sets the page address of the video as the value of the src attribute of the iframe tag.

需要说明的是,步骤307可以由该虚拟机中安装的浏览器插件执行。It should be noted that step 307 may be performed by a browser plug-in installed in the virtual machine.

另外,iframe标签用于创建包含另外一个文档的内联框架。iframe标签具有多个属性,其中iframe标签的src属性值为要显示的文档的文档地址,如可以为要显示的文档的URL。Additionally, the iframe tag is used to create an iframe that contains another document. The iframe tag has multiple attributes, wherein the value of the src attribute of the iframe tag is the document address of the document to be displayed, such as the URL of the document to be displayed.

步骤308:该虚拟机将该iframe标签发送给终端。Step 308: The virtual machine sends the iframe tag to the terminal.

需要说明的是,步骤308可以由该虚拟机中安装的浏览器插件执行。It should be noted that step 308 may be performed by a browser plug-in installed in the virtual machine.

值得注意的是,本申请实施例中该虚拟机不仅可以构建iframe标签并发送给终端,还可以获取该视频的窗口参数,将该视频的窗口参数发送给终端。以及,该虚拟机还可以接收网页服务器发送的登录信息,将该登录信息发送给终端。It is worth noting that in the embodiment of the present application, the virtual machine can not only construct an iframe tag and send it to the terminal, but also obtain the window parameters of the video, and send the window parameters of the video to the terminal. And, the virtual machine can also receive the login information sent by the web server, and send the login information to the terminal.

需要说明的是,该虚拟机获取该视频的窗口参数并发送给终端的操作可以由该虚拟机中安装的浏览器插件执行。该虚拟机接收网页服务器发送的登录信息并发送给终端的操作可以由该虚拟机中安装的浏览器执行。It should be noted that, the operation of the virtual machine acquiring the window parameters of the video and sending them to the terminal may be performed by a browser plug-in installed in the virtual machine. The operation of the virtual machine receiving the login information sent by the web server and sending it to the terminal may be performed by a browser installed in the virtual machine.

另外,窗口参数为用于播放该视频的视频窗口的相关参数,窗口参数用于对该视频窗口进行定位,如窗口参数可以包括窗口位置、窗口大小和遮挡信息等。实际应用中,该虚拟机可以定时或实时获取该视频的窗口参数,一旦发现该视频的窗口参数发生变化,就向终端发送变化后的窗口参数。In addition, the window parameter is a related parameter of the video window used to play the video, and the window parameter is used to locate the video window. For example, the window parameter may include window position, window size, and occlusion information. In practical applications, the virtual machine may acquire the window parameters of the video periodically or in real time, and once it is found that the window parameters of the video have changed, it will send the changed window parameters to the terminal.

再者,登录信息用于取得该视频的访问权限,登录信息是该虚拟机在访问网页服务器时所使用的用于辨别用户身份的信息,一般是该虚拟机在首次访问网页服务器时由网页服务器生成并发送给该虚拟机的。该登录信息可以为小型文本文件(cookies)等。实际应用中,为了保证该登录信息的安全性,可以先对该登录信息进行加密,再将加密后的该登录信息发送给终端。Furthermore, the login information is used to obtain the access authority of the video. The login information is the information used by the virtual machine to identify the user's identity when accessing the web server. Generally, the login information is used by the web server when the virtual machine accesses the web server for the first time. generated and sent to this virtual machine. The login information may be small text files (cookies) or the like. In practical applications, in order to ensure the security of the login information, the login information may be encrypted first, and then the encrypted login information is sent to the terminal.

值得注意的是,本发明实施例中该虚拟机在接收到网页服务器发送的目标网页的网页信息,可以不获取目标网页中的视频,仅根据目标网页的网页信息获取目标网页中除视频之外的其它网页内容并显示。It is worth noting that, in this embodiment of the present invention, when the virtual machine receives the webpage information of the target webpage sent by the webpage server, it may not obtain the video in the target webpage, but only obtains the video in the target webpage according to the webpage information of the target webpage. other web content and display it.

步骤309:终端接收该虚拟机发送的iframe标签。Step 309: The terminal receives the iframe tag sent by the virtual machine.

需要说明的是,步骤309可以由终端中安装的客户端执行。It should be noted that step 309 may be performed by a client installed in the terminal.

另外,该iframe标签的src属性值为目标网页中存在的视频的页面地址,该视频的页面地址是根据该视频的视频标识生成得到,该视频的视频标识是从目标网页的网页信息中获取得到。In addition, the src attribute value of the iframe tag is the page address of the video existing in the target web page, the page address of the video is generated according to the video ID of the video, and the video ID of the video is obtained from the web page information of the target web page .

步骤310:终端根据该iframe标签,获取目标网页中的视频并播放。Step 310: The terminal acquires and plays the video in the target webpage according to the iframe tag.

需要说明的是,步骤310可以由终端中安装的浏览器引擎执行。It should be noted that step 310 may be executed by a browser engine installed in the terminal.

具体地,终端可以生成携带有该iframe标签的src属性值的页面获取请求,该页面获取请求用于请求获取该iframe标签的src属性值指向的页面,该页面中播放有目标网页中的视频;将该页面获取请求发送给网页服务器;当接收到网页服务器发送的该页面的页面信息时,根据该页面的页面信息显示该页面。Specifically, the terminal may generate a page acquisition request carrying the src attribute value of the iframe tag, and the page acquisition request is used to request to acquire the page pointed to by the src attribute value of the iframe tag, and the video in the target webpage is played in the page; The page acquisition request is sent to the web server; when the page information of the page sent by the web server is received, the page is displayed according to the page information of the page.

值得说明的是,显示该页面后,该页面中就播放有目标网页中的视频。由于该页面中还可以包括有目标网页中用于播放该视频的播放器,且该视频是在该页面中包括的该播放器的窗体中播放的,所以终端可以直接通过该页面中的该播放器控制该视频的播放,这种情况下,对该视频进行重定向后的视频播放效果与原始视频的播放效果相同。It is worth noting that after the page is displayed, the video in the target page is played on the page. Since the page may also include a player for playing the video in the target webpage, and the video is played in the window of the player included in the page, the terminal can directly use the player in the page to play the video. The player controls the playback of the video. In this case, the playback effect of the redirected video is the same as the playback effect of the original video.

进一步地,终端可能会接收到该虚拟机发送的iframe标签,也可能会接收到该虚拟机发送的目标网页中的视频的视频地址,该视频的视频地址是从目标网页的网页信息中获取得到。当终端接收到该虚拟机发送的目标网页中的视频的视频地址时,可以根据该视频的视频地址,获取该视频并播放。Further, the terminal may receive the iframe tag sent by the virtual machine, and may also receive the video address of the video in the target webpage sent by the virtual machine, and the video address of the video is obtained from the webpage information of the target webpage. . When the terminal receives the video address of the video in the target webpage sent by the virtual machine, it can acquire and play the video according to the video address of the video.

需要说明的是,终端接收该虚拟机发送的目标网页中的视频的视频地址的操作可以由终端中安装的客户端执行,终端根据该视频的视频地址获取该视频并播放操作可以由终端安装的浏览器引擎来执行。It should be noted that the operation of the terminal receiving the video address of the video in the target web page sent by the virtual machine can be performed by the client installed in the terminal, and the terminal acquiring and playing the video according to the video address of the video can be installed by the terminal. browser engine to execute.

另外,当该视频的视频地址是目标网页的video标签的src属性值时,终端在接收到该虚拟机发送的目标网页中的视频的视频地址时,可以先创建HTML网页,并将该HTML网页的video标签的src属性值设置为该视频的视频地址,然后可以加载该HTML网页的网页内容,加载该HTML网页的网页内容即是根据该视频的视频地址获取该视频并播放。In addition, when the video address of the video is the value of the src attribute of the video tag of the target web page, when the terminal receives the video address of the video in the target web page sent by the virtual machine, it can first create an HTML web page, and upload the HTML web page to the terminal. The value of the src attribute of the video tag is set to the video address of the video, and then the webpage content of the HTML webpage can be loaded. Loading the webpage content of the HTML webpage is to obtain the video according to the video address of the video and play it.

其中,终端根据该视频的视频地址,获取该视频并播放时,可以生成携带有该视频的视频地址的视频获取请求;将该视频获取请求发送给网页服务器;当接收到网页服务器发送的该视频的视频数据时,根据该视频的视频数据播放该视频。Wherein, when the terminal acquires the video and plays it according to the video address of the video, it can generate a video acquisition request carrying the video address of the video; send the video acquisition request to the web server; when receiving the video sent by the web server When the video data of the video is displayed, the video is played according to the video data of the video.

值得注意的是,终端还可以接收该虚拟机发送的该视频的窗口参数,该窗口参数可以包括窗口位置、窗口大小和遮挡信息等。当终端接收到该虚拟机发送的该视频的窗口参数时,可以根据该窗口参数显示视频窗口。之后,终端在获取该视频并播放时,可以先获取该视频,再在该视频窗口中播放该视频。It is worth noting that the terminal can also receive window parameters of the video sent by the virtual machine, and the window parameters can include window position, window size, and occlusion information. When the terminal receives the window parameter of the video sent by the virtual machine, it can display the video window according to the window parameter. Afterwards, when the terminal acquires and plays the video, it can acquire the video first, and then play the video in the video window.

其中,终端根据该窗口参数显示视频窗口时,可以将该视频窗口的大小设置为该窗口参数中的窗口大小,将该视频窗口显示在该窗口参数中的窗口位置,并根据该窗口参数中的遮挡信息确定该视频窗口中被遮挡的部分,将该视频窗口中被遮挡的部分设置为透明状态。Wherein, when the terminal displays the video window according to the window parameter, the size of the video window can be set to the window size in the window parameter, and the video window is displayed at the window position in the window parameter, and according to the window parameter in the window parameter The occlusion information determines the occluded part in the video window, and sets the occluded part in the video window to a transparent state.

其中,终端在该视频窗口中播放该视频时,如果终端是根据该iframe标签的src属性值指向的页面的页面信息显示该页面,则可以将该页面在该视频窗口中进行显示,如果该终端是根据该视频的视频数据播放该视频,则可以将该视频在该视频窗口中进行播放。Wherein, when the terminal plays the video in the video window, if the terminal displays the page according to the page information of the page pointed to by the src attribute value of the iframe tag, the page can be displayed in the video window. If the video is played according to the video data of the video, the video can be played in the video window.

值得注意的是,终端还可以接收该虚拟机发送的登录信息,该登录信息用于取得视频的访问权限。当终端接收到该虚拟机发送的登录信息时,可以使用该登录信息从网页服务器中获取视频。具体地,终端在向网页服务器发送该页面获取请求或该视频获取请求的同时,可以将该登录信息也发送给网页服务器,以保证终端具有足够的权限访问网页服务器来获取视频。It is worth noting that the terminal can also receive the login information sent by the virtual machine, where the login information is used to obtain the access right of the video. When the terminal receives the login information sent by the virtual machine, it can use the login information to acquire the video from the web server. Specifically, while sending the page acquisition request or the video acquisition request to the web server, the terminal may also send the login information to the web server to ensure that the terminal has sufficient authority to access the web server to acquire videos.

另外,为了保证该登录信息的安全性,该登录信息可以采用加密传输,且在终端使用该登录信息从网页服务器中获取视频后,终端可以删除该登录信息。In addition, in order to ensure the security of the login information, the login information may be encrypted and transmitted, and after the terminal uses the login information to obtain the video from the web server, the terminal may delete the login information.

值得说明的是,本申请实施例中可以从目标网页的网页信息中尽可能的挖掘有效信息,据此来实现视频重定向。在对视频进行重定向后,可以减少虚拟桌面服务器的压力,减少资源占用,避免视频播放对虚拟桌面服务器的性能的影响,且由于终端是直接从网页服务器中获取视频,所以可以大大减少从该虚拟机到终端的传输带宽。并且,相比于相关技术中虚拟机要先对视频进行压缩再传输到终端的方式,本申请实施例可以避免压缩对视频质量的影响,保证视频的播放效果。It should be noted that, in the embodiment of the present application, effective information can be mined as much as possible from the webpage information of the target webpage, and video redirection can be realized accordingly. After the video is redirected, the pressure on the virtual desktop server can be reduced, the resource occupation can be reduced, and the impact of video playback on the performance of the virtual desktop server can be avoided. The transmission bandwidth from the virtual machine to the terminal. Moreover, compared with the way in which the virtual machine needs to compress the video first and then transmit it to the terminal in the related art, the embodiment of the present application can avoid the influence of the compression on the video quality, and ensure the playback effect of the video.

进一步地,考虑到终端的能力有限,为了避免视频播放对终端造成过大的压力,本申请实施例中还可以限制重定向的视频数量。具体地,可以在重定向的视频数量小于数量阈值时,向该虚拟机通知终端支持视频重定向,在重定向的视频数量大于或等于数量阈值时,向该虚拟机通知终端不支持视频重定向。其中,数量阈值可以预先进行设置。Further, considering the limited capability of the terminal, in order to avoid excessive pressure on the terminal caused by video playback, the number of redirected videos may also be limited in this embodiment of the present application. Specifically, when the number of redirected videos is less than the number threshold, the virtual machine may be notified that the terminal supports video redirection, and when the number of redirected videos is greater than or equal to the number threshold, the virtual machine may be notified that the terminal does not support video redirection . The number threshold can be set in advance.

进一步地,为了增强通用性,防止终端因不能连接外网而导致视频重定向失败,还可以增加代理服务器,终端可以通过代理服务器来从网页服务器中获取视频。Further, in order to enhance the versatility and prevent the video redirection failure due to the terminal being unable to connect to the external network, a proxy server can also be added, and the terminal can obtain the video from the web server through the proxy server.

在本申请实施例中,终端向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令,当该虚拟机接收到终端发送的目标网页的访问指令时,向网页服务器发送目标网页的网页请求。之后,该虚拟机接收网页服务器发送的目标网页的网页信息,当目标网页中存在视频时,从目标网页的网页信息中获取该视频的视频标识,再根据该视频的视频标识,生成该视频的页面地址,然后构建iframe标签,并将该视频的页面地址设置为该iframe标签的src属性值。之后,该虚拟机将该iframe标签发送给终端。当终端接收到该虚拟机发送的该iframe标签时,根据该iframe标签获取该视频并播放。由于本申请实施例是根据该视频的视频标识构建的iframe标签,所以终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。In the embodiment of the present application, the terminal sends an access instruction of the target webpage to the virtual machine installed in the virtual desktop server, and when the virtual machine receives the access instruction of the target webpage sent by the terminal, it sends the webpage request of the target webpage to the webpage server. After that, the virtual machine receives the webpage information of the target webpage sent by the webpage server, when there is a video in the target webpage, obtains the video identification of the video from the webpage information of the target webpage, and then generates the video identification of the video according to the video identification of the video. page address, then build the iframe tag and set the page address of the video to the value of the src attribute of the iframe tag. After that, the virtual machine sends the iframe tag to the terminal. When the terminal receives the iframe tag sent by the virtual machine, it acquires and plays the video according to the iframe tag. Since the embodiment of the present application is an iframe tag constructed according to the video identification of the video, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the video can be redirected successfully.

图4是本申请实施例提供的一种视频播放装置的结构示意图,该装置应用于虚拟桌面服务器中安装的虚拟机,该装置可以由软件、硬件或者两者的结合实现成为计算机设备的部分或者全部,当图2所示的计算机设备为虚拟桌面服务器时,该计算机设备可以为图2所示的计算机设备。参见图4,该装置包括:第一发送模块401、第一接收模块402、第一获取模块403、生成模块404、构建模块405和第二发送模块406。4 is a schematic structural diagram of a video playback device provided by an embodiment of the present application, the device is applied to a virtual machine installed in a virtual desktop server, and the device can be realized by software, hardware or a combination of the two as part of computer equipment or All, when the computer device shown in FIG. 2 is a virtual desktop server, the computer device may be the computer device shown in FIG. 2 . Referring to FIG. 4 , the apparatus includes: a first sending module 401 , a first receiving module 402 , a first obtaining module 403 , a generating module 404 , a building module 405 and a second sending module 406 .

第一发送模块401,用于执行图3实施例中的步骤302;a first sending module 401, configured to perform step 302 in the embodiment of FIG. 3;

第一接收模块402,用于执行图3实施例中的步骤303;a first receiving module 402, configured to perform step 303 in the embodiment of FIG. 3;

第一获取模块403,用于执行图3实施例中的步骤305;a first obtaining module 403, configured to perform step 305 in the embodiment of FIG. 3;

生成模块404,用于执行图3实施例中的步骤306;generating module 404, configured to perform step 306 in the embodiment of FIG. 3;

构建模块405,用于执行图3实施例中的步骤307;Building module 405, for performing step 307 in the embodiment of FIG. 3;

第二发送模块406,用于执行图3实施例中的步骤308。The second sending module 406 is configured to perform step 308 in the embodiment of FIG. 3 .

可选地,第一获取模块403包括:Optionally, the first obtaining module 403 includes:

第一获取单元,用于当目标网页中存在视频时,从网页信息中获取视频的视频地址;The first obtaining unit is used to obtain the video address of the video from the webpage information when there is a video in the target webpage;

第二获取单元,用于当视频地址不满足预设条件时,从网页信息中获取视频的视频标识。The second obtaining unit is configured to obtain the video identifier of the video from the webpage information when the video address does not meet the preset condition.

可选地,第一获取模块403还包括:Optionally, the first obtaining module 403 further includes:

第一确定单元,用于当网页信息中存在视频video标签时,确定目标网页中存在视频;a first determining unit, configured to determine that a video exists in the target webpage when there is a video tag in the webpage information;

相应地,第一获取单元用于:Correspondingly, the first acquisition unit is used to:

当网页信息中存在video标签时,获取video标签的src属性值作为视频的视频地址。When there is a video tag in the webpage information, the value of the src attribute of the video tag is obtained as the video address of the video.

可选地,第一获取模块403还包括:Optionally, the first obtaining module 403 further includes:

第二确定单元,用于当视频地址中不包括预设字符串时,确定视频地址不满足预设条件。The second determining unit is configured to determine that the video address does not meet the preset condition when the preset character string is not included in the video address.

可选地,第一获取模块403还包括:Optionally, the first obtaining module 403 further includes:

第三发送模块,用于当视频地址满足预设条件时,将视频地址发送给终端,由终端根据视频地址获取视频并播放。The third sending module is used for sending the video address to the terminal when the video address meets the preset condition, and the terminal obtains the video according to the video address and plays it.

可选地,生成模块404包括:Optionally, the generating module 404 includes:

第三获取单元,用于获取目标网页对应的构建规则;The third obtaining unit is used to obtain the construction rule corresponding to the target webpage;

第四获取单元,用于获取构建规则中指示的多个构建元素,多个构建元素中的一个构建元素为视频的视频标识;The fourth acquisition unit is used to acquire multiple construction elements indicated in the construction rule, and one construction element in the multiple construction elements is the video identification of the video;

组合单元,用于按照构建规则将多个构建元素进行组合,得到视频的页面地址。The combination unit is used to combine multiple construction elements according to the construction rules to obtain the page address of the video.

可选地,该装置还包括:Optionally, the device also includes:

第二获取模块,用于获取视频的窗口参数,窗口参数包括窗口位置、窗口大小和遮挡信息;The second acquisition module is used to acquire window parameters of the video, where the window parameters include window position, window size and occlusion information;

第四发送模块,用于将窗口参数发送给终端,由终端根据窗口参数显示视频窗口,视频窗口用于播放视频。The fourth sending module is used for sending the window parameters to the terminal, and the terminal displays the video window according to the window parameters, and the video window is used for playing the video.

可选地,该装置还包括:Optionally, the device also includes:

第二接收模块,用于接收网页服务器发送的登录信息;a second receiving module, configured to receive the login information sent by the web server;

第五发送模块,用于将登录信息发送给终端,登录信息用于取得视频的访问权限。The fifth sending module is used to send the login information to the terminal, and the login information is used to obtain the access right of the video.

在本申请实施例中,当虚拟桌面服务器中安装的虚拟机接收到终端发送的目标网页的访问指令时,向网页服务器发送目标网页的网页请求。之后,该虚拟机接收网页服务器发送的目标网页的网页信息,当目标网页中存在视频时,从目标网页的网页信息中获取该视频的视频标识,再根据该视频的视频标识,生成该视频的页面地址,然后构建iframe标签,并将该视频的页面地址设置为该iframe标签的src属性值。之后,该虚拟机将该iframe标签发送给终端,由终端根据该iframe标签获取该视频并播放。由于本申请实施例是根据该视频的视频标识构建的iframe标签,所以终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。In the embodiment of the present application, when the virtual machine installed in the virtual desktop server receives the access instruction of the target webpage sent by the terminal, it sends a webpage request of the target webpage to the webpage server. After that, the virtual machine receives the webpage information of the target webpage sent by the webpage server, when there is a video in the target webpage, obtains the video identification of the video from the webpage information of the target webpage, and then generates the video identification of the video according to the video identification of the video. page address, then build the iframe tag and set the page address of the video to the value of the src attribute of the iframe tag. After that, the virtual machine sends the iframe tag to the terminal, and the terminal acquires and plays the video according to the iframe tag. Since the embodiment of the present application is an iframe tag constructed according to the video identification of the video, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the video can be redirected successfully.

图5是本申请实施例提供的一种视频播放装置的结构示意图,该装置应用于终端,该装置可以由软件、硬件或者两者的结合实现成为计算机设备的部分或者全部,当图2所示的计算机设备为终端时,该计算机设备可以为图2所示的计算机设备。参见图5,该装置包括:发送模块501、第一接收模块502和第一播放模块503。FIG. 5 is a schematic structural diagram of a video playback device provided by an embodiment of the present application. The device is applied to a terminal, and the device can be implemented by software, hardware, or a combination of the two as part or all of computer equipment. When shown in FIG. 2 When the computer device is a terminal, the computer device may be the computer device shown in FIG. 2 . Referring to FIG. 5 , the apparatus includes: a sending module 501 , a first receiving module 502 and a first playing module 503 .

发送模块501,用于执行图3实施例中的步骤301;a sending module 501, configured to perform step 301 in the embodiment of FIG. 3;

第一接收模块502,用于执行图3实施例中的步骤309;a first receiving module 502, configured to perform step 309 in the embodiment of FIG. 3;

第一播放模块503,用于执行图3实施例中的步骤310。The first playing module 503 is configured to execute step 310 in the embodiment of FIG. 3 .

可选地,该装置还包括:Optionally, the device also includes:

第二接收模块,用于接收虚拟机发送的视频的视频地址,视频地址是从目标网页的网页信息中获取得到;The second receiving module is used for receiving the video address of the video sent by the virtual machine, and the video address is obtained from the webpage information of the target webpage;

第二播放模块,用于根据视频地址,获取视频并播放。The second playing module is used to obtain and play the video according to the video address.

可选地,该装置还包括:Optionally, the device also includes:

第三接收模块,用于接收虚拟机发送的视频的窗口参数,窗口参数包括窗口位置、窗口大小和遮挡信息;a third receiving module, configured to receive window parameters of the video sent by the virtual machine, where the window parameters include window position, window size and occlusion information;

显示模块,用于根据窗口参数显示视频窗口;The display module is used to display the video window according to the window parameters;

相应地,第一播放模块用于:Correspondingly, the first playback module is used for:

获取视频,并在视频窗口中播放视频。Get the video, and play the video in the video window.

可选地,该装置还包括:Optionally, the device also includes:

第四接收模块,用于接收虚拟机发送的登录信息,登录信息用于取得视频的访问权限;a fourth receiving module, configured to receive login information sent by the virtual machine, and the login information is used to obtain access rights to the video;

相应地,第一播放模块503包括:Correspondingly, the first playback module 503 includes:

生成单元,用于生成携带有iframe标签的src属性值的页面获取请求,页面获取请求用于请求获取iframe标签的src属性值指向的页面,页面中播放有视频;The generating unit is used to generate a page acquisition request carrying the src attribute value of the iframe tag, the page acquisition request is used to request to acquire the page pointed to by the src attribute value of the iframe tag, and a video is played in the page;

发送单元,用于向网页服务器发送页面获取请求和登录信息;a sending unit, configured to send a page acquisition request and login information to the web server;

显示单元,用于当接收到网页服务器发送的页面的页面信息时,根据页面的页面信息显示页面。The display unit is configured to display the page according to the page information of the page when receiving the page information of the page sent by the web server.

在本申请实施例中,终端向虚拟桌面服务器中安装的虚拟机发送目标网页的访问指令。然后终端接收该虚拟机发送的iframe标签,该iframe标签的src属性值为目标网页中存在的视频的页面地址,该页面地址是根据该视频的视频标识生成得到,该视频的视频标识是从目标网页的网页信息中获取得到。之后,终端根据该iframe标签获取该视频并播放。由于本申请实施例是根据该视频的视频标识构建的iframe标签,所以终端根据该iframe标签的src属性值能够成功获取到播放有该视频的页面,从而可以成功实现对该视频的重定向。In the embodiment of the present application, the terminal sends an access instruction of the target webpage to the virtual machine installed in the virtual desktop server. Then the terminal receives the iframe tag sent by the virtual machine, the src attribute value of the iframe tag is the page address of the video existing in the target webpage, the page address is generated according to the video ID of the video, and the video ID of the video is obtained from the target page It can be obtained from the webpage information of the webpage. After that, the terminal acquires the video according to the iframe tag and plays it. Since the embodiment of the present application is an iframe tag constructed according to the video identification of the video, the terminal can successfully obtain the page on which the video is played according to the src attribute value of the iframe tag, so that the video can be redirected successfully.

需要说明的是:上述实施例提供的视频播放装置在视频播放时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的视频播放装置与视频播放方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the video playback device provided by the above embodiments only uses the division of the above functional modules as an example to illustrate the video playback. In practical applications, the above functions can be allocated to different functional modules as required. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the video playback device and the video playback method provided by the above embodiments belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络或其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(Digital Subscriber Line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质,或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(Digital Versatile Disc,DVD))或半导体介质(例如:固态硬盘(Solid State Disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer may be a general purpose computer, special purpose computer, computer network or other programmable device. The computer instructions may be stored in or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server or data center Transmission is performed to another website site, computer, server or data center by wire (eg coaxial cable, optical fiber, Digital Subscriber Line, DSL) or wireless (eg infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server, a data center, etc. that includes one or more available media integrated. The available media may be magnetic media (eg: floppy disk, hard disk, magnetic tape), optical media (eg: Digital Versatile Disc (DVD)) or semiconductor media (eg: Solid State Disk (SSD)) Wait.

以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned examples provided for this application are not intended to limit this application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application. Inside.

Claims (18)

1. A video playing method is applied to a virtual machine installed in a virtual desktop server, and comprises the following steps:
when an access instruction of a target webpage sent by a terminal is received, sending a webpage request of the target webpage to a webpage server;
receiving webpage information of the target webpage sent by the webpage server;
when a video exists in the target webpage, acquiring a video address of the video from the webpage information, wherein the video address is used for indicating the position of the video;
when the video address does not meet a preset condition, acquiring a video identifier of the video from the webpage information; acquiring a construction rule corresponding to the target webpage, wherein the construction rule is a rule for constructing a page address of a video in the target webpage; acquiring a plurality of construction elements indicated in the construction rule, wherein one of the construction elements is a video identifier of the video; combining the plurality of construction elements according to the construction rules to obtain the page address of the video; constructing a floating frame iframe tag, and setting the page address as the src attribute value of the iframe tag; sending the iframe label to the terminal, and acquiring and playing the video by the terminal according to the iframe label;
when the video address meets the preset condition, the video address is sent to the terminal, and the terminal acquires and plays the video according to the video address;
the method further comprises the following steps:
and receiving login information sent by the webpage server in an encryption transmission mode, and sending the encrypted login information to the terminal, wherein the login information is used for acquiring the access right of the video.
2. The method of claim 1, wherein before obtaining the video address of the video from the web page information when the video exists in the target web page, further comprising:
when the video tag exists in the webpage information, determining that a video exists in the target webpage;
correspondingly, when a video exists in the target webpage, acquiring a video address of the video from the webpage information includes:
and when the video tag exists in the webpage information, acquiring the src attribute value of the video tag as the video address of the video.
3. The method of claim 2, wherein before obtaining the video identifier of the video from the web page information when the video address does not satisfy the preset condition, the method further comprises:
and when the video address does not comprise a preset character string, determining that the video address does not meet the preset condition.
4. The method of any of claims 1-3, wherein the method further comprises:
acquiring window parameters of the video, wherein the window parameters comprise window positions, window sizes and shielding information;
and sending the window parameters to the terminal, and displaying a video window by the terminal according to the window parameters, wherein the video window is used for playing the video.
5. A video playing method is applied to a terminal, and the method comprises the following steps:
sending an access instruction of a target webpage to a virtual machine installed in a virtual desktop server;
receiving encrypted login information sent by the virtual machine, wherein the login information is used for obtaining the access authority of the video;
receiving a floating frame iframe tag sent by the virtual machine, wherein the src attribute value of the iframe tag is a page address of a video existing in the target webpage, the page address is obtained by combining a plurality of construction elements indicated in the construction rules according to the acquired construction rules corresponding to the target webpage, the construction rules are rules for constructing the page address of the video in the target webpage, one of the plurality of construction elements is a video identifier of the video, and the video identifier of the video is acquired from webpage information of the target webpage; acquiring and playing the video according to the iframe label; or,
and receiving a video address of the video sent by the virtual machine, acquiring the video according to the video address of the video, and playing the video, wherein the video address is acquired from the webpage information of the target webpage, and the video address is used for indicating the position of the video.
6. The method of claim 5, wherein after sending the access instruction of the target webpage to the virtual machine installed in the virtual desktop server, further comprising:
receiving a video address of the video sent by the virtual machine, wherein the video address is obtained from webpage information of the target webpage;
and acquiring and playing the video according to the video address.
7. The method of claim 5 or 6, wherein after sending the access instruction of the target webpage to the virtual machine installed in the virtual desktop server, the method further comprises:
receiving window parameters of the video sent by the virtual machine, wherein the window parameters comprise window positions, window sizes and shielding information;
displaying a video window according to the window parameter;
correspondingly, the acquiring and playing the video comprises:
and acquiring the video and playing the video in the video window.
8. The method according to any one of claims 5-7, wherein the obtaining and playing the video according to the iframe tag comprises:
generating a page acquisition request carrying the src attribute value of the iframe tag, where the page acquisition request is used to request to acquire a page pointed by the src attribute value of the iframe tag, and the page is played with the video;
sending the page acquisition request and the login information to a webpage server;
and when receiving the page information of the page sent by the web server, displaying the page according to the page information of the page.
9. A video playing apparatus, applied to a virtual machine installed in a virtual desktop server, the apparatus comprising:
the first sending module is used for sending a webpage request of a target webpage to a webpage server when receiving an access instruction of the target webpage sent by a terminal;
the first receiving module is used for receiving the webpage information of the target webpage sent by the webpage server;
the first acquisition module is used for acquiring a video identifier of a video from the webpage information when the video exists in the target webpage;
the generating module is used for generating a page address of the video according to the video identifier of the video;
the building module is used for building a floating frame iframe label and setting the page address as the src attribute value of the iframe label;
the second sending module is used for sending the iframe label to the terminal, and the terminal acquires and plays the video according to the iframe label;
the device further comprises a module for acquiring a video address of the video from the webpage information when the video exists in the target webpage, wherein the video address is used for indicating the position of the video;
the device also comprises a module for acquiring the video identifier of the video from the webpage information when the video address does not meet the preset condition;
the device also comprises a module for sending the video address to the terminal when the video address meets the preset condition, and acquiring and playing the video by the terminal according to the video address;
the generation module comprises:
a third obtaining unit, configured to obtain a construction rule corresponding to the target webpage, where the construction rule is a rule for constructing a page address of a video in the target webpage;
a fourth obtaining unit, configured to obtain multiple construction elements indicated in the construction rule, where one of the multiple construction elements is a video identifier of the video;
the combination unit is used for combining the plurality of construction elements according to the construction rules to obtain the page address of the video;
the device further comprises:
the second receiving module is used for receiving the login information sent by the webpage server in an encryption transmission mode;
and the fifth sending module is used for sending the encrypted login information to the terminal, wherein the login information is used for obtaining the access authority of the video.
10. The apparatus of claim 9, wherein the first obtaining module further comprises:
the first determining unit is used for determining that the video exists in the target webpage when the video tag exists in the webpage information;
accordingly, the first obtaining unit is configured to:
and when the video tag exists in the webpage information, acquiring the src attribute value of the video tag as the video address of the video.
11. The apparatus of claim 10, wherein the first obtaining module further comprises:
a second determining unit, configured to determine that the video address does not satisfy the preset condition when a preset character string is not included in the video address.
12. The apparatus of any of claims 9-11, wherein the apparatus further comprises:
the second acquisition module is used for acquiring window parameters of the video, wherein the window parameters comprise window positions, window sizes and shielding information;
and the fourth sending module is used for sending the window parameters to the terminal, the terminal displays a video window according to the window parameters, and the video window is used for playing the video.
13. A video playing apparatus, applied to a terminal, the apparatus comprising:
the sending module is used for sending an access instruction of a target webpage to a virtual machine installed in the virtual desktop server;
a first receiving module, configured to receive a floating frame iframe tag sent by the virtual machine, where a src attribute value of the iframe tag is a page address of a video existing in the target webpage, the page address is obtained by combining, by the virtual machine, multiple construction elements indicated in the construction rules according to an acquired construction rule corresponding to the target webpage, the construction rule is a rule for constructing a page address of a video in the target webpage, one construction element of the multiple construction elements is a video identifier of the video, and the video identifier of the video is acquired from webpage information of the target webpage;
the first playing module is used for acquiring and playing the video according to the iframe label;
the apparatus also includes means for performing the steps of:
receiving a video address of the video sent by the virtual machine, and acquiring and playing the video according to the video address of the video, wherein the video address is acquired from webpage information of the target webpage, and the video address is used for indicating the position of the video;
the device further comprises:
and the fourth receiving module is used for receiving the encrypted login information sent by the virtual machine, wherein the login information is used for obtaining the access authority of the video.
14. The apparatus of claim 13, wherein the apparatus further comprises:
the second receiving module is used for receiving the video address of the video sent by the virtual machine, wherein the video address is obtained from the webpage information of the target webpage;
and the second playing module is used for acquiring and playing the video according to the video address.
15. The apparatus of claim 13 or 14, wherein the apparatus further comprises:
a third receiving module, configured to receive window parameters of the video sent by the virtual machine, where the window parameters include a window position, a window size, and occlusion information;
the display module is used for displaying the video window according to the window parameter;
accordingly, the first playing module is configured to:
and acquiring the video and playing the video in the video window.
16. The apparatus of any of claims 13-15, wherein the first playback module comprises:
a generating unit, configured to generate a page acquisition request carrying the src attribute value of the iframe tag, where the page acquisition request is used to request to acquire a page to which the src attribute value of the iframe tag points, and the page plays the video;
a sending unit, configured to send the page acquisition request and the login information to a web server;
and the display unit is used for displaying the page according to the page information of the page when receiving the page information of the page sent by the webpage server.
17. A computer-readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 1-4.
18. A computer-readable storage medium having stored therein instructions which, when executed on a computer, cause the computer to perform the method of any one of claims 5-8.
CN201811143452.XA 2018-09-28 2018-09-28 Video playback method, device and computer-readable storage medium Active CN109068153B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811143452.XA CN109068153B (en) 2018-09-28 2018-09-28 Video playback method, device and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811143452.XA CN109068153B (en) 2018-09-28 2018-09-28 Video playback method, device and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109068153A CN109068153A (en) 2018-12-21
CN109068153B true CN109068153B (en) 2020-10-16

Family

ID=64766570

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811143452.XA Active CN109068153B (en) 2018-09-28 2018-09-28 Video playback method, device and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109068153B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110381363A (en) * 2019-07-17 2019-10-25 深信服科技股份有限公司 Video encoding/decoding method, device, server and storage medium
CN112714365B (en) * 2019-10-25 2024-02-09 上海哔哩哔哩科技有限公司 Video playing method and system
CN111031293B (en) * 2019-11-29 2021-08-24 三一重工股份有限公司 Panoramic monitoring display method, device and system and computer readable storage medium
CN111131907B (en) * 2019-12-31 2022-03-22 广州市百果园信息技术有限公司 Live content introduction method and device, storage medium and equipment
CN111464874A (en) * 2020-04-15 2020-07-28 湖南麒麟信安科技有限公司 Method, system and medium for playing webpage video in cloud desktop
CN111526428B (en) * 2020-04-26 2022-04-26 湖南麒麟信安科技股份有限公司 Method, system and medium for realizing HTML5 video playing in cloud desktop
CN112437329B (en) * 2020-11-05 2024-01-26 上海幻电信息科技有限公司 Method, device and equipment for playing video and readable storage medium
CN114692027B (en) * 2020-12-29 2024-09-20 福建天泉教育科技有限公司 Method and terminal for restoring short link to long link
CN114329295A (en) * 2021-12-29 2022-04-12 杭州趣链科技有限公司 Video playback method, device, terminal device, and computer-readable storage medium
CN114885008A (en) * 2022-04-22 2022-08-09 广东悦伍纪网络技术有限公司 Device, system and method for calling local player to play by cloud application
CN115225951B (en) * 2022-07-21 2023-06-20 中国平安人寿保险股份有限公司 Video processing method, apparatus, computer device, and computer-readable storage medium
CN115633209A (en) * 2022-10-20 2023-01-20 阿里巴巴(中国)有限公司 Cloud desktop streaming media playing method, system, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761603A (en) * 2012-06-07 2012-10-31 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment
CN103685269A (en) * 2013-12-12 2014-03-26 Tcl集团股份有限公司 Method and system for both-way communication between web browser and server
CN103905927A (en) * 2012-12-26 2014-07-02 华为技术有限公司 Video redirection method, desktop server and system in virtual desktop scenario

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7941755B2 (en) * 2007-04-19 2011-05-10 Art Technology Group, Inc. Method and apparatus for web page co-browsing
CN101446954B (en) * 2008-11-25 2010-09-08 北京邮电大学 Wide area network crawler system for video websites
CN103281591B (en) * 2013-06-03 2016-04-20 贝壳网际(北京)安全技术有限公司 Method and device for playing flash video through browser and mobile terminal
US20150178819A1 (en) * 2013-12-23 2015-06-25 @Pay Ip Holdings Llc Alternative email-based website checkouts
CN104333813A (en) * 2014-08-28 2015-02-04 无锡天脉聚源传媒科技有限公司 Video playing method, device and system
CN107295415B (en) * 2016-04-12 2020-09-25 百度在线网络技术(北京)有限公司 Video playing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761603A (en) * 2012-06-07 2012-10-31 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment
CN103905927A (en) * 2012-12-26 2014-07-02 华为技术有限公司 Video redirection method, desktop server and system in virtual desktop scenario
CN103685269A (en) * 2013-12-12 2014-03-26 Tcl集团股份有限公司 Method and system for both-way communication between web browser and server

Also Published As

Publication number Publication date
CN109068153A (en) 2018-12-21

Similar Documents

Publication Publication Date Title
CN109068153B (en) Video playback method, device and computer-readable storage medium
US20230334111A1 (en) Application remoting across a network using draw commands
CN103905927B (en) Video redirection method, desktop server and system in virtual desktop scenario
US8868637B2 (en) Page rendering for dynamic web pages
KR102232900B1 (en) System for cloud streaming service, method of cloud streaming service using optumal gpu and apparatus for the same
CN103116645B (en) The method and device of browsing page by mobile equipment
WO2021082299A1 (en) Video playback method and device
WO2019024658A1 (en) Interface display method and apparatus
US10574703B1 (en) Content delivery employing multiple security levels
JP2022553996A (en) Video playback method, device, equipment and computer program
CN112269959B (en) Control method and device for display content, readable medium and electronic equipment
WO2017206396A1 (en) Video playing method and device
CN116584086A (en) Inline File Download Control in Remote Browser Isolation System
US11784887B1 (en) Bandwidth throttling
CN113541987B (en) A method and device for updating configuration data
CN104349177A (en) Method for turning to play multimedia file under desktop cloud, virtual machine and system
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN111783005B (en) Method, device and system for displaying web page, computer system and medium
CN115022725B (en) Video playback method and device
CN112015383B (en) A login method and device
CN105812839A (en) Video stream data acquisition method, page data transmission method, system and network server
WO2023098012A1 (en) Bullet comment display method and apparatus
US20140344283A1 (en) Method of server-based application hosting and streaming of video output of the application
CN117194068A (en) Cross-process data transmission method, system, equipment and storage medium
CN105607928A (en) Supporting method for browser kernel and webpage display method and apparatus

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220211

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221212

Address after: 518129 Huawei Headquarters Office Building 101, Wankecheng Community, Bantian Street, Longgang District, Shenzhen, Guangdong

Patentee after: Shenzhen Huawei Cloud Computing Technology Co.,Ltd.

Address before: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee before: Huawei Cloud Computing Technologies Co.,Ltd.