CN110113661A - A kind of video broadcasting method and device - Google Patents

A kind of video broadcasting method and device Download PDF

Info

Publication number
CN110113661A
CN110113661A CN201910284949.1A CN201910284949A CN110113661A CN 110113661 A CN110113661 A CN 110113661A CN 201910284949 A CN201910284949 A CN 201910284949A CN 110113661 A CN110113661 A CN 110113661A
Authority
CN
China
Prior art keywords
video
video data
information
original
client
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.)
Pending
Application number
CN201910284949.1A
Other languages
Chinese (zh)
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.)
New H3C Cloud Technologies Co Ltd
Original Assignee
New H3C Cloud 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 New H3C Cloud Technologies Co Ltd filed Critical New H3C Cloud Technologies Co Ltd
Priority to CN201910284949.1A priority Critical patent/CN110113661A/en
Publication of CN110113661A publication Critical patent/CN110113661A/en
Pending legal-status Critical Current

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/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/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/835Generation of protective data, e.g. certificates
    • H04N21/8355Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed
    • H04N21/83555Generation of protective data, e.g. certificates involving usage data, e.g. number of copies or viewings allowed using a structured language for describing usage rules of the content, e.g. REL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/854Content authoring
    • H04N21/8543Content authoring using a description language, e.g. Multimedia and Hypermedia information coding Expert Group [MHEG], eXtensible Markup Language [XML]

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

This application provides a kind of video broadcasting method and devices, it can be by the way that the original video data for completing to decode and render processing in virtual machine will be needed to pass to client, decoding, rendering and the display of video are completed in client, promotes the fluency of picture of the video in webpage in playing process.This method comprises: obtaining web page contents corresponding with webpage after listening to webpage and opening;It detects and whether there is video information in web page contents;If it is present load original video data corresponding with video information;Video information is used to indicate whether that there are original video datas to be loaded;Original video data is hypertext markup language HTML5 original video data;Video information includes the video element that HTML5 is supported;Web page contents in addition to video information are subjected to rendering processing, the displayed page information after generating rendering;The original video data of load and displayed page information are sent to and the associated client of virtual machine.

Description

