Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
The live streaming processing unit of a kind of live streaming processing method of view networking to solve the above problems and a kind of corresponding view networking.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of live streaming processing method of view networking, the view connection
Net include: first area view networked server, second area view networked server, with the first area view networked server and
Bridge service device, first area terminal and the second area terminal of the second area view networked server communication, the side
Method includes:
The bridge service device receives being directed to for first area terminal submission depending on networked server by the first area
Request is watched in the live streaming of second area terminal;
The bridge service device regards networked server by the second area and sends live streaming to the second area terminal
Watch request;
The bridge service device receives what the second area terminal generated depending on networked server by the second area
Multi-medium data, and the multi-medium data is sent to depending on networked server by the first area end by the first area
End.
Preferably, the bridge service device regards networked server by the first area and receives the submission of first area terminal
The live streaming for second area terminal the step of watching request include:
The bridge service device receives the first area view networked server and passes through the needle that specific virtual terminal number is sent
Request is watched to the first live streaming of second area terminal;First live streaming watches that request is generated by first area terminal, and by
The first area terminal is sent to the first area by the specific virtual terminal number and regards networked server;
Whether the bridge service device determines in the view networked server of first area has the first idle free virtual whole
End number;
If so, then the bridge service device sends out the first free virtual terminal number by the specific virtual terminal number
It send to the first area and regards networked server;The first area view networked server is used for first free virtual is whole
End number is sent to the first area terminal;
The bridge service device receives the first area view networked server and passes through the first free virtual terminal number
Request is watched in the second live streaming for second area terminal sent;Second live streaming watches that request is given birth to by the first terminal
At, and the first area is sent to by the first free virtual terminal number by the first area terminal and regards the Internet services
Device.
Preferably, the bridge service device regards networked server by the second area and sends out to the second area terminal
The step of sending live streaming to watch request include:
Whether the bridge service device determines has idle second idle empty in the second area view networked server
Quasi- terminal number;
If so, then the bridge service device generates the third for second area view networked terminals and is broadcast live and watches request;
For the bridge service device by the second free virtual terminal number, Xiang Suoshu second area regards networked server hair
The third live streaming is sent to watch request;The second area is depending on networked server for judging whether the second area terminal is true
Positive live streaming;If so, generating request success message, and the request success message is sent to the bridge service device.
Preferably, the bridge service device regards networked server by the second area and receives the second area terminal
The multi-medium data of generation, and the multi-medium data is sent to described first depending on networked server by the first area
The step of area terminal includes:
The bridge service device receives the request success message that the second area view networked server is sent;
The bridge service device carries out bridge to the first free virtual terminal number and the second free virtual terminal number
Connect processing;
The bridge service device receives the second area view networked server and passes through the second free virtual terminal number
The multi-medium data of transmission;The multi-medium data is generated by the second area terminal, and passes through second free virtual
Terminal number is sent to the second area view networked server;
The bridge service device regards networked server hair to the first area by the first free virtual terminal number
Send the multi-medium data;First area view networked server is used for through the first free virtual terminal number to described
First area terminal sends the multi-medium data.
Preferably, further includes:
If not having the first idle free virtual terminal number, the bridge joint in the first area view networked server
Server generates the first request failure message, and first request failure message is sent by the specific virtual terminal number
Networked server is regarded to the first area, the first area view networked server is used to pass through the specific virtual terminal number
First request failure message is sent to the first area terminal.
Preferably, further includes:
If not having the second idle free virtual terminal number, the bridge joint in the second area view networked server
Server generates the second request failure message, and second request failure message is passed through the first free virtual terminal number
It is sent to the first area view networked server, the first area view networked server is used for idle empty by described first
Second request failure message is sent to the first area terminal by quasi- terminal number.
Preferably, further includes:
The bridge service device receives the second area by the second free virtual terminal number and regards networked server
The third request failure message of transmission;The third request failure message is being judged by the second area depending on networked server
The second area terminal is not generated in live streaming.
The embodiment of the invention also discloses it is a kind of view networking live streaming processing unit, it is described view network include: first area
It is regarded depending on networked server, second area view networked server, with first area view networked server and the second area
The bridge service device of networked server communication, first area terminal and second area terminal, described device include:
Positioned at the request receiving module of the bridge service device, received for regarding networked server by the first area
Request is watched in the live streaming for second area terminal that first area terminal is submitted;
Positioned at the request sending module of the bridge service device, for regarding networked server to institute by the second area
It states the transmission live streaming of second area terminal and watches request;
Positioned at the multi-medium data transmission module of the bridge service device, for regarding the Internet services by the second area
Device receives the multi-medium data that the second area terminal generates, and regarding networked server by the first area will be described more
Media data is sent to the first area terminal.
Preferably, the request receiving module includes:
First request receiving submodule passes through specific virtual terminal number for receiving the first area view networked server
Request is watched in the first live streaming for second area terminal sent;First live streaming watches that request is given birth to by first area terminal
At, and the first area is sent to by the specific virtual terminal number by the first area terminal and regards networked server;
First free virtual terminal number judging submodule, for determining in the view networked server of first area whether there is sky
The first not busy free virtual terminal number;
First free virtual terminal number sending submodule, if for having idle the in the view networked server of first area
The first free virtual terminal number is then sent to described the by the specific virtual terminal number by one free virtual terminal number
One region regards networked server;The first area is used to for the first free virtual terminal number being sent to depending on networked server
The first area terminal;
Second request receiving submodule, it is idle empty by described first for receiving the first area view networked server
Request is watched in the second live streaming for second area terminal that quasi- terminal number is sent;Second live streaming watches request by described the
One terminal generates, and is sent to the first area by the first free virtual terminal number by the first area terminal and regards
Networked server.
Preferably, the request sending module includes:
Second free virtual terminal number judging submodule, for determining the second area depending on whether having in networked server
The second available free free virtual terminal number;
Third request generates submodule, if for having idle second idle in second area view networked server
Virtual terminal number then generates and watches request depending on the third live streaming of networked terminals for second area;
Third request-to-send submodule, for passing through the second free virtual terminal number, Xiang Suoshu second area view connection
Network server sends the third live streaming and watches request;The second area is depending on networked server for judging the second area
Whether terminal is really broadcast live;If so, generating request success message, and the request success message is sent to the bridge joint and is taken
Business device.
Preferably, the multi-medium data transmission module includes:
Success message receiving submodule is requested, the request success sent for receiving the second area view networked server
Message;
Bridge joint processing submodule, for the first free virtual terminal number and the second free virtual terminal number into
The processing of row bridge joint;
Multi-medium data receiving submodule, it is idle by described second for receiving the second area view networked server
The multi-medium data that virtual terminal number is sent;The multi-medium data is generated by the second area terminal, and passes through described the
Two free virtual terminal numbers are sent to the second area view networked server;
Multi-medium data sending submodule joins for being regarded by the first free virtual terminal number to the first area
Network server sends the multi-medium data;The first area view networked server is used for whole by first free virtual
End number sends the multi-medium data to the first area terminal.
Preferably, further includes:
First request failure message sending submodule, if for not having the free time in the view networked server of the first area
The first free virtual terminal number, then generate the first request failure message, and first request failure message passed through described
Specific virtual terminal number is sent to the first area view networked server, and the first area is depending on networked server for passing through
First request failure message is sent to the first area terminal by the specific virtual terminal number.
Preferably, further includes:
Second request failure message sending submodule, if for not having the free time in second area view networked server
The second free virtual terminal number, then generate the second request failure message, and second request failure message passed through described
First free virtual terminal number is sent to the first area view networked server, and the first area is used for depending on networked server
Second request failure message is sent to the first area terminal by the first free virtual terminal number.
Preferably, further includes:
Third request failure message receiving submodule, for receiving described second by the second free virtual terminal number
Region regards the third request failure message that networked server is sent;The third request failure message, is regarded by the second area
Networked server is generated when judging the second area terminal not in live streaming.
The embodiment of the present invention includes following advantages:
In the embodiment of the present invention, when first area, terminal needs to watch the live streaming of second area terminal publication, the firstth area
Domain terminal watches live streaming request to the transmission of bridge service device depending on networked server by first area.Bridge service device passes through second
Live streaming request is watched to the transmission of second area terminal depending on networked server in region.Second area terminal is regarded by second area and is networked
Server regards networked server for multimedia number by first area to bridge service device transmitting multimedia data, bridge service device
According to issuing first area terminal.The embodiment of the present invention realizes trans-regional view networking direct broadcast service by bridge service device,
Meet user demand.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission,
Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service
Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring
Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication
All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or
Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network
Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network
Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology
Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type
The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack
It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis
It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually
The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform
Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy
Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media
Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and
Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media
Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes
Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but produces
The raw concurrent flow for being greater than 3 times of traditional disk array, overall efficiency promote 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time
The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black
The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net
The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich
The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type "
Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class
Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines
Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases
Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal.
Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve
Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end
Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve
Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area
The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat
Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including with
Too net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or
Person country net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including with
Too net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array
Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine
Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet;
And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close
It is full, then it abandons;All pack buffer queues of 202 poll of switching engine module, are forwarded: 1) end if meeting the following conditions
It is less than that mouth sends caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, packet
Include the operation such as initialization, read-write to hard disk;CPU module 203 be mainly responsible for access switch, terminal (not shown) it
Between protocol processes, include descending protocol packet address table, uplink protocol package address table, data packet addressed table to address table 205()
Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module
302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould
Whether destination address (DA), source address (sa), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met,
It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould
The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 304 is come in enters switching engine
Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet;
If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier
(stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet
Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full,
Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1)
It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded:
1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 304, to all downlink networks in programmable interval
Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and,
Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module
402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan
Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined
The ethernet mac DA of measured data packet, ethernet mac SA, Ethernet length or frame type, view networking destination
Location DA, whether meet the requirements, distributed if meeting corresponding depending on networking source address SA, depending on networking data Packet type and packet length
Flow identifier (stream-id);Then, MAC DA, MAC SA, length or frame are subtracted by MAC removing module 410
Type(2byte), and enter corresponding reception caching, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, if there is Bao Ze is according to the view of packet networking purpose
Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet association turns gateway
MAC SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network
Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine
Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server.
Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes
Network Interface Module, switching engine module and CPU module are constituted.
Watching of being broadcast live between terminal is realized depending on networking, but existing scheme Union of Central Vision net live streaming domain of the existence, some
The terminal in region can only request the live streaming for belonging to other terminals of the same area.For example, Pekinese's terminal can only request to watch it
The live streaming of his Pekinese's terminal.Process is broadcast live are as follows: terminal watches request depending on networked server transmission live streaming to the region, depending on connection
The live streaming is watched that request is forwarded to the terminal being broadcast live by network server, by the terminal that is being broadcast live by video flowing, audio stream
It is sent to view networked server, the terminal for finally being requested video flowing, audio streams to initiation by view networked server.
Referring to Fig. 5, a kind of step flow chart of the live streaming processing method embodiment 1 of view networking of the invention, institute are shown
Stating depending on networking includes: first area view networked server, second area view networked server and first area view networking clothes
Bridge service device, first area terminal and the second area terminal of business device and second area view networked server communication,
The method can specifically include following steps:
Step 501, the bridge service device receives first area terminal depending on networked server by the first area and mentions
Request is watched in the live streaming for second area terminal handed over;
In embodiments of the present invention, region refers to the server to the configuration of some region, each region depending on networked server
It is not overlapped respectively depending on the coverage between networked server.For example, first area can be depending on networked server for Beijing area
The view networked server of configuration of territory, when all terminals of Beijing Area need to access view networking, requiring to network with the view is taken
Business device communication.Second area can be the view networked server for the configuration of Xinjiang region depending on networked server, when Xinjiang region
All terminals need access view networking when, require to communicate with this depending on networked server.
In order to realize trans-regional view networking live streaming, connection different zones view the Internet services are proposed in the embodiment of the present invention
The bridge service device of device, bridge service device can be communicated with multiple regions depending on networked server.
When first area, terminal is wanted to watch the live streaming of second area terminal, live streaming can be watched and be asked by first area terminal
It asks and is sent to first area view networked server, live streaming is watched that request is sent to bridge joint clothes depending on networked server by first area
Business device.
Step 502, the bridge service device regards networked server to the second area terminal by the second area
It sends live streaming and watches request;
Bridge service device is when receiving live streaming and watching request, according to the region where the targeted terminal of the request, to
Corresponding region watches request depending on networked server forwarding live streaming.
Whether second area after receiving live streaming and watching request, judges the second area terminal depending on networked server
Live streaming returns to request success message to bridge service device if being broadcast live;If not being broadcast live, returned to bridge service device
Request failure message.
Step 503, the bridge service device regards networked server by the second area and receives the second area end
The multi-medium data generated is held, and the multi-medium data is sent to described the depending on networked server by the first area
One area terminal.
When second area terminal is being broadcast live, multi-medium data (including video flowing and sound that second area terminal generates
Frequency flows) second area view networked server can be uploaded to.
After bridge service device receives request success message, bridge service device, which is received, regards networked server in second area
In the multi-medium data that is uploaded by second area terminal.Multi-medium data is sent to first area view networking clothes by bridge service device
Business device, is sent to first area terminal for multi-medium data depending on networked server by first area.
In the embodiment of the present invention, when first area, terminal needs to watch the live streaming of second area terminal publication, the firstth area
Domain terminal watches live streaming request to the transmission of bridge service device depending on networked server by first area.Bridge service device passes through second
Live streaming request is watched to the transmission of second area terminal depending on networked server in region.Second area terminal is regarded by second area and is networked
Server regards networked server for multimedia number by first area to bridge service device transmitting multimedia data, bridge service device
According to issuing first area terminal.The embodiment of the present invention realizes trans-regional view networking direct broadcast service by bridge service device,
Meet user demand.
The schematic diagram of mid span area of embodiment of the present invention view networking live streaming is shown referring to Fig. 6.In embodiments of the present invention,
The concept depending on area code of networking is increased to distinguish different regions.For example, it is 11 that Pekinese, which regards networking area code, the view in Xinjiang connection
Barrier number is 65.
When Beijing terminal 10001 needs to watch the live streaming that Xinjiang terminal 10001 is issued, Beijing terminal 10001 passes through north
Live streaming request is watched to the transmission of bridge service device depending on networked server in capital, and request number is 6510001.Bridge service device judges 65
For Xinjiang, the Xinjiang view networked server configured on bridge service device is found, networked server is regarded to Xinjiang terminal by Xinjiang
Live streaming request is watched in 10001 transmissions.Xinjiang terminal regards networked server to bridge service device transmitting multimedia data by Xinjiang,
Multi-medium data is issued Beijing terminal depending on networked server by Beijing by bridge service device.
Referring to Fig. 7, a kind of step flow chart of the live streaming processing method embodiment 2 of view networking of the invention, institute are shown
Stating depending on networking includes: first area view networked server, second area view networked server and first area view networking clothes
Bridge service device, first area terminal and the second area terminal of business device and second area view networked server communication,
The method can specifically include following steps:
Step 701, the bridge service device reception first area view networked server passes through specific virtual terminal number
Request is watched in the first live streaming for second area terminal sent;First live streaming watches that request is given birth to by first area terminal
At, and the first area is sent to by the specific virtual terminal number by the first area terminal and regards networked server;
Each equipment corresponds to a MAC Address and terminal number in depending on networking, and in order to the Internet services
Device is realized in the case where being not take up actual physical equipment by fictionalizing some addresses Mac and its corresponding terminal number
The protocol conversion of data between internet and view networking.
In embodiments of the present invention, area terminal and bridge service device depending on networked server when with communicating, actually
It is communicated with the virtual terminal depending on networked server.Each virtual terminal has a corresponding virtual terminal number, therefore,
It may be said that area terminal and bridge service device are communicated by virtual terminal number with depending on networked server.
In multiple virtual terminals number of the first view networked server, it is specially provided with a specific virtual terminal number and is used to
The initiation operation of processing live streaming request.The specific virtual terminal signal communication that first area terminal can regard networked server with first,
First live streaming is watched that request is sent to the first view networked server.
First view networked server is communicated by the specific virtual terminal number with bridge service device, and the first live streaming is watched and is asked
It asks and is sent to bridge service device.
Step 702, whether the bridge service device determines in the view networked server of first area has idle first empty
Not busy virtual terminal number;
Bridge service device judges in multiple virtual terminals number of first area view the Internet services, if has in addition to specific virtual
Except terminal number, the first idle free virtual terminal number.
Step 703, if there is the first idle free virtual terminal number, institute in the view networked server of the first area
It states bridge service device and the first free virtual terminal number is sent to the first area by the specific virtual terminal number
Depending on networked server;The first area is used to for the first free virtual terminal number to be sent to described the depending on networked server
One area terminal;
If first area, which regards, has the first idle free virtual terminal number in networked server, bridge service device should
First free virtual terminal number is sent to first area view networked server.Bridge service device can pass through specific virtual terminal number
Or the first free virtual terminal number, which is sent to the first view networked server.
The first free virtual terminal number is sent to first area terminal depending on networked server by first area.Firstth area
It domain can be by specific virtual terminal number or the first free virtual terminal number, by first free virtual end depending on networked server
End number is sent to first area terminal.
In embodiments of the present invention, the method can also include:
If not having the first idle free virtual terminal number, the bridge joint in the first area view networked server
Server generates the first request failure message, and first request failure message is sent by the specific virtual terminal number
Networked server is regarded to the first area, the first area view networked server is used to pass through the specific virtual terminal number
First request failure message is sent to the first area terminal.
Step 704, it is idle empty by described first to receive the first area view networked server for the bridge service device
Request is watched in the second live streaming for second area terminal that quasi- terminal number is sent;Second live streaming watches request by described the
One terminal generates, and is sent to the first area by the first free virtual terminal number by the first area terminal and regards
Networked server.
First area terminal generates the second live streaming and watches request after receiving the first free virtual terminal number.First
Area terminal is communicated with first depending on networked server by the first free virtual terminal number, and the second live streaming is watched that request is sent to
First view networked server.It is communicated by the first free virtual terminal number with bridge service device by the first view networked server, it will
Second live streaming watches that request is sent to bridge service device.
Step 705, whether the bridge service device determines has idle the in second area view networked server
Two free virtual terminal numbers;
Bridge service device judges in multiple virtual terminals number of second area view the Internet services, if available free second is empty
Not busy virtual terminal number.
Step 706, if there is the second idle free virtual terminal number, institute in second area view networked server
It states the generation of bridge service device and watches request depending on the third live streaming of networked terminals for second area;
If second area is depending on having the second free virtual terminal number being not used by, bridge service device in networked server
Simulation, which is generated, watches request depending on the third live streaming of networked terminals for second area.
In embodiments of the present invention, the method can also include:
If not having the second idle free virtual terminal number, the bridge joint in the second area view networked server
Server generates the second request failure message, and second request failure message is passed through the first free virtual terminal number
It is sent to the first area view networked server, the first area view networked server is used for idle empty by described first
Second request failure message is sent to the first area terminal by quasi- terminal number.
Bridge service device is sent to first area by the first free virtual terminal number and regards networked server, first area view
Request failure message is sent to first area terminal by virtual terminal No. the first by networked server.
Step 707, the bridge service device passes through the second free virtual terminal number, the view networking of Xiang Suoshu second area
Server sends the third live streaming and watches request;The second area is depending on networked server for judging that the second area is whole
Whether end is really broadcast live;If so, generating request success message, and the request success message is sent to the bridge service
Device.
Second area after receiving third live streaming and watching request, judges that corresponding second area terminal is depending on networked server
It is no to be broadcast live;If being broadcast live, request success message is generated, success message will be requested by the second free virtual terminal number
It is sent to bridge service device.
In embodiments of the present invention, the method can also include:
The bridge service device receives the second area by the second free virtual terminal number and regards networked server
The third request failure message of transmission;The third request failure message is being judged by the second area depending on networked server
The second area terminal is not generated in live streaming.
If second area, which regards networked server, judges second area terminal not to be broadcast live, second area regards the Internet services
Device generates third request failure message, and third request failure message is sent to bridge joint clothes by the second free virtual terminal number by disease
Business device.Third request failure message is sent to by first area view networking by the first free virtual terminal number by bridge service device
Third request failure message is sent to by the first free virtual terminal number depending on networked server by first area by server
One area terminal.
Step 708, the bridge service device receives the request success message that the second area view networked server is sent;
Bridge service device by the second free virtual terminal number receive second area regard networked server send request at
Function message.
Step 709, the bridge service device is to the first free virtual terminal number and the second free virtual terminal
Number carry out bridge joint processing;
Bridge service device is after receiving request success message, and bridge service device is to the first free virtual terminal number and second
Free virtual terminal number carries out bridge joint processing.
Bridge joint processing is that two receiving channels are connected, and a channel is received more by the second free virtual terminal number
Media data, another channel are to send the multi-medium data by the first free virtual terminal number.
Step 710, it is idle empty by described second to receive the second area view networked server for the bridge service device
The multi-medium data that quasi- terminal number is sent;The multi-medium data is generated by the second area terminal, and passes through described second
Free virtual terminal number is sent to the second area view networked server;
After the completion of bridge joint processing, bridge service device receives second area by the second virtual number and regards networked server transmission
Multi-medium data after, by the first virtual number by multi-medium data be sent to first area regard networked server.
Step 711, the bridge service device is regarded to the first area by the first free virtual terminal number and is networked
Server sends the multi-medium data;The first area view networked server is for passing through the first free virtual terminal
Number the multi-medium data is sent to the first area terminal.
Multi-medium data is sent to first area by the first free virtual terminal number depending on networked server by first area
Terminal is completed trans-regional being broadcast live depending on networking from two and is watched.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 8, a kind of structural block diagram of the live streaming processing device embodiment of view networking of of the invention one is shown, it is described
It include: that first area view networked server, second area view networked server and the first area regard the Internet services depending on networking
Bridge service device, first area terminal and the second area terminal of device and second area view networked server communication, institute
Stating device can specifically include following module:
Positioned at the request receiving module 801 of the bridge service device, for regarding networked server by the first area
It receives the live streaming for second area terminal that first area terminal is submitted and watches request;
Positioned at the request sending module 802 of the bridge service device, for regarding networked server by the second area
Live streaming, which is sent, to the second area terminal watches request;
Positioned at the multi-medium data transmission module 803 of the bridge service device, for passing through second area view networking
Server receives the multi-medium data that the second area terminal generates, and regards networked server for institute by the first area
It states multi-medium data and is sent to the first area terminal.
In embodiments of the present invention, the request receiving module 801 may include:
First request receiving submodule passes through specific virtual terminal number for receiving the first area view networked server
Request is watched in the first live streaming for second area terminal sent;First live streaming watches that request is given birth to by first area terminal
At, and the first area is sent to by the specific virtual terminal number by the first area terminal and regards networked server;
First free virtual terminal number judging submodule, for determining in the view networked server of first area whether there is sky
The first not busy free virtual terminal number;
First free virtual terminal number sending submodule, if for having idle the in the view networked server of first area
The first free virtual terminal number is then sent to described the by the specific virtual terminal number by one free virtual terminal number
One region regards networked server;The first area is used to for the first free virtual terminal number being sent to depending on networked server
The first area terminal;
Second request receiving submodule, it is idle empty by described first for receiving the first area view networked server
Request is watched in the second live streaming for second area terminal that quasi- terminal number is sent;Second live streaming watches request by described the
One terminal generates, and is sent to the first area by the first free virtual terminal number by the first area terminal and regards
Networked server.
In embodiments of the present invention, the request sending module 802 may include:
Second free virtual terminal number judging submodule, for determining the second area depending on whether having in networked server
The second available free free virtual terminal number;
Third request generates submodule, if for having idle second idle in second area view networked server
Virtual terminal number then generates and watches request depending on the third live streaming of networked terminals for second area;
Third request-to-send submodule, for passing through the second free virtual terminal number, Xiang Suoshu second area view connection
Network server sends the third live streaming and watches request;The second area is depending on networked server for judging the second area
Whether terminal is really broadcast live;If so, generating request success message, and the request success message is sent to the bridge joint and is taken
Business device.
In embodiments of the present invention, the multi-medium data transmission module 803 may include:
Success message receiving submodule is requested, the request success sent for receiving the second area view networked server
Message;
Bridge joint processing submodule, for the first free virtual terminal number and the second free virtual terminal number into
The processing of row bridge joint;
Multi-medium data receiving submodule, it is idle by described second for receiving the second area view networked server
The multi-medium data that virtual terminal number is sent;The multi-medium data is generated by the second area terminal, and passes through described the
Two free virtual terminal numbers are sent to the second area view networked server;
Multi-medium data sending submodule joins for being regarded by the first free virtual terminal number to the first area
Network server sends the multi-medium data;The first area view networked server is used for whole by first free virtual
End number sends the multi-medium data to the first area terminal.
In embodiments of the present invention, the device can also include:
First request failure message sending submodule, if for not having the free time in the view networked server of the first area
The first free virtual terminal number, then generate the first request failure message, and first request failure message passed through described
Specific virtual terminal number is sent to the first area view networked server, and the first area is depending on networked server for passing through
First request failure message is sent to the first area terminal by the specific virtual terminal number.
In embodiments of the present invention, the device can also include:
Second request failure message sending submodule, if for not having the free time in second area view networked server
The second free virtual terminal number, then generate the second request failure message, and second request failure message passed through described
First free virtual terminal number is sent to the first area view networked server, and the first area is used for depending on networked server
Second request failure message is sent to the first area terminal by the first free virtual terminal number.
In embodiments of the present invention, the device can also include:
Third request failure message receiving submodule, for receiving described second by the second free virtual terminal number
Region regards the third request failure message that networked server is sent;The third request failure message, is regarded by the second area
Networked server is generated when judging the second area terminal not in live streaming.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention also provides a kind of devices, comprising:
One or more processors;With
One or more machine readable medias of instruction are stored thereon with, are executed when by one or more of processors
When, so that described device executes method described in the embodiment of the present invention.
The embodiment of the invention also provides one or more machine readable medias, are stored thereon with instruction, when by one or
When multiple processors execute, so that device executes method described in the embodiment of the present invention.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Dress is handled to a kind of live streaming processing method that view is networked provided by the present invention and a kind of live streaming of view networking above
It sets, is described in detail, used herein a specific example illustrates the principle and implementation of the invention, above
The explanation of embodiment is merely used to help understand method and its core concept of the invention;Meanwhile for the general skill of this field
Art personnel, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion this
Description should not be construed as limiting the invention.