CN105656913A - Method for allowing intelligent terminal to adapt to network in video playing - Google Patents

Method for allowing intelligent terminal to adapt to network in video playing Download PDF

Info

Publication number
CN105656913A
CN105656913A CN201610064333.XA CN201610064333A CN105656913A CN 105656913 A CN105656913 A CN 105656913A CN 201610064333 A CN201610064333 A CN 201610064333A CN 105656913 A CN105656913 A CN 105656913A
Authority
CN
China
Prior art keywords
intelligent terminal
source device
detection
video source
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610064333.XA
Other languages
Chinese (zh)
Other versions
CN105656913B (en
Inventor
陈嗣文
黄文团
倪海鸥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN201610064333.XA priority Critical patent/CN105656913B/en
Publication of CN105656913A publication Critical patent/CN105656913A/en
Application granted granted Critical
Publication of CN105656913B publication Critical patent/CN105656913B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • H04L65/1069Session establishment or de-establishment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1023Media gateways
    • H04L65/103Media gateways in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a method for allowing an intelligent terminal to adapt to a network in video playing. The method comprises the steps that the intelligent terminal obtains an intelligent terminal external internet protocol (IP) by using a server, an external IP of a video source device playing a video, a local area network (LAN) port address and a wide area network (WAN) port address; whether the video source device is after network address translation (NAT) is determined; whether the video source device and the NAT are in the same local area network is determined through comparison, if the video source device and the NAT are in the same local area network and the video source device is after the NAT, the intelligent terminal initiates LAN port detection and WAN port detection, so as to determine that a link between the intelligent terminal and the video source device is available; if the video source device and the NAT are not in the same local area network and the video source device is not after the NAT, WAN port detection is initiated; and a best playing link is selected according to a detection result, if all the links corresponding to the detection result are unstable, the link of the server is selected for playing. Through adoption of the method, the intelligent terminal can play the video at a higher speed, and the pressure of the server is reduced.

Description

A kind of intelligent terminal plays the method for adaptive network during video
Technical field
The present invention relates to technical field of network communication, particularly relate to a kind of intelligent terminal and play the method for adaptive network during video.
Background technology
Current intelligent terminal plays the mode of the video of video source device mainly two kinds: one is to play unified management by Connection Service device, and one is to be play by direct-connected devices such as WIFI. Being play by server and need to take server resource, server stress is big, has certain network speed requirement; Itself there is distance limit by the direct-connected video source device broadcasting of WIFI, environmental requirement is high, but can be unaffected when network environment difference. Existing application is all single use a certain mode therein and carries out video playback, it is impossible to the well best broadcast mode under processing intelligent terminal current network conditions, thus because environmental effect brings bad experience.
Disclosed in prior art " a kind of method and apparatus uniformly distributing video in the wireless network ", see that publication number is: CN104967880A, publication date is: the Chinese patent of 2015-10-07, the method comprising the steps of one: the bandwidth of wireless network is formulated allocation strategy, it is determined that the maximum restriction bandwidth that the maximum intelligent terminal's quantity that can connect and each intelligent terminal can obtain; Step 2: detection selects the video flowing code check type installed, and the maximum restriction bandwidth that can obtain according to each intelligent terminal sets the setting code check value of this application scenarios; Step 3: set up WLAN so that intelligent terminal can access video multimedia data; Step 4: the access request according to intelligent terminal, sends video flowing to intelligent terminal. Thus can realize this invention and ensure that the intelligent terminal with different performance can obtain uniform wireless bandwidth, smoothly displaying video programs and the various multi-medium datas of acquisition. Effect that this invention reaches and the scheme of employing and present patent application also differ, when present patent application is to allow intelligent terminal play video, can automatically adapting to the situation of current network, thus accelerating intelligent terminal to play the speed of video, reducing the pressure of server.
Summary of the invention
The technical problem to be solved in the present invention, is in that to provide a kind of intelligent terminal to play the method for adaptive network during video, it is possible to effectively accelerates intelligent terminal and plays the speed of video, reduces the pressure of server.
The present invention is achieved in that a kind of intelligent terminal plays the method for adaptive network during video, described method is: intelligent terminal obtains intelligent terminal's external IP by a server, play the external IP of the video source device of video, LAN port address and WAN port address; Judge that video source device is whether after network address translation NAT; And learn that whether the two is at same LAN by the external IP comparison of intelligent terminal's external IP and video source device, in same LAN and video source device after network address translation NAT, initiated the detection of LAN mouth and the detection of WAN mouth respectively by intelligent terminal, detection packet loss can be used less than 30% link determined between intelligent terminal and video source device; When not at same LAN and video source device not after network address translation NAT, then initiate the detection of WAN mouth equally; Select the best link play according to result of detection, when the link that result of detection is corresponding is all unstable, select to be play by the link of server, it is ensured that play the stability of video.
Further, detecting two kinds of link LAN mouths and WAN mouth, when result of detection all can use, prioritizing selection LAN mouth link is play.
Further, when intelligent terminal or video source device end network environment change, the method that this adaptive network need to be re-executed.
Further, described detection mode is UDP detection or Http detection; Described UDP detection is: initiate 10 UDP bags to destination address, and the content of UDP bag need to unified with video source device end be decided through consultation, receiving the response packet of more than 7 in Preset Time 3s, then detect successfully, LAN mouth or WAN mouth link can be used.
Further, the information of described video source device seldom changes, and the information of video source device unified after login or network change can be reported to server to preserve, or is saved in video source device itself, waits that intelligent terminal initiates request and asks for.
Further, video source device information is obtained from triggering, initiate to detect that the whole process obtaining result of detection is all asynchronous to be carried out, after change of network environment or equipment are restarted, the optimum link of acquiescence is the link play by server, avoid also waiting result of detection when playing, improve to play and experience.
Further, after obtaining result of detection, result of detection is saved in the buffer memory of intelligent terminal by unification, quickly takes for when playing.
Further, described intelligent terminal is mobile phone, or tablet device.
Further, described video source device is router, or the gateway device of IP Camera.
Further, when a certain link that detection is available is play unsuccessfully, the link play by server is switched to play out immediately.
Present invention have the advantage that the present invention obtains intelligent terminal's external IP by a server, play the external IP of the video source device of video, LAN port address and WAN port address; Judge that video source device is whether after network address translation NAT; And learn that whether the two is at same LAN by the external IP comparison of intelligent terminal's external IP and video source device, best broadcasting link can be selected by current network environment, effectively accelerate intelligent terminal and play the speed of video, reduce the pressure of server, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the inventive method schematic flow sheet.
Fig. 2 is that LAN of the present invention detection can lead to link topology figure.
Fig. 3 is that WAN of the present invention detection can lead to link topology figure.
Fig. 4 is the video playback of the present invention link topology figure by server.
Detailed description of the invention
Refer to shown in Fig. 1 to Fig. 4, a kind of intelligent terminal of the present invention plays the method for adaptive network during video, described method is: when smart machine starts or network environment changes, intelligent terminal obtains intelligent terminal's external IP by a server, play the external IP of the video source device of video, LAN port address and WAN port address; Judge that whether video source device (namely judges the LAN port address of video source device, WAN port address, if information behind the nat and the outside ip address of himself) after network address translation NAT; The information of described video source device seldom changes, and the information of video source device unified after login or network change can be reported to server to preserve, or is saved in video source device itself, waits that intelligent terminal initiates request and asks for.
After getting video source device information and intelligent terminal's external IP information, needs judge whether to need to initiate LAN mouth and the detection of WAN mouth, it is: when intelligent terminal is identical with the external IP of video source device end that two ends are in same LAN and initiate the detection of LAN mouth and the detection of WAN mouth the need of the condition initiating detection; When the external IP of intelligent terminal and video source device end differs, two ends not in same LAN and video source device not behind the nat, then equally initiate WAN mouth detection. Meet detection condition, initiate detection. In same LAN and video source device after network address translation NAT, intelligent terminal initiate respectively LAN mouth detection and WAN mouth detection, detection packet loss can use less than 30% link determined between intelligent terminal and video source device; When not at same LAN and video source device not after network address translation NAT, then initiate the detection of WAN mouth equally; Select the best link play according to result of detection, when the link that result of detection is corresponding is all unstable, select to be play by the link of server, it is ensured that play the stability of video. Described detection mode is UDP detection or Http detection; Described UDP detection is: initiate 10 UDP bags to destination address, and the content of UDP bag need to unified with video source device end be decided through consultation, receiving the response packet of more than 7 in Preset Time 3s, then detect successfully, LAN mouth or WAN mouth link can be used.
Two kinds of link LAN mouths of described detection and WAN mouth, when result of detection all can use, prioritizing selection LAN mouth link is play. When intelligent terminal or video source device end network environment change, the method that this adaptive network need to be re-executed.
In the present invention, video source device information is obtained from triggering, initiate to detect that the whole process obtaining result of detection is all asynchronous to be carried out, after change of network environment or equipment are restarted, the optimum link of acquiescence is the link play by server, avoid also waiting result of detection when playing, improve to play and experience.
Described obtain result of detection after, unified result of detection is saved in the buffer memory of intelligent terminal, quickly takes for when playing. Described intelligent terminal can be mobile phone, personal assistant, the one of the smart machines such as flat board.
Described video source device can be router, the one of the first-class gateway device of network shooting. When a certain link that detection is available is play unsuccessfully, the link play by server is switched to play out immediately.
When user clicks and commences play out, take the result of detection of buffer memory, quickly play according to optimum link.During the link that optimum link is non-to be play by server, playing after unsuccessfully, the link play by server of converting immediately, steadily excessively and revise the optimum link of buffer memory.
Three kinds of representative link topological diagrams as shown in Figures 2 to 4. Being the typical intelligent terminal AP and the LAN mouth by the direct-connected video source device of WIFI in Fig. 2, when WIFI connection signal is good, the detection of LAN mouth can be led to, and plays and plays the best by LAN port address; Fig. 3 is typical general home-network linkups mode: video source device WAN mouth is connected on the LAN mouth of egress gateways and connects outer net, and intelligent terminal passes through WIFI connection outlet gateway. When WIFI connection signal is good, now WAN mouth detection can be led to, and plays and plays the best by WAN port address. Being complicated network topology in Fig. 4, video source device connects behind the nat and with intelligent terminal not in same LAN, and test detection is unavailable, plays link and plays the best by server. If the situation video source device in Fig. 4 connects not behind the nat, then need to initiate the detection of WAN mouth, then determined optimum broadcasting link by result of detection.
In a word, the present invention obtains intelligent terminal's external IP by a server, plays the external IP of the video source device of video, LAN port address and WAN port address; Judge that video source device is whether after network address translation NAT; And learn that whether the two is at same LAN by the external IP comparison of intelligent terminal's external IP and video source device, best broadcasting link can be selected by current network environment, effectively accelerate intelligent terminal and play the speed of video, reduce the pressure of server, improve Consumer's Experience.
The foregoing is only presently preferred embodiments of the present invention, all equalizations done according to the present patent application the scope of the claims change and modify, and all should belong to the covering scope of the present invention.

Claims (10)

1. an intelligent terminal plays the method for adaptive network during video, it is characterised in that: described method is: intelligent terminal obtains intelligent terminal's external IP by a server, plays the external IP of the video source device of video, LAN port address and WAN port address; Judge that video source device is whether after network address translation NAT; And learn that whether the two is at same LAN by the external IP comparison of intelligent terminal's external IP and video source device, in same LAN and video source device after network address translation NAT, initiated the detection of LAN mouth and the detection of WAN mouth respectively by intelligent terminal, detection packet loss can be used less than 30% link determined between intelligent terminal and video source device; When not at same LAN and video source device not after network address translation NAT, then initiate the detection of WAN mouth equally; Select the best link play according to result of detection, when the link that result of detection is corresponding is all unstable, select to be play by the link of server, it is ensured that play the stability of video.
2. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: detecting two kinds of link LAN mouths and WAN mouth, when result of detection all can use, prioritizing selection LAN mouth link is play.
3. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: when intelligent terminal or video source device end network environment change, the method that this adaptive network need to be re-executed.
4. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: described detection mode is UDP detection or Http detection;Described UDP detection is: initiate 10 UDP bags to destination address, and the content of UDP bag need to unified with video source device end be decided through consultation, receiving the response packet of more than 7 in Preset Time 3s, then detect successfully, LAN mouth or WAN mouth link can be used.
5. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterized in that: the information of described video source device seldom changes, the information of video source device unified after login or network change can be reported to server to preserve, or it is saved in video source device itself, waits that intelligent terminal initiates request and asks for.
6. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterized in that: obtain video source device information from triggering, initiate to detect that the whole process obtaining result of detection is all asynchronous to be carried out, after change of network environment or equipment are restarted, the optimum link of acquiescence is the link play by server, avoid also waiting result of detection when playing, improve to play and experience.
7. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: after obtaining result of detection, result of detection is saved in the buffer memory of intelligent terminal by unification, quickly takes for when playing.
8. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: described intelligent terminal is mobile phone, or tablet device.
9. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: described video source device is router, or the gateway device of IP Camera.
10. a kind of intelligent terminal according to claim 1 plays the method for adaptive network during video, it is characterised in that: when a certain link that detection is available is play unsuccessfully, switch to the link play by server to play out immediately.
CN201610064333.XA 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video Active CN105656913B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610064333.XA CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610064333.XA CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Publications (2)

Publication Number Publication Date
CN105656913A true CN105656913A (en) 2016-06-08
CN105656913B CN105656913B (en) 2019-07-09

Family

ID=56488092

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610064333.XA Active CN105656913B (en) 2016-01-29 2016-01-29 A kind of method of adaptive network when intelligent terminal broadcasting video

Country Status (1)

Country Link
CN (1) CN105656913B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862132A (en) * 2019-02-22 2019-06-07 安徽睿极智能科技有限公司 A kind of method that video monitoring platform adaptively penetrates rete mirabile

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697467B2 (en) * 1995-10-05 2010-04-13 Broadcom Corporation Hierarchical data collection network supporting packetized voice communications among wireless terminals and telephones
CN103259709A (en) * 2013-05-27 2013-08-21 南京邮电大学 End-to-end mobile phone real-time video transmission method based on virtual private network
CN104270603A (en) * 2014-09-18 2015-01-07 福建星网锐捷安防科技有限公司 Method for obtaining video streams and monitoring system
CN105007500A (en) * 2015-07-28 2015-10-28 无锡天脉聚源传媒科技有限公司 Video transmission method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7697467B2 (en) * 1995-10-05 2010-04-13 Broadcom Corporation Hierarchical data collection network supporting packetized voice communications among wireless terminals and telephones
US20120269186A1 (en) * 1995-10-05 2012-10-25 Broadcom Corporation Hierarchical data collection network supporting packetized voice communications among wireless terminals and telephones
CN103259709A (en) * 2013-05-27 2013-08-21 南京邮电大学 End-to-end mobile phone real-time video transmission method based on virtual private network
CN104270603A (en) * 2014-09-18 2015-01-07 福建星网锐捷安防科技有限公司 Method for obtaining video streams and monitoring system
CN105007500A (en) * 2015-07-28 2015-10-28 无锡天脉聚源传媒科技有限公司 Video transmission method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109862132A (en) * 2019-02-22 2019-06-07 安徽睿极智能科技有限公司 A kind of method that video monitoring platform adaptively penetrates rete mirabile

Also Published As

Publication number Publication date
CN105656913B (en) 2019-07-09

Similar Documents

Publication Publication Date Title
CN103988543B (en) Control device, network system in WLAN and method for processing business
US8917625B2 (en) Mapping quality of service (QOS) from a wireless network to a wired network
CN107086934B (en) The configuration method and gateway of networking equipment
CN102684951B (en) The system of selection of many Wide Area Network interface networking, system and network equipment
US8862768B2 (en) Method and system for packetizing data for servicing traffic end-to-end
CN109450982B (en) Network communication method and system
CN108737768A (en) A kind of monitoring method and monitoring device based on monitoring system
CN103873356A (en) Household gateway based application identification method and system, and household gateway
CN101141375B (en) Packet transmission method, transmission apparatus and system within LAN
US8711869B2 (en) Message transfer apparatus, output method, and computer program product
CN105306366A (en) Data routing method and device
CN108632559A (en) A kind of video data handling procedure and device
CN111629024A (en) Data transmission control method and device, storage medium and electronic equipment
EP1985028A1 (en) Method and apparatus for packet aggregation in power line communication network
CN107896182B (en) Message forwarding method and device
US20140204775A1 (en) Route selection method for use where plural heterogeneous networks are available
US20120102162A1 (en) Dynamic bandwidth adjustment for multiple service support
CN109905729A (en) The method and apparatus for sending multi-medium data package using cross-layer optimizing
US20160295301A1 (en) Communication protocol control method and device in smart tv apparatus
CN104040989B (en) Gateway, and corresponding method, computer program and storage device
CN103152794B (en) Business access method and access controller
CN114095388B (en) Method for exchanging data packet classification identifiers between RTC/RTE equipment and WiFi access point and wireless access point
CN106921534A (en) Data traffic monitoring and managing method and device
WO2014127635A1 (en) Method and device for transmitting enhanced transmission selection standard configuration information
CN108650310A (en) A kind of service discovery method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant