CN103391287B - A kind of Streaming Media jettison system and method - Google Patents

A kind of Streaming Media jettison system and method Download PDF

Info

Publication number
CN103391287B
CN103391287B CN201310291715.2A CN201310291715A CN103391287B CN 103391287 B CN103391287 B CN 103391287B CN 201310291715 A CN201310291715 A CN 201310291715A CN 103391287 B CN103391287 B CN 103391287B
Authority
CN
China
Prior art keywords
adapter
streaming media
player
responsor
parameter
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.)
Expired - Fee Related
Application number
CN201310291715.2A
Other languages
Chinese (zh)
Other versions
CN103391287A (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.)
Alibaba China Co Ltd
Original Assignee
Unification Infotech (beijing) 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 Unification Infotech (beijing) Co Ltd filed Critical Unification Infotech (beijing) Co Ltd
Priority to CN201310291715.2A priority Critical patent/CN103391287B/en
Publication of CN103391287A publication Critical patent/CN103391287A/en
Application granted granted Critical
Publication of CN103391287B publication Critical patent/CN103391287B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of Streaming Media jettison system and method, and this system includes player, the parameter Processor of storage solicited message initiating Streaming Media request, the responsor that this request is responded, and configures adapter, this adapter includes:Adapter responsor, obtains Streaming Media material assembled integration;Adapter transducer, is obtained solicited message and is stored using parameter Processor, the information of storage is converted to original system required parameter and is stored in parameter Processor;Parameter Processor, the information that Memory player request carries.The method includes:Initiate Streaming Media request;Obtain solicited message to be converted to original system required parameter and be stored in parameter Processor;Obtain Streaming Media material and streaming media material information carries out assembled integration;Carry out XML conversion so that by Streaming Media material information transmission to player between adapter and player interface agreement.

Description

