CN108881959A - A kind of cross-platform media downloading and system debug method - Google Patents

A kind of cross-platform media downloading and system debug method Download PDF

Info

Publication number
CN108881959A
CN108881959A CN201810602458.2A CN201810602458A CN108881959A CN 108881959 A CN108881959 A CN 108881959A CN 201810602458 A CN201810602458 A CN 201810602458A CN 108881959 A CN108881959 A CN 108881959A
Authority
CN
China
Prior art keywords
player
download agent
agent module
media
download
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
CN201810602458.2A
Other languages
Chinese (zh)
Other versions
CN108881959B (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.)
Baishitong Network TV Technology Development Co Ltd
Original Assignee
Baishitong Network TV Technology Development 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 Baishitong Network TV Technology Development Co Ltd filed Critical Baishitong Network TV Technology Development Co Ltd
Priority to CN201810602458.2A priority Critical patent/CN108881959B/en
Publication of CN108881959A publication Critical patent/CN108881959A/en
Application granted granted Critical
Publication of CN108881959B publication Critical patent/CN108881959B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/238Interfacing the downstream path of the transmission network, e.g. adapting the transmission rate of a video stream to network bandwidth; Processing of multiplex streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2662Controlling the complexity of the video stream, e.g. by scaling the resolution or bitrate of the video stream based on the client capabilities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8193Monomedia components thereof involving executable data, e.g. software dedicated tools, e.g. video decoder software or IPMP tool

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to a kind of cross-platform media method for down loading, including following below scheme:Player (2) sends playing request to media server (1);Media server (1) sends broadcast address to download agent module;Download agent module downloads of media data, and corresponding media data is returned into player (2).Compared with prior art, the present invention provides better play quality using the download module of the player of download agent module substitution Android, iOS or PC;A set of code is applicable in multiple platforms, saves cost, maintains easily;The distal end download agent module in unified local area network, the optional download agent module of dynamic select, flexibility height can arbitrarily be selected.

Description

A kind of cross-platform media downloading and system debug method
Technical field
The present invention relates to a kind of network media method for down loading, more particularly, to a kind of cross-platform media downloading and system tune Method for testing.
Background technique
With intelligent terminal, user is increasing, and video media broadcasting demand is also increasing, and Android, iOS Etc. the player of equipment download policy it is fairly simple, it is not highly desirable for leading to play quality.Meanwhile each different manufacturers are not Player with version is also multifarious.
The custom fitting of each cell phone manufacturer of Android platform is different, cause different equipment need to do it is some small Adaptation.And the platforms such as Android, for reasons such as the security considerations of producer, ADB (Android Debug is forbidden in some meetings Bridge) the debugging methods such as connection, cause production debugging in many Android devices highly difficult, low efficiency.At this stage, Android, iOS and PC are that three bigger platforms need if product respectively does in each platform in video resource provider Biggish investment is wanted, product development and maintenance are all relatively difficult.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of cross-platform media Downloading and system debug method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of cross-platform media method for down loading, including following below scheme:
Player sends playing request to media server;
Media server sends broadcast address to download agent module;
Download agent module downloads of media data, and corresponding media data is returned into player.
The player include android system player, iOS system player, Windows system plays device and Unix system player.
The download agent module includes that proxy module and distal end downloading generation is locally-downloaded in same local area network Manage module.
The player is connect by download agent link block with download agent module.
The player is communicated by ICP/IP protocol or http protocol and download agent module.
The download agent module is located at the end PC.
A kind of adjustment method of cross-platform media download system, including following below scheme:
Player sends playing request to media server;
Media server sends broadcast address to download agent module;
Download agent module downloads of media data;
Download agent module is debugged;
After the completion of debugging, corresponding media data is returned to player by download agent module.
Compared with prior art, the present invention has the following advantages that:
(1) download module that the player of Android, iOS or PC are substituted using download agent module, can be player Additional spatial cache is provided, anti-network jitter performance is improved, the newly downloaded mode downloaded from multiple sources is provided, is provided faster more Stable speed of download, therefore better play quality can be provided.
(2) a set of code is applicable in multiple platforms, saves cost, maintains easily.
(3) player is connect by download agent link block with distal end download agent module, can arbitrarily select unification Distal end download agent module in local area network, the optional download agent module of dynamic select.
(4) download agent module that the mobile terminals such as the download agent module substitution Android at the end PC can be used is adjusted Examination reduces debugging difficulty in the service logic of platform testing another platform, promotes debugging efficiency.
Detailed description of the invention
Fig. 1 is existing player structure schematic diagram;
Fig. 2 is the present embodiment method for down loading schematic diagram.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.The present embodiment is with technical solution of the present invention Premised on implemented, the detailed implementation method and specific operation process are given, but protection scope of the present invention is not limited to Following embodiments.
Embodiment
As shown in Fig. 2, a kind of method for down loading of cross-platform media download system, including following below scheme:
Player 2 sends playing request to media server 1;
Media server 1 sends broadcast address to download agent module 3;
3 downloads of media data of download agent module, and corresponding media data is returned into player 2.
Player 2 includes android system player, iOS system player, Windows system plays device and Unix system System player.
Download agent module 3 includes that proxy module and distal end download agent mould is locally-downloaded in same local area network Block, player 2 are connect by download agent link block 4 with download agent module.
Player 2 is communicated by ICP/IP protocol or http protocol and download agent module 3.
Download agent module 3 is located at the end PC.
The adjustment method of cross-platform media download system, including following below scheme:
Player 2 sends playing request to media server 1;
Media server 1 sends broadcast address to download agent module 3;
3 downloads of media data of download agent module;
Download agent module 3 is debugged;
After the completion of debugging, corresponding media data is returned to player 2 by download agent module 3.
The present embodiment core scheme includes:
1, adapter tube player 2 downloads logic.The download policy of general player 2 itself determined by player 2, logic ratio Relatively simple, if broadcast address is directly transmitted to player 2, play quality is unable to get guarantee, and download agent module 3 is used for The downloading logic for substituting player 2, is directly changed to player 2 from the mode of 1 downloads of media data of media server by player 2 Data are read from download agent module 3, so that mounted mass under Optimal improvements, improves play quality.Specific practice is:It will be original Broadcast address passes to download agent module 3, and download agent module 3 generates a new local broadcast address, by new sheet Ground broadcast address passes to player 2.
2, download agent module 3 is connected.Normal condition adapter tube downloading only needs to pass to broadcast address into local downloading Proxy module 3 can, but go wrong when need to debug, since the debugging difficulty of the equipment such as Android compares Greatly, it is therefore desirable to connect the lesser equipment of the debugging difficulties such as PC.It at this time needs according to the configuration parameter of local file or straight The mode for connecing preset parameter is connected to download agent module 3 in specified PC equipment, to facilitate with the download agent mould on PC Block 3 substitutes local download agent module 3 and is debugged.
3, the broadcasting control informations such as broadcasting, pause, stopping, dragging in Android device are sent by being connected to the network To the download agent module 3 on PC, the download agent module 3 for making the proxy module on PC substitute the local Android receives broadcasting The control of device 2.It can choose using original ICP/IP protocol, the agreements such as HTTP can be used also to complete the biography of these information It is defeated.
4, the download agent module 3 at the end PC creates downloading task, from matchmaker according to original broadcast address and broadcasting control information 1 downloading media data of body server return to corresponding media data then according to the media data request of player 2 Player 2 goes wrong if played, and directly repairs and debugs at the end PC, until the download agent problem reparation at the end PC, plays Device 2 can normal play.
5, after being repaired the problem of the end PC, because the public a set of code of all platforms, can be replaced with the code after reparation 3 code of download agent module for changing the original problematic end Android, should also repair the problem of the end Android after replacement ?.
6, the connection control routine for modifying the end Android connects configuration from the download agent at the end PC and changes back Android Local download agent module 3, verifying use the download agent module 3 of the local Android, if described the problem using normal It is repaired.
The working principle of download agent module 3 introduced below:
3 essence of download agent module is by the downloading work substitution of 2 the inside of player.There are two major functions, and 1 is from matchmaker 1 downloads of media data of body server, 2 be to serve data to player 2.
1.1 from 1 downloads of media data of media server
Download agent module 3 supports the media data of two kinds of forms.One is the media data of single file, such as mp4, The single files such as rmvb.64K once can be requested to media server 1 as unit of 64K to 1 request data of media server, 128K, 256K or 512K data.Then the data downloaded to are stored in inside memory, if the memory of setting is (in available 20% deposited) it writes completely, then new data are no longer downloaded, if there is new request of data, then can be chosen most inside available data Old hash replaces.Data can be requested from the beginning of file, can also be from the intermediate request of file, can also be from text The end of part starts to request.
Second is HLS protocol media.If only a kind of code rate, directly requests corresponding m3u8 to media server 1 File and corresponding ts file.If there is various code rate, the m3u8 file of all code rates can be first downloaded, lowest bit rate is then selected Start to download.Then remove to download the ts file of corresponding code rate according to the request code rate of player 2.If the not number of request of player 2 According to just no longer being downloaded after downloading 5 ts files.
1.2 serve data to player 2
The webserver for starting a local to give player 2 offer service, and media data is passed through local Webserver is supplied to player 2.It, can be out of proxy module after local webserver receives the request of data of player 2 Corresponding data are read in deposit data, are sent to player 2.For the media of HLS, it is also an option that the code rate sum provided, For example media server 1 is there are three types of code rate, can choose and only provides one such or two kinds or three kinds, freedom degree compares It is high.The user high for network speed, does not provide the media data of low bit- rate, promotes the clarity of user, the user low for network speed, The media data of high code rate is not provided, user's Caton is avoided, avoids playing not smooth.
Original broadcast address and new local broadcast address are carried out corresponding method by download agent module 3 introduced below:
For the media of single file, we can calculate md5 value according to download address, and being then converted to length is 40 Hash value as download agent module 3 task mark, by corresponding task when player 2 requests media data to bottom Hash value is transmitted to the webserver of download agent module 3, and the corresponding media data of hash value is returned to broadcasting by webserver Device 2.
For the media of HLS, the parameter in download address is removed, the md5 value of download address is calculated, as media Hash mark.When player 2 is requested, hash is used to collect m3u8 as parameter to proxy module webserver request one;Hash and Code rate information passes to webserver simultaneously as two parameters, the expression as second level m3u8.M3u8 is added into code rate information Calculate a new md5 value, the mark as ts file stream.

