Teaching screen cloud broadcast system and method based on zero terminal
Technical field
The present invention relates to multimedia teaching field, and in particular to a kind of teaching screen cloud broadcast system for being based on zero terminal and
Method.
Background technology
Carry out remote teaching or training when, it is often necessary to carry out multimedia teaching, will teacher side screen
Video is delivered in some or all of student side simultaneously with audio.One important indicator of this application is exactly the screen delivered
(time and quality) whether consistent with audio and source.For traditional PC, the general reality of being not difficult in the case of network is preferable
It is existing.As desktop cloud (can access cross-platform application by searching client or other any equipment being connected with network
Program) technology appearance, corresponding application is also needed for cloud terminal.Desktop cloud tends to rely on VDI (Virtual
Desktop Infrastructure, i.e. virtual desktop architecture) and Intel Virtualization Technology, the virtual machine corresponding to terminal is often
Operate on server, directly run audio frequency and video caused by traditional broadcasted application can cause virtual machine pressure excessive serious
Frame losing, so as to influence using effect.Need directly to transfer to broadcast request the CPU of terminal directly to process with operating system for this
Improve performance.
But as the development of cloud terminal occurs in that a kind of zero terminal system without CPU Yu internal memory again.This system due to
Zero terminal is exquisite unique, without CPU, without internal memory, without hard disk, can reduce the cost of terminal;The security of terminal is improve simultaneously.But
This system cannot optimize screen audio frequency and video curtain broadcast using broadcast redirecting technique.For this reason, it may be necessary to research and solve zero terminal
The scheme of screen audio-video-frequency broadcast.
Tradition realizes the screen audio-video-frequency broadcast scheme of zero terminal as shown in Figure 1, and teacher side initiates each during broadcast
Virtual machine oneself of causing trouble reads data and decodes from network, finally sends the data to the terminal of student zero and shows.Due to student side
Virtual machine runs on the server, when student side virtual machine quantity is more, because different student side virtual machines need to be decoded simultaneously,
Broadcast behavior will degradation.
The content of the invention
The technical problem to be solved in the present invention is, for deficiencies of the prior art, there is provided one kind is whole based on zero
The teaching screen cloud broadcast system and method at end, reduce server stress, using after the technology server and terminal points phase
In the case of, zero terminal broadcast can reach the audio-video-frequency broadcast performance of ARM terminals.
The present invention is for the solution technical scheme that is used of above-mentioned technical problem:
Teaching screen cloud broadcast system based on zero terminal, including teacher side, virtualized server, selecting module, startup
Module, sending module, memory module, broadcast data management module and zero terminal;
Virtualized server, including multiple student side virtual machines;
Selecting module, for selecting one or more to receive broadcast on every virtualized server by teacher side
Student side virtual machine is broadcast recipients, selectes a student side virtual machine on same virtualized server at random, is elected
Student side virtual machine be referred to as non-mirror camera, it is remaining to be referred to as mirror image machine;
Start stopping modular, including start submodule and stop submodule, starting submodule is used for by teacher side to institute
There is mirror image machine to send broadcast with non-mirror camera and start order, while starting the broadcast receiving function of non-mirror camera;Stop submodule
Broadcast data is sent to mirror image machine for stopping teacher side, while send broadcast to all zero terminals ceasing and desisting order;
Memory module, for reading the broadcast data that non-mirror camera is received, after broadcast data is decoded into audio, video data
It is submitted in the shared drive of virtualized server, and notice is sent to broadcast data management module;
Broadcast data management module, for audio, video data to be forwarded directly into each zero terminal.
Present invention also offers a kind of broadcasting method by the above-mentioned teaching screen cloud broadcast system for being based on zero terminal, bag
Include following steps:
(1) selecting module selects one or more to receive of broadcast by teacher side on every virtualized server
Virtual machine of causing trouble is broadcast recipients, selectes a student side virtual machine on same virtualized server at random, is elected
Student side virtual machine is referred to as non-mirror camera, remaining to be referred to as mirror image machine;
(2) the startup submodule for starting stopping modular is opened by teacher side to all mirror image machines and the transmission broadcast of non-mirror camera
Dynamic order, while starting the broadcast receiving function of non-mirror camera, first starts broadcast and connects as the student side virtual machine of non-mirror camera
Receive and playing program, while keeping original VDI flows (transmission audio, video data);After broadcast starts, stop submodule and stop
Teacher side sends broadcast data to mirror image machine, and mirror image machine stops sending audio, video data to VDI;
(3) memory module reads the broadcast data that non-mirror camera is received, and is carried after broadcast data is decoded into audio, video data
It is sent in the shared drive of virtualized server, and notice is sent to broadcast data management module;
(4) audio, video data is forwarded directly to each zero terminal by broadcast data management module.
By such scheme, when corresponding zero terminal of certain non-mirror camera is closed, handling process is as follows:
I) by broadcast data management module, a student side virtual machine is randomly selected again in correspondence virtualized server
As non-mirror camera, and the notice for being changed into non-mirror camera from mirror image machine is sent to the student side virtual machine;
Ii after) receiving the notice described in step i), the student side virtual machine recovers VDI data channel, and is sent out to teacher side
Request is sent to receive the notice of broadcast data;
Iii) teacher side receives step ii) described in notice after send wide as the student side virtual machine of non-mirror camera to this
Multicast data.
Operation principle of the invention:It is corresponding virtual in student side virtual machine in the VDI solutions using zero terminal
Change and broadcast data is obtained from teacher side by a broadcast data management module on server;To directly can be broadcasted by teacher side
Data-pushing is to broadcast data management module, or one or many is chosen in the student side virtual machine set of virtualized server
Platform student side virtual machine submits the data to broadcast data management module;There is a student side virtual machine to broadcast data when using
When management module submits broadcast data mode to;If certain student side virtual machine zero terminal of correspondence is closed when receiving broadcast
Close, another student side virtual machine of dynamic select is used as the Data receiver for broadcasting;Broadcast data management module is by shared interior
Unified management broadcast data is deposited, and pushes it to zero terminal and shown.
Compared with prior art, the invention has the advantages that:Server stress is reduced, is being taken using after the technology
Business device is counted in the case of identical with terminal, and zero terminal broadcast can reach the audio-video-frequency broadcast performance of ARM terminals.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the screen audio-video-frequency broadcast scheme that tradition realizes zero terminal;
Fig. 2 is the schematic flow sheet of teaching screen cloud broadcasting method of the present invention based on zero terminal.
Specific embodiment
Below in conjunction with accompanying drawing to principle of the invention and feature further description, example is served only for illustrating this
Invention, and non-limiting range of application of the invention.
As shown in Fig. 2 the teaching screen cloud broadcast system based on zero terminal described in the embodiment of the present invention, including teacher
End, virtualized server, selecting module, starting module, sending module, memory module, broadcast data management module and zero terminal;
Virtualized server, including multiple student side virtual machines;
Selecting module, for selecting one or more to receive broadcast on every virtualized server by teacher side
Student side virtual machine is broadcast recipients, selectes a student side virtual machine on same virtualized server at random, is elected
Student side virtual machine be referred to as non-mirror camera, it is remaining to be referred to as mirror image machine;
Start stopping modular, including start submodule and stop submodule, starting submodule is used for by teacher side to institute
There is mirror image machine to send broadcast with non-mirror camera and start order, while starting the broadcast receiving function of non-mirror camera;Stop submodule
Broadcast data is sent to mirror image machine for stopping teacher side, while send broadcast to all zero terminals ceasing and desisting order;
Memory module, for reading the broadcast data that non-mirror camera is received, after broadcast data is decoded into audio, video data
It is submitted in the shared drive of virtualized server, and notice is sent to broadcast data management module;
Broadcast data management module, for audio, video data to be forwarded directly into each zero terminal.
The broadcasting method of teaching screen cloud broadcast system of the present invention based on zero terminal is normal to start with playing flow such as
Under:
(1) to select one or more to receive the student side of broadcast on every virtualized server by teacher side virtual
Machine is broadcast recipients, and selection principle is as follows:
A. multiple student side virtual machines may be run on every virtualized server, it is necessary on every virtualized server
Selection one student side virtual machine as broadcast receiving terminal, for example:There are 60 points in one classroom, 2 servers, and every virtual
Change server and run 30 student side virtual machines;One is so chosen in every student side virtual machine of virtualized server
Student side virtual machine.
B. the student side virtual machine on same virtualized server, can at random select a student side virtual machine;
C. the student side virtual machine that will be elected turns into non-mirror camera, remaining to be referred to as mirror image machine.
(2) broadcast is sent to all machines by teacher side and starts order:
A. after broadcast starts, mirror image machine stops sending audio, video data to VDI;
B. non-mirror camera remains in that original VDI flows send audio, video data.
(3) broadcast data is sent to teacher side the non-mirror camera elected, and teacher side no longer sends broadcast number to mirror image machine
According to;
(4) after non-mirror camera receives broadcast data, broadcast data is decoded into after audio, video data and is submitted to virtualization clothes
It is engaged in the shared drive of device, and notice is sent to broadcast data management module;
(5) final audio, video data is forwarded directly to each zero terminal (zero-configuration client video card) by broadcast data management module.
When corresponding zero terminal of certain non-mirror camera is closed, handling process is as follows:
I) by broadcast data management module, a student side virtual machine is randomly selected again in correspondence virtualized server
As non-mirror camera, and the notice for being changed into non-mirror camera from mirror image machine is sent to the student side virtual machine;
Ii after) receiving the notice described in step i), the student side virtual machine recovers VDI data channel, and is sent out to teacher side
Request is sent to receive the notice of broadcast data;
Iii) teacher side receives step ii) described in notice after send wide as the student side virtual machine of non-mirror camera to this
Multicast data.
The specific embodiment of the invention is as follows:
(1) acceptance of the bid kylin operating system and acceptance of the bid easily platform are installed on 2 servers (Powerleader 2640v3);
(2) connect core long and contain the terminals of ZC zero, every 30 points are connected on a server;
(3) acceptance of the bid easy cloud electronic classroom is installed in teacher side, and starts cloud broadcast;
(4) result realizes that 30 terminals simultaneously smooth can receive teacher side video and audio broadcasting, and audio-visual synchronization, depending on
Frequency frame per second can reach 20 frames/s (video resolution is 1440*900 pixels).
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit the invention, it is all it is of the invention spirit and
Principle etc, any modification, equivalent substitution and improvements made etc., should be included within the scope of the present invention.