A kind of Streaming Media jettison system and method
Technical field
The invention belongs to Streaming Media field, especially relate to a kind of Streaming Media jettison system and method.
Background technology
Current Streaming Media field, Streaming Media jettison system is to interact realization with remote web server by player. Pass through (main) the embedded player of web browser, or under computer operating system, other clients are (as strange in itudou/ love Skill) embedded player, or the player that mobile communication equipment terminals (as ipad, iphone, htc) are embedded, initiate http request, This request carries stream media information (comprising Streaming Media ID, Streaming Media duration, Streaming Media type), cookie, user profile (comprise ID, User IP, user's same day access duration), remote web server is passed to by network, using this solicited message construction Parameter Processor, server, by different requests, returns different Streaming Medias.The request of every kind of Streaming Media type, server End have uniquely corresponding responsor (for example front patch responsor, in plug in responsor, suspend responsor, footmark responsor, the page ring Answer device), process corresponding request.Therefore responsor typically has five to eight (see accompanying drawings 1).But, these responsor set, be Corresponding with unique player kernel, and the fast development with network, and mobile client rapidly popularizes in recent years, occurs in that Various streaming media playing environment, lead to Streaming Media to throw in also varied, the single player kernel of environment, and corresponding sound Answer device set, cannot meet the streaming media playing of various clients, Streaming Media throws in demand.
According to existing technical implementation way, different player kernel, need different responsor set.Occur one Kind of new player kernel, needs again to develop a set of Streaming Media and throws in responsor, cost consumption huge it is likely that because player The switching of version or offline, leads to output value to substantially reduce.The therefore input of this implementation, output ratio, is low-down. Differentiation trend with various clients, player is in rising trend, and the developer of responsor will be very passive, and exploitation is appointed Business is more and more heavier.Therefore a kind of flexible server response policy, with relatively low development cost, you can adaptation, compatibility are various Player, Streaming Media throw in the different demands of environment, are very important.
Stream media system adapter, exactly for solving this problem, a kind of scheme designed, it is with same set of responsor Based on, by the exploitation of adapter, realize multiple players, Streaming Media throws in the different demands of environment, the exploitation of adapter The relatively a set of new responsor set of cost, is low-down.And motility is very strong, often occur in a kind of new player Core, or Streaming Media input environment, modification adapter can achieve compatibility.See (accompanying drawing 2).
Content of the invention
The invention provides a kind of Streaming Media jettison system, this system include for initiate Streaming Media request player, For storing the parameter Processor of solicited message, front patch responsor that streaming media request is responded, in plug in responsor, time-out Responsor, footmark responsor, page response device configure corresponding adapter, institute it is characterised in that this system is new player State adapter to include:
Adapter responsor, for obtaining Streaming Media material streaming media material information according to the required parameter after conversion Carry out assembled integration, the XML conversion of player interface agreement;
Adapter transducer, for obtaining player requests information and being carried out using parameter Processor RequestParams Storage, and for being converted to original system required parameter and being stored in the information of storage in parameter Processor RequestParams In above-mentioned parameter processor;
Parameter Processor RequestParams, the information carrying for Memory player request.
Further, the conversion of adapter transducer includes:According to the mapping relations between parameter, implication identical value is corresponded to Get up, the value of new parameter is stored by changing parameter Processor RequestParams.
Further, adapter responsor includes obtaining Material module and agreement assembling module, obtains Material module and is used for Request data after conversion is passed to input engine, according to different story types, passes to the disparate modules throwing in engine to carry out The transferring of material;Return to adapter responsor for material list, this material list comprises whole needed for new player Type material, described agreement assembling module is used for assembled integration Streaming Media material information.
Further, adapter responsor, after return Streaming Media material information is to player, will discharge resource.
Present invention also offers a kind of Streaming Media put-on method it is characterised in that:
Streaming Media request initiated by step (1) player;
Step (2) adapter transducer is obtained player requests information and is entered using parameter Processor RequestParams Row storage, and for being converted to original system required parameter and storing the information of storage in parameter Processor RequestParams In parameter Processor;
Step (3) adapter responsor obtains Streaming Media material streaming media material letter according to the required parameter after conversion Breath carries out assembled integration;
Carry out XML conversion so that by Streaming Media material information transmission between step (4) adapter and player interface agreement To player.
Further, described in step (2), the conversion of adapter transducer includes:According to the mapping relations between parameter, will contain Adopted identical value is mapped, and the value of new parameter is stored by changing parameter Processor RequestParams.
Further, the acquisition of adapter responsor described in step (3) further includes that acquisition Material module therein is used In the request data after conversion is passed to input engine, according to different story types, pass to the disparate modules throwing in engine to enter The transferring of row material;Described assembled integrate include returning to adapter responsor for material list, this material list comprises newly The all types material needed for player, agreement assembling module therein is used for assembled integrating Streaming Media material information.
Further, the method includes:Adapter responsor, will release money after return Streaming Media material information is to player Source.
Brief description
Fig. 1 is the structure chart of existing Streaming Media jettison system.
Fig. 2 is the structure chart of the Streaming Media jettison system according to the present invention.
Fig. 3 is the flow chart according to the inventive method.
Fig. 4 is the basic data schematic diagram according to the present invention.
Fig. 5 is the structure chart of the adapter according to the present invention.
Fig. 6 is the structure chart of the adapter responsor according to the present invention.
Specific embodiment
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The present invention is a kind of Streaming Media jettison system and method, increases the compatibility of stream media system, fall by this invention Again coupling between low player and input engine, makes the communication between player and input engine more flexible.
The general flow of system, as shown in figure 3, Streaming Media request initiated by player, carries stream media information, cookie, use Family information, such as:Streaming Media ID itemID, ID userID.After adapter responsor Servlet receives request, Pass to adapter transducer Parser.Adapter transducer Parser analysis request parameter, with all solicited message constructing variables Processor RequestParams (store valuable information in the player requests such as Streaming Media ID, ID, and this parameter The non-real physical device of processor RequestParams, this processor is an object in internal memory, and object has the data of oneself Structure, has the attribute of oneself, and attribute number does not limit.Solicited message is stored in the attribute of RequestParams respectively.).Adapter Transducer Parser takes parameter Processor RequestParams having constructed, and original system required parameter is such as:Streaming Media ID Sid, ID uid, adapter Parser realizes the conversion of parameter, and itemID switchs to sid, and userID switchs to uid (conversion It is to construct existing parameter Processor, so throw in engine and be not required to change interface, you can identification.), construct existing parameter Processor, returns to adapter Servlet.
Adapter responsor Servlet obtains Streaming Media material to throwing in engine.After taking material, adapter responsor Servlet will arrange material information.Because the agreement returning to player is different from existing agreement, adapter responsor Servlet, according to agreement, player desired data is carried out assembly by character string, material information is assembled into the lattice of new agreement Formula, returns to player.The assembly of one-to-one agreement simply realized by every kind of adapter.
Adapter structure is as shown in figure 5, include adapter responsor Servlet, adapter transducer Parser, parameter Processor RequestParams.Two modules are also included, as shown in fig. 6, including inside adapter responsor (Servlet) Obtain Material module and agreement assembling module.Each component representation in adapter is as follows:1) parameter Processor RequestParams:
Function:The full detail that Memory player request carries, containing user profile, page info, stream media information etc..Belong to Property:Corresponding with parameter in player requests agreement.Parameter Processor RequestParams only has store function, and structured value is from no To the process having.Original state is empty, does not store any information, constructs the process storing.
2) adapter transducer Parser:
Function:The information of conversion parameter processor RequestParams storage, turns to throwing in current reference parameter list Change, the information gap opposite sex that the different player requests of shielding are brought, is kernel object.
Attribute:request:Solicited message;response:Adapter return information.
Method:Get* (), to player requests information, is screened.* it is the use of the concept of regular expression, get* () It is the general designation of multiple methods, such as getUnionId obtains alliance's id method it is achieved that the Base64 of alliance id deciphers; GetIP obtains User IP method it is achieved that obtaining source IP function from multiple routing forwarding.By these method adapters Transducer Parser can obtain player requests information.
Perform () realizes solicited message translation function.Perform () takes from parameter Processor RequestParams The data of storage, according to the implication of value, change data form, is stored in existing parameter Processor.If do not changed, throw in engine Then None- identified, need to make the input engine of a differentiation again, and development cost is huge.
With reference to Fig. 3, different player requests, so-called difference is that agreement is different, specifically has two kinds of situations:One is parameter name Difference, two is parameter list different (such as new parameter, or some parameters of disappearance), between adapter transducer Parser is according to parameter Mapping relations, implication identical value is mapped, and the value of new parameter is passed through to change parameter Processor RequestParams, enters Row storage.The informative differentiation that the different player requests of shielding are brought just is realized in.For example:Existing player parameter ABC, new player parameter ABD, for new parameter D, parameter C can be mapped to, be stored in the space of C.If new player parameter is ABCD, then need to change existing parameter Processor RequestParams, increases parameter D.
3) adapter responsor Servlet:
Function:Achieve the major function of adapter, and play the part of overall scheduling, the role of control.
Achieve calling of parameter Processor RequestParams, the acquisition of Streaming Media material, stream using process () The assembled integration of media materials information, the XML conversion of player interface agreement.As Fig. 2, existing Streaming Media jettison system, it is Different responsors return different materials, and then returning to adapter in the present invention for material list (is material information list, often Individual material packet contains a material address)!This material list comprises all types material needed for new player, such as plays Device first only throws in front patch, time-out, footmark, and the agreement assembling module in adapter responsor Servlet will once return 3 kinds of stream matchmakers Voxel material carries out assembled integration.
Obtain Material module to be used for obtaining Streaming Media material, data acquisition system includes:1)prerollIdeas:Front patch Streaming Media Material set.2)postrollIdeas:Paste Streaming Media material set afterwards.3)cornerIdeas:Footmark Streaming Media material set. 4)pauseIdeas:Suspend Streaming Media material set.5)minibannerIdeas:Minibanner miniflow media column material collection Close.
It is stored in adapter responsor Servlet, after return Streaming Media material information is to player, resource will be discharged.
In set each field of basic data as shown in figure 4, wherein, adIdea:Streaming Media material object.Storage stream matchmaker Voxel material full detail.cp:Throw in N+ statistical information.showTimes:User has watched number of times.iesParam:Third party detects Parameter.pl:Before representing in front patch, patch position, meaningless in other types, is defaulted as 0, can only arrange later, mouth is broadcast during construction When be fixed as 1, mouth is broadcast as a kind of Streaming Media form, one kind of paster Streaming Media.But last broadcasting.adPos:Streaming Media position (i.e. Streaming Media during streaming media playing, the ordinal position that represents), for data team statistics.
First, obtain Material module in adapter responsor and the protocol data after changing is passed to input engine, according to not Same story types, pass to the disparate modules throwing in engine to carry out transferring of material.Throw in and in engine, have multiple module correspondences many Plant Streaming Media type, every kind of Streaming Media type has a material list acquisition module.Streaming Media type includes front patch, time-out, angle Mark etc..For example, patch Streaming Media before certain player is only asked, then adapter is constructing existing parameter Processor After RequestParams, it is passed along throwing in the front patch material list acquisition module of engine, that is, returns corresponding material list.
By the Streaming Media material information Store returning in each Ideas.
, obtain front patch, rear patch, footmark, time-out, minibanner material set taking player in Rhizoma Solani tuber osi station as a example, due to Insert during player is not supported in Rhizoma Solani tuber osi station, the acquisition Material module therefore in adapter, in skipping over, insert material.Play in Rhizoma Solani tuber osi station The minbanner of device, needs to peel away with front patch, therefore adapter carries out special place to front patch material prerollIdeas Reason.Traversal prerollIdeas, obtains the material A of binding minibanner.Material A is converted into minibanner type, plus Enter to minibanner material set.
The flow process carrying out the XML conversion of docking port agreement is described as follows taking Rhizoma Solani tuber osi player as a example:
The material data form that adapter responsor is taken, player is unable to Direct Recognition, such as front patch material, needs It is ads node (one of XML text node type) according to protocol conversion, material ID need to switch to nodal community id for 97256, Streaming Media duration need to switch to nodal community dt in 30 seconds, is ultimately converted to the XML text that player is capable of identify that.
The technique effect that technology according to the present invention scheme obtains is as follows:
Technical solution of the present invention with great motility, extremely low development cost, maintenance cost, meet increasing broadcasting Put device kernel, Streaming Media throws in environmental demand.Often increase a kind of player kernel, or increase a kind of Streaming Media and throw in environment, only Stream media system adapter need to be changed, increase by 1~2 class file, you can realize corresponding Streaming Media and throw in function.Reduce out Send out cost.
The foregoing is only presently preferred embodiments of the present invention, be not limited to the invention, all in the invention Any modification, equivalent and improvement made within spirit and principle etc., is both contained within protection scope of the present invention.