Claims (7)

1. a kind of cross-platform media method for down loading, which is characterized in that including following below scheme:
Player (2) sends playing request to media server (1);
Media server (1) sends broadcast address to download agent module;
Download agent module downloads of media data, and corresponding media data is returned into player (2).
2. the cross-platform media method for down loading of one kind according to claim 1, which is characterized in that the player (2) Including android system player, iOS system player, Windows system plays device and Unix system player.
3. the cross-platform media method for down loading of one kind according to claim 1, which is characterized in that the download agent mould Block includes that proxy module and distal end download agent module is locally-downloaded in same local area network.
4. the cross-platform media method for down loading of one kind according to claim 2, which is characterized in that the player (2) It is connect by download agent link block (4) with download agent module.
5. the cross-platform media method for down loading of one kind according to claim 1, which is characterized in that the player (2) It is communicated by ICP/IP protocol or http protocol and download agent module.
6. the cross-platform media method for down loading of one kind according to claim 1, which is characterized in that the download agent mould Block is located at the end PC.
7. a kind of adjustment method of cross-platform media download system, which is characterized in that including following below scheme:
Player (2) sends playing request to media server (1);
Media server (1) sends broadcast address to download agent module;
Download agent module downloads of media data;
Download agent module is debugged;
After the completion of debugging, corresponding media data is returned to player (2) by download agent module.
CN201810602458.2A 2018-06-12 2018-06-12 Cross-platform media downloading and system debugging method Active CN108881959B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810602458.2A CN108881959B (en) 2018-06-12 2018-06-12 Cross-platform media downloading and system debugging method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810602458.2A CN108881959B (en) 2018-06-12 2018-06-12 Cross-platform media downloading and system debugging method

