Specific embodiment
It is right as follows in conjunction with drawings and embodiments to keep the purpose, technical solution and effect of the application clearer, clear
The application is further described.
The application provides a kind of live data plug-flow and acquisition and provides the method for plug-flow address.At least it is applied to such as end
Scape is broadcast live platform or director system and provides plug-flow address to live streaming equipment in the way of identification code, and wraps in plug-flow identification code
Containing multiple information, to meet the needs of different live streaming equipment.Live streaming equipment can be mobile device, such as mobile phone, PAD etc., can also
To be dedicated flow pulling equipment, it is not limited here.Live streaming equipment can use plug-flow address for live data plug-flow to live streaming
Platform plays immediately, can also be played out after secondary treatment, herein also without limitation with plug-flow to director system.
Referring to Fig. 1, Fig. 1 is the flow diagram for the method first embodiment that the application provides plug-flow address.At this
In embodiment, the method for providing plug-flow address includes the following steps:
S101: server generates plug-flow corresponding with its network environment address, and with how obtaining plug-flow address
Recommended information network address.
Specifically, platform or the server of director system is broadcast live can connect different networks according to its network environment, such as connect
It connects internet or connection local area network, different internetwork connection modes corresponds to different plug-flow addresses.In this embodiment, it services
Device can generate plug-flow corresponding with its network environment address, correspond to outer net plug-flow address when connecting internet such as server, take
Intranet plug-flow address is corresponded to when business device connection local area network, so that movement/flow pulling equipment is with can accurately obtaining effective plug-flow
Location.
Wherein, which also generates one with Jie for how obtaining plug-flow address while generating plug-flow address
The network address for the information that continues.When movement/flow pulling equipment cannot accurately obtain plug-flow address, related introduction can be obtained by the network address
Information and guides movement/flow pulling equipment to pass through correct mode to obtain plug-flow address.Such as, can illustrate in recommended information why
Plug-flow address could accurately be obtained.
S102: server integrates plug-flow address and network address with recommended information, and generates a plug-flow identification code,
Plug-flow identification code carries plug-flow address information and the website information with recommended information.
Specifically, the mode of server by utilizing identification code shows plug-flow address and recommended information, in order to move
Dynamic/flow pulling equipment accurately obtains.Wherein, plug-flow identification code carries plug-flow address information and the website information with recommended information,
So that movement/flow pulling equipment can obtain enough information, and according to own situation, parsing obtains effective information.Plug-flow is known
Other code can be the various ways such as two dimensional code, bar code, graphic code, it is not limited here.
Optionally, in one embodiment, server generates plug-flow corresponding with its network environment address and specifically includes:
If server can connect internet, server generates the outer net plug-flow address that live data is received by internet;If clothes
Business device can connect local area network, then server generates the Intranet plug-flow address that live data is received by local area network;If server
Internet, which can either be connected, can also connect local area network, then server generates outer net plug-flow address and Intranet plug-flow address two simultaneously
Kind plug-flow address.
Wherein, when server generates Intranet plug-flow address, whether multiple network interface cards are also installed in detection service device, if clothes
Business device includes multiple network interface cards, then server generates multiple Intranet plug-flow addresses for respectively corresponding different network interface cards.
It can simultaneously include multiple plug-flow addresses that can be connected in server plug-flow identification code generated, so that mobile/
Flow pulling equipment automatically parses according to itself network environment and obtains matched plug-flow address.
For example, host server is provided with 2 network interface cards, IP address is respectively as follows: 192.168.1.10;192.168.10.20
If being only bundled with IP address: rtmp: // 192.168.1.10/live in plug-flow identification code, when movement/flow pulling equipment into
When row plug-flow, if the WiFi and 192.168.1.10 of movement/flow pulling equipment are in the same network segment, then it is to plug-flow identification code
It can success plug-flow after scanning recognition.But if it is in the same network segment with another network interface card 192.168.10.20, then
Plug-flow just will fail, this is because movement/flow pulling equipment can not cross-network segment be connected to 192.168.1.10 host.In the application
In, it can include the corresponding plug-flow address of all network interface cards of server in plug-flow identification code, when movement/flow pulling equipment is to plug-flow identification code
When being identified, all plug-flow addresses can be got, and adaptation matches automatically and it is with the plug-flow address of network, carries out success
Plug-flow.
For another example if only carrying a plug-flow address in plug-flow identification code, when movement/flow pulling equipment carries out plug-flow,
Movement/flow pulling equipment is according to network environment it is possible that switching between Intranet WiFi and 4G network, just needs dynamic at this time
Selection outer net perhaps Intranet plug-flow thus optimize delay or reduce flow.If one is only carried in plug-flow identification code at this time
Plug-flow address such as only includes Intranet plug-flow address, or only includes outer net plug-flow address, then can not achieve corresponding switching.At this
It can include simultaneously Intranet plug-flow address and outer net plug-flow address in plug-flow identification code, so that movement/flow pulling equipment is being cut in application
When changing own net environment, the selection of adaptation switches plug-flow address.
Based on this, the application also provides a kind of method for obtaining plug-flow address, and in this method, movement/flow pulling equipment passes through
Plug-flow identification code is identified to obtain plug-flow address, is the side that the application obtains plug-flow address referring specifically to Fig. 2, Fig. 2
The flow diagram of method first embodiment.In this embodiment, the method for obtaining plug-flow address includes the following steps:
S201: movement/flow pulling equipment identifies that plug-flow identification code carries plug-flow address information and band to plug-flow identification code
There is the website information for the recommended information for how obtaining plug-flow address.
Specifically, movement/flow pulling equipment identifies plug-flow identification code using plug-flow software or third party software.
S202: if movement/flow pulling equipment identifies plug-flow identification code using the plug-flow software to match with server,
Then move/flow pulling equipment directly parse obtain plug-flow address;If movement/flow pulling equipment is using third party software to plug-flow identification code
It is identified, then moves/flow pulling equipment parsing acquisition recommended information, and with further obtaining plug-flow according to the instruction of recommended information
Location.
Specifically, in one embodiment, it is dedicated live streaming platform or director system that platform or director system, which is broadcast live, right
It should be provided with matched plug-flow software, only corresponding matched plug-flow software at this time could be known by the plug-flow
Other code directly acquires plug-flow address, realizes the plug-flow of live data, and except matching in addition to corresponding plug-flow software it with server
Remaining software is third party software, such as wechat, Alipay, QQ etc., wherein the plug-flow software for mismatching the live streaming platform also regards
For third party software.When being identified using third party software to plug-flow identification code, it cannot directly parse and obtain plug-flow address, but
It can parse acquisition recommended information, the guidance further according to recommended information obtains plug-flow address.In another embodiment, live streaming is flat
Platform or director system are general live streaming platform or director system, and any plug-flow software can be directly acquired by the plug-flow identification code
The plug-flow of live data is realized in plug-flow address.At this point, other software are third party software in addition to plug-flow class software.
In this embodiment, because in plug-flow identification code including much information, no matter movement/flow pulling equipment uses
Which kind of mode identifies plug-flow identification code, can accurately obtain plug-flow address.
Specifically, in one embodiment, movement/flow pulling equipment identifies plug-flow identification code using plug-flow software,
Wherein, movement/flow pulling equipment monitors the network environment of itself;If the connection of movement/flow pulling equipment is internet, moves/push away
Flow device parsing obtains outer net plug-flow address;If the connection of movement/flow pulling equipment is local area network ,/flow pulling equipment parsing is moved
Obtain Intranet plug-flow address;If movement/flow pulling equipment can either connect internet, local area network can be also connected, then moves/plug-flow
Equipment, which preferentially parses, obtains Intranet plug-flow address;If movement/flow pulling equipment can either connect internet, local can be also connected
Net, then move/flow pulling equipment monitoring internet and local area network network state, parsing obtain it is opposite with the good network of network state
The plug-flow address answered.
Specifically, in another embodiment, movement/flow pulling equipment knows plug-flow identification code using third party software
, then/flow pulling equipment parsing acquisition recommended information is not moved, and further obtains plug-flow address according to the instruction of recommended information.Its
In, recommended information includes " please use and carry out barcode scanning identification with match corresponding plug-flow software of server ", while being provided and institute
State the download path for the plug-flow software that server matches.The application is not limiting the specific verbal description of recommended information herein
It is fixed, as long as the mode of acquisition plug-flow address can be illustrated how, it can be the various ways such as Chinese, English, picture.Plug-flow
The download path of software can be a website links, be also possible to the identification codes such as a two dimensional code, and user can be instructed accurate
Downloading obtains the mode of plug-flow software.After downloading corresponding plug-flow software as indicated, corresponding plug-flow software is reused
Plug-flow identification code is identified, plug-flow address is then obtained.
Above scheme can make the more acurrate convenience of movement/flow pulling equipment by carrying much information in plug-flow identification code
Acquisition plug-flow address.In the following, the above method is described with an application scenarios, which is an example,
Without limitation to technical solution.It is live streaming equipment with mobile phone, by mobile phone by live data plug-flow to straight in the application scenarios
Broadcast platform, third party software is wechat, and plug-flow identification code is to be illustrated for two dimensional code etc..
Live host server generates plug-flow address and the network address with recommended information, and these information are integrated and are generated
One plug-flow two dimensional code.Wherein, host server can connect internet, so including outer net plug-flow address in plug-flow address;
Host server can also connect local area network, so including Intranet plug-flow address in plug-flow address;And it is arranged in host server
There are three network interface card, corresponding there are three Intranet plug-flow addresses.Encoded information i.e. in plug-flow two dimensional code includes: recommended information+
Several parts such as outer net plug-flow address+Intranet plug-flow address ip 1+ Intranet plug-flow address ip 2+ Intranet plug-flow address ip 3.For example,
The information carried in plug-flow two dimensional code can be following network address: http://dwz.cn/7mXGIJ? i=rtmp: //
Xxxxxx.com/yygameshow/123&a=rtmp: // 192.168.1.12:2045/yygameshow/123&b=
192.168.7.23&c=172.16.38.23.
When third parties' barcode scanning software scans such as user's wechat or Alipay, after obtaining information, wechat or Alipay
Equal third-party server can fall when handling information using the subsequent part in address as parameter ignorance, only open
This webpage of http://dwz.cn/7mXGIJ, this webpage the inside include recommended information, and meeting prompting and guiding user downloading is corresponding
Plug-flow software, and prompt user, plug-flow address could be obtained by only carrying out barcode scanning identification with corresponding plug-flow software.
When user mobile phone connect be 4G network when, user with plug-flow software barcode scanning identify when, obtain information after, plug-flow
The server of software handles information, and selective extraction goes out outer net plug-flow address rtmp: //xxxxxx.com/
Yygameshow/123, and as plug-flow address, plug-flow is carried out by 4G network.
When user mobile phone connect be WiFi network when, user with plug-flow software barcode scanning identify when, it is settable preferentially to mention
Intranet plug-flow address is taken, Intranet plug-flow is carried out by WiFi, saves flow.Because there are 3 host ips, plug-flow software can be first any
One Intranet plug-flow address rtmp: // 192.168.1.12:2045/yygameshow/123 progress data plug-flow is obtained, if
The failure of plug-flow end plug-flow, can attempt IP address being substituted for 192.168.7.23, data toward rtmp: //
192.168.7.23:2045/yygameshow/123 pushing away above, if still plug-flow fails, continue to replace IP address progress
It retries.In another embodiment, plug-flow software can also first test the connectivity of all IP one by one, then select same network segment
After IP address, it is spliced into plug-flow software, direct plug-flow.Above embodiment is applicable not only to live streaming platform, applies also for instructor in broadcasting
Software, only needs to provide a two dimensional code, i.e., bootable user completes the RTMP plug-flow under various scenes.To solve mesh
The problem of various different two-dimension code images cause user to confuse is provided in preceding common software.
Based on above scheme, the application also provides a kind of plug-flow method of live data, referring to Fig. 3, Fig. 3 is the application
The flow diagram of the plug-flow method first embodiment of live data, in this embodiment, the plug-flow mode of live data
The following steps are included:
S301: live streaming/instructor in broadcasting's server generates plug-flow corresponding with its network environment address, and with how obtaining
The network address of the recommended information of plug-flow address;Live streaming/instructor in broadcasting's server carries out plug-flow address and network address with recommended information whole
It closes, and generates a plug-flow identification code, plug-flow identification code carries plug-flow address information and the website information with recommended information.
Wherein, it may include Intranet plug-flow address in plug-flow identification code, multiple plug-flow addresses such as outer net plug-flow address, specifically
Generating mode please refers to the description of above embodiment, and details are not described herein.
S302: movement/flow pulling equipment identifies plug-flow identification code.Wherein, if movement/flow pulling equipment utilize with it is straight
Broadcast/the plug-flow software that matches of instructor in broadcasting's server identifies plug-flow identification code, then move/flow pulling equipment directly parses acquisition
Plug-flow address, and live data is uploaded to by live streaming/instructor in broadcasting's server by plug-flow address;If movement/flow pulling equipment utilizes the
Software of the third party identifies plug-flow identification code, then moves/flow pulling equipment parsing acquisition recommended information, and according to recommended information
Instruction further obtains plug-flow address, live data is uploaded to live streaming/instructor in broadcasting's server by plug-flow address.
Wherein, above embodiment is please referred to the extracting rule of information under specific barcode scanning identification method and different modes
Description, details are not described herein.
In this embodiment, platform is broadcast live or director system provides plug-flow address in the way of identification code, it is more intuitive
It is convenient, and include much information in identification code, it can make live streaming equipment that can accurately obtain plug-flow address in varied situations,
Realize the plug-flow of data.
Based on above-mentioned live data plug-flow and offer and the method for obtaining plug-flow address, the application also provides a kind of service
Device, the server can be live streaming Platform Server, director system server etc..Referring to Fig. 4, Fig. 4 is the application server
The structural schematic diagram of first embodiment.In this embodiment, server 40 includes: that the first generation module 401 and second is raw
At module 402.Wherein, the first generation module 401 is for generating plug-flow corresponding with server network environment address, Yi Jisheng
At the network address with the recommended information for how obtaining plug-flow address.Second generation module 402 is used for by plug-flow address and with Jie
The network address for the information that continues is integrated, and generates a plug-flow identification code, and plug-flow identification code carries plug-flow address information and band is described
The website information of information.
Wherein, in one embodiment, the first generation module 401 is also used to when server can connect internet, raw
At the outer net plug-flow address for receiving live data by internet;When server can connect local area network, generation passes through local
Net receives the Intranet plug-flow address of live data;When server, which can either connect internet, can also connect local area network, simultaneously
Generate outer net plug-flow address and two kinds of Intranet plug-flow address plug-flow address.And when generating Intranet plug-flow address, also monitoring service
Whether multiple network interface cards are installed in device, if server includes multiple network interface cards, generates multiple Intranets for respectively corresponding different network interface cards
Plug-flow address.The server can be used for executing the above method, and have corresponding beneficial effect, referring specifically to above-mentioned embodiment party
The description of formula, details are not described herein.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of the application server second embodiment.In this embodiment, it takes
Business device 50 includes: processor 501, and processor 501 is for generating plug-flow corresponding with server network environment address and band
There is the network address for the recommended information for how obtaining plug-flow address;Processor 501 is also used to by plug-flow address and with recommended information
Network address is integrated, and generates a plug-flow identification code, and plug-flow identification code carries plug-flow address information and the net with recommended information
Location information.
Wherein, in one embodiment, processor 501 is also used to when server can connect internet, and generation passes through
The outer net plug-flow address of internet reception live data;When server can connect local area network, generates and received by local area network
The Intranet plug-flow address of live data;When server, which can either connect internet, can also connect local area network, while generating outer
Net plug-flow address and two kinds of Intranet plug-flow address plug-flow address.And when generating Intranet plug-flow address, also it is in monitoring server
It is no that multiple network interface cards are installed, if server includes multiple network interface cards, with generating multiple Intranet plug-flows for respectively corresponding different network interface cards
Location.The server can be used for executing the above method, and have corresponding beneficial effect, referring specifically to retouching for above embodiment
It states, details are not described herein.
Based on above-mentioned live data plug-flow and offer and the method for obtaining plug-flow address, the application also provide a kind of movement/
Flow pulling equipment, the movement/flow pulling equipment can be mobile phone, PAD etc., be also possible to dedicated flow pulling equipment.Referring to Fig. 6, Fig. 6
It is the structural schematic diagram of the application movement/flow pulling equipment first embodiment.In this embodiment, movement/flow pulling equipment 60
It include: identification module 601 and acquisition module 602.Wherein, identification module 601 for identifying to plug-flow identification code, know by plug-flow
Other code carries plug-flow address information and the website information with the recommended information for how obtaining plug-flow address.Module 602 is obtained to use
In when movement/flow pulling equipment identifies plug-flow identification code using the plug-flow software to match with server, directly parse
Obtain plug-flow address;Or for when movement/flow pulling equipment identifies plug-flow identification code using third party software, parsing to be obtained
Recommended information is taken, and further obtains plug-flow address according to the instruction of recommended information.
Wherein, in one embodiment, the network rings that module 602 is specifically used for monitoring movement/flow pulling equipment itself are obtained
Border;When movement/flow pulling equipment connection is internet, outer net plug-flow address is obtained for parsing;When movement/flow pulling equipment connects
When what is connect is local area network, Intranet plug-flow address is obtained for parsing;When movement/flow pulling equipment can either connect internet, also can
When enough connecting local area network, Intranet plug-flow address is obtained for preferentially parsing;When movement/flow pulling equipment can either connect internet,
When can also connect local area network, for monitoring the network state of internet and local area network, and it is good with network state to parse acquisition
The corresponding plug-flow address of network.
Wherein, in one embodiment, module 602 is obtained to be also used to utilize third party software pair when movement/flow pulling equipment
When plug-flow identification code is identified, parsing obtains recommended information, and further obtains plug-flow address according to the instruction of recommended information.
Movement/the flow pulling equipment can be used for executing the above method, and have corresponding beneficial effect, referring specifically to above embodiment
Description, details are not described herein.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of the application movement/flow pulling equipment second embodiment.In the embodiment party
In formula, movement/flow pulling equipment 70 includes: processor 701 and camera 702, and processor 701 couples camera 702, camera
702 for shooting plug-flow identification code, and processor 701 is for identifying plug-flow identification code, and plug-flow identification code is with carrying plug-flow
Location information and website information with the recommended information for how obtaining plug-flow address.Processor 701 is also used to set in movement/plug-flow
For when being identified using the plug-flow software to match with server to plug-flow identification code, directly parsing obtains plug-flow address;Or
For when movement/flow pulling equipment identifies plug-flow identification code using third party software, parsing to obtain recommended information, and presses
Instruction according to recommended information further obtains plug-flow address.
Wherein, in one embodiment, processor 701 is specifically used for the network environment of monitoring movement/flow pulling equipment itself;
When movement/flow pulling equipment connection is internet, outer net plug-flow address is obtained for parsing;When movement/flow pulling equipment connection
Be local area network when, for parse obtain Intranet plug-flow address;When movement/flow pulling equipment can either connect internet, also can
When connecting local area network, Intranet plug-flow address is obtained for preferentially parsing;When movement/flow pulling equipment can either connect internet,
When can connect local area network, for monitoring the network state of internet and local area network, and acquisition and the good net of network state are parsed
The corresponding plug-flow address of network.
Wherein, in one embodiment, processor 701 is also used to when movement/flow pulling equipment using third party software to pushing away
When stream identification code is identified, parsing obtains recommended information, and further obtains plug-flow address according to the instruction of recommended information.It should
Movement/plug-flow can be used for executing the above method, and have corresponding beneficial effect, referring specifically to retouching for above embodiment
It states, details are not described herein.
Based on above-mentioned live data plug-flow and offer and the method for obtaining plug-flow address, the application also provide it is a kind of have deposit
The device of function is stored up, referring to Fig. 8, Fig. 8 is the structural schematic diagram for the device first embodiment that the application has store function.
In this embodiment, storage device 80 is stored with program 801, program 801 be performed realize above-mentioned live data plug-flow and
The method for providing and obtaining plug-flow address.It is consistent in specific work process and above method embodiment, therefore details are not described herein, in detail
Carefully please refer to the explanation of the above corresponding method step.Wherein the device with store function can be portable storage media such as U
Disk, CD, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random
Access Memory), the various media that can store program code such as magnetic disk, be also possible to terminal, server etc..
Above scheme, this application discloses a kind of methods of live data plug-flow, wherein live streaming/instructor in broadcasting's server by utilizing
The mode of identification code is by plug-flow address and how to obtain the plug-flow address recommended information and shows, in order to movement/plug-flow
Equipment accurately obtains.Because plug-flow identification code carries plug-flow address information and with the website information of recommended information, makes movement/plug-flow
Equipment can obtain enough information, and according to own situation, parsing obtains corresponding effective information.
In several embodiments provided herein, it should be understood that disclosed system, device and method can
To realize by another way.For example, device embodiments described above are only schematical, for example, the mould
The division of block or unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple
Unit or assembly can be combined or can be integrated into another system, or some features can be ignored or not executed.It is another
Point, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, device or
The indirect coupling or communication connection of unit 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.Some or all of unit therein can be selected to realize present embodiment scheme according to the actual needs
Purpose.
In addition, each functional unit in each embodiment of the application can integrate in one processing unit, it can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application
The all or part of the steps of embodiment the method.
The foregoing is merely presently filed embodiments, are not intended to limit the scope of the patents of the application, all to utilize this
Equivalent structure or equivalent flow shift made by application specification and accompanying drawing content, it is relevant to be applied directly or indirectly in other
Technical field similarly includes in the scope of patent protection of the application.