CN108881959B - Cross-platform media downloading and system debugging method - Google Patents

Cross-platform media downloading and system debugging method Download PDF

Info

Publication number
CN108881959B
CN108881959B CN201810602458.2A CN201810602458A CN108881959B CN 108881959 B CN108881959 B CN 108881959B CN 201810602458 A CN201810602458 A CN 201810602458A CN 108881959 B CN108881959 B CN 108881959B
Authority
CN
China
Prior art keywords
player
agent module
download
download agent
media
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.)
Active
Application number
CN201810602458.2A
Other languages
Chinese (zh)
Other versions
CN108881959A (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.)
Bestv Network Television Technology Development Co ltd
Original Assignee
Bestv Network Television 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 Bestv Network Television Technology Development Co ltd filed Critical Bestv Network Television 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

Images

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 MPEG 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 invention relates to a cross-platform media downloading method, which comprises the following procedures: the player (2) sends a playing request to the media server (1); the media server (1) sends a play address to the download agent module; the download agent module downloads the media data and returns the corresponding media data to the player (2). Compared with the prior art, the invention uses the download agent module to replace the download module of the player of Android, iOS or PC, thereby providing better play quality; one set of codes is suitable for a plurality of platforms, so that the cost is saved and the maintenance is convenient; the remote downloading agent module in the unified local area network can be selected at will, the selectable downloading agent module can be selected dynamically, and the flexibility is high.

Description