A kind of video broadcasting method and device
Technical field
This application involves virtual machine technique fields, in particular to a kind of video broadcasting method and device.
Background technique
Hypervisor is a kind of intermediate software layer operated between server and operating system, allows multiple operations System and a set of underlying physical hardware of Application share access all physical equipments and virtual machine on server to coordinate.It is empty Quasi- desktop architecture (Virtual Desktop Infrastructure, VDI) is relied primarily on server Virtual machine that Hypervisor is marked off provides service for user.Virtual machine is run on the server, by VID technology in visitor Virtual desktop is presented to user in family end, the control for user by client realization to virtual machine.
Video web page plays a kind of daily use provided as virtual machine, and virtual machine is needed to complete video decoding, rendering Processing, and the broadcasting to video is realized in client by VDI technology.
But due in virtual machine video and image processing resource it is limited, and the processing that decodes and renders of video needs to expend A large amount of video and image processing resource cause virtual machine when control video plays out, and there are broadcasting pictures not to flow Smooth problem.
Summary of the invention
In view of this, the embodiment of the present application is designed to provide a kind of video broadcasting method and device, can pass through by It needs the original video data for completing to decode and render processing in virtual machine to pass to client, completes video in client Decoding, rendering and display, promote the fluency of picture of the video in webpage in playing process.
In a first aspect, providing a kind of video broadcasting method, this method is applied to virtual machine, this method comprises:
After listening to webpage and opening, web page contents corresponding with the webpage are obtained;
It detects in the web page contents with the presence or absence of video information;If it is present load is corresponding with the video information Original video data;The video information is used to indicate whether that there are original video data to be loaded, the original videos Data in client for playing out;The original video data is hypertext markup language HTML5 original video data;Institute Stating video information includes the video element that HTML5 is supported;
Web page contents in addition to the video information are subjected to rendering processing, the displayed page information after generating rendering;
The original video data of load and the displayed page information are sent to and the associated visitor of the virtual machine Family end.
Second aspect provides a kind of video broadcasting method, and this method is applied to client, this method comprises:
Receive original video data and displayed page information that virtual machine is sent;The displayed page information is virtual What the web page contents in addition to video information obtain after rendering processing by machine, the video information is used to indicate whether exist Original video data to be loaded, the original video data in client for playing out;The original video data is Hypertext markup language HTML5 original video data;The video information includes the video element that HTML5 is supported;
The original video data is decoded, decoding video data are generated;
The decoding video data are rendered in newly-built blank webpage;
Based on the decoding video data and the displayed page information after rendering, generates and show the video playing page.
The third aspect provides a kind of video play device, which is applied to virtual machine, which includes:
Module is obtained, for obtaining web page contents corresponding with the webpage after listening to webpage and opening;
Loading module, for detecting in the web page contents with the presence or absence of video information;If it is present load with it is described The corresponding original video data of video information;The video information is used to indicate whether there are original video data to be loaded, The original video data in client for playing out;The original video data is hypertext markup language HTML5 former Beginning video data;The video information includes the video element that HTML5 is supported;
First rendering module generates rendering for the web page contents in addition to the video information to be carried out rendering processing Displayed page information afterwards;
Sending module, for the original video data of load and the displayed page information to be sent to and the void The quasi- associated client of machine.
Fourth aspect provides a kind of video play device, which is applied to client, which includes:
Second receiving module, for receiving the original video data and displayed page information of virtual machine transmission;It is described Displayed page information is to obtain after the web page contents in addition to video information are carried out rendering processing by virtual machine, the video letter Breath is used to indicate whether that there are original video datas to be loaded, and the original video data in client for playing out; The original video data is hypertext markup language HTML5 original video data;The video information includes what HTML5 was supported Video element;
Decoder module generates decoding video data for being decoded to the original video data;
Second rendering module, for rendering the decoding video data in newly-built blank webpage;
Display module, for generating and showing view based on the decoding video data and the displayed page information after rendering Frequency plays the page.
5th aspect, the embodiment of the present application also provide a kind of computer equipment, comprising: processor, memory and bus, institute State memory and be stored with the executable machine readable instructions of the processor, when computer equipment operation, the processor with Pass through bus communication between the memory;
The machine readable instructions execute any in above-mentioned first aspect or first aspect when being run by the processor Step in possible embodiment;
Alternatively,
The machine readable instructions execute any in above-mentioned second aspect or second aspect when being run by the processor Step in possible embodiment.
6th aspect, the embodiment of the present application also provide a kind of computer readable storage medium, the computer-readable storage medium Computer program is stored in matter;The computer program, which is executed when being run by processor in above-mentioned first aspect or first aspect, appoints A kind of step in possible embodiment;
Alternatively,
The computer program executes any possible reality in above-mentioned second aspect or second aspect when being run by processor Apply the step in mode.
The embodiment of the present application can obtain web page contents corresponding with webpage, and detecting after listening to webpage and opening There are after video information in web page contents, original video data corresponding with video information is loaded, and will be in addition to video information Web page contents carry out rendering processing, the displayed page information after generating rendering, then by the original video data of load and Displayed page information is sent to and the associated client of virtual machine, wherein original video data is hypertext markup language HTML5 Original video data;Video information includes the video element that HTML5 is supported, thus by sending HTML5 original video data It is completed using the video and image processing resource of client to video corresponding with HTML5 original video data to client It plays, it, can compared with being completed for the broadcasting of video using the video of virtual machine and image processing resource in the prior art Improve the fluency of the picture in video display process.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of flow chart of video broadcasting method provided by the embodiment of the present application one;
Fig. 2 shows a kind of flow charts of video broadcasting method provided by the embodiment of the present application two;
Fig. 3 shows a kind of flow chart of video broadcasting method provided by the embodiment of the present application three;
Fig. 4 shows a kind of schematic diagram of video play device provided by the embodiment of the present application four;
Fig. 5 shows a kind of schematic diagram of video play device provided by the embodiment of the present application five;
Fig. 6 shows a kind of schematic diagram of computer equipment 600 provided by the embodiment of the present application;
Fig. 7 shows a kind of schematic diagram of computer equipment 700 provided by the embodiment of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application Middle attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only It is some embodiments of the present application, instead of all the embodiments.The application being usually described and illustrated herein in the accompanying drawings is real The component for applying example can be arranged and be designed with a variety of different configurations.Therefore, below to the application's provided in the accompanying drawings The detailed description of embodiment is not intended to limit claimed scope of the present application, but is merely representative of the selected reality of the application Apply example.Based on embodiments herein, those skilled in the art institute obtained without making creative work There are other embodiments, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the related art, the element in webpage refers to since webpage label (start tag) to end-tag All codes namely web page contents of (end tag).Virtual machine is rendered based on the various elements in webpage, is generated and is corresponded to Displayed page information, and displayed page information is sent to client and is shown.When to play video in webpage It waits, the solution that virtual machine needs that a large amount of video and image processing resource is spent to complete to original video data corresponding to video Code, and decoded original video data is rendered, to realize the broadcasting of video.But due to video and image in virtual machine Process resource is limited, causes virtual machine when control video plays out, there are the slack problems of broadcasting pictures.
Based on this, a kind of video broadcasting method and device provided by the present application, by the way that original video data is sent to visitor Family end, using the video and image processing resource of client, video corresponding with HTML5 original video data is broadcast in completion It puts, compared with being completed for the broadcasting of video using the video of virtual machine and image processing resource in the prior art, Neng Gouti The fluency of picture in high video display process.
For convenient for understanding the present embodiment, first to a kind of video broadcasting method disclosed in the embodiment of the present application into Row is discussed in detail, and the executing subject of video broadcasting method provided by the embodiment of the present application can be also possible to install with virtual machine Video redirector module in virtual machine.It is below virtual machine to video provided by the embodiments of the present application using executing subject Playback method is illustrated.
Embodiment one
Shown in Figure 1, for the flow chart for the video broadcasting method that the embodiment of the present application one provides, method includes step S101~S105, in which:
S101: after listening to webpage and opening, web page contents corresponding with webpage are obtained.
S102: it whether there is video information in detection web page contents;If it is, executing S103 and S104.
If it is not, then directly carry out rendering processing to web page contents, displayed page information is generated, and by displayed page information Client is sent to be shown.
S103: load original video data corresponding with video information.
In specific implementation, client is based on carrying out data interaction between VDI technology and virtual machine;Therefore, when user needs When opening some webpage, relevant webpage open instructions can be triggered by client;Client is based on VDI technology for net Page open instructions is transferred to virtual machine;Virtual machine obtains and the webpage after the webpage open instructions for receiving client transmission The corresponding web page contents of open instructions.
For virtual machine after obtaining web page contents, can detect first whether there is video information in web page contents.Video letter Breath is used to indicate whether that there are original video datas to be loaded, and original video data in client for playing out.
Illustratively, original video data be hypertext markup language (Hyper Text Markup Language, HTML) 5 original video data.Corresponding video information is the video element that HTML5 is supported.If detecting web page contents Middle there are the video elements that HTML5 is supported, it is determined that there are video informations in web page contents.
There are after video information in detecting web page contents, original video data corresponding with video information is loaded.
Herein, the mode for loading original video data corresponding with video information has the following two kinds:
First, virtual machine, after obtaining web page contents, automatic load is with video information to corresponding original video data.
Second, virtual machine, which after obtaining web page contents, is primarily based on web page contents, generates corresponding displayed page information.? It include the information for having the original state of video corresponding with video information in the displayed page information, example video information is corresponding Video in first frame image relevant information.It further include the correlation for having video playing key in the displayed page information Information;After triggering corresponding video playing key to user, corresponding original video data can be just loaded.
Illustratively, when original video data be hypertext markup language (Hyper Text Markup Language, HTML) when 5 original video data, whether can be executed to detect by the corresponding load method of detection video element original Whether video data is loaded.If detecting, the corresponding load method of video element is performed, corresponding original video data It is loaded;If detecting, the corresponding load method of video element is not performed, and corresponding original video data is not loaded.
Accept above-mentioned S103, this method further include:
S104: the web page contents in addition to video information are subjected to rendering processing, the displayed page information after generating rendering.
Herein, S104 and above-mentioned S103 has no the sequencing of execution.
S105: the original video data of load is shown and page info is sent to and the associated client of virtual machine.
In specific implementation, since virtual machine itself is run on the server, the data between client are handed over It is mutually to be completed by server forwarding, and since the virtual machine of operation on the server has more, preserved on server Incidence relation between virtual machine and client, therefore page by the original video data of load and can be shown using following manner Face information is sent to and the associated client of virtual machine:
By the original video data of load and rendering treated displayed page information and the virtual machine mark of virtual machine Information is sent to server.
Server in the original video data and rendering treated displayed page information for receiving virtual machine transmission, and After the virtual machine identification information of virtual machine, first according to virtual machine identification information determination and the associated client of virtual machine, then By original video data and rendering, treated that displayed page information is sent to the associated client.
In another embodiment of the application, by the original video data of load and displayed page information be sent to virtually When machine associated client, the corresponding video location information of original video data can be also sent to associated with virtual machine Client.
Wherein, video location information is used to indicate play position of the original video data in displayed page information.
The video location information includes absolute position of the video playback window corresponding with original video data in webpage Information.The absolute location information is recorded in content of pages, and which characterizes video playback windows relative in other in webpage Position of appearance, such as distance, the distance apart from certain row text of video playback window distance webs margin frame etc..Due to a webpage It usually can not all be displayed on the monitor, the page shown by display is a part of entire webpage, therefore the view Frequency location information in the client, can be converted into the relative position for current presentation page info, and based on this with respect to position It sets, completes the displaying of original video data and displayed page information.
In addition, in another embodiment, which can also include being used to indicate original video data to correspond to Video whether be located at display exhibits front end instruction information.If the video location information indicates video not at aobvious Show that device shows front end, then when displaying before there are other pages to be covered on displayed page information, then client is not right Original video data is shown.If video location information instruction video is located at display exhibits front end, even if there is it His page shows that then client also can be according to video location information realization to original video before being covered on displayed page information The displaying of data.
In another embodiment of the application, if the executing subject of this method is that the video being mounted in virtual machine redirects journey Sequence module, which can monitor new Shipping Options Page namely webpage whether are opened in browser, clear Device of looking at realizes that video redirector module intercepts webpage corresponding with webpage first to before open new Shipping Options Page rendering Content, and detect and whether there is video information in web page contents;If detecting, there are video informations in web page contents, are prevented Browser decodes original video data corresponding with video information, so that the browser being mounted in virtual machine only can be to except view Web page contents except frequency information carry out rendering processing, generate displayed page information.
Meanwhile video redirector module also will use the data transmission blocks in Web Socket and virtual machine and establish Connection, and original video data is sent to data transmission blocks based on the connection of foundation by video data;Data transmission blocks Function be the data interaction realized between virtual machine and server, the original view that video redirector module can be sent Frequency evidence is sent to server.Wherein, Web Socket is one kind in single transmission control protocol (Transmission Control Protocol, TCP) agreement of full-duplex communication is carried out in connection.
The embodiment of the present application can obtain web page contents corresponding with webpage, and detecting after listening to webpage and opening There are after video information in web page contents, original video data corresponding with video information is loaded, and will be in addition to video information Web page contents carry out rendering processing, the displayed page information after generating rendering, then by the original video data of load and Displayed page information is sent to and the associated client of virtual machine, wherein original video data is hypertext markup language HTML5 Original video data;Video information includes the video element that HTML5 is supported, thus by sending HTML5 original video data It is completed using the video and image processing resource of client to video corresponding with HTML5 original video data to client It plays, it, can compared with being completed for the broadcasting of video using the video of virtual machine and image processing resource in the prior art Improve the fluency of the picture in video display process.
Embodiment two
It is shown in Figure 2, it is the flow chart for the video broadcasting method that the embodiment of the present application two provides, in above-described embodiment On the basis of, this method further include:
S201: the video control instruction of user is obtained based on virtual desktop architecture VDI;
S202: video control instruction is sent to client, video playing is controlled by client.
Illustratively, video control instruction includes: pause instruction, play instruction, fast forward command, rewind command, volume tune It is one or more kinds of in whole instruction, clarity adjustment instruction and video out code.
Herein, in VDI technology, user can be operated virtual machine by client.Due to original video data Decoding and rendering be actually to be completed in client, it is therefore desirable to video control instruction is handed down to client, but by The broadcasting of video cannot be controlled by client local in user, it is therefore desirable to which virtual machine is received based on VDI technology To after the video control instruction of user, video control instruction is sent to client.
Specifically, pause instruction is used to indicate client and plays to the pause of decoding video data.
Play instruction is used to indicate client and starts to play out to decoding video data.
Fast forward command is used to indicate client and carries out fast-forward play to decoding video data.
Rewind command is used to indicate client and carries out fast reverse play to decoding video data.
The volume that volume adjustment instruction is used to indicate when client plays out decoding video data is adjusted.
The clarity that clarity adjustment instruction is used to indicate when client plays out decoding video data is adjusted.
Video out code is used to indicate client and closes the blank webpage for having played decoding video data.
Embodiment three
The embodiment of the present application three also provides another video broadcasting method, and this method is applied to client, referring to Fig. 3 institute Show, the video broadcasting method that the embodiment of the present application three provides includes:
S301: original video data and displayed page information that virtual machine is sent are received.
Displayed page information is to obtain after the web page contents in addition to video information are carried out rendering processing by virtual machine, depending on Frequency information is used to indicate whether that there are original video datas to be loaded, and original video data in client for playing out. Original video data is hypertext markup language HTML5 original video data;Video information includes the video member that HTML5 is supported Element.
The specific generating mode of original video data and displayed page information may refer to above-described embodiment one, herein no longer It repeats.
S302: being decoded original video data, generates decoding video data.
S303: decoding video data are rendered in newly-built blank webpage.
Wherein, above-mentioned S302 and S303 has no the sequencing of execution.
S304: it based on the decoding video data and displayed page information after rendering, generates and shows the video playing page.
Herein, decoding video data are rendered in newly-built blank webpage, can generate corresponding video display page letter Breath.Then the displayed page information that video display page info and virtual machine that client generates are sent is overlapped display.
In addition, client can also connect when receiving the original video data and displayed page information that virtual machine is sent Receive the video location information that virtual machine is sent.The video location information is similar with the video location information in above-described embodiment one, Details are not described herein.
Herein, it based on the decoding video data and displayed page information after rendering, generates and shows the video playing page, have Body can be with are as follows:
According to video location information, the screen location information for showing broadcasting video on screen in client is determined;
According to the decoding video data and displayed page information after screen location information, rendering, generates and show view Frequency plays the page.
In another embodiment, if the executing subject of this method is the video playing control program mould in the client of installation Block, such as HTML5 redirect JavaScript file.Being equipped in client is data reception module, the data reception module For carrying out data interaction between server.Data reception module is in the original video data and exhibition for receiving server transmission After showing page info, start web browser Chromium embedded frame (Chromium Embedded Framework, CEF).CEF opens one and is loaded with the blank webpage that HTML5 redirects JavaScript file after being activated.It should JavaScript file can establish Web Socket between data reception module and connect, and be based on the Web Socket from number According to receiving module obtain server send original video data and displayed page information, then using client video with Image processing resource completes the decoding to original video data, generates decoding video data, and in the newly-built blank webpage Play obtained decoding video data.
In addition, in another embodiment, it, can be according to view after client receives the video control instruction of virtual machine transmission Frequency control instruction plays out control to decoding video data according to video control instruction.
The particular content of specific video control instruction is similar with above-described embodiment two, and details are not described herein.
The embodiment of the present application receive virtual machine transmission HTML5 original video data and displayed page information after, Original video data is decoded, generates decoding video data, and render the decoding video number in newly-built blank webpage According to decoding video data and displayed page information after being then based on rendering generate and show the video playing page, to realize The original video data for completing to decode and render processing in virtual machine will be needed to pass to client, complete to regard in client Decoding, rendering and the display of frequency promote the fluency of picture of the video in webpage in playing process.
Based on the same inventive concept, video playing dress corresponding with video broadcasting method is additionally provided in the embodiment of the present application It sets, since the principle that the device in the embodiment of the present application solves the problems, such as is similar to the above-mentioned video broadcasting method of the embodiment of the present application, Therefore the implementation of device may refer to the implementation of method, and overlaps will not be repeated.
Example IV
Referring to shown in Fig. 4, for a kind of schematic diagram for video play device that the embodiment of the present application four provides, device includes: Obtain module 41, loading module 42, the first rendering module 43 and sending module 44;Wherein:
Module 41 is obtained, for obtaining web page contents corresponding with webpage after listening to webpage and opening;
Loading module 42, for detecting in web page contents with the presence or absence of video information;If it is present load is believed with video Cease corresponding original video data;Video information is used to indicate whether that there are original video data to be loaded, original video numbers According to for being played out in client;The original video data is hypertext markup language HTML5 original video data;It is described Video information includes the video element that HTML5 is supported;
First rendering module 43, for the web page contents in addition to video information to be carried out rendering processing, after generating rendering Displayed page information;
Sending module 44, it is associated with virtual machine for being sent to the original video data of load and displayed page information Client.
In a kind of optional embodiment, further includes: the first receiving module 45, for being based on virtual desktop architecture VDI Obtain the video control instruction of user;
Sending module is also used to video control instruction being sent to client, controls video playing by client.
In a kind of optional embodiment, sending module 44, for using following manner by the original video data of load and Displayed page information is sent to and the associated client of virtual machine: by the original video data of load and displayed page information, with And the corresponding video location information of original video data is sent to and the associated client of virtual machine;Video location information is for referring to Show play position of the original video data in displayed page information.
The embodiment of the present application can obtain web page contents corresponding with webpage, and detecting after listening to webpage and opening There are after video information in web page contents, original video data corresponding with video information is loaded, and will be in addition to video information Web page contents carry out rendering processing, the displayed page information after generating rendering, then by the original video data of load and Displayed page information is sent to and the associated client of virtual machine, wherein original video data is hypertext markup language HTML5 Original video data;Video information includes the video element that HTML5 is supported, thus by sending HTML5 original video data It is completed using the video and image processing resource of client to video corresponding with HTML5 original video data to client It plays, it, can compared with being completed for the broadcasting of video using the video of virtual machine and image processing resource in the prior art Improve the fluency of the picture in video display process.
Embodiment five
Referring to Figure 5, the schematic diagram of another video play device provided for the embodiment of the present application five, device packet It includes: the second receiving module 51, decoder module 52, the second rendering module 53 and display module 54;Wherein:
Second receiving module 51, for receiving the original video data and displayed page information of virtual machine transmission;Exhibition Show that page info is to obtain after the web page contents in addition to video information are carried out rendering processing by virtual machine, video information is used for Indicate whether original video data to be loaded, original video data in client for playing out;The original view Frequency evidence is hypertext markup language HTML5 original video data;The video information includes the video element that HTML5 is supported;
Decoder module 52 generates decoding video data for being decoded to original video data;
Second rendering module 53, for rendering decoding video data in newly-built blank webpage;
Display module 53, for generating and showing video based on the decoding video data and displayed page information after rendering Play the page.
In a kind of optional embodiment, the second receiving module 51 is also used to: receiving the video location letter that virtual machine is sent Breath;
Display module 53 is specifically used for using following manner based on the decoding video data and displayed page information after rendering, It generates and shows the video playing page:
According to video location information, the screen location information for showing broadcasting video on screen in client is determined;
According to the decoding video data and displayed page information after screen location information, rendering, generates and show view Frequency plays the page.
In a kind of optional embodiment, the second receiving module 51 is also used to: receiving the video control instruction that virtual machine is sent;
Display module 53, is also used to according to video control instruction, plays out control to decoding video data.
The embodiment of the present application receive virtual machine transmission HTML5 original video data and displayed page information after, Original video data is decoded, generates decoding video data, and render the decoding video number in newly-built blank webpage According to decoding video data and displayed page information after being then based on rendering generate and show the video playing page, to realize The original video data for completing to decode and render processing in virtual machine will be needed to pass to client, complete to regard in client Decoding, rendering and the display of frequency promote the fluency of picture of the video in webpage in playing process.
Embodiment six
The embodiment of the present application also provides a kind of computer equipments 600, as shown in fig. 6, being provided by the embodiments of the present application 600 structural schematic diagram of computer equipment, comprising:
Processor 61, memory 62 and bus 63;Memory 62 for store execute instruction (for example, obtain module 41, Loading module 42, the first rendering module 43 and sending module 44 is corresponding executes instruction), when the computer equipment 600 When operation, communicated between the processor 61 and the memory 62 by bus 63 so that the processor 61 execute it is as follows Processing:
After listening to webpage and opening, web page contents corresponding with the webpage are obtained;
It detects in the web page contents with the presence or absence of video information;If it is present load is corresponding with the video information Original video data;The video information is used to indicate whether that there are original video data to be loaded, the original videos Data in client for playing out;The original video data is hypertext markup language HTML5 original video data;Institute Stating video information includes the video element that HTML5 is supported;
Web page contents in addition to the video information are subjected to rendering processing, the displayed page information after generating rendering;
The original video data of load and the displayed page information are sent to and the associated visitor of the virtual machine Family end.
In a kind of possible embodiment, in the instruction that processor 61 executes, further includes: be based on virtual desktop architecture The video control instruction of VDI acquisition user;
The video control instruction is sent to the client, video playing is controlled by the client.
In a kind of possible embodiment, in the instruction that processor 61 executes, the original video number by load It is sent to and the associated client of the virtual machine according to the displayed page information, comprising:
The original video data of load and the displayed page information and the original video data is corresponding Video location information is sent to and the associated client of the virtual machine;The video location information is used to indicate the original Play position of the beginning video data in the displayed page information.
Embodiment seven
The embodiment of the present application also provides a kind of computer equipments 700, as shown in fig. 7, being provided by the embodiments of the present application 700 structural schematic diagram of computer equipment, comprising:
Processor 71, memory 72 and bus 73;Memory 72 is executed instruction for storing (for example, the second receiving module 51, decoder module 52, the second rendering module 53 and display module 54 is corresponding executes instruction), when the computer equipment It when 700 operation, is communicated between the processor 71 and the memory 72 by bus 73, so that the processor 71 executes such as Lower processing:
Receive original video data and displayed page information that virtual machine is sent;The displayed page information is virtual What the web page contents in addition to video information obtain after rendering processing by machine, the video information is used to indicate whether exist Original video data to be loaded, the original video data in client for playing out;The original video data is Hypertext markup language HTML5 original video data;The video information includes the video element that HTML5 is supported;
The original video data is decoded, decoding video data are generated;
The decoding video data are rendered in newly-built blank webpage;
Based on the decoding video data and the displayed page information after rendering, generates and show the video playing page.
In a kind of possible embodiment, in the instruction that processor 71 executes, further includes: receive the video that virtual machine is sent Location information;
The decoding video data and the displayed page information based on after rendering, generate and show video playing page Face, comprising:
According to the video location information, determines and show that the screen position for playing video on screen is believed in the client Breath;
According to the decoding video data and the displayed page information after the screen location information, rendering, generate And show the video playing page.
In a kind of possible embodiment, in the instruction that processor 71 executes, further includes:
Receive the video control instruction that virtual machine is sent;
According to the video control instruction, control is played out to the decoding video data.
In addition, the embodiment of the present application also provides a kind of computer readable storage medium, on the computer readable storage medium It is stored with computer program, video playing described in above method embodiment is executed when which is run by processor The step of method.
The computer program product of video broadcasting method provided by the embodiment of the present application, including storing program code Computer readable storage medium, the instruction that said program code includes can be used for executing previous methods side as described in the examples Method, specific implementation can be found in embodiment of the method, and details are not described herein.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.In the application In provided several embodiments, it should be understood that disclosed systems, devices and methods, it can be real by another way It is existing.The apparatus embodiments described above are merely exemplary, for example, the division of the unit, only a kind of logic function It can divide, there may be another division manner in actual implementation, in another example, multiple units or components can combine or can collect At another system is arrived, or some features can be ignored or not executed.Another point, shown or discussed mutual coupling Conjunction or direct-coupling or communication connection can be the indirect coupling or communication connection by some communication interfaces, device or unit, It can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, the application Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words The form of product embodies, which is stored in a storage medium, including some instructions use so that One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the application State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Finally, it should be noted that embodiment described above, the only specific embodiment of the application, to illustrate the application Technical solution, rather than its limitations, the protection scope of the application is not limited thereto, although with reference to the foregoing embodiments to this Shen It please be described in detail, those skilled in the art should understand that: anyone skilled in the art Within the technical scope of the present application, it can still modify to technical solution documented by previous embodiment or can be light It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make The essence of corresponding technical solution is detached from the spirit and scope of the embodiment of the present application technical solution, should all cover the protection in the application Within the scope of.Therefore, the protection scope of the application shall be subject to the protection scope of the claim.

