CN110366118A - A kind of radio station, application program and the method for realizing radio station function - Google Patents
A kind of radio station, application program and the method for realizing radio station function Download PDFInfo
- Publication number
- CN110366118A CN110366118A CN201910604488.1A CN201910604488A CN110366118A CN 110366118 A CN110366118 A CN 110366118A CN 201910604488 A CN201910604488 A CN 201910604488A CN 110366118 A CN110366118 A CN 110366118A
- Authority
- CN
- China
- Prior art keywords
- radio station
- service
- data
- application program
- component
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04H—BROADCAST COMMUNICATION
- H04H60/00—Arrangements for broadcast applications with a direct linking to broadcast information or broadcast space-time; Broadcast-related systems
- H04H60/76—Arrangements characterised by transmission systems other than for broadcast, e.g. the Internet
- H04H60/81—Arrangements characterised by transmission systems other than for broadcast, e.g. the Internet characterised by the transmission system itself
- H04H60/82—Arrangements characterised by transmission systems other than for broadcast, e.g. the Internet characterised by the transmission system itself the transmission system being the Internet
- H04H60/83—Arrangements characterised by transmission systems other than for broadcast, e.g. the Internet characterised by the transmission system itself the transmission system being the Internet accessed over telephonic networks
- H04H60/85—Arrangements characterised by transmission systems other than for broadcast, e.g. the Internet characterised by the transmission system itself the transmission system being the Internet accessed over telephonic networks which are mobile communication networks
-
- 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/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
-
- 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
- H04N21/4823—End-user interface for program selection using a channel name
-
- 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
- H04N21/4825—End-user interface for program selection using a list of items to be played back in a given order, e.g. playlists
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/06—Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention discloses a kind of radio station, application program and the methods for realizing radio station function, the radio station includes: kernel business tier, for accessing application program in a manner of submodule, service is provided to the business user of the main works of application program, kernel business tier includes data service module and broadcasting service module, the radio station service order that data service module is used to be inputted according to user requests radio station relevant to file destination data to server, and radio station data for showing in the application;Service module is played to be used to server request target file and play file destination according to radio station service order.By the way that radio station kernel business tier is accessed any application in a manner of submodule, it is serviced without being modified to can be realized with server communication and provide the data service of core and play to other codes in engineering, so that radio station function can arbitrarily access and independent calling, to improve the scalability of radio station function, and keep radio station function easy to maintain.
Description
Technical field
The present embodiments relate to field of computer technology more particularly to a kind of radio station, application program and realize radio station function
The method of energy.
Background technique
Radio station is a kind of multimedia application for being based on frequency modulation (Frequency Modulation, FM) broadcast technology, user
It may browse through different channels, song list, playlist etc. by radio station, and listen to or play the audio or video text of different channel
Part.Application program (Application, APP) with the rapid development of Internet technology, in the intelligent terminals such as plate, mobile phone
All kinds of, application is more and more extensive, becomes the main path that user plays multimedia file.During developing APP, make
, can be highly integrated in APP by radio station function with all kinds of tools and code of APP technical interior, in the form of source code in engineering
It is called in APP.
However, needing to be multiplexed radio station function in different APP, or need that radio station function is modified or safeguarded
In the case of, the source code by radio station function limits the strong dependence of APP technical interior other codes, needs that electricity will be related to
The core code of platform function is stripped out from APP engineering, re-writes APP work as new source code after being transplanted or being modified
In journey, again with other codes coupling and it is compatible, development process is complex, and at high cost time-consuming;Even if radio station function is sealed
Loaded on different interfaces, calls ready-made interface to obtain the code of radio station function using APP in use process, remain on and need needle
Interface is write to different APP and calls code, still faces the problem of code migration and interface reconfigurations complexity.Therefore, radio station function
Poor expandability, cannot independently be flexibly applied to arbitrary application program, and be also not easy to safeguard, cause radio station function
Multiplexing and difficult in maintenance.
Summary of the invention
The present invention provides a kind of radio station, application program and the methods for realizing radio station function, can with improve radio station function
Scalability.
In a first aspect, the embodiment of the invention provides a kind of radio station, comprising:
Kernel business tier, the kernel business tier in a manner of submodule for accessing application program, to application program
The business user of main works provides service, and the kernel business tier includes data service module and broadcasting service module, wherein
The data service module, the radio station service order for being inputted according to user, to server request and target text
The relevant radio station data of part, the radio station data in the application program for showing;
The broadcasting service module is used for according to the radio station service order to the server request target file, and
Play the file destination.
Second aspect, the embodiment of the invention provides a kind of application programs, comprising:
Main works and the radio station as described in relation to the first aspect accessed with submodule block mode, the main works call the radio station
Realize that radio station data are shown and file destination plays.
The third aspect, the embodiment of the invention provides a kind of methods for realizing radio station function, comprising:
The radio station service order of user's input is received by radio station functional entrance;
Call the kernel business tier in radio station relevant to file destination to server request according to the radio station service order
Radio station data, and show the radio station data;
It calls the kernel business tier in radio station to server request target file according to the radio station service order, and plays institute
State file destination.
The embodiment of the invention provides a kind of radio station, application program and the methods for realizing radio station function, which includes: core
Heart operation layer, kernel business tier make for accessing application program in a manner of submodule to the business of the main works of application program
Service is provided with side, kernel business tier includes data service module and broadcasting service module, wherein data service module is used for root
Radio station relevant to file destination data are requested to server according to the radio station service order of user's input, radio station data are for answering
It is shown in program;It plays service module to be used for according to radio station service order to server request target file, and plays target
File.Above-mentioned technical proposal in a manner of submodule accessing any application for radio station kernel business tier, without to work
Other codes in journey are modified the data service that can be realized with server communication and provide core and play service, so that
Radio station function can arbitrarily access and independent calling, to improve the scalability of radio station function, and keeps radio station function easy to maintain.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram in radio station that the embodiment of the present invention one provides;
Fig. 2 is the schematic diagram of the radio station functional entrance of the application program in the embodiment of the present invention one;
Fig. 3 is the schematic diagram of the kernel business tier and server communication in the embodiment of the present invention one;
Fig. 4 is a kind of structural schematic diagram in radio station provided by Embodiment 2 of the present invention;
Fig. 5 is the schematic diagram that the interface proxy in the embodiment of the present invention two is interacted with kernel business tier;
Fig. 6 is the schematic diagram of the broadcast interface in the embodiment of the present invention two;
Fig. 7 is the schematic diagram of the state of the player in the embodiment of the present invention two;
Fig. 8 is the schematic diagram of the playlist state in the embodiment of the present invention two;
Fig. 9 is the realization schematic diagram in radio station provided by Embodiment 2 of the present invention;
Figure 10 is the structural schematic diagram for the application program that the embodiment of the present invention three provides;
Figure 11 is a kind of flow chart for method for realizing radio station function that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.In addition, in the absence of conflict, this
The feature in embodiment and embodiment in invention can be combined with each other.It also should be noted that for ease of description, it is attached
Only the parts related to the present invention are shown in figure rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of structural schematic diagram in radio station that the embodiment of the present invention one provides.The present embodiment is applicable to any
In APP the case where access radio station function, to realize the browsing of radio station data and the broadcasting of file destination.As shown in Figure 1, radio station is wrapped
Include: kernel business tier 100, kernel business tier 100 in a manner of submodule for accessing application program, to the main work of application program
The business user of journey provides service, and kernel business tier 100 is including data service module 101 and plays service module 102,
In, data service module 101 is used for the radio station service order inputted according to user, requests to server relevant to file destination
Radio station data, radio station data for showing in the application;Service module 102 is played to be used for according to radio station service order to clothes
Business device request target file, and play file destination.
Specifically, kernel business tier 100 defines all radio station data that radio station uses, (such as channel data is played
Table data, file destination content etc.), for realizing the core function in radio station, core function include radio station data browsing and
The broadcasting of file destination.Radio station data and file destination can be exported according to the business need of user based on kernel business tier 100, and
Realize the link to bottom function, bottom function mainly includes that the side of file destination is broadcast below, wherein file destination can be sound
Frequency file or video file.
Kernel business tier 100 is accessed in APP in a manner of submodule, and submodule can be distributed version control system
(Git) the sub- engineering insertion tool (Submodule) in.Using Git can effectively, at high speed to the version of various projects into
Packaged kernel business tier 100 is accessed in the main works of APP by Git Submodule, can keep core by row management
Original project or engineering is mutually indepedent in operation layer 100 and APP, provides clothes to the business user of the main works of application program
Business.APP will not influence kernel business tier 100 when executing itself function according to original engineering, and kernel business tier 100 is providing
During the core function in radio station, the code of original engineering will not be called.Kernel business tier 100 is as in insertion APP
One independent sub- engineering, form can (Podfile be relied on for describing one or more project objectives for authority file
), software development framework (framework) and source code etc..By means of which, kernel business tier 100 can be made easily to access
Into any APP.
Further, while packaged kernel business tier 100 being accessed APP in a manner of submodule, in the interface APP
A settable corresponding radio station functional entrance, for receiving the radio station service order of user's input, radio station service order is available
In unlatching radio station function.
Fig. 2 is the schematic diagram of the radio station functional entrance of the application program in the embodiment of the present invention one.It is illustrated in figure 2 one
The study APP of smart phone can be used for searching for knowledge point, study recommendation knowledge point etc., and interface bottom includes four kinds of labels: first
Page, message, practice and account, the present embodiment illustratively access the kernel business tier 100 in radio station in study APP, can be with
A corresponding icon is added in the interface of the APP, as radio station functional entrance.User can be by clicking icon input
Radio station service order starts radio station function.Radio station functional entrance can also include multiple sub-icons or sub- button, be used to indicate not
With the title of file destination, link, type or channel etc., user can be by clicking sub-icon or sub- button, in starting radio station function
Can while select specific file destination so that kernel business tier 100 obtain the relevant radio station data of file destination with
And play file destination.Optionally, the radio station service order of user's input is received by radio station functional entrance, it can also be for when knowledge
It is clipped to the voice signal comprising predetermined keyword of user's sending, or works as and detects that user presses preset shortcut key etc., depending on
Radio station functional entrance is clicked for user.In the case where receiving radio station service order, kernel business tier 100 can be with server
It communicates and realizes the browsing of radio station data and the broadcasting of file destination.It should be noted that the main works of the APP can call original
Some functions relevant to learning knowledge point, can also independently call the number in radio station provided by the kernel business tier 100 of access
According to service and play service.
Further, if in the service order of radio station including selection information of the user to file destination, kernel business tier
100 obtain corresponding file destination and relevant radio station data to server communication;If not including using in the service order of radio station
Family can obtain preset default objects file automatically and play out to the selection information of file destination, kernel business tier 100, or
Person is according to history usage record, target text that is selected or finally playing when obtaining user's last time using radio station function
Part obtains relevant radio station data while obtaining file destination.
Further, radio station service order can also be used in the broadcast interface for activating or jumping to file destination.
Specifically, APP can be by original boundary after receiving the radio station service order that user inputs by radio station functional entrance
Face jumps to the broadcast interface of file destination.The broadcast interface of file destination can be pre-set default interface, can also be with
Interface for the Service Component generation called based on kernel business tier 100 by interface proxy, for example, kernel business tier 100 is logical
It crosses interface proxy and has invoked play history component, channel component, list broadcast state component, then have in the broadcast interface generated
The corresponding icon of these Service Component or button, for example, can show that history plays record, is currently played in broadcast interface
File destination channel information and list broadcast state (in broadcasting, cut song in or play terminate) and list broadcasting mould
Formula (played in order, list circulation, random etc.).
Further, it plays in service module 102 and encapsulates file downloader and bottom player, wherein file download
Device is used for according to radio station service order to server request target file;Bottom player is for playing file destination.
The bottom layer realization code of playing function is encapsulated in service module 102 specifically, playing, including file downloader and
Bottom player can realize that the side of file destination is broadcast below in APP.Bottom player is for being decoded file destination
And broadcasting.For example, bottom player can be Media SDK, Media SDK is a Software Development Library, includes decoding, video
Three big modules of processing and coding, can be realized index, slice, combination, breakpoint, buffering etc., provide HD video quality, reduce
Play the hardware threshold of HD video.File downloader is also encapsulated in addition, playing in service module 102, thus in APP
Realize the following multicast function in side of file destination.
Further, networking component is encapsulated in data service module 101.It can be to server request and mesh by networking component
Mark the relevant radio station data of file.
Fig. 3 is the schematic diagram of the kernel business tier and server communication in the embodiment of the present invention one.As shown in figure 3, core
Operation layer 100 includes data service module 101 and plays service module 102, encapsulates networking component in data service module 101
(Web Component), for obtaining crucial radio station relevant to file destination data from server;Play service module
File downloader (File Downloader) and bottom player (Audio Player) are encapsulated in 102, are used for from server
Downloading object file simultaneously provides the playing function on basis.
Further, radio station data comprise at least one of the following: channel data, playlist data, broadcast state data,
Play history data, file destination link, file destination content, socially relevant information and file destination uploader information.
Specifically, channel data is frequency modulation channel belonging to currently playing file destination;Include in playlist data
Listed files to be played;Broadcast state data include broadcast state (such as play, suspend, stopping) and the list of single file
Broadcast state (such as play, suspend, switch next);Play history data include the file for having played or having browsed;
File destination link includes the download address of file destination;File destination content includes the lyrics, subtitle, caching picture etc.;It is social
Relevant information includes listening to number, thumbing up quantity, sharing or hop count etc.;File destination uploader information includes by target text
Part is uploaded to the writer identity mark of server, uplink time etc..Radio station data can also include format, the class of file destination
Type, transport protocol, Video Stream type, audio quality and video definition etc..After accessing radio station function in APP, user can be with
Radio station data are browsed in APP.
A kind of radio station that the embodiment of the present invention one provides, comprising: kernel business tier, kernel business tier are used for submodule
Mode accesses application program, provides service to the business user of the main works of application program, kernel business tier includes data clothes
Module of being engaged in and play service module, wherein the radio station service order that data service module is used to input according to user is to server
Radio station relevant to file destination data are requested, radio station data for showing in the application;It plays service module and is used for root
According to radio station service order to server request target file, and play file destination.Above-mentioned technical proposal is by by the core in radio station
Heart operation layer is accessed in any application in a manner of submodule, without carrying out more to other codes in application program engineering
Changing, kernel business tier can obtain radio station data with server communication and play file destination, realize the core function in radio station, so that
Radio station function can arbitrarily access and independent calling, to improve the scalability of radio station function, and keeps radio station function easy to maintain.
Embodiment two
Fig. 4 is a kind of structural schematic diagram in radio station provided by Embodiment 2 of the present invention.The present embodiment is in above-described embodiment
On the basis of optimize, APP be embedded in radio station conversation module and visual interactive layer, be respectively used to pass through interface proxy
It calls Service Component and the default visual element for being used to form personalized broadcast interface is provided.It should be noted that not at this
The technical detail of detailed description can be found in above-mentioned any embodiment in embodiment.
As shown in figure 4, radio station further includes conversation module 200, conversation module 200 is for being embedded in the main works of application program
Portion, conversation module 200 include interface proxy 201 and Service Component 202, wherein interface proxy 201 is used for according to kernel business tier
The call request of 100 Service Component 202 sent, calls corresponding Service Component 202.
Specifically, interface proxy 201 can be Model agent (Model Proxy), a kind of interface of lightweight is with setting up
Mold framework, the mechanism which provides can be used for describing all external interfaces that kernel business tier 100 is relied on, to outside these
Interface is managed collectively, and provides flexible interface modeling and method of calling, it is understood that act on behalf of for service bus.For example,
Kernel business tier 100 needs to call three kinds of Service Component A, B, C, these Service Component 202 are encapsulated in different interface protocols,
The presence of other side's example and class is not known between each interface, function is independent of each other, and all can be realized by a Model Proxy
Calling independent.
Fig. 5 is the schematic diagram that the interface proxy in the embodiment of the present invention two is interacted with kernel business tier, as shown in figure 5, connecing
Mouth agency 201 is communicated with kernel business tier 100, according to the corresponding industry of call request unified call of kernel business tier 100
Business component 202, is then transmitted to kernel business tier 100 by interface proxy 201, by the correspondence encapsulated in kernel business tier 100
Service module (Service) or management module (Manager) handled, provide a user the corresponding industry of Service Component 202
Business service.It should be noted that size of code is increasing as radio station function is more and more abundant, the development scheme of modularization will
The Service Component 202 of different function is encapsulated in different interfaces, can be decoupled between the relationship business module, release according to
The relationship of relying realizes loose coupling framework.
Further, the initialization for the Service Component 202 that interface proxy 201 is also used to be sent according to kernel business tier 100
Request obtains the interface call method of Service Component 202.
Specifically, kernel business tier 100 is communicated with interface proxy 201, interface proxy 201 is made to initialize Service Component 202.
The Service Component 202 that kernel business tier 100 is relied on interface, the process of initialization can be these back end interfaces to connecing
201 registration of mouth agency gets interface proxy 201 according to the interface configuration file of specified format write-in interface proxy 201
The interface call method of each Service Component.For example, when the Service Component that backstage plays is registered in interface proxy 201, to interface
201 grouting socket call methods are acted on behalf of, certain interface specification is formed, then when kernel business tier 100 is requested to interface proxy 201
When obtaining the Service Component that backstage plays, interface proxy 201 calls the Service Component, core using corresponding interface call method
Operation layer 100 provides a user the function that backstage plays based on the Service Component in APP.
Further, Service Component comprises at least one of the following: playing and coordinates device assembly, play history component, single text
Part broadcast state component, list broadcast state component, player status component, backstage player module and channel component.
Specifically, for the function of radio station, Service Component 202 may include above-mentioned one or more, wherein play
Coordinator (Player Coordinator) component can be used for coordinating file destination playing function and the original more matchmakers of APP of access
The broadcasting of body file, for example, coordinating device assembly by broadcasting can when the functions such as the original call of APP, recording, live streaming are carried out
To interrupt or suspend the file destination playing function in radio station, to guarantee that file destination playing function does not conflict with other function;
Play history component (Audio History Action) can be used for record or displaying target file history play record, such as to
User provides play history list, the file destination title played in nearest one section of preset time and broadcasting time, recently most
Few file destination title for playing (Least Recently Used, LRU), caches (Cache) data etc.;Three
The relevant component of broadcast state can be aggregated in same interface call method, wherein single file broadcast state component
(Audio Item Action) can provide the broadcast state control of single file, such as play, suspend, stop etc., list is broadcast
The state control of playlist can be provided by putting state component (Audio Play List Action), such as according to tab sequential
Play, it is automatic play it is upper one first, next, specified head, page up, lower one page, list edit completion etc., player status component
(Audio Player Status Action) can be used for providing the state control of player plays function, such as be playing
In, play and terminate, cutting next etc.;Backstage player module is for providing backstage playing function, such as certain mobile phone operations
In system, the operation interface on backstage can be presented when application program falls back on running background, may be implemented to monitor playing function, Huo Zhetong
It crosses teleinstruction and realizes broadcasting control;Channel component can be used for providing the channel information of file destination being played on.Core industry
Business layer 100 is communicated with interface proxy 201, corresponding Service Component 202 is called using interface proxy 201, in kernel business tier 100
Encapsulate with Service Component 202 correspondingly service or manager, to realize the function of all kinds of Service Component 202 in APP
Energy.
Further, radio station further includes visual interactive layer 300, and visual interactive layer 300 is embedded in inside application program, and vision is handed over
Default visual element 301 is encapsulated in alternating layers 300.
Specifically, the personalized interface style of APP can be merged by generating broadcast interface using default visual element 301, it is
User provides intuitive visual interactive.The default visual element 301 and interface proxy 201 that view-based access control model alternation of bed 300 encapsulates are adjusted
Service Component 202 produces radio station function interface.
Further, preset visual element 301 comprise at least one of the following: play suspension ball, player, home page lists,
Playlist and play history list.
Specifically, playing the top layer that suspension ball is shown in interface, it can be used for quickly opening or closing the broadcasting of file destination
Function and provide some common playing functions (switching upper one it is next, suspend, exit radio station, replacement file destination and frequency
Road etc.), it has polymerize the function of some physical buttons;Player, main business list, playlist and the face of play history list
Color, lines, style can be set as defaulting in submodule, can also in original engineering of APP design code, for difference
APP has personalized design.
Further, kernel business tier 100 is also used to: 301 He of default visual element that view-based access control model alternation of bed 300 encapsulates
The Service Component 202 that interface proxy 201 calls generates radio station function interface.
Specifically, the Service Component 202 that interface proxy 201 calls corresponds to certain icon or button etc., can give birth to accordingly
At broadcast interface, APP can be jumped to the broadcast interface of generation by original view.Interface proxy 201 and kernel business tier 100 are logical
Letter carries out data mart modeling processing to Service Component 202, the interface needed is generated in combination with visual interactive layer.According to default vision
Element 301, which generates broadcast interface, can merge the personalized interface style of APP, provide intuitive visual interactive for user.
Fig. 6 is the schematic diagram of the broadcast interface in the embodiment of the present invention two.As shown in fig. 6, illustrative, the business of calling
Component 202 includes play history component, single file broadcast state component, list broadcast state component, channel component, then generates
It is provided in corresponding broadcast interface and checks play history, finds the business function of channel information, while can control single text
Part broadcast state (broadcasting/pause, stopping) and list broadcast state (upper one first/next, stop), the default vision member of use
Element 301 includes playing suspension ball and playlist etc..
It should be noted that the broadcasting service module 102 encapsulated in kernel business tier can provide file destination side
The function of broadcasting below, and communicated with interface proxy 201 and call Service Component 202, broadcasting circle is generated based on default visual element 301
Face is optional operation, and kernel business tier 100, conversation module 200 and visual interactive layer 300 can be run simultaneously, the present embodiment pair
Its sequence is without limitation.
Further, kernel business tier 100 is also used to monitor the current state of player and the current state of playlist.
Specifically, the current state of player can refer to bottom player to the broadcasting shape of current single target file
State, the current state of playlist can refer to bottom player to the broadcast state of file destination each in playlist.
Fig. 7 is the schematic diagram of the single file broadcast state in the embodiment of the present invention two.As shown in fig. 7, between each state
It can be converted according to the dependent instruction received.Illustratively, the current state of player originates in halted state, receives
Enter in circulation (shown in box) after to play instruction, initial stopping can be reverted to after receiving halt instruction or event
State;The internal state of the circulation may include: state in load, can be exchanged into and broadcasts after the completion of the data load of single file
Put middle state;When receiving pause or faulting instruction, halted state can be exchanged into;It is unstable when receiving look-up command or network
When instructing surely, state in load can be exchanged into;When receive finish playing instruct when, can be exchanged into the state of finishing playing;It is receiving
To restore or replay instruction after be switchable to load in state.
Fig. 8 is the schematic diagram of the list broadcast state in the embodiment of the present invention two.As shown in figure 8, playlist is current
State can originate in original state, and data can enter after loading and being ready is ready for state, receive player load and refer to
Stress state can be entered after order, can be exchanged into state in broadcasting after receiving player plays instruction, receive player pause
It can be exchanged into halted state after instruction, can enter after receiving player plays and completing instruction and list completion instruction and broadcast
Completion status, no longer played file are put, further instruction is waited.
Further, kernel business tier 100 is also used to the current state of current state and playlist according to player
Determine the service condition played.
Specifically, the conversion of broadcast state can be the core function based on broadcast state related service component, can be used for
By the current state of the current state of complicated player and playlist, customized target is converted into according to business demand and is broadcast
Put state, for example, user in use, need to only know player itself service condition be playing in or play terminate,
The particular state that single file or list are played without knowing player.It can be distinguished by two different state machines
The current state of player and the current state of playlist are monitored, is then succinct by different condition conversions by adaptation layer
Service condition.For example, customized service condition includes playing to neutralize to play to terminate, if the current state of player is to broadcast
Completion status is put, the current state of playlist is stress state (loading next), then can convert by transfer function
For the service condition of " in broadcasting ";If the current filling of player and the current state of playlist are all the shape that finishes playing
State can then be converted to the target broadcast state of " broadcasting terminates " by transfer function.Accordingly, in exploitation kernel business tier and encapsulation
During Service Component code, without learning the actual inside state of single file and playlist, but turn according to demand
It is changed to succinct service condition, checks service condition convenient for user, these service conditions are mapped to by transfer function by outside
Business reduces exploitation and difficult in maintenance without all carrying out the modification of code to every kind of combined situation, by opened be mapped to it is outer
The programming interface of portion's state has stronger scalability.
Illustratively, the process for being converted to the service condition of broadcasting can be such that
1) the radio station service order of user is received by radio station functional entrance, such as user mentions by clicking in the interface APP
The radio station functional entrance of confession can customize the service condition of needs, such as service condition includes playing to neutralize to play to terminate, and is each
Service condition generates state in a status type identification, such as broadcasting and corresponds to Type1, plays end state and corresponds to
Type2。
2) it is defined by radio station functional entrance from the current state of player and the current state of playlist to customized
Service condition between transfer function, the transfer function of the packaged default of kernel business tier also can be used.
3) change of the current state of player and the current state of playlist is monitored.
4) transfer function is called to be converted into the corresponding status type identification of the change when the state of listening to changes, and
Entrance is passed to when status type identification changes, and to be shown to business user, a mapping status is completed with this
Migration.
Further, radio station function provided in this embodiment may be defined as three parts: visual interactive layer 300, session mould
Block 200 and kernel business tier 100.It wherein, can needle inside the main works of visual interactive layer 300, the embeddable App of conversation module 200
Personalized visual interface and business function are formed to different App.And kernel business tier 100 is connect in a manner of Submodule
Enter any App, can be used for obtaining the radio station data of core and the function that side is broadcast below is provided.
Fig. 9 is the realization schematic diagram in radio station provided by Embodiment 2 of the present invention.As shown in figure 9, the top is visual interactive
Layer 300, is present in inside App main works, default visual element 301 may include play suspension ball, player, home page lists,
Playlist and play history list, the Service Component 202 obtained in conjunction with 100 layers of core business, can be used for generating in APP
Broadcast interface provides intuitive visual interactive for user.
The second layer is conversation module 200, be may be present in inside App main works.The present embodiment plays entire file destination
Procedural abstraction Cheng Yici user conversation (Session), the life cycle played for management of stations integrate each Service Component
202, and communicated with kernel business tier 100.Modules inside Session can be communicated by interface proxy 201, respectively
The example of a functional module passes through Model during initialization to Model Proxy grouting socket call method list
Proxy is distributed call method, and the Service Component 202 of needs can be called according to the request of kernel business tier 100.
Third layer is kernel business tier 100, the broadcasting of browsing from radio station data to APP service and file destination for providing
Service, any APP can be embedded in a manner of submodule, makes each APP that can obtain in an identical manner electricity by kernel business tier 100
Number of units evidence and the service broadcast below using side.Kernel business tier 100 defines all data and core required for the function of radio station
Heart function realizes the output to radio station business need and the link to bottom function.Kernel business tier 100 mainly includes two
Point, first is that realizing the function of broadcasting below on side by the encapsulation to file downloader and bottom player;Second is that passing through encapsulation net
Network component obtains crucial radio station data, such as playlist information, channel information, player information etc..Kernel business tier 100
After getting radio station, using internal implementor, such as various service modules (Service) or management module (Manager) can to
Family provides corresponding business function, and communicates with interface proxy 201 and call Service Component 202, obtains callback data, completes function
It can closed loop.
It should be noted that there are two types of mode of the present embodiment based on above three part realization radio station function, Yi Zhongwei
It is shallow to use, i.e., kernel business tier 100 is accessed in APP, (this mode cannot achieve for different upper layer identification code Direct Transfer
The Service Component 202 and look & feel of the customized personalization of APP), it can be in any APP by a radio station functional entrance
Start radio station function;One kind uses to be deep, i.e., kernel business tier 100 is accessed in APP, for obtaining radio station data and providing side
The function of broadcasting below, and in the main works of the code section of conversation module 200 and visual interactive layer 300 insertion APP, Huo Zhe
The code of 200 part of APP internal reference conversation module is rewritten completely, to realize Service Component 202 and the boundary of customized personalization
Face style.Kernel business tier 100 can access to any APP through the above way, realize radio station function service component 202 with
The loose coupling of the original engineering of APP.
A kind of radio station provided by Embodiment 2 of the present invention, optimizes on the basis of the above embodiments, interface proxy with
Kernel business tier is communicated, and according to the corresponding Service Component function of the call request unified call of kernel business tier, can be kept away
Exempt to couple serious phenomenon between each business function module, realizes loose coupling framework;Pass through the service groups called based on interface proxy
Part generates broadcast interface according to default visual element in the application, can merge the personalized interface style of APP, for
Family provides intuitive visual interactive;The current state of the current state of player and playlist is converted to by transfer function
Customized service condition without learning the actual inside state of player and playing flow, but is converted to letter according to demand
Clean service condition realizes the external simplied decoupling of state complicated in player class applied business playing flow, has more
Strong scalability.
Embodiment three
Figure 10 is the structural schematic diagram for the application program that the embodiment of the present invention three provides.It should be noted that not in this reality
Applying the technical detail elaborated in example can be found in above-mentioned any embodiment.
As shown in Figure 10, application program includes: main works 310 and with submodule block mode access such as above-mentioned any embodiment
The radio station 320, main works 310 call radio station 320 to realize that radio station data are shown and file destination plays.
Specifically, radio station 320 includes kernel business tier, for being accessed in a manner of submodule in the main works 310 of APP,
Service is provided to the business user of the main works of application program.Other codes in kernel business tier and APP in main works and
Function keeps independent.Kernel business tier includes data service module and plays service module, encapsulates net in data service module
Network component, for obtaining crucial radio station relevant to file destination data from server, radio station data can be shown in APP;
It plays in service module and encapsulates file downloader and bottom player, for from server downloading object file and providing basis
Playing function, realize that the side of file destination is broadcast below.
Further, radio station functional entrance is set in the interface of application program, and radio station functional entrance is defeated for receiving user
The radio station service order entered.
Specifically, radio station functional entrance can be an icon in the interface APP, user can be by clicking icon input
Radio station service order starts radio station function.Radio station functional entrance can also include multiple sub-icons or sub- button, be used to indicate not
With the title of file destination, link, type or channel etc., user can be by clicking sub-icon or from button, in starting radio station function
Can while select specific file destination so that kernel business tier 100 obtain the relevant radio station data of file destination with
And play file destination.During kernel business tier is accessed APP, corresponding icon conduct is provided in the interface of APP
Radio station functional entrance.
Further, after the radio station service order for receiving user's input, application program jumps to radio station function interface.
Specifically, radio station function interface can be used for showing the radio station data that radio station 320 is got, it may also be used for broadcast station
The file destination of 320 downloadings.
Further, it is encapsulated in the Service Component and visual interactive layer that radio station function interface can be called based on interface proxy
Default visual element generates.
The application program that the embodiment of the present invention three provides can be used for accessing the radio station that above-mentioned any embodiment provides, and realize electricity
The core function of platform has corresponding function and beneficial effect.
Example IV
Figure 11 is a kind of flow chart for method for realizing radio station function that the embodiment of the present invention four provides.The present embodiment can fit
For the case where any APP is embedded in radio station function, to realize the browsing of radio station data and the broadcasting of file destination.Specifically
, the method for the realization radio station function can be realized by way of software and/or hardware, and integrate in a device.Further
, equipment includes but is not limited to: the intelligent terminals such as desktop computer, laptop, smart phone and tablet computer.It needs
It is noted that the technical detail not elaborated in the present embodiment can be found in above-mentioned any embodiment.
As shown in figure 11, this method specifically comprises the following steps:
S110, the radio station service order that user's input is received by radio station functional entrance.
Specifically, radio station functional entrance can be an icon in the interface APP, user can be by clicking icon input
Radio station service order starts radio station function.Radio station functional entrance can also include multiple sub-icons or sub- button, be used to indicate not
With the title of file destination, link, type or channel etc., user can be by clicking sub-icon or from button, in starting radio station function
Specific file destination is selected while energy, so that kernel business tier obtains the relevant radio station data of file destination and broadcasts
Put file destination.It may include selection information of the user to file destination in the service order of radio station.Radio station service order also can be used
In the broadcast interface for activating or jumping to file destination.
S120, called the kernel business tier in radio station relevant to file destination to server request according to radio station service order
Radio station data, and show radio station data.
S130, it calls the kernel business tier in radio station to server request target file according to radio station service order, and plays
File destination.
Specifically, the kernel business tier in radio station accesses application program in a manner of submodule, to the main works of application program
Business user provide service, kernel business tier includes two parts: data service module and play service module.Data service
Networking component is encapsulated in module, for obtaining the relevant radio station data of file destination from server, user can be clear in APP
Look at radio station data;It plays in service module and encapsulates file downloader and bottom player, for literary from server downloading target
Part simultaneously provides the playing function on basis.In the case where receiving radio station service order, the kernel business tier by accessing APP can
With server communication, radio station data and file destination are requested, and the function that side is broadcast below is provided.
The electricity that the method for the realization radio station function that the embodiment of the present invention four provides can be provided based on above-mentioned any embodiment
Platform or application program realize radio station function, belong to same inventive concept, have corresponding function and beneficial effect.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (16)
1. a kind of radio station characterized by comprising kernel business tier, the kernel business tier in a manner of submodule for being connect
Enter application program, provides service to the business user of the main works of application program, the kernel business tier includes data service
Module and broadcasting service module, wherein
The data service module, the radio station service order for being inputted according to user, to server request and file destination phase
The radio station data of pass, the radio station data in the application program for showing;
The broadcasting service module is used for according to the radio station service order to the server request target file, and plays
The file destination.
2. radio station according to claim 1, which is characterized in that package file downloader and bottom in the broadcasting service module
Layer player, wherein
The file downloader, for according to the radio station service order to server request target file;
The bottom player, for playing the file destination.
3. radio station according to claim 1, which is characterized in that encapsulate networking component in the data service module.
4. radio station according to claim 1, which is characterized in that the radio station data comprise at least one of the following: channel number
According to, playlist data, broadcast state data, play history data, file destination link, file destination content, socially relevant
Information and file destination uploader information.
5. radio station according to claim 1, which is characterized in that further include conversation module, the conversation module is for being embedded in
Inside the main works of the application program, the conversation module includes interface proxy and Service Component, wherein
The call request for the Service Component that the interface proxy is used to be sent according to the kernel business tier, calls corresponding business
Component.
6. radio station according to claim 5, which is characterized in that the interface proxy is also used to according to the kernel business tier
The initialization requests of the Service Component of transmission obtain the interface call method of Service Component.
7. radio station according to claim 5, which is characterized in that the Service Component comprises at least one of the following: playing association
Adjust device assembly, play history component, single file broadcast state component, list broadcast state component, player status component, after
Platform player module and channel component.
8. radio station according to claim 1, which is characterized in that it further include visual interactive layer, the visual interactive layer insertion
Default visual element is encapsulated inside the application program, in the visual interactive layer.
9. radio station according to claim 8, which is characterized in that the default visual element comprises at least one of the following: broadcasting
Put suspension ball, player, home page lists, playlist and play history list.
10. radio station according to any one of claims 1 to 9, which is characterized in that the kernel business tier is also used to: being based on
The Service Component that the default visual element and interface proxy of the encapsulation of visual interactive layer call generates radio station function interface.
11. radio station according to any one of claims 1 to 9, which is characterized in that the kernel business tier is also used to monitor and broadcast
Put the current state of device and the current state of playlist.
12. radio station according to any one of claims 1 to 9, which is characterized in that the kernel business tier is also used to basis and broadcasts
The current state of the current state and playlist of putting device determines the service condition played.
13. a kind of application program characterized by comprising main works and with submodule block mode access such as claim 1 to 12
Described in any item radio station, the main works call the radio station to realize that radio station data are shown and file destination plays.
14. application program according to claim 13, which is characterized in that radio station function is arranged in the interface of the application program
Energy entrance, the radio station functional entrance are used to receive the radio station service order of user's input.
15. application program described in 3 or 14 according to claim 1, which is characterized in that the radio station business for receiving user's input refers to
After order, the application program jumps to radio station function interface.
16. a kind of method for realizing radio station function, which is characterized in that answer applied to such as claim 13 to 15 is described in any item
With in program, comprising:
The radio station service order of user's input is received by radio station functional entrance;
The kernel business tier in radio station is called to request radio station relevant to file destination to server according to the radio station service order
Data, and show the radio station data;
It calls the kernel business tier in radio station to server request target file according to the radio station service order, and plays the mesh
Mark file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910604488.1A CN110366118A (en) | 2019-07-05 | 2019-07-05 | A kind of radio station, application program and the method for realizing radio station function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910604488.1A CN110366118A (en) | 2019-07-05 | 2019-07-05 | A kind of radio station, application program and the method for realizing radio station function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110366118A true CN110366118A (en) | 2019-10-22 |
Family
ID=68218114
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910604488.1A Pending CN110366118A (en) | 2019-07-05 | 2019-07-05 | A kind of radio station, application program and the method for realizing radio station function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110366118A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113067858A (en) * | 2021-03-15 | 2021-07-02 | 大众问问(北京)信息科技有限公司 | Method, device and equipment for providing universal media service in vehicle machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908403A (en) * | 2017-11-10 | 2018-04-13 | 北京搜狐新动力信息技术有限公司 | A kind of collocation method and system of the modularization of mobile terminal business module |
CN109062578A (en) * | 2018-07-31 | 2018-12-21 | 成都华栖云科技有限公司 | A kind of development platform based on APP modularization |
CN109145183A (en) * | 2017-06-19 | 2019-01-04 | 腾讯科技(深圳)有限公司 | Push the method and device of information to be presented |
CN109240697A (en) * | 2017-05-22 | 2019-01-18 | 腾讯科技(深圳)有限公司 | Calling processing method and device, storage medium |
CN109324741A (en) * | 2018-09-30 | 2019-02-12 | 广州云测信息技术有限公司 | A kind of method of controlling operation thereof, device and system |
CN109669786A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Interface call method, unit and computer readable storage medium |
-
2019
- 2019-07-05 CN CN201910604488.1A patent/CN110366118A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109240697A (en) * | 2017-05-22 | 2019-01-18 | 腾讯科技(深圳)有限公司 | Calling processing method and device, storage medium |
CN109145183A (en) * | 2017-06-19 | 2019-01-04 | 腾讯科技(深圳)有限公司 | Push the method and device of information to be presented |
CN107908403A (en) * | 2017-11-10 | 2018-04-13 | 北京搜狐新动力信息技术有限公司 | A kind of collocation method and system of the modularization of mobile terminal business module |
CN109062578A (en) * | 2018-07-31 | 2018-12-21 | 成都华栖云科技有限公司 | A kind of development platform based on APP modularization |
CN109669786A (en) * | 2018-09-26 | 2019-04-23 | 深圳壹账通智能科技有限公司 | Interface call method, unit and computer readable storage medium |
CN109324741A (en) * | 2018-09-30 | 2019-02-12 | 广州云测信息技术有限公司 | A kind of method of controlling operation thereof, device and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113067858A (en) * | 2021-03-15 | 2021-07-02 | 大众问问(北京)信息科技有限公司 | Method, device and equipment for providing universal media service in vehicle machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100370450C (en) | Network system, distributed processing method and information processing apparatus | |
US20220174346A1 (en) | Video playing method and apparatus | |
CN108932948A (en) | Audio data processing method, device, computer equipment and computer readable storage medium | |
CN110324671A (en) | Video web page playback method and device, electronic equipment and storage medium | |
US11303526B2 (en) | Network slice deployment method and apparatus | |
US11540008B2 (en) | Systems and methods for audio adaptation of content items to endpoint media devices | |
CN108566561A (en) | Video broadcasting method, device and storage medium | |
EP2030108A1 (en) | User interfaces for electronic devices | |
CN109391843A (en) | Online Video speed playback method, device, medium and intelligent terminal | |
US11128739B2 (en) | Network-edge-deployed transcoding methods and systems for just-in-time transcoding of media data | |
CN106792044A (en) | The sound control method and device of a kind of intelligent television | |
CN104244076A (en) | Method and system for simultaneously controlling multiple media devices in grouped mode through DLNA | |
CN110366118A (en) | A kind of radio station, application program and the method for realizing radio station function | |
TW200530939A (en) | Content reproduction apparatus, content recording apparatus, network system, and content recording/reproduction method | |
CN101884197A (en) | Method and apparatus for controlling quality of service in universal plug and play network | |
US8370880B2 (en) | Telephone control service | |
CN105594220A (en) | Reception device, reception method, transmission device, and transmission method | |
CN109121001B (en) | Carousel system and carousel method for multiple content providers and smart television | |
RU2316907C2 (en) | System for reproduction of multimedia in portable device | |
CN112714341A (en) | Information acquisition method, cloud set top box system, entity set top box and storage medium | |
CN110430383A (en) | Terminal, signal server, audio/video communication method and computer storage medium | |
CN106790205B (en) | Streaming media service system | |
CN104427396B (en) | Information processing unit, information processing method and program | |
KR102095674B1 (en) | Multimedia streaming and network apparatus and operation method of the same | |
CN107360470A (en) | Player method and device, the electronic equipment of a kind of media file |
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: 20191022 |
|
RJ01 | Rejection of invention patent application after publication |