Nothing Special   »   [go: up one dir, main page]

CN109068153A - Video broadcasting method, device and computer readable storage medium - Google Patents

Video broadcasting method, device and computer readable storage medium Download PDF

Info

Publication number
CN109068153A
CN109068153A CN201811143452.XA CN201811143452A CN109068153A CN 109068153 A CN109068153 A CN 109068153A CN 201811143452 A CN201811143452 A CN 201811143452A CN 109068153 A CN109068153 A CN 109068153A
Authority
CN
China
Prior art keywords
video
address
page
webpage
terminal
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.)
Granted
Application number
CN201811143452.XA
Other languages
Chinese (zh)
Other versions
CN109068153B (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

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

This application discloses a kind of video broadcasting method, device and computer readable storage mediums, belong to field of computer technology.The described method includes: sending the web-page requests of target webpage to web page server when receiving the access instruction of target webpage of terminal transmission;Receive the webpage information for the target webpage that web page server is sent;When, there are when video, the video identifier of the video being obtained from the webpage information in target webpage;According to the video identifier of the video, the page address of the video is generated;Iframe label is constructed, and sets the page address to the src attribute value of the iframe label;The iframe label is sent to terminal, the video is obtained according to the iframe label by terminal and is played.Terminal can successfully get the page for playing and having the video according to the src attribute value of the iframe label in the application, so as to successfully realize the redirection to the video.

Description

Video broadcasting method, device and computer readable storage medium
Technical field
This application involves field of computer technology, in particular to a kind of video broadcasting method, device and computer-readable deposit Storage media.
Background technique
Virtual desktop can provide the remote computer desktop services of deployment beyond the clouds for user, and virtualization can be used Server virtual is turned to more virtual machines by technology, and operating system needed for operation user and application are soft in each virtual machine Part, user can log in virtual machine in terminal and access resources of virtual machine.Under virtual desktop, virtual machine plays a large amount of when video Resources of virtual machine is occupied, virtual machine is also larger to the occupancy of the resource of server at this time, thus leads to virtual machine and server Performance declined, therefore, to video redirect for promoted virtual desktop experience have great significance.
Currently, when being redirected to video, the available hypertext markup language to be loaded of virtual machine The src attribute value of video (video) label of (HyperText Markup Language, HTML) webpage is as the HTML net The video address of video present in page, is then sent to terminal for the video address.It, can after terminal receives the video address To obtain the video according to the video address and play, to complete video redirection.
However, the src attribute value of the video label of html web page is typically all interim two be converted to after encryption The address system blob (binary large object, blob), i.e. the src attribute value of the video label of html web page are usual It is not the true address of video, thus terminal can not often get video according to the src attribute value of the video label, thus Successfully video can not be redirected.
Summary of the invention
This application provides a kind of video broadcasting method, device and computer readable storage mediums, can solve related skill The problem of successfully video can not be redirected in art.The technical solution is as follows:
In a first aspect, a kind of video broadcasting method is provided, applied to the virtual machine installed in virtual desktop server, institute The method of stating includes:
When receiving the access instruction of target webpage of terminal transmission, the target webpage is sent to web page server Web-page requests;Receive the webpage information for the target webpage that the web page server is sent;Exist when in the target webpage When video, the video identifier of the video is obtained from the webpage information;According to the video identifier of the video, described in generation The page address of video;Floating frame (iframe) label is constructed, and sets the iframe label for the page address Src attribute value;The iframe label is sent to the terminal, institute is obtained according to the iframe label by the terminal It states video and plays.
It should be noted that the page address of the video can indicate the position of the page where the video, i.e. basis should The available page to where the video in the page address of video, playing in the page has the video.In addition, in the page also It may include having for playing the player of the video in target webpage, the video is the broadcasting for including in the page at this time It is played in the forms of device.
In addition, iframe label is for creating the inline frame comprising another document.Iframe label has multiple Attribute, wherein the src attribute value of iframe label is the address of document of document to be shown.
In the embodiment of the present application, due to the virtual machine be according to the video identifier of the video building iframe label simultaneously It is sent to terminal, so terminal, which can successfully get broadcasting according to the src attribute value of the iframe label received, to be had The page of the video, so as to successfully realize the redirection to the video.
Wherein, described when, there are when video, the view of the video being obtained from the webpage information in the target webpage Frequency marking is known, comprising: when there are with when video, obtaining the video of the video from the webpage information in the target webpage Location;When the video address is unsatisfactory for preset condition, the video identifier of the video is obtained from the webpage information.
Further, when the video address meets the preset condition, the video address is sent to the end End is obtained the video according to the video address by the terminal and is played.
It should be noted that the video address of the video can indicate the position of the video, i.e., according to the video of the video The available video in address.
In addition, preset condition can be configured in advance, and preset condition is for judging to obtain from webpage information Video address whether be true address condition, be for judging whether according to the video address that obtains from webpage information Enough conditions for successfully getting video.
In the embodiment of the present application, when the video address is unsatisfactory for preset condition, it is true for showing the video address not Address, the video identifier of the available video of the virtual machine at this time, to accordingly generate the page address of the video.And work as the view When frequency address meets preset condition, show that the video address is true address, the virtual machine can send out the video address at this time Terminal is given, so that terminal directly acquires the video according to the video address and plays.
Further, described when, there are when video, the video being obtained from the webpage information in the target webpage Video address before, further includes: when, there are when video label, determining and exist in the target webpage in the webpage information Video.Correspondingly, described when, there are when video, the video of the video being obtained from the webpage information in the target webpage Address, comprising: when there are when video label, obtain the src attribute value of the video label as institute in the webpage information State the video address of video.
It should be noted that video label for defining video, such as defines vidclip or other video flowings.Video mark Label have multiple attributes, and wherein the src attribute value of video label is the video address for the video to be played.
In the embodiment of the present application, which can quickly judge target webpage according to the presence or absence of video label In whether there is video, and when in target webpage there are when video, can be according in video label quick obtaining target webpage Video, so as to improve the speed of video redirection.
Further, described when the video address is unsatisfactory for preset condition, from the webpage information described in acquisition Before the video identifier of video, further includes: when in the video address not including preset characters string, determine the video address It is unsatisfactory for the preset condition.When the video address includes preset characters string, determine that the video address meets default item Part.
Wherein, when whether judging in the video address including preset characters string, it can be determined that after the video address Whether be preset characters string, when the suffix of the video address is not preset characters string, determine that the video address is discontented if sewing Sufficient preset condition determines that the video address meets preset condition when the suffix of the video address is preset characters string.
Wherein, the video identifier according to the video, generates the page address of the video, comprising: described in acquisition The corresponding building rule of target webpage;Obtain the multiple building elements indicated in the building rule, the multiple building element In one building element be the video video identifier;The multiple building element is subjected to group according to the building rule It closes, obtains the page address of the video.
It should be noted that the corresponding building rule of target webpage is the page address of the video in building target webpage Rule.
In addition, page address institute of the multiple building elements indicated in building rule for the video in building target webpage The multiple information needed.
It is worth noting that, when the virtual machine successfully get the corresponding building of target webpage it is regular when, show target network Page supports the sharing of the page address of video, can generate the page address of the video according to the building rule at this time.When the void Quasi- machine have not been obtained the corresponding building of target webpage it is regular when, show that target webpage does not support the sharing of the page address of video, It at this time can be with end operation.
Further, the method also includes: obtain the window parameter of the video, the window parameter includes window position It sets, window size and block information;The window parameter is sent to the terminal, by the terminal according to the window parameter Show video window, the video window is for playing the video.
In the embodiment of the present application, which timing or can obtain in real time the window parameter of the video, once discovery The window parameter of the video changes, just to terminal send variation after window parameter, so as to terminal can be according to variation after Window parameter quickly adjust the video window for playing the video.
Further, the method also includes: receive the log-on message that the web page server sends;The login is believed Breath is sent to the terminal, and the log-on message is used to obtain the access authority of the video.
It should be noted that log-on message is used to obtain the access authority of the video, log-on message is that the virtual machine is being visited Ask that the used information for being used to distinguish user identity, the usually virtual machine are accessing web service for the first time when web page server It is generated and sent by web page server to the virtual machine when device.In practical application, in order to guarantee the safety of the log-on message, First the log-on message can be encrypted, then the encrypted log-on message is sent to terminal.
In the embodiment of the present application, which can be sent to log-on message terminal, this can be used in terminal at this time Log-on message obtains video from web page server, thereby may be ensured that there is terminal enough permissions to access web page server Video is obtained, and then the success rate of video redirection can be improved.
Second aspect provides a kind of video broadcasting method, is applied to terminal, which comprises
The virtual machine installed into virtual desktop server sends the access instruction of target webpage;Receive the virtual machine hair The iframe label sent, the src attribute value of the iframe label are the page address of video present in the target webpage, The page address is to generate to obtain according to the video identifier of the video, and the video identifier of the video is from the target network It is acquired in the webpage information of page;According to the iframe label, obtains the video and play.
In the embodiment of the present application, the virtual machine that terminal is installed into virtual desktop server sends the access of target webpage Instruction.Then terminal receives the iframe label of virtual machine transmission, and the src attribute value of the iframe label is in target webpage The page address of existing video, the page address are to generate to obtain according to the video identifier of the video, the video mark of the video Knowledge is acquired from the webpage information of target webpage.Later, terminal obtains the video according to the iframe label and plays. Since the embodiment of the present application is the iframe label constructed according to the video identifier of the video, so terminal is marked according to the iframe The src attribute value of label can successfully get the page for playing and having the video, reset so as to successfully realize to the video To.
Further, the virtual machine installed into virtual desktop server send target webpage access instruction it Afterwards, further includes: receive the video address for the video that the virtual machine is sent, the video address is from the target webpage Webpage information in acquire;According to the video address, obtains the video and play.
In the embodiment of the present application, terminal can not only obtain video and be played according to the iframe label received, Video can also be obtained according to the video address received and is played, to improve the flexibility of video acquisition, Jin Erti The success rate that high video redirects.
Further, the virtual machine installed into virtual desktop server send target webpage access instruction it Afterwards, further includes: receive the window parameter for the video that the virtual machine is sent, the window parameter includes the window's position, window Mouth size and block information;Video window is shown according to the window parameter.It is correspondingly, described to obtain the video and play, It include: to obtain the video, and the video is played in the video window.
Wherein, when terminal shows video window according to the window parameter, which can be dimensioned to this The video window is shown the window's position in the window parameter, and is joined according to the window by the window size in window parameter Block information in number determines the part being blocked in the video window, sets the part being blocked in the video window to Bright state.
Further, the virtual machine installed into virtual desktop server send target webpage access instruction it Afterwards, further includes: receive the log-on message that the virtual machine is sent, the log-on message is used to obtain the access right of the video Limit;Correspondingly, described according to the iframe label, it obtains the video and plays, comprising: generation carries the iframe The page access request of the src attribute value of label, src of the page access request for iframe label described in request The page that attribute value is directed toward, playing in the page has the video;To web page server send the page access request and The log-on message;When receiving the page info for the page that the web page server is sent, according to the page Page info shows the page.
In the embodiment of the present application, when terminal receives the log-on message of virtual machine transmission, login letter can be used Breath obtains video from web page server, thereby may be ensured that there is terminal enough permissions access web page server to obtain view Frequently, and then the success rate that video redirects can be improved.Also, for the safety for guaranteeing the log-on message, the log-on message Encrypted transmission can be used, and uses the log-on message after obtaining video in web page server in terminal, terminal can delete The log-on message.
The third aspect provides a kind of video play device, and the video play device, which has, realizes above-mentioned first aspect The function of middle video broadcasting method behavior.The video play device includes at least one module, at least one described module is used The video broadcasting method provided by the above-mentioned first aspect of realization.
Fourth aspect provides a kind of video play device, and the video play device, which has, realizes above-mentioned second aspect The function of middle video broadcasting method behavior.The video play device includes at least one module, at least one described module is used The video broadcasting method provided by the above-mentioned second aspect of realization.
5th aspect, provides a kind of video play device, include in the structure of the video play device processor and Memory, the memory support video play device to execute video broadcasting method provided by above-mentioned first aspect for storing Program, and storage for realizing data involved in video broadcasting method described in above-mentioned first aspect.The processor It is configurable for executing the program stored in the memory.The video play device can also include communication bus, institute Communication bus is stated for establishing connection between the processor and the memory.
6th aspect, provides a kind of video play device, include in the structure of the video play device processor and Memory, the memory support video play device to execute video broadcasting method provided by above-mentioned second aspect for storing Program, and storage for realizing data involved in video broadcasting method described in above-mentioned second aspect.The processor It is configurable for executing the program stored in the memory.The video play device can also include communication bus, institute Communication bus is stated for establishing connection between the processor and the memory.
7th aspect, provides a kind of computer readable storage medium, is stored in the computer readable storage medium Instruction, when run on a computer, so that computer executes video broadcasting method described in above-mentioned first aspect.
Eighth aspect provides a kind of computer readable storage medium, is stored in the computer readable storage medium Instruction, when run on a computer, so that computer executes video broadcasting method described in above-mentioned second aspect.
9th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes video broadcasting method described in above-mentioned first aspect.
Tenth aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that Computer executes video broadcasting method described in above-mentioned second aspect.
The above-mentioned third aspect, the 5th aspect, the 7th aspect and the 9th aspect technical effect obtained and above-mentioned first party The technical effect that corresponding technological means obtains in face is approximate, repeats no more herein.
Above-mentioned fourth aspect, the 6th aspect, eighth aspect and the tenth aspect technical effect obtained and above-mentioned second party The technical effect that corresponding technological means obtains in face is approximate, repeats no more herein.
Technical solution provided by the present application can at least be brought following the utility model has the advantages that installing in the virtual desktop server When virtual machine receives the access instruction of the target webpage of terminal transmission, the webpage for sending target webpage to web page server is asked It asks.Later, which receives the webpage information for the target webpage that web page server is sent, when there are videos in target webpage When, the video identifier of the video is obtained from the webpage information of target webpage, further according to the video identifier of the video, generates the view Then the page address of frequency constructs iframe label, and the src that the page address of the video is set as the iframe label is belonged to Property value.Later, which is sent to terminal for the iframe label, obtains the video simultaneously according to the iframe label by terminal It plays.Since the embodiment of the present application is the iframe label constructed according to the video identifier of the video, so terminal is according to this The src attribute value of iframe label can successfully get the page for playing and having the video, so as to successfully realize to the view The redirection of frequency.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of virtual desktop system provided by the embodiments of the present application;
Fig. 2 is a kind of structural schematic diagram of computer equipment provided by the embodiments of the present application;
Fig. 3 is a kind of flow chart of video broadcasting method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of video play device provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of another video play device provided by the embodiments of the present application.
Specific embodiment
Implementation to keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application Mode is described in further detail.
Before to the embodiment of the present application carrying out that explanation is explained in detail, to the invention relates to application scenarios and System architecture is explained.
Firstly, the application scenarios to the embodiment of the present application are illustrated.
Virtual desktop is a kind of typical cloud computing application, and the remote computer table of deployment beyond the clouds can be provided for user Face service, specifically turns to more virtual machines for server virtual using virtualization technology, and runs and use in each virtual machine Operating system needed for family and application software, user can log in virtual machine in terminal and access resources of virtual machine.Due to virtual All business are handled in virtual machine in desktop, so virtual desktop is at every moment all in the money for consuming server Video playing in source, especially virtual desktop is quite big to the resource consumption of server, it is more likely that will affect server Performance, therefore, redirecting to video has great significance for the experience for promoting virtual desktop.The embodiment of the present application is just It is redirected in scene applied to the video under virtual desktop.
Secondly, the system architecture to the embodiment of the present application is illustrated.
Fig. 1 is a kind of structural schematic diagram of virtual desktop system provided by the embodiments of the present application.Referring to Fig. 1, the virtual table Plane system includes: virtual desktop server 110 and terminal 120.It can pass through between virtual desktop server 110 and terminal 120 Desktop protocol is communicated, which can be Remote Desktop Protocol (Remote Desktop Protocol, RDP) etc., The embodiment of the present application is not construed as limiting this.
Virtual desktop server 110 can provide the software runtime environment and virtual machine control platform of virtual machine, virtual machine For providing virtual desktop environment, virtual desktop serve can be installed to handle the operation system of client and virtual machine in virtual machine Interacting message between system, and the message of the operating system is received desktop is presented.Virtual desktop server 110 can be one Server, or the server cluster of multiple server compositions, the embodiment of the present application are not construed as limiting this.
The virtual desktop environment that virtual machine in the accessible virtual desktop server 110 of terminal 120 provides, terminal 120 In client can be installed to receive and handle desktop protocol message.Terminal 120 can be personal computer (personal Computer, PC), thin client (thin client, TC), Android (Android) system equipment, ios system equipment etc., this Application embodiment is not construed as limiting this.
Wherein, virtual machine 111 is installed in virtual desktop server 110, can be equipped in virtual machine 111 browser and Browser plug-in.Browser can call browser plug-in to carry out video redirection, specifically, browse when opening webpage Device plug-in unit can first judge with the presence or absence of video in the webpage, if there are videos in the webpage, believe from the webpage of the webpage The video identifier of the video is obtained in breath, and generates the page address of the video according to the video identifier of the video, by the page Face address is sent to terminal 120.
Wherein, client 121 and browser engine 122 are installed in terminal 120.Client 121 receives virtual desktop When the page address that the virtual machine 111 installed in server 110 is sent, browser engine 122 can be called to obtain video, had Body, browser engine 122 can obtain the page and be shown according to the page address, which wherein plays after showing view Frequently.In addition, can also include output equipment (such as display) in terminal 120, showing desktop contents, and can wrap Input equipment (such as mouse, keyboard) is included, to carry out user's input.
Fig. 2 is a kind of structural schematic diagram of computer equipment provided by the embodiments of the present application, which can be Virtual desktop server 110 or terminal 120 shown in Fig. 1.Referring to fig. 2, which includes at least one processor 201, communication bus 202, memory 203 and at least one communication interface 204.
Processor 201 can be general central processor (Central Processing Unit, CPU), micro process Device, application-specific integrated circuit (application-specific integrated circuit, ASIC), or can be One or more is for controlling the integrated circuit of application scheme program execution.
Communication bus 202 may include an access, for transmitting information between said modules.
Memory 203 can be read-only memory (read-only memory, ROM) or can store static information and instruction Other types of static storage device, be also possible to random access memory (random access memory, RAM) or The other types of dynamic memory that information and instruction can be stored, is also possible to Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), CD-ROM (Compact Disc Read-Only Memory, CD-ROM) or other optical disc storages, optical disc storage (including compression optical disc, laser disc, light Dish, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium perhaps other magnetic storage apparatus or can be used for carrying Storage have instruction or data structure form desired program code and can by any other medium of computer access, But not limited to this.Memory 203, which can be, to be individually present, and is connected by communication bus 202 with processor 201.Memory 203 can also integrate with processor 201.
Communication interface 204 using any transceiver one kind device, be used for other equipment or communication, such as with Too net, wireless access network (Radio Access Network, RAN), WLAN (Wireless Local Area Networks, WLAN) etc..
In the concrete realization, as one embodiment, processor 201 may include one or more CPU, such as institute in Fig. 2 The CPU0 and CPU1 shown.
In the concrete realization, as one embodiment, computer equipment may include multiple processors, as shown in Figure 2 Processor 201 and processor 205.Each of these processors can be a single core processor (single-CPU), It is also possible to a multi-core processor (multi-CPU).Here processor can refer to one or more equipment, circuit, and/or For handling the processing core of data (such as computer program instructions).
In the concrete realization, as one embodiment, computer equipment can also include output equipment 206 and input equipment 207.Output equipment 206 and processor 201 communicate, and can show information in many ways.For example, output equipment 206 can be with It is liquid crystal display (liquid crystal display, LCD), Light-Emitting Diode (light emitting diode, LED) Show that equipment, cathode-ray tube (cathode ray tube, CRT) show equipment or projector (projector) etc..Input is set It is communicated for 207 and processor 201, the input of user can be received in many ways.For example, input equipment 207 can be mouse, Keyboard, touch panel device or sensing equipment etc..
Above-mentioned computer equipment can be a general purpose computing device or a dedicated computing machine equipment.Specific real In existing, computer equipment can be desktop computer, portable computer, network server, palm PC (Personal Digital Assistant, PDA), cell phone, tablet computer, wireless terminal device, communication equipment or embedded device, the application implemented The unlimited type for determining computer equipment of example.
Wherein, memory 203 is used to store the program code 210 for executing application scheme, and processor 201 is deposited for executing The program code 210 stored in reservoir 203.The computer equipment can pass through the program in processor 201 and memory 203 Code 210, to realize the video broadcasting method of following FIG. 3 embodiment offer.
It is worth noting that, terminal can be used first before executing video broadcasting method provided by the embodiments of the present application Desktop protocol is connected to the virtual machine in virtual desktop server, and the virtual machine can provide virtual desktop ring at this time for terminal Border can install browser and browser plug-in to realize video redirecting technique later in the virtual machine.Also, terminal It can notify that the facility information of terminal, the facility information may include that terminal type (can be come with operating system to the virtual machine Divide), whether support video redirect etc..It, can be by provided by the embodiments of the present application when terminal supports video redirects Video broadcasting method come realize the video under virtual desktop redirect.
Fig. 3 is a kind of flow chart of video broadcasting method provided by the embodiments of the present application, and this method is applied to shown in FIG. 1 In virtual desktop system.Referring to Fig. 3, this method comprises:
Step 301: the virtual machine that terminal is installed into virtual desktop server sends the access instruction of target webpage.
It should be noted that step 301 can be by the client executing installed in terminal.
It in addition, target webpage can be html web page, such as can be HTML5 webpage, the embodiment of the present application does not make this It limits.
Furthermore the access instruction of target webpage, which is used to indicate, accesses to target webpage, the access instruction of target webpage It can be triggered by user, user can be triggered by operations such as mouse action, keyboard operations.
Step 302: when the virtual machine receives the access instruction of the target webpage of terminal transmission, being sent out to web page server Send the web-page requests of target webpage.
It should be noted that step 302 can be executed by the browser installed in the virtual machine.
It can be in addition, the web-page requests of target webpage are used for request target webpage, in the web-page requests of target webpage The web page address for carrying target webpage, can such as carry uniform resource locator (the Uniform Resource of target webpage Locator, URL) etc..
Furthermore after web page server receives the web-page requests of target webpage, the webpage information of available target webpage And the webpage information of target webpage is returned into the virtual machine.
Step 303: the virtual machine receives the webpage information for the target webpage that web page server is sent.
It should be noted that step 303 can be executed by the browser installed in the virtual machine.
In addition, the webpage information of target webpage includes the relevant information of all the elements in target webpage, such as may include The relevant information of the contents such as text, picture, music in target webpage.
It is worth noting that, this is clear after the browser installed in the virtual machine gets the webpage information of target webpage Device of looking at can call the browser plug-in installed in the virtual machine to carry out video redirection, specifically can be as follows 304- step 308 is realized.
Step 304: the virtual machine judges in target webpage with the presence or absence of video.
It should be noted that step 304 can be executed by the browser plug-in installed in the virtual machine.
Specifically, which may determine that in the webpage information of target webpage with the presence or absence of video label;Work as target network There are when video label in the webpage information of page, determine that there are videos in target webpage;When in the webpage information of target webpage not There are when video label, determine that there is no videos in target webpage.It is of course also possible to judge target webpage otherwise In whether there is video, the embodiment of the present application is not construed as limiting this.
It should be noted that video label for defining video, such as defines vidclip or other video flowings.Video mark Label have multiple attributes, and wherein the src attribute value of video label is the video address for the video to be played, and such as can be to broadcast The URL for the video put.
Step 305: when, there are when video, which obtains the view from the webpage information of target webpage in target webpage The video identifier of frequency.
It should be noted that step 305 can be executed by the browser plug-in installed in the virtual machine.
In addition, the video identifier of the video is used for the unique identification video, the video identifier of the video can be from target network It obtains, can also be obtained from the web page code of target webpage, the embodiment of the present application is not construed as limiting this in the web page address of page.
Specifically, when, there are when video, which can be directly from the webpage information of target webpage in target webpage Obtain the video identifier of the video;Alternatively, when, there are when video, which can be first from the net of target webpage in target webpage Obtain the video address of the video in page information, then judge whether the video address meets preset condition, when the video address not When meeting preset condition, the video identifier of the video is obtained from the webpage information of target webpage.
Further, when the video address meets preset condition, which can be sent to end for the video address End.
It should be noted that the video address of the video can indicate the position of the video, i.e., according to the video of the video The available video in address.
In addition, preset condition can be configured in advance, and preset condition is for judging to obtain from webpage information Video address whether be true address condition, be for judging whether according to the video address that obtains from webpage information Enough conditions for successfully getting video.
Furthermore when the video address is unsatisfactory for preset condition, show that the video address is not true address, it at this time can be with The video identifier of the video is obtained, to accordingly generate the page address of the video.And when the video address meets preset condition, Show that the video address is true address, the video address can be sent to terminal at this time, according to the video for terminal Location directly acquires the video and plays.
Wherein, when, there are when video, which obtains the video from the webpage information of target webpage in target webpage The operation of video address can be with are as follows: when, there are when video label, obtaining the video label in the webpage information of target webpage Video address of the src attribute value as the video.
Wherein, the virtual machine judge whether the video address meets the operation of preset condition can be with are as follows: virtual machine judgement It whether include preset characters string in the video address;When in the video address not including preset characters string, with determining the video Location is unsatisfactory for preset condition;When the video address includes preset characters string, determine that the video address meets preset condition.
It should be noted that preset characters string can be configured in advance, if preset characters string can be video type, depending on Frequency type may include Audio Video Interleaved (audio video interleaved, avi) type, Motion Picture Experts Group (Motion Picture Experts Group, MPEG) 4 types etc..
In addition, when whether judging in the video address including preset characters string, after specifically may determine that the video address Whether be preset characters string, when the suffix of the video address is not preset characters string, it is pre- to determine that the video address is unsatisfactory for if sewing If condition, when the suffix of the video address is preset characters string, determine that the video address meets preset condition.
Step 306: the virtual machine generates the page address of the video according to the video identifier of the video.
It should be noted that step 306 can be executed by the browser plug-in installed in the virtual machine.
In addition, the page address of the video can indicate the position of the page where the video, i.e., according to the page of the video The available page to where the video in face address, playing in the page has the video.In addition, can also include in the page Have for playing the player of the video in target webpage, the video is the forms for the player for including in the page at this time Middle broadcasting.
Specifically, the corresponding building rule of the available target webpage of the virtual machine;It obtains and is indicated in building rule Multiple building elements, multiple building element constructed in element are the video identifier of the video;According to building rule Multiple building element is combined, the page address of the video is obtained.It is of course also possible to according to the video mark of the video Know, generates the page address of the video in other ways, the embodiment of the present application is not construed as limiting this.
It should be noted that the corresponding building rule of target webpage is the page address of the video in building target webpage Rule.For example, the corresponding building rule of target webpage can be " domain name of place website/embed/ video identifier " etc..
In addition, page address institute of the multiple building elements indicated in building rule for the video in building target webpage The multiple information needed.For example, when the building rule is " domain name of place website/embed/ video identifier ", building rule The multiple building elements indicated are the video identifier of the domain name of website where target webpage, embed and the video.
It wherein, can be according to website where target webpage when the corresponding building of virtual machine acquisition target webpage is regular Website logo obtains corresponding building rule and is used as mesh from the corresponding relationship between the website logo and building rule of storage Mark the corresponding building rule of webpage.It is of course also possible to obtain the corresponding building rule of target webpage, the application otherwise Embodiment is not construed as limiting this.
It should be noted that the website logo of website is used for the unique identification website, as the website logo of website can be Title, domain name of the website etc., the embodiment of the present application is not construed as limiting this.
In addition, when successfully get the corresponding building of target webpage it is regular when, show that target webpage supports the page of video The sharing of address can generate the page address of the video according to the building rule at this time.It is corresponding when target webpage has not been obtained Building rule when, show that target webpage does not support the sharing of the page address of video, at this time can be with end operation.
Step 307: the virtual machine constructs iframe label, and sets the iframe label for the page address of the video Src attribute value.
It should be noted that step 307 can be executed by the browser plug-in installed in the virtual machine.
In addition, iframe label is for creating the inline frame comprising another document.Iframe label has multiple Attribute, wherein the src attribute value of iframe label is the address of document of document to be shown, as that can be document to be shown URL。
Step 308: the iframe label is sent to terminal by the virtual machine.
It should be noted that step 308 can be executed by the browser plug-in installed in the virtual machine.
It is worth noting that, the virtual machine can not only construct iframe label and be sent to end in the embodiment of the present application End, can also obtain the window parameter of the video, the window parameter of the video is sent to terminal.And the virtual machine may be used also To receive the log-on message of web page server transmission, which is sent to terminal.
It should be noted that obtain the window parameter of the video and be sent to the operation of terminal can be by the void for the virtual machine The browser plug-in installed in quasi- machine executes.The virtual machine receives the log-on message that web page server is sent and is sent to terminal Operation can be executed by the browser installed in the virtual machine.
In addition, window parameter is the relevant parameter for playing the video window of the video, window parameter is used for the view Frequency window is positioned, such as window parameter may include the window's position, window size and block information.It, should in practical application Virtual machine timing or can obtain in real time the window parameter of the video, once find that the window parameter of the video changes, just The window parameter after variation is sent to terminal.
Furthermore log-on message is used to obtain the access authority of the video, and log-on message is the virtual machine in access webpage clothes Used for distinguishing the information of user identity when business device, usually the virtual machine when accessing web page server by net for the first time Page server generates and sends to the virtual machine.The log-on message can be cookie (cookies) etc..Actually answer In, in order to guarantee the safety of the log-on message, first the log-on message can be encrypted, then by the encrypted login Information is sent to terminal.
It is worth noting that, the virtual machine is receiving the target webpage of web page server transmission in the embodiment of the present invention Webpage information can not obtain the video in target webpage, according only to target webpage webpage information obtain target webpage in remove Other web page contents and display except video.
Step 309: terminal receives the iframe label of virtual machine transmission.
It should be noted that step 309 can be by the client executing installed in terminal.
In addition, the src attribute value of the iframe label is the page address of video present in target webpage, the video Page address is to generate to obtain according to the video identifier of the video, and the video identifier of the video is the webpage information from target webpage In acquire.
Step 310: terminal obtains the video in target webpage and broadcasting according to the iframe label.
It should be noted that step 310 can be executed by the browser engine installed in terminal.
Specifically, the page access request for carrying the src attribute value of the iframe label, the page can be generated in terminal Acquisition request is used for the page that the src attribute value of the request iframe label is directed toward, and playing in the page has target webpage In video;The page access request is sent to web page server;When the page for the page for receiving web page server transmission When the information of face, which is shown according to the page info of the page.
It is worth noting that after showing the page, with regard to playing the video having in target webpage in the page.Due to the page In can also include for playing the player of the video in target webpage, and the video is that this for including is broadcast in the page It puts and is played in the forms of device, so terminal can directly control the broadcasting of the video by the player in the page, this In the case of kind, the video display effect after redirecting to the video is identical as the result of broadcast of original video.
Further, terminal may receive the iframe label of virtual machine transmission, it is also possible to receive the void The video address for the video in target webpage that quasi- machine is sent, the video address of the video is from the webpage information of target webpage It acquires.It, can be according to the view when the video address of the video in the target webpage that terminal receives virtual machine transmission The video address of frequency obtains the video and plays.
It should be noted that the operation that terminal receives the video address of the video in the target webpage of virtual machine transmission can With by the client executing installed in terminal, terminal obtains the video and play operation according to the video address of the video can be by The browser engine of terminal installation executes.
In addition, terminal is receiving when the video address of the video is the src attribute value of the video label of target webpage When the video address of the video in target webpage sent to the virtual machine, html web page can be first created, and by the HTML net The src attribute value of the video label of page is set as the video address of the video, then can load in the webpage of the html web page Hold, the web page contents for loading the html web page are to obtain the video according to the video address of the video and play.
Wherein, terminal can be generated when obtaining the video and playing according to the video address of the video and carry the video Video address video acquisition request;Video acquisition request is sent to web page server;When receiving web page server When the video data of the video sent, which is played according to the video data of the video.
It is worth noting that, terminal can also receive the window parameter of the video of virtual machine transmission, the window parameter It may include the window's position, window size and block information etc..When terminal receives the window of the video of virtual machine transmission When parameter, video window can be shown according to the window parameter.Later, terminal can be obtained first when obtaining the video and playing The video is taken, then plays the video in the video window.
Wherein, when terminal shows video window according to the window parameter, which can be dimensioned to this The video window is shown the window's position in the window parameter, and is joined according to the window by the window size in window parameter Block information in number determines the part being blocked in the video window, sets the part being blocked in the video window to Bright state.
Wherein, when terminal plays the video in the video window, if terminal is belonged to according to the src of the iframe label Property the page info of the page that is directed toward of value show the page, then the page can be shown in the video window, if The terminal is to play the video according to the video data of the video, then can play out the video in the video window.
It is worth noting that, terminal can also receive the log-on message of virtual machine transmission, the log-on message is for obtaining The access authority of video.When terminal receives the log-on message of virtual machine transmission, the log-on message can be used from webpage Video is obtained in server.Specifically, terminal is sending the page access request or video acquisition request to web page server While, which can be also sent to web page server, to guarantee that terminal has enough permissions access webpage clothes Device be engaged in obtain video.
In addition, the safety in order to guarantee the log-on message, which can use encrypted transmission, and make in terminal With the log-on message after obtaining video in web page server, terminal can delete the log-on message.
It is worth noting that can be excavated as far as possible from the webpage information of target webpage in the embodiment of the present application effective Information, accordingly come realize video redirect.After being redirected to video, it is possible to reduce the pressure of virtual desktop server, Resource occupation is reduced, avoids influence of the video playing to the performance of virtual desktop server, and since terminal is directly from webpage Video is obtained in server, it is possible to greatly reduce the transmission bandwidth from the virtual machine to terminal.Also, compared to related skill Virtual machine will first be compressed the mode for being transferred to terminal again to video in art, and the embodiment of the present application can be to avoid compression to video The influence of quality guarantees the result of broadcast of video.
Further, it is contemplated that the ability of terminal is limited, in order to avoid video playing causes excessive pressure to terminal, this The number of videos of redirection can also be limited in application embodiment.Specifically, quantity can be less than in the number of videos of redirection It when threshold value, is redirected to virtual machine notice terminal supports video, is greater than or equal to amount threshold in the number of videos of redirection When, do not support video to redirect to virtual machine notice terminal.Wherein, amount threshold can be configured in advance.
Further, in order to enhance versatility, prevent terminal from video being caused to redirect failure because outer net cannot be connected, also Proxy server can be increased, terminal can obtain video by proxy server from web page server.
In the embodiment of the present application, the virtual machine that terminal is installed into virtual desktop server sends the access of target webpage Instruction sends target webpage to web page server when the virtual machine receives the access instruction of the target webpage of terminal transmission Web-page requests.Later, which receives the webpage information for the target webpage that web page server is sent, when depositing in target webpage In video, the video identifier of the video is obtained from the webpage information of target webpage, it is raw further according to the video identifier of the video At the page address of the video, iframe label is then constructed, and set the iframe label for the page address of the video Src attribute value.Later, which is sent to terminal for the iframe label.When terminal receives virtual machine transmission When the iframe label, which is obtained according to the iframe label and is played.Since the embodiment of the present application is according to the video Video identifier building iframe label, so terminal can successfully be got according to the src attribute value of the iframe label The page for having the video is played, so as to successfully realize the redirection to the video.
Fig. 4 is a kind of structural schematic diagram of video play device provided by the embodiments of the present application, which is applied to virtual The virtual machine installed in desktop server, the device can be set by being implemented in combination with for software, hardware or both as computer Standby is some or all of, and when computer equipment shown in Fig. 2 is virtual desktop server, which can be figure Computer equipment shown in 2.Referring to fig. 4, which includes: the first sending module 401, the acquisition of the first receiving module 402, first Module 403, generation module 404, building module 405 and the second sending module 406.
First sending module 401, for executing the step 302 in Fig. 3 embodiment;
First receiving module 402, for executing the step 303 in Fig. 3 embodiment;
First obtains module 403, for executing the step 305 in Fig. 3 embodiment;
Generation module 404, for executing the step 306 in Fig. 3 embodiment;
Module 405 is constructed, for executing the step 307 in Fig. 3 embodiment;
Second sending module 406, for executing the step 308 in Fig. 3 embodiment.
Optionally, the first acquisition module 403 includes:
First acquisition unit, for when there are with when video, obtaining the video of video from webpage information in target webpage Location;
Second acquisition unit, for obtaining the view of video from webpage information when video address is unsatisfactory for preset condition Frequency marking is known.
Optionally, first module 403 is obtained further include:
First determination unit, for when there are when video video label, determine to have view in target webpage in webpage information Frequently;
Correspondingly, first acquisition unit is used for:
When there are when video label, obtaining the src attribute value of video label in webpage information as the video of video Location.
Optionally, first module 403 is obtained further include:
Second determination unit, for it is pre- to determine that video address is unsatisfactory for when in video address not including preset characters string If condition.
Optionally, first module 403 is obtained further include:
Third sending module, for video address being sent to terminal, by terminal when video address meets preset condition Video is obtained according to video address and is played.
Optionally, generation module 404 includes:
Third acquiring unit, for obtaining the corresponding building rule of target webpage;
4th acquiring unit, for obtaining the multiple building elements indicated in building rule, multiple one constructed in elements A building element is the video identifier of video;
Assembled unit obtains the page address of video for being combined multiple building elements according to building rule.
Optionally, the device further include:
Second obtains module, and for obtaining the window parameter of video, window parameter includes the window's position, window size and screening Keep off information;
4th sending module shows video window according to window parameter by terminal for window parameter to be sent to terminal, Video window is for playing video.
Optionally, the device further include:
Second receiving module, for receiving the log-on message of web page server transmission;
5th sending module, for log-on message to be sent to terminal, log-on message is used to obtain the access authority of video.
In the embodiment of the present application, when the virtual machine installed in virtual desktop server receives the target network of terminal transmission When the access instruction of page, the web-page requests of target webpage are sent to web page server.Later, which receives web page server The webpage information of the target webpage of transmission, when, there are when video, obtaining from the webpage information of target webpage should in target webpage The video identifier of video generates the page address of the video further according to the video identifier of the video, then constructs iframe mark It signs, and sets the page address of the video to the src attribute value of the iframe label.Later, the virtual machine is by the iframe Label is sent to terminal, is obtained the video according to the iframe label by terminal and is played.Since the embodiment of the present application is basis The iframe label of the video identifier building of the video, so terminal can succeed according to the src attribute value of the iframe label The page for playing and having the video is got, so as to successfully realize the redirection to the video.
Fig. 5 is a kind of structural schematic diagram of video play device provided by the embodiments of the present application, which is applied to terminal, The device being implemented in combination with as some or all of of computer equipment by software, hardware or both, shown in Fig. 2 Computer equipment be terminal when, which can be computer equipment shown in Fig. 2.Referring to Fig. 5, the device packet It includes: sending module 501, the first receiving module 502 and the first playing module 503.
Sending module 501, for executing the step 301 in Fig. 3 embodiment;
First receiving module 502, for executing the step 309 in Fig. 3 embodiment;
First playing module 503, for executing the step 310 in Fig. 3 embodiment.
Optionally, the device further include:
Second receiving module, the video address of the video for receiving virtual machine transmission, video address is from target webpage Webpage information in acquire;
Second playing module, for obtaining video and playing according to video address.
Optionally, the device further include:
Third receiving module, for receive virtual machine transmission video window parameter, window parameter include the window's position, Window size and block information;
Display module, for showing video window according to window parameter;
Correspondingly, the first playing module is used for:
Video is obtained, and plays video in video window.
Optionally, the device further include:
4th receiving module, for receiving the log-on message of virtual machine transmission, log-on message is used to obtain the access of video Permission;
Correspondingly, the first playing module 503 includes:
Generation unit, for generating the page access request for carrying the src attribute value of iframe label, page acquisition is asked The page of the src attribute value direction for request iframe label is sought, playing in the page has video;
Transmission unit, for sending page access request and log-on message to web page server;
Display unit, for when receive web page server transmission the page page info when, according to the page of the page Information shows the page.
In the embodiment of the present application, the virtual machine that terminal is installed into virtual desktop server sends the access of target webpage Instruction.Then terminal receives the iframe label of virtual machine transmission, and the src attribute value of the iframe label is in target webpage The page address of existing video, the page address are to generate to obtain according to the video identifier of the video, the video mark of the video Knowledge is acquired from the webpage information of target webpage.Later, terminal obtains the video according to the iframe label and plays. Since the embodiment of the present application is the iframe label constructed according to the video identifier of the video, so terminal is marked according to the iframe The src attribute value of label can successfully get the page for playing and having the video, reset so as to successfully realize to the video To.
It should be understood that video play device provided by the above embodiment is in video playing, only with above-mentioned each function The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds Block is completed, i.e., the internal structure of device is divided into different functional modules, to complete all or part of function described above Energy.In addition, video play device provided by the above embodiment and video broadcasting method embodiment belong to same design, it is specific real Existing process is detailed in embodiment of the method, and which is not described herein again.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its any combination real It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.It is all or part of when loading on computers and executing the computer instruction Ground is generated according to process or function described in the embodiment of the present application.The computer can be general purpose computer, special purpose computer, Computer network or other programmable devices.The computer instruction may be stored in a computer readable storage medium, or It is transmitted from a computer readable storage medium to another computer readable storage medium, for example, the computer instruction can With from a web-site, computer, server or data center by it is wired (such as: coaxial cable, optical fiber, data user Line (Digital Subscriber Line, DSL)) or wireless (such as: infrared, wireless, microwave etc.) mode to another website Website, computer, server or data center are transmitted.The computer readable storage medium can be computer and can deposit Any usable medium taken, or include the data storage such as one or more usable mediums integrated server, data center Equipment.The usable medium can be magnetic medium (such as: floppy disk, hard disk, tape), optical medium (such as: digital versatile disc (Digital Versatile Disc, DVD)) or semiconductor medium (such as: solid state hard disk (Solid State Disk, SSD)) etc..
The above is embodiment provided by the present application, all in spirit herein and original not to limit the application Within then, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (26)

1. a kind of video broadcasting method, which is characterized in that applied to the virtual machine installed in virtual desktop server, the method Include:
When receiving the access instruction of target webpage of terminal transmission, the webpage of the target webpage is sent to web page server Request;
Receive the webpage information for the target webpage that the web page server is sent;
When, there are when video, the video identifier of the video being obtained from the webpage information in the target webpage;
According to the video identifier of the video, the page address of the video is generated;
Floating frame iframe label is constructed, and sets the page address to the src attribute value of the iframe label;
The iframe label is sent to the terminal, the video is obtained simultaneously according to the iframe label by the terminal It plays.
2. the method as described in claim 1, which is characterized in that it is described when in the target webpage there are when video, from described The video identifier of the video is obtained in webpage information, comprising:
When, there are when video, the video address of the video being obtained from the webpage information in the target webpage;
When the video address is unsatisfactory for preset condition, the video identifier of the video is obtained from the webpage information.
3. method according to claim 2, which is characterized in that it is described when in the target webpage there are when video, from described Before the video address for obtaining the video in webpage information, further includes:
When, there are when video video label, determining that there are videos in the target webpage in the webpage information;
Correspondingly, described when, there are when video, the video of the video being obtained from the webpage information in the target webpage Address, comprising:
When there are when video label, obtain the src attribute value of the video label as the video in the webpage information Video address.
4. method as claimed in claim 2 or claim 3, which is characterized in that it is described when the video address is unsatisfactory for preset condition, Before the video identifier for obtaining the video in the webpage information, further includes:
When in the video address not including preset characters string, determine that the video address is unsatisfactory for the preset condition.
5. the method as described in claim 2-4 is any, which is characterized in that it is described when in the target webpage there are when video, After the video address for obtaining the video in the webpage information, further includes:
When the video address meets the preset condition, the video address is sent to the terminal, by the terminal The video is obtained according to the video address and is played.
6. the method as described in claim 1, which is characterized in that the video identifier according to the video generates the view The page address of frequency, comprising:
Obtain the corresponding building rule of the target webpage;
The multiple building elements indicated in the building rule are obtained, a building element in the multiple building element is institute State the video identifier of video;
The multiple building element is combined according to the building rule, obtains the page address of the video.
7. the method as described in claim 1-6 is any, which is characterized in that the method also includes:
The window parameter of the video is obtained, the window parameter includes the window's position, window size and block information;
The window parameter is sent to the terminal, video window is shown according to the window parameter by the terminal, it is described Video window is for playing the video.
8. method as claimed in claim 1, which is characterized in that the method also includes:
Receive the log-on message that the web page server is sent;
The log-on message is sent to the terminal, the log-on message is used to obtain the access authority of the video.
9. a kind of video broadcasting method, which is characterized in that be applied to terminal, which comprises
The virtual machine installed into virtual desktop server sends the access instruction of target webpage;
The floating frame iframe label that the virtual machine is sent is received, the src attribute value of the iframe label is the mesh The page address of video present in webpage is marked, the page address is to generate to obtain according to the video identifier of the video, institute The video identifier for stating video is acquired from the webpage information of the target webpage;
According to the iframe label, obtains the video and play.
10. method as claimed in claim 9, which is characterized in that the virtual machine hair installed into virtual desktop server After sending the access instruction of target webpage, further includes:
The video address for the video that the virtual machine is sent is received, the video address is the webpage from the target webpage It is acquired in information;
According to the video address, obtains the video and play.
11. the method as described in claim 9 or 10, which is characterized in that it is described installed into virtual desktop server it is virtual Machine is sent after the access instruction of target webpage, further includes:
The window parameter for the video that the virtual machine is sent is received, the window parameter includes the window's position, window size And block information;
Video window is shown according to the window parameter;
It is correspondingly, described to obtain the video and play, comprising:
The video is obtained, and plays the video in the video window.
12. the method as described in claim 9-11 is any, which is characterized in that the void installed into virtual desktop server Quasi- machine is sent after the access instruction of target webpage, further includes:
The log-on message that the virtual machine is sent is received, the log-on message is used to obtain the access authority of the video;
Correspondingly, described according to the iframe label, it obtains the video and plays, comprising:
The page access request for carrying the src attribute value of the iframe label is generated, the page access request is for asking The page for obtaining the src attribute value direction of the iframe label is sought, playing in the page has the video;
The page access request and the log-on message are sent to web page server;
It is aobvious according to the page info of the page when receiving the page info for the page that the web page server is sent Show the page.
13. a kind of video play device, which is characterized in that applied to the virtual machine installed in virtual desktop server, the dress It sets and includes:
First sending module, for being sent to web page server when receiving the access instruction of target webpage of terminal transmission The web-page requests of the target webpage;
First receiving module, for receiving the webpage information for the target webpage that the web page server is sent;
First obtains module, for when, there are when video, the video being obtained from the webpage information in the target webpage Video identifier;
Generation module generates the page address of the video for the video identifier according to the video;
Module is constructed, is set as the iframe label for constructing floating frame iframe label, and by the page address Src attribute value;
Second sending module, for the iframe label to be sent to the terminal, by the terminal according to the iframe Label obtains the video and plays.
14. device as claimed in claim 13, which is characterized in that described first, which obtains module, includes:
First acquisition unit, for when, there are when video, the video being obtained from the webpage information in the target webpage Video address;
Second acquisition unit, described in being obtained from the webpage information when the video address is unsatisfactory for preset condition The video identifier of video.
15. device as claimed in claim 14, which is characterized in that described first obtains module further include:
First determination unit, for when, there are when video video label, determining and deposited in the target webpage in the webpage information In video;
Correspondingly, the first acquisition unit is used for:
When there are when video label, obtain the src attribute value of the video label as the video in the webpage information Video address.
16. the device as described in claims 14 or 15, which is characterized in that described first obtains module further include:
Second determination unit, for when in the video address not including preset characters string, determining that the video address is discontented The foot preset condition.
17. the device as described in claim 14-16 is any, which is characterized in that described first obtains module further include:
Third sending module, for when the video address meets the preset condition, the video address to be sent to institute Terminal is stated, the video is obtained according to the video address by the terminal and is played.
18. device as claimed in claim 13, which is characterized in that the generation module includes:
Third acquiring unit, for obtaining the corresponding building rule of the target webpage;
4th acquiring unit, for obtaining multiple building elements for indicating in the building rule, in the multiple building element One building element be the video video identifier;
Assembled unit obtains the page of the video for being combined the multiple building element according to the building rule Face address.
19. the device as described in claim 13-18 is any, which is characterized in that described device further include:
Second obtains module, and for obtaining the window parameter of the video, the window parameter includes the window's position, window size And block information;
4th sending module, for the window parameter to be sent to the terminal, by the terminal according to the window parameter Show video window, the video window is for playing the video.
20. the device as described in claim 13-19 is any, which is characterized in that described device further include:
Second receiving module, the log-on message sent for receiving the web page server;
5th sending module, for the log-on message to be sent to the terminal, the log-on message is for obtaining the view The access authority of frequency.
21. a kind of video play device, which is characterized in that be applied to terminal, described device includes:
Sending module, the virtual machine for installing into virtual desktop server send the access instruction of target webpage;
First receiving module, the floating frame iframe label sent for receiving the virtual machine, the iframe label Src attribute value is the page address of video present in the target webpage, and the page address is the view according to the video Frequency marking, which is known to generate, to be obtained, and the video identifier of the video is acquired from the webpage information of the target webpage;
First playing module, for obtaining the video and playing according to the iframe label.
22. device as claimed in claim 21, which is characterized in that described device further include:
Second receiving module, for receiving the video address for the video that the virtual machine is sent, the video address be from It is acquired in the webpage information of the target webpage;
Second playing module, for obtaining the video and playing according to the video address.
23. the device as described in claim 21 or 22, which is characterized in that described device further include:
Third receiving module, for receiving the window parameter for the video that the virtual machine is sent, the window parameter includes The window's position, window size and block information;
Display module, for showing video window according to the window parameter;
Correspondingly, first playing module is used for:
The video is obtained, and plays the video in the video window.
24. the device as described in claim 21-23 is any, which is characterized in that described device further include:
4th receiving module, the log-on message sent for receiving the virtual machine, the log-on message is for obtaining the view The access authority of frequency;
Correspondingly, first playing module includes:
Generation unit, for generating the page access request for carrying the src attribute value of the iframe label, the page is obtained Request is taken to be used for the page that the src attribute value of iframe label described in request is directed toward, playing in the page has the view Frequently;
Transmission unit, for sending the page access request and the log-on message to web page server;
Display unit, for when receiving the page info for the page that the web page server is sent, according to the page The page info in face shows the page.
25. a kind of computer readable storage medium, it is stored with instruction in the computer readable storage medium, when it is in computer When upper operation, so that computer executes the method as described in claim 1-8 any one.
26. a kind of computer readable storage medium, it is stored with instruction in the computer readable storage medium, when it is in computer When upper operation, so that computer executes the method as described in claim 9-12 any one.
CN201811143452.XA 2018-09-28 2018-09-28 Video playing method and 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 playing method and 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 playing method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109068153A true CN109068153A (en) 2018-12-21
CN109068153B 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 playing method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109068153B (en)

Cited By (11)

* 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
CN111031293A (en) * 2019-11-29 2020-04-17 三一重工股份有限公司 Panoramic monitoring display method, device and system and computer readable storage medium
CN111464874A (en) * 2020-04-15 2020-07-28 湖南麒麟信安科技有限公司 Method, system and medium for playing webpage video in cloud desktop
CN111526428A (en) * 2020-04-26 2020-08-11 湖南麒麟信安科技有限公司 Method, system and medium for realizing HTML5 video playing in cloud desktop
CN112437329A (en) * 2020-11-05 2021-03-02 上海幻电信息科技有限公司 Method, device and equipment for playing video and readable storage medium
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system
WO2021135537A1 (en) * 2019-12-31 2021-07-08 百果园技术(新加坡)有限公司 Live broadcast content introduction method and apparatus, storage medium and device
CN114329295A (en) * 2021-12-29 2022-04-12 杭州趣链科技有限公司 Video playing method and device, terminal equipment and computer readable storage medium
CN114692027A (en) * 2020-12-29 2022-07-01 福建天泉教育科技有限公司 Method and terminal for reducing short link into long link
CN114885008A (en) * 2022-04-22 2022-08-09 广东悦伍纪网络技术有限公司 Device, system and method for calling local player to play by cloud application
CN115225951A (en) * 2022-07-21 2022-10-21 中国平安人寿保险股份有限公司 Video processing method, video processing device, computer equipment and computer-readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276183A1 (en) * 2007-04-19 2008-11-06 Joseph Siegrist Method and apparatus for web page co-browsing
CN101446954A (en) * 2008-11-25 2009-06-03 北京邮电大学 Wide area network crawler system for a video website
CN102761603A (en) * 2012-06-07 2012-10-31 福建升腾资讯有限公司 Webpage flash video redirection method in VDI environment
CN103281591A (en) * 2013-06-03 2013-09-04 贝壳网际(北京)安全技术有限公司 Method and device for playing flash video through browser and mobile terminal
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 under virtual desktop scene, desktop server and system
CN104333813A (en) * 2014-08-28 2015-02-04 无锡天脉聚源传媒科技有限公司 Video playing method, device and system
CN107295415A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Video broadcasting method and device
US20180197228A1 (en) * 2013-12-23 2018-07-12 @Pay Ip Holdings Llc Alternative email-based website checkouts

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080276183A1 (en) * 2007-04-19 2008-11-06 Joseph Siegrist Method and apparatus for web page co-browsing
CN101446954A (en) * 2008-11-25 2009-06-03 北京邮电大学 Wide area network crawler system for a video website
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 under virtual desktop scene, desktop server and system
CN103281591A (en) * 2013-06-03 2013-09-04 贝壳网际(北京)安全技术有限公司 Method and device for playing flash video through browser and mobile terminal
CN103685269A (en) * 2013-12-12 2014-03-26 Tcl集团股份有限公司 Method and system for both-way communication between web browser and server
US20180197228A1 (en) * 2013-12-23 2018-07-12 @Pay Ip Holdings Llc Alternative email-based website checkouts
CN104333813A (en) * 2014-08-28 2015-02-04 无锡天脉聚源传媒科技有限公司 Video playing method, device and system
CN107295415A (en) * 2016-04-12 2017-10-24 百度在线网络技术(北京)有限公司 Video broadcasting method and device

Cited By (16)

* 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
CN112714365A (en) * 2019-10-25 2021-04-27 上海哔哩哔哩科技有限公司 Video playing method and system
CN111031293A (en) * 2019-11-29 2020-04-17 三一重工股份有限公司 Panoramic monitoring display method, device and system and computer readable storage medium
CN111031293B (en) * 2019-11-29 2021-08-24 三一重工股份有限公司 Panoramic monitoring display method, device and system and computer readable storage medium
WO2021135537A1 (en) * 2019-12-31 2021-07-08 百果园技术(新加坡)有限公司 Live broadcast content introduction method and apparatus, storage medium and device
CN111464874A (en) * 2020-04-15 2020-07-28 湖南麒麟信安科技有限公司 Method, system and medium for playing webpage video in cloud desktop
CN111526428A (en) * 2020-04-26 2020-08-11 湖南麒麟信安科技有限公司 Method, system and medium for realizing HTML5 video playing 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
CN112437329A (en) * 2020-11-05 2021-03-02 上海幻电信息科技有限公司 Method, device and equipment for playing video and readable storage medium
CN114692027A (en) * 2020-12-29 2022-07-01 福建天泉教育科技有限公司 Method and terminal for reducing short link into long link
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 playing method and device, terminal equipment 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
CN115225951A (en) * 2022-07-21 2022-10-21 中国平安人寿保险股份有限公司 Video processing method, video processing device, computer equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN109068153B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN109068153A (en) Video broadcasting method, device and computer readable storage medium
US10560349B2 (en) Data consistency of policy enforcement for distributed applications
US9571599B2 (en) Multimedia redirection in a virtualized environment using a proxy server
US11175796B2 (en) Menu management method, server, and system
KR102132137B1 (en) Custom optimization of web pages
US20230300203A1 (en) Data processing method and system, related device, storage medium, and product
US20180332132A1 (en) Optimizing Web Applications Using a Rendering Engine
US10771353B2 (en) Policy enforcement as a service for third party platforms with asynchronous user tracking mechanisms
US10983810B2 (en) Implementing web browser in virtual machine
US9549036B2 (en) Network injected storage redirection for embedded applications
US9749202B1 (en) Remote session preview management
JP2015515660A (en) Multiple media devices accessing cloud computing service storage via a gateway server or service
US11882154B2 (en) Template representation of security resources
KR102707204B1 (en) Data processing method, apparatus, computer device, and storage medium
JP2022553996A (en) Video playback method, device, equipment and computer program
CN104349177B (en) It is a kind of to turn to method, virtual machine and the system for playing multimedia file under desktop cloud
WO2019201340A1 (en) Processor core scheduling method and apparatus, terminal, and storage medium
US10574703B1 (en) Content delivery employing multiple security levels
CN111770161A (en) https sniffing jump method and device
US11849157B2 (en) Systems and methods for live streaming
KR101613513B1 (en) Virtual machine placing method and system for guarantee of network bandwidth
JP7015939B2 (en) Aggregate conversion measurements
US20140344283A1 (en) Method of server-based application hosting and streaming of video output of the application
US11784887B1 (en) Bandwidth throttling
CN112149019A (en) Method, apparatus, electronic device, and computer-readable medium for displaying information

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

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.

TR01 Transfer of patent right