Claims (10)

1. a kind of video broadcasting method, which is characterized in that this method is applied to virtual machine, this method comprises:
After listening to webpage and opening, web page contents corresponding with the webpage are obtained;
It detects in the web page contents with the presence or absence of video information;If it is present load original corresponding with the video information Beginning video data;The video information is used to indicate whether that there are original video data to be loaded, the original video datas For being played out in client;The original video data is hypertext markup language HTML5 original video data;The view Frequency information includes the video element that HTML5 is supported;
Web page contents in addition to the video information are subjected to rendering processing, the displayed page information after generating rendering;
The original video data of load and the displayed page information are sent to and the associated client of the virtual machine.
2. video broadcasting method according to claim 1, which is characterized in that this method further include:
The video control instruction of user is obtained based on virtual desktop architecture VDI;
The video control instruction is sent to the client, video playing is controlled by the client.
3. video broadcasting method according to claim 1, which is characterized in that the original video data by load It is sent to and the associated client of the virtual machine with the displayed page information, comprising:
By the original video data of load and the displayed page information and the corresponding video of the original video data Location information is sent to and the associated client of the virtual machine;The video location information is used to indicate the original view Frequency is according to the play position in the displayed page information.
4. a kind of video broadcasting method, which is characterized in that this method is applied to client, this method comprises:
Receive original video data and displayed page information that virtual machine is sent;The displayed page information will for virtual machine What the web page contents in addition to video information obtain after rendering processing, the video information is used to indicate whether that there are to be added The original video data of load, the original video data in client for playing out;The original video data is super literary This markup language HTML5 original video data;The video information includes the video element that HTML5 is supported;
The original video data is decoded, decoding video data are generated;
The decoding video data are rendered in newly-built blank webpage;
Based on the decoding video data and the displayed page information after rendering, generates and show the video playing page.
5. video broadcasting method according to claim 4, which is characterized in that this method further include: receive virtual machine and send Video location information;
The decoding video data and the displayed page information based on after rendering, generate and show the video playing page, packet It includes:
According to the video location information, the screen location information for showing broadcasting video on screen in the client is determined;
According to the decoding video data and the displayed page information after the screen location information, rendering, generates and open up Show the video playing page.
6. video broadcasting method according to claim 4, which is characterized in that this method further include:
Receive the video control instruction that virtual machine is sent;
According to the video control instruction, control is played out to the decoding video data.
7. a kind of video play device, which is characterized in that the device is applied to virtual machine, which includes:
Module is obtained, for obtaining web page contents corresponding with the webpage after listening to webpage and opening;
Loading module, for detecting in the web page contents with the presence or absence of video information;If it is present load and the video The corresponding original video data of information;The video information is used to indicate whether there are original video data to be loaded, described Original video data in client for playing out;The original video data is the original view of hypertext markup language HTML5 Frequency evidence;The video information includes the video element that HTML5 is supported;
First rendering module, for the web page contents in addition to the video information to be carried out rendering processing, after generating rendering Displayed page information;
Sending module, for the original video data of load and the displayed page information to be sent to and the virtual machine Associated client.
8. a kind of video play device, which is characterized in that the device is applied to client, which includes:
Second receiving module, for receiving the original video data and displayed page information of virtual machine transmission;The displaying Page info is to obtain after the web page contents in addition to video information are carried out rendering processing by virtual machine, and the video information is used In indicating whether original video data to be loaded, the original video data in client for playing out;It is described Original video data is hypertext markup language HTML5 original video data;The video information includes what HTML5 was supported Video element;
Decoder module generates decoding video data for being decoded to the original video data;
Second rendering module, for rendering the decoding video data in newly-built blank webpage;
Display module, for generating and showing that video is broadcast based on the decoding video data and the displayed page information after rendering Put the page.
9. a kind of computer equipment characterized by comprising processor, storage medium and bus, the storage medium are stored with The executable machine readable instructions of the processor, when computer equipment operation, the processor and the storage medium it Between by bus communication, the processor executes the machine readable instructions, to execute such as any one of claims 1 to 3, or It executes as described in any one of claim 4 to 6 the step of video broadcasting method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program is executed when the computer program is run by processor such as any one of claims 1 to 3, or execution such as claim 4 The step of to any one of 6 video broadcasting method.
CN201910284949.1A 2019-04-10 2019-04-10 A kind of video broadcasting method and device Pending CN110113661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910284949.1A CN110113661A (en) 2019-04-10 2019-04-10 A kind of video broadcasting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910284949.1A CN110113661A (en) 2019-04-10 2019-04-10 A kind of video broadcasting method and device