Cross-platform media downloading and system debugging method
Technical Field
The invention relates to a network media downloading method, in particular to a cross-platform media downloading and system debugging method.
Background
With the increasing number of intelligent terminal equipment users, the video media playing requirement is increased, and the downloading strategy of the player of the Android, iOS and other equipment is simple, so that the playing quality is not ideal. Meanwhile, players of different versions of different manufacturers are also different.
The custom adaptations of various mobile phone manufacturers of the Android platform are different, so that different devices need to be slightly adapted. Due to the reasons of safety consideration of manufacturers and the like of platforms such as Android and the like, some platforms prohibit debugging means such as ADB (Android Debug bridge) connection and the like, so that product debugging on a plurality of Android devices is difficult and low in efficiency. At present, Android, iOS and PC are three relatively large platforms, and if a video resource provider makes products on each platform, the video resource provider needs a relatively large investment, and the product development and maintenance are relatively difficult.
Disclosure of Invention
The present invention is directed to overcome the above-mentioned drawbacks of the prior art and to provide a cross-platform media downloading and system debugging method.
The purpose of the invention can be realized by the following technical scheme:
a cross-platform media downloading method comprises the following procedures:
the player sends a playing request to the media server;
the media server sends a play address to the download agent module;
the downloading agent module downloads the media data and returns the corresponding media data to the player;
recording the playing address sent by the media server to the download agent module as an original playing address, generating a new local playing address after the download agent module receives the original playing address, and transmitting the new local playing address to the player 2.
The method for the download agent module to correspond the original playing address and the new local playing address comprises the following steps:
for a single file of media, calculating an md5 value according to a download address, converting the md5 value into a hash value with the length of 40 bits as an identifier of a task of a download agent module, transmitting the hash value of the corresponding task to a webserver of the download agent module when the player requests media data from a bottom layer, and returning the media data corresponding to the hash value to the player by the webserver;
for HLS media, parameters in the download address are removed, and the md5 value of the download address is calculated and used as a hash identifier of the media; when the player requests, the hash is used as a parameter to request a first-level m3u8 from the download agent module webserver; transmitting the hash and code rate information as two parameters to webserver at the same time as the representation of the second level m3u 8; and adding the code rate information to m3u8 to calculate a new md5 value as the identifier of the ts file stream.
The players comprise an Android system player, an iOS system player, a Windows system player and a Unix system player.
The download agent module comprises a local download agent module and a remote download agent module which are positioned in the same local area network.
The player is connected with the download agent module through the download agent connection module.
The player communicates with the download agent module through a TCP/IP protocol or an HTTP protocol.
The download agent module is positioned at the PC end.
A debugging method of a cross-platform media downloading system comprises the following procedures:
the player sends a playing request to the media server;
the media server sends a play address to the download agent module;
the download agent module downloads the media data;
debugging the downloading agent module;
and after debugging is finished, the downloading agent module returns the corresponding media data to the player.
Compared with the prior art, the invention has the following advantages:
(1) the download agent module is used for replacing a download module of a player of Android, iOS or PC, so that extra cache space can be provided for the player, the network jitter resistance performance is improved, a new download mode downloaded from a plurality of sources is provided, the download speed is faster and more stable, and better play quality can be provided.
(2) One set of codes is suitable for a plurality of platforms, saves cost and is convenient to maintain.
(3) The player is connected with the remote downloading agent module through the downloading agent connecting module, the remote downloading agent module in the unified local area network can be selected at will, and the selectable downloading agent module can be dynamically selected.
(4) The download agent module of the PC terminal can be used for replacing the download agent module of the Android and other mobile terminals for debugging, the service logic of one platform and the service logic of the other platform are debugged, the debugging difficulty is reduced, and the debugging efficiency is improved.
Drawings
FIG. 1 is a schematic diagram of a conventional player structure;
fig. 2 is a schematic diagram of the downloading method according to this embodiment.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present embodiment is implemented on the premise of the technical solution of the present invention, and a detailed implementation manner and a specific operation process are given, but the scope of the present invention is not limited to the following embodiments.
Examples
As shown in fig. 2, a downloading method of a cross-platform media downloading system includes the following processes:
the player 2 sends a play request to the media server 1;
the media server 1 sends a play address to the download agent module 3;
the download agent module 3 downloads the media data and returns the corresponding media data to the player 2.
The player 2 comprises an Android system player, an iOS system player, a Windows system player and a Unix system player.
The download agent module 3 comprises a local download agent module and a remote download agent module which are positioned in the same local area network, and the player 2 is connected with the download agent module through a download agent connecting module 4.
The player 2 communicates with the download agent module 3 via the TCP/IP protocol or the HTTP protocol.
The download agent module 3 is located at the PC side.
The debugging method of the cross-platform media downloading system comprises the following processes:
the player 2 sends a play request to the media server 1;
the media server 1 sends a play address to the download agent module 3;
the download agent module 3 downloads media data;
debugging the downloading agent module 3;
after the debugging is completed, the download agent module 3 returns the corresponding media data to the player 2.
The core scheme of the embodiment comprises the following steps:
1. take over the player 2 download logic. The downloading strategy of the general player 2 is determined by the player 2, the logic is simple, if the playing address is directly transmitted to the player 2, the playing quality cannot be guaranteed, the downloading agent module 3 is used for replacing the downloading logic of the player 2, and the mode that the player 2 directly downloads the media data from the media server 1 is changed into the mode that the player 2 reads the data from the downloading agent module 3, so that the downloading quality is optimized and improved, and the playing quality is improved. The specific method comprises the following steps: the original playing address is transmitted to the download agent module 3, the download agent module 3 generates a new local playing address, and then the new local playing address is transmitted to the player 2.
2. The download agent module 3 is connected. The downloading is taken over under normal conditions only by transmitting the playing address to the local downloading agent module 3, but when problems occur and debugging is needed, due to the fact that debugging difficulty of devices such as Android and the like is high, devices such as a PC and the like which are low in debugging difficulty need to be connected. At this time, the download agent module 3 on the designated PC device needs to be connected according to the configuration parameters of the local file or in a direct fixed parameter manner, so that the download agent module 3 on the PC can be used for debugging instead of the local download agent module 3.
3. And sending playing control information such as playing, pausing, stopping, dragging and the like on the Android equipment to the downloading agent module 3 on the PC through network connection, so that the agent module on the PC replaces the local downloading agent module 3 of the Android to receive the control of the player 2. The original TCP/IP protocol can be selected and the HTTP protocol and other protocols can be used to complete the transmission of the information.
4. The download agent module 3 of the PC end creates a download task according to the original play address and the play control information, downloads media data from the media server 1, and then returns the corresponding media data to the player 2 according to the media data request of the player 2, if a problem occurs in playing, the corresponding media data is directly repaired and debugged at the PC end until the download agent problem at the PC end is repaired, and the player 2 can play normally.
5. After the problem of the PC end is repaired, because all platforms share one set of codes, the original downloading agent module 3 code of the Android end with the problem can be replaced by the repaired code, and the problem of the Android end after replacement also needs to be repaired.
6. And modifying the connection control code of the Android terminal, changing the connection configuration from the download agent of the PC terminal to the local download agent module 3 of the Android, verifying the use of the local download agent module 3 of the Android, and if the use is normal, indicating that the problem is repaired.
The working principle of the download agent module 3 is described below:
the download agent module 3 essentially replaces the download job inside the player 2. There are two main functions, 1 to download media data from the media server 1 and 2 to provide data to the player 2.
1.1 downloading media data from a media Server 1
The download agent module 3 supports two forms of media data. One is media data of a single file, such as mp4, rmvb, etc. The data is requested from the media server 1 in units of 64K, and 64K, 128K, 256K or 512K data is requested from the media server 1 at a time. And then storing the downloaded data in the memory, if the set memory (20% of the available memory) is full, not downloading new data, and if a new data request is made, picking the oldest useless data from the existing data to replace the useless data. Data may be requested from the beginning of the file, from the middle of the file, or from the end of the file.
The second is HLS protocol media. If there is only one bitrate, the corresponding m3u8 file and the corresponding ts file are directly requested from the media server 1. If there are multiple code rates, the m3u8 file with all code rates is downloaded first, and then the lowest code rate is selected to start downloading. And then, the ts file with the corresponding code rate is downloaded according to the requested code rate of the player 2. If the player 2 does not request data, 5 ts files are downloaded and not downloaded.
1.2 providing data to the Player 2
A local webserver is started to serve the player 2 and media data is provided to the player 2 via the local webserver. After receiving the data request of the player 2, the local webserver reads corresponding data from the memory data of the proxy module and sends the data to the player 2. For HLS media, the total number of offered bit rates can be selected, for example, the media server 1 has three bit rates, only one or two or three of them can be provided, and the degree of freedom is relatively high. For the users with high network speed, the media data with low code rate is not provided, the definition of the users is improved, for the users with low network speed, the media data with high code rate is not provided, the user is prevented from being stuck and unsmooth playing is avoided.
The following introduces a method for the download agent module 3 to correspond the original playing address and the new local playing address:
for the media of a single file, we will calculate the md5 value according to the download address, and then convert the md5 value into a hash value with a length of 40 bits as the identifier of the task of the download agent module 3, when the player 2 requests the media data from the bottom layer, the hash value of the corresponding task is transmitted to the webserver of the download agent module 3, and the webserver returns the media data corresponding to the hash value to the player 2.
For HLS media, parameters in the download address are removed, and the md5 value of the download address is calculated and used as the hash identification of the media. When the player 2 requests, the hash is used as a parameter to request a first level m3u8 from the proxy module webserver; the hash and rate information are simultaneously passed to webserver as two parameters, as a representation of level two m3u 8. And adding the code rate information to m3u8 to calculate a new md5 value as the identifier of the ts file stream.