Claims (8)

1. a kind of Streaming Media jettison system, this system includes:For initiating the player of Streaming Media request;For storage request letter The parameter Processor of breath;For streaming media request responded front patch responsor, in plug in responsor, suspend responsor, angle Mark responsor, page response device it is characterised in that:This system is that new player configures corresponding adapter, described adapter Including:
Adapter responsor, is carried out for obtaining Streaming Media material streaming media material information according to the required parameter after conversion Assembled integration, the XML conversion of player interface agreement, adapter responsor, according to agreement, player desired data is passed through word Symbol string carries out assembly, material information is assembled into the form of new agreement, returns to player, every kind of adapter is simply realized a pair The assembly of one agreement;
Adapter transducer, for obtaining player requests information and being stored using parameter Processor RequestParams, And for being converted to original system required parameter and being stored in above-mentioned ginseng the information of storage in parameter Processor RequestParams In number processor;
Parameter Processor RequestParams, the information carrying for Memory player request, described parameter Processor The non-real physical device of RequestParams, this processor be internal memory in an object, object have the data structure of oneself and Attribute, solicited message is stored in the attribute of RequestParams respectively, and its original state is empty, does not store any information, Construct the process storing.
2. according to claim 1 system it is characterised in that:
The conversion of adapter transducer further includes:According to the mapping relations between parameter, implication identical value is mapped, The value of new parameter is stored by changing parameter Processor RequestParams.
3. system according to claim 1 it is characterised in that:
Adapter responsor further includes to obtain Material module and agreement assembling module, obtains Material module and is used for changing Request data afterwards passes to input engine, according to different story types, passes to the disparate modules throwing in engine to carry out material Transfer;Return to adapter responsor for material list, this material list comprises all types element needed for new player Material, described agreement assembling module is used for assembled integration Streaming Media material information.
4. system according to claim 3 it is characterised in that:
Adapter responsor, after return Streaming Media material information is to player, will discharge resource.
5. a kind of Streaming Media put-on method it is characterised in that:
Streaming Media request initiated by step (1) player;
Step (2) adapter transducer is obtained player requests information and is deposited using parameter Processor RequestParams Storage, and for being converted to original system required parameter and being stored in ginseng the information of storage in parameter Processor RequestParams In number processor, the non-real physical device of described parameter Processor RequestParams, this processor is right for one in internal memory As object has data structure and the attribute of oneself, and solicited message is stored in the attribute of RequestParams respectively, its initial shape State is empty, does not store any information, constructs the process storing;
Step (3) adapter responsor obtains Streaming Media material according to the required parameter after conversion and streaming media material information is entered Row is assembled to be integrated, and adapter responsor, according to agreement, player desired data is carried out assembly by character string, by material information It is assembled into the form of new agreement, returns to player, the assembly of one-to-one agreement simply realized by every kind of adapter;
Carry out XML conversion between step (4) adapter and player interface agreement so as by Streaming Media material information transmission give broadcast Put device.
6. according to claim 5 method it is characterised in that:
Described in step (2), the conversion of adapter transducer further includes:According to the mapping relations between parameter, implication is identical Value be mapped, the value of new parameter is stored by changing parameter Processor RequestParams.
7. method according to claim 5 it is characterised in that:
The acquisition of adapter responsor described in step (3) further includes that acquisition Material module therein is used for after conversion Request data passes to input engine, according to different story types, passes to the disparate modules throwing in engine to carry out transferring of material; Described assembled integrate further include to return to adapter responsor for material list, this material list comprises new player Required all types material, agreement assembling module therein is used for assembled integration Streaming Media material information.
8. method according to claim 5 is it is characterised in that the method further includes:
Adapter responsor, after return Streaming Media material information is to player, will discharge resource.
CN201310291715.2A 2013-07-11 2013-07-11 A kind of Streaming Media jettison system and method Expired - Fee Related CN103391287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310291715.2A CN103391287B (en) 2013-07-11 2013-07-11 A kind of Streaming Media jettison system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310291715.2A CN103391287B (en) 2013-07-11 2013-07-11 A kind of Streaming Media jettison system and method