Publications (1)

Publication Number Publication Date
CN110113661A true CN110113661A (en) 2019-08-09

Family

ID=67484003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910284949.1A Pending CN110113661A (en) 2019-04-10 2019-04-10 A kind of video broadcasting method and device

Country Status (1)

Country Link
CN (1) CN110113661A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547394A (en) * 2011-12-27 2012-07-04 福建升腾资讯有限公司 Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment
WO2013116975A1 (en) * 2012-02-06 2013-08-15 华为技术有限公司 Stream media playing method, device and system
CN103905927A (en) * 2012-12-26 2014-07-02 华为技术有限公司 Video redirection method under virtual desktop scene, desktop server and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547394A (en) * 2011-12-27 2012-07-04 福建升腾资讯有限公司 Universal audio/video redirection method for cloud access devices under VDI (Video Desktop Infrastructure) environment
WO2013116975A1 (en) * 2012-02-06 2013-08-15 华为技术有限公司 Stream media playing method, device and system
CN103905927A (en) * 2012-12-26 2014-07-02 华为技术有限公司 Video redirection method under virtual desktop scene, desktop server and system
CN106231369A (en) * 2012-12-26 2016-12-14 华为技术有限公司 Method, desktop server and the system that under virtual desktop scene, video redirects

Similar Documents

Publication Publication Date Title
US11178448B2 (en) Method, apparatus for processing video, electronic device and computer-readable storage medium
US9384526B2 (en) System and method for handling remote drawing commands
US7861176B2 (en) Methods and systems for providing online chat
KR101507629B1 (en) Browser-based proxy server for customization and distribution of existing applications
US20110161843A1 (en) Internet browser and associated content definition supporting mixed two and three dimensional displays
EP2710491B1 (en) Informed partitioning of data in a markup-based document
CN113178015A (en) House source interaction method and device, electronic equipment and storage medium
CN113032080B (en) Page implementation method, application program, electronic device and storage medium
CN114610428B (en) Information stream display method, device, apparatus, storage medium, and program
US10042419B2 (en) Method and apparatus for providing additional information of digital signage content on a mobile terminal using a server
US20200159549A1 (en) Replaying interactions with a graphical user interface (gui) presented in a video stream of the gui
CN106528120A (en) Notification message display method and device
CN114302176B (en) Video playing method and device
CN108769815A (en) Method for processing video frequency and its device
CN107241651B (en) Media data playing method and device and intelligent terminal
CN110035294B (en) Processing method and device for live broadcast room, computer readable storage medium and computer equipment
JP6445050B2 (en) Cloud streaming service providing method, apparatus and system therefor, and computer-readable recording medium on which cloud streaming script code is recorded
CN109905753A (en) The display methods and device of footmark, storage medium, electronic device
CN110113661A (en) A kind of video broadcasting method and device
CN111913761B (en) Plug-in processing method, device, equipment and storage medium for live channel
CN111475240B (en) Data processing method and system
KR101537281B1 (en) Web-view based method providing interactive contents, and computer-readable recording medium for the same
CN111158822A (en) Display interface control method and device, storage medium and electronic equipment
CN114390313B (en) Method and system for redirecting audio and Video of browser HTML5 Video tag
US20080059878A1 (en) Information processing apparatus, information processing method, program and control method of information processing apparatus

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809

RJ01 Rejection of invention patent application after publication