Claims (6)

1. A cross-platform media downloading method is characterized by comprising the following processes:
the player (2) sends a playing request to the media server (1);
the media server (1) sends a play address to the download agent module;
the download agent module downloads the media data and returns the corresponding media data to the player (2);
recording a playing address sent by the media server (1) to a download agent module as an original playing address, generating a new local playing address by the download agent module after receiving the original playing address, and transmitting the new local playing address to a player (2);
the method for the download agent module to correspond the original playing address and the new local playing address comprises the following steps:
for the media of a single file, calculating an md5 value according to a download address, then converting the md5 value into a hash value with the length of 40 bits as an identifier of a task of a download agent module, when the player (2) requests media data from a bottom layer, transmitting the hash value of the corresponding task to a webserver of the download agent module, and returning the media data corresponding to the hash value to the player (2);
for HLS media, parameters in the download address are removed, and the md5 value of the download address is calculated and used as a hash identifier of the media; when the player (2) requests, a hash is used as a parameter to request a first-level m3u8 from the download agent module webserver; transmitting the hash and code rate information as two parameters to webserver at the same time as the representation of the second level m3u 8; and adding the code rate information to m3u8 to calculate a new md5 value as the identifier of the ts file stream.
2. The cross-platform media downloading method according to claim 1, wherein the player (2) comprises an Android system player, an iOS system player, a Windows system player and a Unix system player.
3. The method as claimed in claim 1, wherein the download agent module comprises a local download agent module and a remote download agent module located in the same lan.
4. A cross-platform media downloading method as claimed in claim 2, wherein the player (2) is connected to the download agent module via the download agent connection module (4).
5. A cross-platform media download method according to claim 1, characterized in that the player (2) communicates with the download agent module via TCP/IP protocol or HTTP protocol.
6. The method as claimed in claim 1, wherein the download agent module is located at the PC.
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 CN108881959A (en) 2018-11-23
CN108881959B true 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
CN108881959A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US10848436B1 (en) Dynamic bitrate range selection in the cloud for optimized video streaming
US7373415B1 (en) System and method for monitoring delivery of digital content, including streaming media
US9071655B2 (en) Managing access to digital content sources
US9344517B2 (en) Downloading and adaptive streaming of multimedia content to a device with cache assist
CN101068155B (en) Coordinate connection stream media direct broadcasting system and collection server thereof
CN104125429B (en) The adjusting method and device of video data transmission
RU2569024C1 (en) Method and apparatus for multimedia streaming
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
EP2493191B1 (en) Method, device and system for realizing hierarchically requesting content in http streaming system
US20160212054A1 (en) Multiple Protocol Media Streaming
CN101309174A (en) Network management data uploading method and system
CN106358047A (en) Method and device for playing streaming media video
CN109729396B (en) Video slicing data transmission method and device
CN105451071A (en) Video stream processing method, device and system
CN106603660A (en) Collaborative downloading method, terminal and system for distributed type videos
CN105357302B (en) A kind of network packet breaker point continuous transmission method and device
CN105828109B (en) Server, client and the play system based on RTSP/RTP
CN101958901B (en) Long term evolution-based multimedia on demand method, system and mobile terminal
CN111954009A (en) Video data push system crossing network domains
CN109194706B (en) Network resource dial testing method and terminal
Clayman et al. Managing video processing and delivery using big packet protocol with SDN controllers
CN108881959B (en) Cross-platform media downloading and system debugging method
US9332421B2 (en) Method and apparatus for random access to multimedia content in wireless communication system
CN108462897B (en) Data collection method and device for network faults
CN101448136B (en) Method for realizing video on-demand function and system thereof

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