CN108494832A - Direct broadcasting room is full frame and half screen message unifies the method, readable medium and the equipment that encapsulate - Google Patents

Direct broadcasting room is full frame and half screen message unifies the method, readable medium and the equipment that encapsulate Download PDF

Info

Publication number
CN108494832A
CN108494832A CN201810164422.0A CN201810164422A CN108494832A CN 108494832 A CN108494832 A CN 108494832A CN 201810164422 A CN201810164422 A CN 201810164422A CN 108494832 A CN108494832 A CN 108494832A
Authority
CN
China
Prior art keywords
message
direct broadcasting
broadcasting room
message channel
channel
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
CN201810164422.0A
Other languages
Chinese (zh)
Other versions
CN108494832B (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network Technology 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201810164422.0A priority Critical patent/CN108494832B/en
Publication of CN108494832A publication Critical patent/CN108494832A/en
Application granted granted Critical
Publication of CN108494832B publication Critical patent/CN108494832B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention provides a kind of direct broadcasting room the full frame method with the unified encapsulation of half screen message, including the message from message source is delivered separately to full frame direct broadcasting room and half screen direct broadcasting room, full frame direct broadcasting room transmits message by first message channel, and half screen direct broadcasting room transmits message by second message channel;Increase message channel in the first message channel and second message channel upper layer and merge operation layer, the message channel, which merges operation layer, to be transferred to Business Logic after the Message Processing in the first message channel and the second message channel;The Business Logic will be transferred to user interface layer after Message Processing.Further relate to relevant computer readable storage medium and associated electronic device.

Description

Direct broadcasting room is full frame and half screen message unifies the method, readable medium and the equipment that encapsulate
Technical field
The present invention relates to the full frame sides with the unified encapsulation of half screen message of message transmission field more particularly to a kind of direct broadcasting room Method, related computer readable storage medium and electronic equipment.
Background technology
Due to history iteration, the message system of full frame direct broadcasting room and half screen direct broadcasting room is different.This is resulted in It needs to be directed to different message to identical function when one new function of later development staff development of direct broadcasting room software System carries out different exploitations, may result in the identical work of repetition in this way, strong influence development efficiency and reduces The quality of software.
Full frame direct broadcasting room and the traditional approach of half screen direct broadcasting room message transmission are as shown in Figure 1, message source respectively passes message It is defeated by full frame direct broadcasting room and half screen direct broadcasting room, message is transferred to the first business by first message channel and patrolled by full frame direct broadcasting room Volume, message is transferred to UI (user interface) layer after the first business logic processing;Similarly, half screen direct broadcasting room passes through second message Message is transferred to the second service logic by channel, and message is transferred to UI layers after the second business logic processing.
If a function needs possess simultaneously in full frame direct broadcasting room and half screen direct broadcasting room, at this time due to full frame direct broadcasting room With half screen direct broadcasting room there is two sets of independent channels, the identical message sent out from message source is needed after two Entirely different message channel eventually arrives at the update of UI layers of enterprising industry business.Since the first service logic and the second business are patrolled The workload collected is very huge, again very similar for identical message process mode, will also have very more redundancies and disappear Breath, easy tos produce mistake.
It is therefore desirable to which a kind of mode of new message encapsulation solves the above problems.
Invention content
In order to overcome at least one aspect of the above problem, a kind of direct broadcasting room of offer of the embodiment of the present invention is full frame and half screen disappears The method of the unified encapsulation of breath.
According to an aspect of the present invention, provide a kind of direct broadcasting room the full frame method with the unified encapsulation of half screen message, including Following steps:
Message from message source is delivered separately to full frame direct broadcasting room and half screen direct broadcasting room, full frame direct broadcasting room by step S1 Message is transmitted by first message channel, half screen direct broadcasting room transmits message by second message channel;
Step S2 increases message channel in first message channel and second message channel upper layer and merges operation layer, and message is logical Road, which merges operation layer, to be transferred to Business Logic after the Message Processing in first message channel and second message channel;
Step S3, Business Logic will be transferred to user interface layer after Message Processing.
According to some embodiments, message channel merges operation layer and leads to first message channel and second message in step s 2 The message in road carries out unified output after conversion, merging, screening.
According to some embodiments, message channel merging operation layer is designed to factory class in step s 2, will be disappeared with realizing Breath carries out the function of unified output after conversion, merging, screening.
According to some embodiments, message channel merges being converted to individually for each message in operation layer in step s 2 Sub-process.
According to some embodiments, indirect agreement is defined using the interface in Java to be connected factory class and list in step s 2 Only sub-process.
According to some embodiments, interface includes getMessage interface methods in step s 2, for receiving any type Message.
According to another aspect of the present invention, a kind of computer readable storage medium is provided, executable finger is stored thereon with It enables, when executed by the processor, it is full frame and half that direct broadcasting room according to any one of above-described embodiment may be implemented in instruction The step of shielding the method for the unified encapsulation of message.
According to a further aspect of the invention, a kind of electronic equipment is provided, including:
Memory, for storing executable instruction;And
Processor, for executing the executable instruction stored in memory, to realize according to any one of above-described embodiment The step of direct broadcasting room is full frame and half screen message unifies the method for encapsulation.
Compared with prior art, the present invention has the following advantages:The present invention increases message channel on message channel upper layer Merge operation layer, and Business Logic is merged, solves the problems, such as business processing redundancy in traditional scheme.
Description of the drawings
By the description made for the present invention of below with reference to attached drawing, other objects and advantages of the present invention will be aobvious and easy See, and can help that complete understanding of the invention will be obtained.
Fig. 1 is existing full frame direct broadcasting room and half screen direct broadcasting room message transmission flowchart;
Fig. 2 is the improved full frame direct broadcasting room and half screen direct broadcasting room message transmission flowchart of the embodiment of the present invention;
Fig. 3 is the full frame flow chart with the method for the unified encapsulation of half screen message of the direct broadcasting room of the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of the computer readable storage medium of the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of the electronic equipment of the embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is the purpose only merely for description specific embodiment, is not intended to be limiting The present invention.Unless otherwise defined, the technical term or scientific terminology that the present invention uses should be tool in fields of the present invention There is the ordinary meaning that the personage of general technical ability is understood.
The present invention provides a kind of direct broadcasting room the full frame method with the unified encapsulation of half screen message, includes the following steps:
Message from message source is delivered separately to full frame direct broadcasting room and half screen direct broadcasting room, full frame direct broadcasting room passes through first Message channel transmits message, and half screen direct broadcasting room transmits message by second message channel;
Increase message channel in first message channel and second message channel upper layer and merge operation layer, message channel merges industry Business layer will be transferred to Business Logic after the Message Processing in first message channel and second message channel;
Business Logic will be transferred to user interface layer after Message Processing.
Optionally, the redundancy section of conventional transmission mode is redesigned.For example, by message channel and service logic All it is merged into a channel.It is of course also possible to which nonjoinder message channel, only merges service logic, increase on message channel upper layer One message channel merges layer.
Fig. 2 is the flow chart of full frame direct broadcasting room and the improved message transmission mode of half screen direct broadcasting room.Message source is by message It is transferred to full frame direct broadcasting room and half screen direct broadcasting room respectively, full frame direct broadcasting room, which is remained, is transmitted out message by first message channel It goes, the difference is that increasing message channel in first message channel and second message channel upper layer merges operation layer, message channel Merge the identical message that first message channel and second message channel transfer can be come of operation layer with unified structural transmission to Business Logic, such Business Logic are just not necessarily to pay close attention to the source of message.And message channel merges operation layer and will disappear The otherness in breath channel has carried out merging treatment, allows for the message of first message channel and second message channel transfer in this way Can multiplexing service logical layer code, the problem of code redundancy has been solved perfectly.
The full frame method with the unified encapsulation of half screen message of direct broadcasting room is described in detail with reference to Fig. 3.
Message from message source is delivered separately to full frame direct broadcasting room and half screen direct broadcasting room, full frame direct broadcasting room by step S1 Message is transmitted by first message channel, half screen direct broadcasting room transmits message by second message channel;
Step S2 increases message channel in first message channel and second message channel upper layer and merges operation layer, and message is logical Road, which merges operation layer, to be transferred to Business Logic after the Message Processing in first message channel and second message channel;
Step S3, Business Logic will be transferred to user interface layer after Message Processing.
In step S2, message channel merge operation layer need handle two-way informed source, and pass it through conversion, merging, Unified output is carried out after screening.
In order to enable message channel, which merges operation layer, has certain extended capability, message channel can be merged operation layer Core Feature be designed to a factory class, be defined as HandlerFactory, the conversion of each message is defined as factory class In an operation flow, that is to say an individual sub-process.In this way when there is new message to be handled later, Above-mentioned business function target can be completed by increasing a sub-process in factory.
Using the interface in Java indirect agreement is defined on software view to be connected factory class and individual sub-process, It is as follows to connect agreement:
Public Interface newHandler{
Public Object getMessage(Object srcMessage);
}
Above-mentioned protocol interface title is newHandler, wherein including a getMessage interface method, the interface side Method receives the message of an Object type, that is to say first message channel and the message that second message channel transfer is come, and returns The content of one Object type, that is, pass through the processed message of sub-process.Object is the class of top layer in Java, can For receiving any type of message, and message all in the present embodiment is all to be defined as Object types, thus Achieve the purpose that any message can be received.
Each individual sub-process all defines a class, for example, being defined as class A.Then, A is allowed to realize interface GetMessage interface methods in newHandler complete the function of specific messaging service conversion in implementation method class. When having the corresponding message a of A to come, factory class will screen corresponding sub-process A come to message a processing, so Handling result is transferred to Business Logic afterwards to be uniformly processed, this completes the transfer processes of message.
Above-mentioned steps can dynamically extend the processing of various message, and different message also has different processing to realize class, The autgmentability that message channel merges operation layer is thus greatly improved, playing certain guarantee to subsequent extension makees With.
Two independent message channels of full frame direct broadcasting room and half screen direct broadcasting room are merged into a message channel by the present embodiment, To solve the problems, such as code redundancy in conventional message transmission mode, the development efficiency of software is greatly improved, and is dropped The low error rate of software, to improve software quality.
Based on same inventive concept, refering to what is shown in Fig. 4, the present invention also provides a kind of computer readable storage medium 401, On be stored with executable instruction 402, executable instruction 402 when executed by one or more processors, can make one or more A processor, which executes, to be encapsulated for direct broadcasting room of the realization according to any one of above-described embodiment is full frame with the unification of half screen message Method the step of.
Based on same inventive concept, refering to what is shown in Fig. 5, the present invention also provides a kind of electronic equipment 501, the electronic equipment 501 include:
Memory 510, for storing executable instruction 511;And
Processor 520, for executing the executable instruction 511 stored in memory 510, to realize as in above-described embodiment The step of any one of them direct broadcasting room is full frame and half screen message unifies the method for encapsulation.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although Present invention has been described in detail with reference to the aforementioned embodiments, it will be understood by those of ordinary skill in the art that:It still may be used With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features; And these modifications or replacements, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (8)

1. a kind of full frame method with the unified encapsulation of half screen message of direct broadcasting room, includes the following steps:
Message from message source is delivered separately to full frame direct broadcasting room and half screen direct broadcasting room by step S1, and full frame direct broadcasting room passes through Message is transmitted in first message channel, and half screen direct broadcasting room transmits message by second message channel;
Step S2 increases message channel in the first message channel and second message channel upper layer and merges operation layer, institute Industry will be transferred to after the Message Processing in the first message channel and the second message channel by stating message channel merging operation layer Business logical layer;
Step S3, the Business Logic will be transferred to user interface layer after Message Processing.
2. according to the method described in claim 1, it is characterized in that, the message channel merges operation layer by institute in step s 2 The message for stating first message channel and the second message channel carries out unified output after conversion, merging, screening.
3. according to the method described in claim 2, it is characterized in that, message channel merging operation layer is set in step s 2 Factory class is counted into, to realize the function that message is carried out to unified output after conversion, merging, screening.
4. according to the method described in claim 3, it is characterized in that, the message channel merges in operation layer in step s 2 Each message is converted to individual sub-process.
5. according to the method described in claim 4, it is characterized in that, the interface in Java is utilized to define association indirectly in step s 2 It discusses to be connected the factory class and the individual sub-process.
6. according to the method described in claim 5, it is characterized in that, the interface includes getMessage interfaces in step s 2 Method, for receiving any type of message.
7. a kind of computer readable storage medium, is stored thereon with executable instruction, described instruction is when executed by the processor, real The step of direct broadcasting room now according to any one of claim 1-6 is full frame and half screen message unifies the method for encapsulation.
8. a kind of electronic equipment, including:
Memory, for storing executable instruction;And
Processor, for executing the executable instruction stored in the memory, to realize according to any one of claim 1-6 The step of direct broadcasting room is full frame and half screen message unifies the method for encapsulation.
CN201810164422.0A 2018-02-26 2018-02-26 Method, readable medium and device for uniformly packaging full-screen and half-screen messages in live broadcast room Active CN108494832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810164422.0A CN108494832B (en) 2018-02-26 2018-02-26 Method, readable medium and device for uniformly packaging full-screen and half-screen messages in live broadcast room

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810164422.0A CN108494832B (en) 2018-02-26 2018-02-26 Method, readable medium and device for uniformly packaging full-screen and half-screen messages in live broadcast room

Publications (2)

Publication Number Publication Date
CN108494832A true CN108494832A (en) 2018-09-04
CN108494832B CN108494832B (en) 2021-04-09

Family

ID=63340761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810164422.0A Active CN108494832B (en) 2018-02-26 2018-02-26 Method, readable medium and device for uniformly packaging full-screen and half-screen messages in live broadcast room

Country Status (1)

Country Link
CN (1) CN108494832B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030083024A1 (en) * 2001-10-30 2003-05-01 Lawrence Richenstein Multiple channel wireless communication system
CN102043616A (en) * 2009-10-22 2011-05-04 上海杉达学院 Factory pattern-based information system architecture and architecture method
CN102087615A (en) * 2009-12-03 2011-06-08 国际商业机器公司 Automated merger of logically associated messages in a message queue
CN102819590A (en) * 2012-08-06 2012-12-12 厦门市美亚柏科信息股份有限公司 C#-based quick data access layer implementation method
CN103618732A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Execution flow of App engine structure of PaaS and Erlang
CN105306497A (en) * 2014-06-05 2016-02-03 北京畅游天下网络技术有限公司 Method and device for interaction between user interface (UI) and model layer data in application program
CN106775699A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 The method that UI is updated in asynchronous thread
CN106843901A (en) * 2017-02-10 2017-06-13 广州优视网络科技有限公司 A kind of page rendering and the method and apparatus of checking
CN107085540A (en) * 2017-03-22 2017-08-22 北京潘达互娱科技有限公司 virtual gift display method and device
CN107273278A (en) * 2017-06-02 2017-10-20 广东欧珀移动通信有限公司 Interim card determines method, device and terminal

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030083024A1 (en) * 2001-10-30 2003-05-01 Lawrence Richenstein Multiple channel wireless communication system
CN102043616A (en) * 2009-10-22 2011-05-04 上海杉达学院 Factory pattern-based information system architecture and architecture method
CN102087615A (en) * 2009-12-03 2011-06-08 国际商业机器公司 Automated merger of logically associated messages in a message queue
CN102819590A (en) * 2012-08-06 2012-12-12 厦门市美亚柏科信息股份有限公司 C#-based quick data access layer implementation method
CN103618732A (en) * 2013-12-05 2014-03-05 用友软件股份有限公司 Execution flow of App engine structure of PaaS and Erlang
CN105306497A (en) * 2014-06-05 2016-02-03 北京畅游天下网络技术有限公司 Method and device for interaction between user interface (UI) and model layer data in application program
CN106775699A (en) * 2016-12-09 2017-05-31 武汉斗鱼网络科技有限公司 The method that UI is updated in asynchronous thread
CN106843901A (en) * 2017-02-10 2017-06-13 广州优视网络科技有限公司 A kind of page rendering and the method and apparatus of checking
CN107085540A (en) * 2017-03-22 2017-08-22 北京潘达互娱科技有限公司 virtual gift display method and device
CN107273278A (en) * 2017-06-02 2017-10-20 广东欧珀移动通信有限公司 Interim card determines method, device and terminal

Also Published As

Publication number Publication date
CN108494832B (en) 2021-04-09

Similar Documents

Publication Publication Date Title
EP2109819B1 (en) A resource tracking method and apparatus
CN102421028B (en) Control method for intelligent television (TV), intelligent TV, remote control device and intelligent TV control system
CN110058987B (en) Method, apparatus, and computer readable medium for tracking a computing system
CN102169500A (en) Dynamic service flow display device
CN105975351A (en) User behavior message reporting method and apparatus
US20180150308A1 (en) Method for Communication between Views in Android System
EP3961999A1 (en) Method for determining service transmission requirement, apparatus, and system
CN107908488A (en) Message request interactive interfacing method, apparatus, computer equipment and storage medium
CN104679888A (en) Device and method for data synchronization
CN108737177A (en) A kind of implementation method mobile Internet real-time streaming data acquisition and analyzed
CN104660435A (en) Transactional network management engine for intelligent pipeline and network management transaction processing method of transactional network management engine
CN104731650A (en) Acquisition method and device for system interface call information
CN108494832A (en) Direct broadcasting room is full frame and half screen message unifies the method, readable medium and the equipment that encapsulate
CN105323183B (en) Data transmission processing method and system between network server
CN106790067A (en) Method for processing business, device and system based on MVC layerings
CN108881213A (en) JMS instant message service system based on intranet and extranet secure interactive
CN107450992B (en) Method, storage medium, device and system for synchronous communication between title bar and popup bar
CN110071879A (en) Method for message transmission, terminal device and storage medium
WO2018227942A1 (en) Method and system for executing task based on memory optimization
CN113923159A (en) Method for centralized processing of data message
CN113176931A (en) Task flow processing method and device, storage medium and electronic equipment
WO2021035791A1 (en) Method for controlling other systems on the basis of single-point execution contract
CN107463438B (en) Information processing method, device and system for multi-Openstack environment
EP4250684A1 (en) Method and apparatus for processing streaming media service, electronic device, and storage medium
Tomczak et al. Development of service composition by applying ICT service mapping

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