Publications (2)

Publication Number Publication Date
CN103391287A CN103391287A (en) 2013-11-13
CN103391287B true CN103391287B (en) 2017-03-08

Family

ID=49535444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310291715.2A Expired - Fee Related CN103391287B (en) 2013-07-11 2013-07-11 A kind of Streaming Media jettison system and method

Country Status (1)

Country Link
CN (1) CN103391287B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570812A (en) * 2003-07-18 2005-01-26 北京航空航天大学 Implement method of assembly adapter
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method
CN102137047A (en) * 2011-03-21 2011-07-27 华中科技大学 Multiparameter media adapter gateway and adaption method thereof
CN103139211A (en) * 2013-02-06 2013-06-05 中山大学 Multi-screen adaptive display system and implementation method thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570812A (en) * 2003-07-18 2005-01-26 北京航空航天大学 Implement method of assembly adapter
CN102118719A (en) * 2009-12-30 2011-07-06 北京邮电大学 Mobile intelligent information service system, adaptation converting device and method
CN102137047A (en) * 2011-03-21 2011-07-27 华中科技大学 Multiparameter media adapter gateway and adaption method thereof
CN103139211A (en) * 2013-02-06 2013-06-05 中山大学 Multi-screen adaptive display system and implementation method thereof

Also Published As