Publications (2)

Publication Number Publication Date
CN108881959A true CN108881959A (en) 2018-11-23
CN108881959B CN108881959B (en) 2021-07-16

Family

ID=64337908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810602458.2A Active CN108881959B (en) 2018-06-12 2018-06-12 Cross-platform media downloading and system debugging method

Country Status (1)

Country Link
CN (1) CN108881959B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
CN105187950A (en) * 2014-05-29 2015-12-23 中国移动通信集团内蒙古有限公司 Video file playing method, equipment and system
CN106657162A (en) * 2017-03-01 2017-05-10 北京东大正保科技有限公司 Online stream media playing method and stream media downloading and offline playing method
WO2017113302A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Media service proxy method, device and system thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101938488A (en) * 2010-09-14 2011-01-05 深圳市融创天下科技发展有限公司 Playing method, device, system, proxy server and mobile terminal of streaming media
CN103686198A (en) * 2013-12-30 2014-03-26 优视科技有限公司 Video data processing method, device and system
CN105187950A (en) * 2014-05-29 2015-12-23 中国移动通信集团内蒙古有限公司 Video file playing method, equipment and system
WO2017113302A1 (en) * 2015-12-31 2017-07-06 华为技术有限公司 Media service proxy method, device and system thereof
CN106657162A (en) * 2017-03-01 2017-05-10 北京东大正保科技有限公司 Online stream media playing method and stream media downloading and offline playing method

Also Published As

Publication number Publication date
CN108881959B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN106105238B (en) System and method for streaming adaptive bitrate media content
DE102005032281A1 (en) A method, manufactured article and apparatus for updating software in a consumer device
CN102752675B (en) Method for realizing ONU (Optical Network Unit) service automatic opening on OLT (Optical Line Terminal) equipment
CN100463491C (en) Software staging management method and system of set-top box
CN105072462A (en) Video advertisement insert-play method and device thereof
CN101207729A (en) Digital television receiving terminal and software upgrading system thereof
CN101141626A (en) Service starting method, device and system of network television, and network television terminal
CN110213653B (en) Method and device for playing video
CN106657987B (en) Set-top box maintaining method and system
CN110324654A (en) Main broadcaster end live video frame processing method, device, equipment, system and medium
CN105763899A (en) Intelligent set top box application management system and method
US11323768B2 (en) Reducing latency during service change and improving robustness in advanced television systems committee (ATSC) 3.0 system
CN109002312A (en) Method for upgrading software, device and upgrade server and equipment
CN108881959A (en) A kind of cross-platform media downloading and system debug method
CN101860558B (en) Cross-regional peer-to-peer network stream media ordering method and system thereof
CN105828109B (en) Server, client and the play system based on RTSP/RTP
CN102025574A (en) Cable modem termination system and method
KR20210130989A (en) api gateway accelerator system and methods
Allamandri et al. Service platform for converged interactive broadband broadcast and cellular wireless
CN105516751B (en) A kind of set-top box/television set and its upgrade method
CN202334794U (en) Code stream broadcasting system
WO2017071642A1 (en) Media playback method, device and computer storage medium
CN104410721A (en) Method and system for supporting automatic caching according to update content
CN106604062A (en) Streaming media on demand method and device
CN113207007B (en) Live broadcast recording method based on HLS protocol

Legal Events

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