CN109101264A - A kind of method and electronic equipment for direct broadcasting room page development - Google Patents
A kind of method and electronic equipment for direct broadcasting room page development Download PDFInfo
- Publication number
- CN109101264A CN109101264A CN201810851469.4A CN201810851469A CN109101264A CN 109101264 A CN109101264 A CN 109101264A CN 201810851469 A CN201810851469 A CN 201810851469A CN 109101264 A CN109101264 A CN 109101264A
- Authority
- CN
- China
- Prior art keywords
- page
- bridge
- direct broadcasting
- broadcasting room
- otherness
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000011161 development Methods 0.000 title claims abstract description 29
- 230000008569 process Effects 0.000 claims abstract description 8
- 230000006870 function Effects 0.000 claims description 95
- 238000004590 computer program Methods 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 238000013461 design Methods 0.000 abstract description 15
- 230000004069 differentiation Effects 0.000 abstract description 5
- 230000018109 developmental process Effects 0.000 description 25
- 238000010586 diagram Methods 0.000 description 12
- 230000005291 magnetic effect Effects 0.000 description 6
- 239000011800 void material Substances 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 2
- 244000046052 Phaseolus vulgaris Species 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 229910052799 carbon Inorganic materials 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 230000001902 propagating effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 241000251468 Actinopterygii Species 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000000739 chaotic effect Effects 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 239000000758 substrate Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/482—End-user interface for program selection
Abstract
Present disclose provides a kind of methods and electronic equipment for direct broadcasting room page development, pass through design basis page bridge, for bridging identical page info in multiple direct broadcasting rooms, the business relations of different direct broadcasting rooms is realized only by a set of general logical code is developed.Pass through design otherness page bridge for the otherness of the different direct broadcasting room pages, shields differentiation using interface protocol and realize the content of pages of specific differentiation in live page.In to the bridge registration process, by extending to the active domain of Register function built-in variable in the active domain of global variable, registration is completed;In anti-registration process, directly sets empty for the variable in global variable active domain, that is, cut off the adduction relationship of global variable reference built-in variable.During renewal of the page, the update of view directly is can be completed at the page in the bridge in direct broadcasting room page unsteady state operation.
Description
Technical field
This disclosure relates to a kind of method and electronic equipment for direct broadcasting room page development.
Background technique
With the fast development of science and technology, more and more electronic multimedia technical applications to daily life
In, wherein net cast is exactly one of emerging application.Net cast can penetrate network system the same time in difference
Intercommunion platform broadcast live, have the characteristics that it is intuitive, quickly, interactivity it is strong.The fish client that struggles against is as the more matchmakers in internet
One of body client equally exists a plurality of types of direct broadcasting rooms in the client, such as face value direct broadcasting room, non-face value direct broadcasting room
Deng, and each direct broadcasting room is the independent page.During being developed to the page in direct broadcasting room, due to different
There are same page and the specific different pages in direct broadcasting room, needed when developing same page the page of exploitation is fully synchronized
Into each direct broadcasting room, and the specific different pages are needed to show direct broadcasting room specifically not using different design methods
Same content of pages.The traditional scheme for solving the problems, such as this is by the way that the code copies for realizing same page are entered each direct broadcasting room page
The exploitation of same page is realized in the program of exploitation, but a large amount of redundant code will be present in this kind of mode, and works as and need to modify
It when partial function, needs to modify the respective code in each page development program, heavy workload and is easy to produce mistake.
Summary of the invention
The disclosure in view of the above problems, provides a kind of method and electronic equipment for direct broadcasting room page development, can
The problems such as code redundancy and poor code maintainability during the multiple direct broadcasting room page developments of effective solution.
The invention discloses a kind of methods for direct broadcasting room page development, comprising:
Basic page bridge is arranged, for bridging the same page between N number of direct broadcasting room in S1, wherein N is greater than 1
Positive integer;
Otherness page bridge is arranged in S2, for inheriting the same page in basic page bridge, while for expanding
Open up the specific webpage of each direct broadcasting room in N number of direct broadcasting room, wherein the otherness page bridge includes registration function;
S3 calls the registration function, obtains the operating right of the otherness page bridge;
S4 is right when the same page or specific webpage of any one direct broadcasting room are updated in N number of direct broadcasting room
Corresponding same page or specific webpage are updated in otherness page bridge.
It optionally, further include the otherness page bridge of different direct broadcasting rooms being arranged different interface associations in step S2
View.
Optionally, same page includes user's public information and room public information, and basic page bridged protocol includes
OnReceiveMeneberInfo function and onReceiveRoomInfo function, step S1 include:
Using onReceiveMeneberInfo function bridged subscriber public information;
Room public information is bridged using onReceiveRoomInfo function.
Optionally, otherness page bridge includes renewal of the page bridge function updateMoblilePlayerView, step
Rapid S4, comprising:
Using renewal of the page bridge function updateMoblilePlayerView, to corresponding in otherness page bridge
Same page or specific webpage be updated.
Optionally, step S4 inherits the bridge function in otherness page bridge including direct broadcasting room, the phase in direct broadcasting room
When receiving update message with the page or specific webpage, pass through the renewal of the page bridge function in bridge function
UpdateMoblilePlayerView makes the page in the conversion of page otherness page bridge in direct broadcasting room, completes more
Newly.
Optionally, in which: different types of direct broadcasting room is corresponding with different otherness page bridges;Different othernesses
Page bridge corresponds to the same basic page bridge.
Optionally, in step S3, definition has registration and anti-registration function, specific registration and anti-register method in bridge
It is as follows:
It is sky that registration function, which inputs parameter, without registration;
Registration function input parameter is not empty, one global variable of definition, by the input parameter assignment in registration function to complete
Office's variable, makes the active domain of registration function be extended for the active domain of global variable, completes registration;
By directly setting empty for the global variable inside anti-registration function, that is, realize anti-registration process.
Invention additionally discloses a kind of electronic equipment, comprising:
Processor;
Memory is stored with computer executable program, and the program is when being executed by processor, so that processor executes
The method of direct broadcasting room page development.
Invention additionally discloses a kind of systems for direct broadcasting room page development, comprising:
Basic page bridge module, for bridging the same page between N number of direct broadcasting room, wherein N is just greater than 1
Integer;
Otherness page bridge module is used for simultaneously for inheriting the same page in basic page bridge module
Extend the specific webpage of each direct broadcasting room in N number of direct broadcasting room, wherein the otherness page bridge includes registration function;
Module is obtained, the registration function is called, obtains the operating right of the otherness page bridge;
Renewal of the page module, for updating same page or specific webpage.
Invention additionally discloses a kind of computer-readable mediums, are stored thereon with computer program, which is characterized in that the program
The method of direct broadcasting room page development is realized when being executed by processor.
Detailed description of the invention
, now will be in conjunction with attached drawing be referred in order to which the disclosure and its advantage is more fully understood, specific explanations are described below,
In:
Fig. 1 diagrammatically illustrates the method flow diagram of the direct broadcasting room page development according to the embodiment of the present disclosure.
Fig. 2 diagrammatically illustrates the electronic device block diagram according to the disclosure.
Fig. 3 diagrammatically illustrates the system block diagram of the direct broadcasting room page development according to the disclosure.
Specific embodiment
Embodiment of the disclosure is described below.However, it should be understood that these descriptions are merely illustrative, and it is not intended to limit
The scope of the present disclosure.In the following detailed description, for convenient for explain, elaborate many concrete details to provide to the disclosure
The comprehensive understanding of embodiment.It may be evident, however, that one or more embodiments without these specific details can also be with
It is carried out.In addition, in the following description, descriptions of well-known structures and technologies are omitted, to avoid this public affairs is unnecessarily obscured
The concept opened.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart
Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer,
The processor of special purpose computer or other programmable data processing units, so that these instructions are when executed by this processor can be with
Creation is for realizing function/operation device illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately
Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for being stored with instruction, should
Computer program product uses for instruction execution system or instruction execution system is combined to use.In the context of the disclosure
In, computer-readable medium, which can be, can include, store, transmitting, propagating or transmitting the arbitrary medium of instruction.For example, calculating
Machine readable medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium.
The specific example of computer-readable medium includes: magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD
(CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Below using the page development for the direct broadcasting room being broadcast live in platform as embodiment, the disclosure is described in detail.
There are a plurality of types of direct broadcasting rooms, such as face value direct broadcasting room, game direct broadcasting room, each direct broadcasting rooms in live streaming platform
It is the independent page.During being developed to the page in direct broadcasting room, since there are same pages in different direct broadcasting rooms
Face and the specific different pages, need the page of exploitation is fully synchronized into each direct broadcasting room when developing same page.Solution
Certainly the traditional scheme of this problem is by entering the code copies for realizing same page in the program of each direct broadcasting room page development
It realizes the exploitation of same page, but a large amount of redundant code will be present in this kind of mode, and when needing to modify partial function, needs
Respective code in each page development program is modified, heavy workload and is easy to produce mistake.The implementation of the disclosure
Example provides the method and electronic equipment of a kind of direct broadcasting room page development, defines a basic page bridge joint first in this programme
Same page information in all direct broadcasting rooms is established connection, bridge association by establishing basic page bridge agreement by device
The access authority of view is set as public, makes the accessible bridge of all page development programs, while by all direct broadcasting rooms
Public information be defined in the bridge agreement, the basis page bridge agreement include two connection direct broadcasting room identical informations
Bridge function, one be onReceiveMeneberInfo, be used for the relevant information of bridged subscriber, another is
OnReceiveRoomInfo in the above manner can will be identical in all direct broadcasting rooms for bridging the relevant information in room
Content of pages establishes connection.Otherness page bridge is designed on the basis of basic bridge, by inheriting basic page bridge
Connect device, make the otherness page bridge both may be implemented otherness page bridge institute it is functional, and to the bridge into
Row expands, and in addition bridge specific to all direct broadcasting rooms is required to devise one dedicated for subsequent straight during expansion
Broadcast the bridge function of a renewal of the page.It needs to register the bridge after the completion of design of otherness page bridge, lead to
It crosses during the Register registered, is public by the priority assignation of the Register, all types of parameters is made all may be used
To register the bridge, then by way of assignment, the local variable that registration is come in is changed into global variable, makes otherness
Page bridge and basic page bridge are completed at the same time registration, and the registration completed by this way only needs in log off procedure
Set empty for global variable, i.e., the adduction relationship of cut-off global variable to built-in variable.In addition, subsequent straight in order to realize
The update for broadcasting a page needs that direct broadcasting room is made to inherit direct broadcasting room bridge, and bridge can directly be triggered to direct broadcasting room when updating
The update of the page is made the conversion of page in direct broadcasting room at the page in bridge by way of unsteady state operation, completes the page more
Newly.
Fig. 1 diagrammatically illustrates the movable method flow diagram of direct broadcasting room page development according to the embodiment of the present disclosure.
As shown in Figure 1, this method mainly includes following operation:
Basic page bridge is arranged, for bridging the same page between N number of direct broadcasting room in S1, wherein N is greater than 1
Positive integer.
Wherein, same page refers to same page information in each direct broadcasting room, shares in the page of each direct broadcasting room
Basic setup, such as the page that object button of giving gifts, barrage frame, the concern each direct broadcasting room of button have.
Direct broadcasting room is in live streaming platform, and each direct broadcasting room is corresponding with a live page, wherein the page in live page
Information further includes user information and room information etc. other than live content, wherein user information can be main broadcaster user's letter
Breath, is also possible to audience information in direct broadcasting room, room information can be room title, room ID etc..
It includes a plurality of types of direct broadcasting rooms that platform is broadcast live in embodiment of the disclosure, such as face value direct broadcasting room, game direct broadcasting room
Deng.User information is identical with the development logic of room information in the page info of each type of direct broadcasting room.In this present embodiment
One basic page bridge IBaseView is set, including for the function of user information to be arranged in the page and for page to be arranged
The function of room information in face:
Public interface IBaseView{
Void onReceiveMeneberInfo(MemeberInfo memberInfo);
Void onReceiveRoomInfo(RoomInfo roomInfo);
}
Wherein, onReceiveMeneberInfo function is the function for user information in the page to be arranged, and is passed through
Data bean in MemeberInfo obtains the relevant information of user, such as the registration information of user, user is customized etc.,
OnReceiveRoomInfo is the function for room information in the page to be arranged, and is obtained by the data bean in RoomInfo
The relevant information in room, the function etc. having such as the layout in room, room.The access of basis page bridge IBaseView
Permission is public, and user is subsequent can be by various types of parameter access.
Otherness page bridge is arranged in S2, for inheriting the same page in the basic page bridge, uses simultaneously
In the specific webpage for extending each direct broadcasting room in N number of direct broadcasting room.
Wherein, specific webpage refers to the page that the property of can choose shows or uses in different direct broadcasting rooms, such as different direct broadcasting rooms
The Different Rule page in middle prize drawing button or button etc. of guessing, makes different direct broadcasting rooms that differentiation be presented by specific webpage.
Difference page bridge is designed on the basis of basic page bridge is designed and completed, due to the class of current direct broadcasting room
There are many kinds of types, but each type of implementation is similar, herein only with face value direct broadcasting room MobilePlayerActivity
For design with half screen direct broadcasting room PlayerActivity, different direct broadcasting rooms design different direct broadcasting room bridge interface associations
View, specifically comprises the following steps:
S21 allows the otherness page bridge of face value direct broadcasting room to inherit above-mentioned basic page bridge.
Different types of direct broadcasting room is arranged different otherness page bridges, such as the distinctive bridge of face value direct broadcasting room
Interface protocol is IMobilePlayerView, and the otherness page bridge can be made to realize the live streaming of face value in this manner
Between rather than the page of other types direct broadcasting room, be defined as follows:
Public interfact IMobilePlayerView extends IBaseView{}
The permission of the otherness page bridge is likewise provided as public, inherits above-mentioned base by keyword extends
Plinth page bridge IBaseView, the institute for making the otherness page bridge have basic page bridge is functional, even if its
The same function developed with user information and room information.
S22 expands the distinctive otherness page bridge of face value direct broadcasting room.
On the basis of above-mentioned succession basis page bridge, which is expanded, makes it have the setting page
The function of middle view information specifically expands the function for being directed to the renewal of the page of the type direct broadcasting room, after allowing to be used for
The update of the continuous direct broadcasting room page, herein it should be noted that the logic of different types of direct broadcasting room renewal of the page function is identical but letter
Several differences prevent subsequent different type direct broadcasting room renewal of the page chaotic, in addition, used expansion letter during expansion
Number needs otherwise to will lead to bridge operation irregularity different from the bridge function in basic page bridge.
In the above manner, including in the otherness page bridge of the face value direct broadcasting room
Tri- bridge functions of updateMoblilePlayerView, onReceiveMeneberInfo and onReceiveRoomInfo,
Wherein, onReceiveMeneberInfo and onReceiveRoomInfo is inherited from basic page bridge, all for designing
Common user's information and room information in direct broadcasting room, updateMoblilePlayerView are used for in face value direct broadcasting room
The page is updated, for example, when need in the face value direct broadcasting room user information or room information be modified or develop new page
When face, it is necessary to the updateMoblilePlayerView function is called, due to by all direct broadcasting rooms after the bridge joint of basis
User information and room information mutually contact, and the change of corresponding information in all direct broadcasting rooms can be realized by once changing,
Workload is greatly reduced, while making lower error rate in change procedure.The otherness page bridge of the face value direct broadcasting room
It is defined as follows:
Public interfact IMobilePlayerView extends IBaseView{
Void updateMoblilePlayerView();
}
Different types of direct broadcasting room design has different bridge interface protocols, and this example is face value direct broadcasting room, interface association
View is defined as IMobilePlayerView, so that it is inherited basic page bridge, and expand it, makes inhomogeneity
The direct broadcasting room of type can individually update, and the update without influencing other types direct broadcasting room, making it both has basic page bridge
Institute it is functional, and the content of pages of difference Yu other types direct broadcasting room can be showed.
To sum up, by designing proprietary interface protocol to the distinctive bridge of face value direct broadcasting room
IMobilePlayerView, and its is made to inherit basic page bridge, and after expanding it, there is the bridge both
The institute of basic page bridge is functional, and can show the content of pages of difference with other direct broadcasting rooms.
The design method of half screen direct broadcasting room bridge and face value direct broadcasting room bridge type seemingly, except that the half screen is broadcast live
The interface protocol of bridge is IPlayerView, using the design method of above-mentioned face value direct broadcasting room bridge, allows the bridge joint first
Device inherits above-mentioned basic page bridge, then expands the bridge, and specific definition method is as follows:
Public interfact IPlayerView extends IBaseView{
Void updatePlayerView();
}
Similarly, by being contained in total after inheriting and expanding in the half screen bridge IPlayerView of design
Such three bridge functions of updatePlayerView, onReceiveMeneberInfo, onReceiveRoomInfo.
Due to including basic page bridge in the given bridge device of different direct broadcasting rooms, basic page bridge joint is all had
All public informations in device, all public informations are corresponding with same page, are in addition augmented in each bridge identical
Renewal function, therefore when needing to be updated the same page in direct broadcasting room, it is only necessary to update once can be realized all
The update of the page in direct broadcasting room bridge, greatly reduces code redundancy, and workload substantially reduces.
S3 calls the registration function, obtains the operating right of the otherness page bridge.
The design of otherness page bridge is completed by above method, it is contemplated that, generally can be right the problems such as safety
The operating right of page development personnel limits, therefore Register can be arranged, only page development personnel's ability by registration
With its operating right.Registration is completed by inputting parameter in the registration function in Register, when no longer operating this otherness
Page bridge is nullified, and the process of registration and unregistration is described in detail below.
For this sentences the registration and unregistration design method of face value bridge, the definition method and face value of non-face value bridge
The registration and unregistration method of bridge is similar, and non-face value is not described in detail, and specifically comprises the following steps:
S31 registers otherness page bridge, and register method is defined as follows:
It is illustrated above the design method of the otherness page bridge of face value direct broadcasting room, but the above-mentioned otherness page bridges
After the completion of device definition, by inheriting and expansion has updateMoblilePlayerView, onReceiveMeneberInfo
With tri- bridge functions of onReceiveRoomInfo, but when registering to otherness page bridge, registration is effective
Domain be only expand function, namely at this time only expand function can be used, but at this time by succession come two letters
Number (onReceiveMeneberInfo and onReceiveRoomInfo) can not be used by page development personnel, it is therefore desirable to
The active domain of otherness page bridge parameter is expanded, the active domain for the parameter for making its registration come in is extended for global change
The active domain of amount use all functions in otherness page bridge can.
As above-mentioned steps will need after the completion of the definition of otherness page bridge bridge function to otherness page bridge
Registration function carry out preliminary definition, so that the function expanded in the otherness page bridge is used, this example is still with face
It is worth for the definition of bridge, the register method of face value bridge is defined as follows herein:
Public void addMoblileRegister(IMobilePlayerView mobileView)
Wherein, addMoblileRegister is the name of registration function, since this sentences face value direct broadcasting room bridge
For registration, therefore parameter mobileView is registered as IMobilePlayerView type, to the otherness in half screen direct broadcasting room
When the registration function of bridge is defined, need to be changed to IPlayerView type.Then need to registration parameter have domain into
Row expands, and defines the global variable globalMobileView of an IMobilePlayerView type first, and registration is come in
MobileView be assigned to globalMobileView, realized especially by globalMobileView=mobileView.
It can enable the function in otherness page bridge that can be used after registration in the above manner.
S32 nullifies otherness page bridge, and it is as follows to be specifically defined operation:
When not using the otherness page bridge, it is only necessary to set global variable globalMobileView to
Sky can be exited using the otherness page bridge, and simple and fast, error rate is low, be defined as follows:
Public void removeMoblileRegister()
RemoveMoblileRegister is the title for nullifying function in definition, and the function does not have return value and enters
Join parameter.In log off procedure, the globalMobileView object inside removeMoblileRegister function need to only be set
It is set to sky null, i.e., the adduction relationship of cut-off globalMobileView to mobileView, especially by setting
GlobalMobileView=null is realized, logout flow path can be realized by way of briefly above.
S4 is right when the same page or specific webpage of any one direct broadcasting room are updated in N number of direct broadcasting room
Corresponding same page or specific webpage are updated in the otherness page bridge.
Herein still by taking face value direct broadcasting room as an example, although completing the definition of otherness page bridge, otherness page
Face bridge and the direct broadcasting room page belong to the object of different types of data, can not will be in the page and direct broadcasting room in bridge
The page is directly linked, therefore, it is necessary first to so that the face value direct broadcasting room object is inherited the bridge object, the face value is broadcast live
Between object include all functions in the otherness page bridge, it is specific that inherit mode as follows:
MobilePlayerActivity implements IMobilePlayerView。
Wherein, MobilePlayerActivity is face value direct broadcasting room, and implements is to inherit keyword, is passed through
Implements makes carbon copies all functions in its otherness bridge in face value direct broadcasting room, makes carbon copies in this example
Tri- bridge functions of updateMoblilePlayerView, onReceiveMeneberInfo and onReceiveRoomInfo,
Face value direct broadcasting room can be made to realize that institute is functional in otherness page bridge through the above way, i.e., face value direct broadcasting room inherits
Function in face value direct broadcasting room otherness page bridge, i.e. updateMoblilePlayerView,
Tri- bridge functions of onReceiveMeneberInfo and onReceiveRoomInfo, although face value direct broadcasting room is inherited at this time
Function in otherness page bridge, since face value direct broadcasting room and otherness page bridge are not same data type
Object, the function can not be called directly, it is therefore desirable to by face value direct broadcasting room data type unsteady state operation be the otherness page
The data type of bridge, specific conversion regime are as follows:
(IMobilePlayerView)MobilePlayerActivity
By above-mentioned unsteady state operation, when the page in direct broadcasting room needs to update, face value direct broadcasting room can be adjusted directly at this time
With its by succession come renewal of the page function updateMoblilePlayerView, and then by the page in face value direct broadcasting room
Face is converted into the page in direct broadcasting room bridge, and using such mode, original page is carried out more either in face value direct broadcasting room
Newly, it is desired nonetheless to the direct broadcasting room page is developed again, it can be by calling renewal function that the conversion of page in direct broadcasting room is made to exist
The page in bridge, without copying code in each page.
It will be appreciated, however, that the direct broadcasting room page starts to need to adjust when generating because the direct broadcasting room page is there are life cycle
It is needed to remove the memory of its occupancy when the direct broadcasting room page is needed to destroy with onCreate (beginning of life cycle), needs to use
It is generation and the Destruction of the direct broadcasting room page in renewal of the page process to onDestory (end of life cycle), therefore
Need to make the onCreate (beginning of life cycle) and onDestory (in the end of life cycle) in life cycle function,
Registration function addMoblileRegister is called respectively and nullifies function removeMoblileRegister, makes otherness page
Face bridge can act on the whole life cycle of the direct broadcasting room page.
Processing mode for half screen direct broadcasting room be it is similar, do not do repeated description herein.
In conclusion this programme is believed by design basis page bridge for bridging the identical page of multiple direct broadcasting rooms
The logical communication link of different direct broadcasting rooms can be realized only by the code for developing a set of general logic department for breath.For difference
Different interface protocols is arranged by design otherness page bridge, different direct broadcasting rooms in the otherness of the direct broadcasting room page, benefit
Differentiation is shielded with interface protocol and specific differentiation content of pages is realized in live page.In the registration process of the program
In, by the way that the variable inside the registration function in otherness page bridge is effectively extended in the active domain of global variable,
Complete registration;In log off procedure, directly set empty for the variable in global variable active domain, i.e. cutting global variable reference
The adduction relationship of built-in variable.Inheriting the direct broadcasting room page directly, the institute in its bridge is functional, and realization updates bridge and is
The function of direct broadcasting room renewal of the page can be achieved.In the above manner, the workload during greatly reducing page development, has
Redundant code is reduced to effect, and greatly improves the maintainability of code.
As shown in Fig. 2, electronic equipment 200 includes processor 210, memory 220.The electronic equipment 200 can execute
The method that face refers to Fig. 1 description, to carry out Message Processing.
Specifically, processor 210 for example may include general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, specific integrated circuit (ASIC)), etc..Processor 210 can also include using for caching
The onboard storage device on way.Processor 210 can be for executing the method flow according to the embodiment of the present disclosure for referring to Fig. 1 description
Different movements single treatment units either multiple processing units.
Memory 220, such as can be the arbitrary medium can include, store, transmitting, propagating or transmitting instruction.For example,
Readable storage medium storing program for executing can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagate Jie
Matter.The specific example of readable storage medium storing program for executing includes: magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD
(CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Memory 220 may include computer program 221, which may include that code/computer can be held
Row instruction, executes processor 210 for example above in conjunction with method flow described in Fig. 1
And its any deformation.
Computer program 221 can be configured to have the computer program code for example including computer program module.Example
Such as, in the exemplary embodiment, the code in computer program 221 may include one or more program modules, for example including
221A, module 221B ....It should be noted that the division mode and number of module are not fixed, those skilled in the art
It can be combined according to the actual situation using suitable program module or program module, when these program modules are combined by processor
When 210 execution, processor 210 is executed for example above in conjunction with method flow described in Fig. 1 and its any deformation.
Fig. 3 diagrammatically illustrates the block diagram of the system of the direct broadcasting room page development according to the embodiment of the present disclosure.
As shown in figure 3, the system 300 of direct broadcasting room page development includes basic page bridge module 310, the otherness page
Bridge module 320, registration and unregistration module 330 and renewal of the page module 340.
Specifically, basic page bridge module 310, for bridging the same page between N number of direct broadcasting room, wherein N is
Positive integer greater than 1;Otherness page bridge module 320 is identical in the basic page bridge module for inheriting
The page, while the specific webpage for extending each direct broadcasting room in N number of direct broadcasting room;Registration and unregistration module 330, for infusing
The volume basic page bridge or otherness page bridge, enable the same page or specific webpage to be used and be moved back
It uses out;Renewal of the page module 340, for updating the same page or specific webpage.
It is understood that basic page bridge module 310, otherness page bridge module 320, registration and unregistration
Module 330 and renewal of the page module 340, which may be incorporated in a module, to be realized or any one module therein can be by
Split into multiple modules.Alternatively, at least partly function of one or more modules in these modules can be with other modules
At least partly function combines, and realizes in a module.According to an embodiment of the invention, basic page bridge module
310, at least one of otherness page bridge module 320, registration and unregistration module 330 and renewal of the page module 340 can
To be at least implemented partly as hardware circuit, for example, field programmable gate array (FPGA), programmable logic array (PLA),
The system in system, encapsulation, specific integrated circuit (ASIC) in system on chip, substrate, or can be to be integrated to circuit
Or the hardware such as any other rational method or firmware of encapsulation are realized, or with three kinds of software, hardware and firmware realization sides
The appropriately combined of formula is realized.Alternatively, basic page bridge module 310, otherness page bridge module 320, registration and
At least one of cancellation module 330 and renewal of the page module 340 can at least be implemented partly as computer program module,
When the program is run by computer, the function of corresponding module can be executed.
The disclosure additionally provides a kind of computer-readable medium, which, which can be in above-described embodiment, retouches
Included in the equipment/device/system stated;It is also possible to individualism, and without in the supplying equipment/device/system.On
It states computer-readable medium and carries one or more program, when said one or multiple programs are performed, realize root
According to the method for the embodiment of the present disclosure.
In accordance with an embodiment of the present disclosure, computer-readable medium can be computer-readable signal media or computer can
Read storage medium either the two any combination.Computer readable storage medium for example can be --- but it is unlimited
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates
The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires
Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory
(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.In the disclosure, computer readable storage medium can be it is any include or storage program
Tangible medium, which can be commanded execution system, device or device use or in connection.And in this public affairs
In opening, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by
Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium
Sequence code can transmit with any suitable medium, including but not limited to: wireless, wired, optical cable, radiofrequency signal etc., or
Above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants
It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule
The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
Claims (10)
1. a kind of method for direct broadcasting room page development, comprising:
Basic page bridge is arranged, for bridging the same page between N number of direct broadcasting room in S1, wherein N is just whole greater than 1
Number;
Otherness page bridge is arranged in S2, for inheriting the same page in the basic page bridge, while for expanding
The specific webpage of each direct broadcasting room in N number of direct broadcasting room described in exhibition, wherein the otherness page bridge includes registration function;
S3 calls the registration function, obtains the operating right of the otherness page bridge;
S4, when the same page or specific webpage of any one direct broadcasting room are updated in N number of direct broadcasting room, to described
Corresponding same page or specific webpage are updated in otherness page bridge.
2. according to the method described in claim 1, further including being set to the otherness page bridge of different direct broadcasting rooms in step S2
Set different interface protocols.
3. according to the method described in claim 2, wherein, the same page includes the public letter of user's public information and room
Breath, the basis page bridged protocol includes onReceiveMeneberInfo function and onReceiveRoomInfo function, institute
Stating step S1 includes:
Using onReceiveMeneberInfo function bridged subscriber public information;
Room public information is bridged using the onReceiveRoomInfo function.
4. according to the method described in claim 3, the otherness page bridge includes renewal of the page bridge function
UpdateMoblilePlayerView, the step S4, comprising:
Using the renewal of the page bridge function updateMoblilePlayerView, in the otherness page bridge
Corresponding same page or specific webpage are updated.
5. according to the method described in claim 4, the step S4, including the direct broadcasting room inherit the otherness page bridge joint
Bridge function in device is made by the renewal of the page bridge function updateMoblilePlayerView in the bridge function
Conversion of page in the direct broadcasting room is the page in otherness page bridge, completes to update.
6. method according to claim 1, in which:
Different types of direct broadcasting room is corresponding with different otherness page bridges;
Different otherness page bridges corresponds to the same basic page bridge.
7. according to the method described in claim 1, definition has registration and anti-registration function, tool in the bridge in step S3
The registration of body and anti-register method are as follows:
The registration function input parameter is sky, without registration;
The registration function input parameter is not empty, one global variable of definition, by the input parameter assignment in the registration function
To the global variable, the active domain of the registration function is made to be extended for the active domain of global variable, completes the registration process;
By setting empty for the global variable inside anti-registration function, the anti-registration process is realized.
8. a kind of electronic equipment, comprising:
Processor;
Memory is stored with computer executable program, and the program by the processor when being executed, so that the processor
The method for executing direct broadcasting room page development in the claim 1~7.
9. a kind of system for direct broadcasting room page development, comprising:
Basic page bridge module, for bridging the same page between N number of direct broadcasting room, wherein N is the positive integer greater than 1;
Otherness page bridge is arranged in otherness page bridge module, for inheriting in the basic page bridge
Same page, while the specific webpage for extending each direct broadcasting room in N number of direct broadcasting room, wherein the otherness page
Bridge includes registration function;
Module is obtained, the registration function is called, obtains the operating right of the otherness page bridge;
Renewal of the page module, for updating the same page or specific webpage.
10. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
The method of direct broadcasting room page development in Shi Shixian such as claim 1~7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810851469.4A CN109101264A (en) | 2018-07-27 | 2018-07-27 | A kind of method and electronic equipment for direct broadcasting room page development |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810851469.4A CN109101264A (en) | 2018-07-27 | 2018-07-27 | A kind of method and electronic equipment for direct broadcasting room page development |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109101264A true CN109101264A (en) | 2018-12-28 |
Family
ID=64848004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810851469.4A Pending CN109101264A (en) | 2018-07-27 | 2018-07-27 | A kind of method and electronic equipment for direct broadcasting room page development |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109101264A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111625274A (en) * | 2020-05-26 | 2020-09-04 | 北京达佳互联信息技术有限公司 | Page dependence determination method and device, electronic equipment and storage medium |
CN113204722A (en) * | 2021-03-30 | 2021-08-03 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
CN114374852A (en) * | 2020-10-14 | 2022-04-19 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device, equipment and medium for constructing special effect |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101540828A (en) * | 2009-04-23 | 2009-09-23 | 中山大学 | Object-oriented set-top box background channel development system and method thereof |
CN101882088A (en) * | 2009-05-05 | 2010-11-10 | 百视通网络电视技术发展有限责任公司 | Method and system for simulating set top box (STB) and implementation method thereof |
CN102193793A (en) * | 2010-03-02 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Method and device for realizing software reusability |
CN105760192A (en) * | 2016-02-03 | 2016-07-13 | 北京元心科技有限公司 | Registration method and device for service module of system server |
CN106339229A (en) * | 2016-08-31 | 2017-01-18 | 虎扑(上海)文化传播股份有限公司 | Hybrid development method and hybrid development system for mobile platform |
CN107018450A (en) * | 2017-03-17 | 2017-08-04 | 北京潘达互娱科技有限公司 | A kind of page display method and device |
CN107145354A (en) * | 2017-05-04 | 2017-09-08 | 武汉斗鱼网络科技有限公司 | Software frame and its construction method, electric terminal and readable storage medium storing program for executing |
CN107247587A (en) * | 2017-05-26 | 2017-10-13 | 上海斐讯数据通信技术有限公司 | A kind of web page template generation method and device |
CN107329991A (en) * | 2017-06-07 | 2017-11-07 | 武汉斗鱼网络科技有限公司 | A kind of list access to web page and methods of exhibiting and its system |
CN107402766A (en) * | 2017-07-31 | 2017-11-28 | 武汉斗鱼网络科技有限公司 | Page layout management method and device |
CN108153564A (en) * | 2016-12-02 | 2018-06-12 | 北京京东尚科信息技术有限公司 | Methods for interface management, equipment and system |
-
2018
- 2018-07-27 CN CN201810851469.4A patent/CN109101264A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101540828A (en) * | 2009-04-23 | 2009-09-23 | 中山大学 | Object-oriented set-top box background channel development system and method thereof |
CN101882088A (en) * | 2009-05-05 | 2010-11-10 | 百视通网络电视技术发展有限责任公司 | Method and system for simulating set top box (STB) and implementation method thereof |
CN102193793A (en) * | 2010-03-02 | 2011-09-21 | 腾讯科技(深圳)有限公司 | Method and device for realizing software reusability |
CN105760192A (en) * | 2016-02-03 | 2016-07-13 | 北京元心科技有限公司 | Registration method and device for service module of system server |
CN106339229A (en) * | 2016-08-31 | 2017-01-18 | 虎扑(上海)文化传播股份有限公司 | Hybrid development method and hybrid development system for mobile platform |
CN108153564A (en) * | 2016-12-02 | 2018-06-12 | 北京京东尚科信息技术有限公司 | Methods for interface management, equipment and system |
CN107018450A (en) * | 2017-03-17 | 2017-08-04 | 北京潘达互娱科技有限公司 | A kind of page display method and device |
CN107145354A (en) * | 2017-05-04 | 2017-09-08 | 武汉斗鱼网络科技有限公司 | Software frame and its construction method, electric terminal and readable storage medium storing program for executing |
CN107247587A (en) * | 2017-05-26 | 2017-10-13 | 上海斐讯数据通信技术有限公司 | A kind of web page template generation method and device |
CN107329991A (en) * | 2017-06-07 | 2017-11-07 | 武汉斗鱼网络科技有限公司 | A kind of list access to web page and methods of exhibiting and its system |
CN107402766A (en) * | 2017-07-31 | 2017-11-28 | 武汉斗鱼网络科技有限公司 | Page layout management method and device |
Non-Patent Citations (3)
Title |
---|
刘其成: "《软件设计与体系结构》", 31 August 2012 * |
肖丁,吴建林,周春燕等编: "《软件工程模型与方法》", 31 March 2008 * |
郭峰: "《深入浅出设计模式》", 31 January 2013 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111625274A (en) * | 2020-05-26 | 2020-09-04 | 北京达佳互联信息技术有限公司 | Page dependence determination method and device, electronic equipment and storage medium |
CN114374852A (en) * | 2020-10-14 | 2022-04-19 | 武汉斗鱼鱼乐网络科技有限公司 | Method, device, equipment and medium for constructing special effect |
CN113204722A (en) * | 2021-03-30 | 2021-08-03 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
CN113204722B (en) * | 2021-03-30 | 2022-11-22 | 北京达佳互联信息技术有限公司 | Page display method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109818902B (en) | Automatic service deployment method, service scheduling management module and EPG platform | |
Sinha et al. | Building an E Ective IoT Ecosystem for Your Business | |
CN109101264A (en) | A kind of method and electronic equipment for direct broadcasting room page development | |
CN107967316A (en) | A kind of method of data synchronization, equipment and computer-readable recording medium | |
CN109740751B (en) | Architecture fusion method of neural network model and related device | |
CN110225488A (en) | Method and apparatus for profile to be arranged | |
CN104113435B (en) | Generate the method and device of mark | |
JP2015012612A (en) | Method and system for providing ringtone using video multimedia | |
JP2005352618A (en) | Signal processor | |
CN114079615B (en) | Application synchronization method, system, medium and electronic equipment in multi-cluster environment | |
CN104991778B (en) | Filter method based on tree structure and device | |
CN103885756B (en) | Base application function configuration method, implementation method and the device of intelligent terminal | |
US11398981B2 (en) | Path creation method and device for network on chip and electronic apparatus | |
CN113625589A (en) | Equipment control method and device, electronic equipment and storage medium | |
CN111669434B (en) | Method, system, device and equipment for establishing communication group | |
CN108614696A (en) | The method and device that a kind of method that application makes, static library generate | |
CN105791080A (en) | Group-sending message processing method and system as well as electronic device | |
CN109358833A (en) | A kind of audio frequency playing method and system, a kind of calculating equipment and storage medium | |
CN104834649A (en) | Intelligent equipment capable of realizing multi-equipment synergy and multi-equipment synergy working method | |
CN110399600A (en) | Generate the method and device of wide table | |
CN109101311A (en) | A kind of method and electronic equipment that display view is compatible | |
CN109445770A (en) | A kind of processing method of error code, device, medium and equipment | |
CN112558968B (en) | Method, device, equipment and storage medium for generating resource tree view | |
CN106453213A (en) | Intersystem call method and device | |
CN114327453B (en) | Page display method, device, equipment and storage medium |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181228 |
|
RJ01 | Rejection of invention patent application after publication |