Publication number Publication date
CN103391287A (en) 2013-11-13

Similar Documents

Publication Publication Date Title
US8966031B2 (en) Method for addressing management object in management tree and associated device management system
Huang et al. Software-defined QoS provisioning for fog computing advanced wireless sensor networks
CN106302616A (en) Network wake-up method, remote server and the network switching equipment
Municio et al. Whisper: Programmable and flexible control on industrial IoT networks
CN108540565A (en) A method of the mobile terminal push based on MQTT agreements and statistics
CN102137029A (en) Method and device for managing instant messaging contact information
CN102523111A (en) Network management system supporting customizable groups
CN103390244A (en) User friend relation polymerization method and platform with operator characteristics
CN104767810A (en) Cloud-client cooperative service system and cloud-client cooperative work method
Chellouche et al. Flexible user profile management for context-aware ubiquitous environments
CN103841008A (en) Platform and method for exhibiting information based on self-media channel
CN103379125A (en) Multi-screen interaction method based on social network
CN104834649B (en) It can realize the smart machine and multiple-equipment team working method of more equipment collaborations
CN104320347A (en) Method and device for initiatively updating LLDP
US20220179713A1 (en) Ai processing method and apparatus
CN103763325B (en) Method for building IP security product development environment
CN103391287B (en) A kind of Streaming Media jettison system and method
CN104038518B (en) information processing method, server and terminal device
CN201312322Y (en) Network audio sharing system
CN110019243A (en) Transmission method and device, equipment, the storage medium of data in Internet of Things
CN102316142B (en) Method for realizing p2p-based remote video education
CN105430665B (en) Realize the method and system of more net mixing scale networkings
CN103326892B (en) The operating method and device of web interface
CN103139806B (en) Method and base station of the webmaster with base station configuration data decoupling
CN105592176B (en) A kind of information processing method, the network equipment and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer D

Patentee after: YOUKU INFORMATION TECHNOLOGY (BEIJING) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer D

Patentee before: HEYI INFORMATION TECHNOLOGY (BEIJING) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20200618

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer D

Patentee before: YOUKU INFORMATION TECHNOLOGY (BEIJING) Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170308

Termination date: 20200711

CF01 Termination of patent right due to non-payment of annual fee