WO2017096899A1 - 区块配置、展现方法、服务器、终端设备和通信系统 - Google Patents
区块配置、展现方法、服务器、终端设备和通信系统 Download PDFInfo
- Publication number
- WO2017096899A1 WO2017096899A1 PCT/CN2016/089558 CN2016089558W WO2017096899A1 WO 2017096899 A1 WO2017096899 A1 WO 2017096899A1 CN 2016089558 W CN2016089558 W CN 2016089558W WO 2017096899 A1 WO2017096899 A1 WO 2017096899A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- block
- terminal device
- parameter
- server
- block configuration
- 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.)
- Ceased
Links
Images
Classifications
-
- 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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/235—Processing of additional data, e.g. scrambling of additional data or processing content descriptors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/80—Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
- G06F16/83—Querying
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/106—Display of layout of documents; Previewing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/123—Storage facilities
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/14—Tree-structured documents
- G06F40/143—Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/177—Editing, e.g. inserting or deleting of tables; using ruled lines
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
-
- 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/485—End-user interface for client configuration
-
- 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/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
Definitions
- the present application relates to information processing technologies, and in particular, to a block configuration, a presentation method, a server, a terminal device, and a communication system.
- the concept of a block is a display block in which all videos are divided into different categories, such as movies, sports, news, variety shows, etc., in a video application.
- Each category can be regarded as a block, each block usually occupies a certain display space, and is equipped with pictures and / or text, the user can click to enter the next level block or directly see the block Included video content.
- all of them are uniformly written in the configuration file, and the video application of the same version has a fixed number of blocks, a style and a corresponding category. If you want to change the presentation of the block, you need to update it in the next version of the software application.
- the embodiment of the invention provides a block configuration, a display method, a server, a terminal device and a communication system, which can realize flexible configuration of the configuration parameters of the block on the server side and display the block flexibly in the terminal device.
- the present invention provides a block configuration method, the method comprising: selecting a block configuration parameter of a plurality of blocks from a local block style library in response to a block configuration request sent by a terminal device. And sending the selected block configuration parameter to the terminal device, so that the terminal device draws a block screen according to the block configuration parameter.
- An embodiment of the present invention further provides a method for displaying a block, the method comprising: sending a block configuration request to a server; and receiving, by the server, multiple blocks selected from a block style library local to the server.
- the block configuration parameter; the display block picture is drawn on the terminal device interface according to the block configuration parameter.
- the embodiment of the present invention further provides a server, where the server includes: a parameter selection module, configured to respond to a block configuration request sent by the terminal device from a local block style library. Selecting a block configuration parameter of the plurality of blocks; the parameter sending module is configured to send the selected block configuration parameter to the terminal device, so that the terminal device draws a block screen according to the block configuration parameter .
- a parameter selection module configured to respond to a block configuration request sent by the terminal device from a local block style library. Selecting a block configuration parameter of the plurality of blocks; the parameter sending module is configured to send the selected block configuration parameter to the terminal device, so that the terminal device draws a block screen according to the block configuration parameter .
- the embodiment of the present invention further provides a terminal device, where the terminal device includes: a request sending module, configured to send a block configuration request to a server; and a parameter receiving module, configured to receive, by the server, a local device from the server The block configuration parameter of the plurality of blocks selected in the block style library; the block drawing module is configured to draw and display the block picture on the terminal device interface according to the block configuration parameter.
- the embodiment of the invention further provides a communication system comprising: the server as described above and the terminal device as described above.
- the block configuration, the display method, the server, the terminal device, and the communication system provided by the embodiment of the present invention select the block configuration parameters of the plurality of blocks from the local server through the server and send the parameters to the terminal device, and then the terminal device side configures according to the block.
- the parameter draws a block screen on the terminal device interface.
- the server can flexibly set the configuration parameters of the block to implement rich presentation of the block on the terminal device.
- FIG. 1 is a flowchart of a method for implementing a block configuration method according to Embodiment 1 of the present invention
- FIG. 2 is a diagram showing an example of a presentation size parameter of a block according to Embodiment 1 of the present invention
- FIG. 3 is a diagram showing an example of layout parameters of an element picture of a block according to Embodiment 1 of the present invention.
- FIG. 4 is a flowchart of a method for implementing a block display method according to Embodiment 2 of the present invention.
- FIG. 5 is a structural block diagram of an embodiment of a server according to Embodiment 3 of the present invention.
- FIG. 6 is a structural block diagram of an embodiment of a terminal device according to Embodiment 4 of the present invention.
- the basic inventive concept of some embodiments of the present invention is that the configuration parameters of the block are flexibly set by the server and delivered to the terminal device, and the terminal device draws the block for presentation.
- This scheme is applicable to the page configuration of all the blocks in the existing client, and the specific block style can be adjusted by the corresponding background server.
- FIG. 1 is a flowchart of a method for an embodiment of a method for configuring a block according to the present invention.
- the execution body of the method may be a server.
- step S110 in response to the block configuration request sent by the terminal device, the block configuration parameters of the plurality of blocks are selected from the local block style library.
- the terminal device triggers the video application to connect to the corresponding server, and requests the server to display the parameters of the video application screen and the video material.
- the terminal reads the configuration parameters of the drawing block picture from the local configuration file when the application is turned on. These configuration parameters are usually written in the application, and only after updating the video application is possible. The configuration parameters of the block are changed. Different from the process of acquiring the block configuration parameter by the terminal device in the prior art, in this implementation, after the application of the terminal device is connected to the backend server, a block configuration request is sent to the server to obtain the configured block screen from the server. Parameters.
- the server selects the block configuration parameters of the multiple blocks from the block style library local to the server.
- the block configuration parameters may include presentation size parameters of each block and layout parameters of element pictures in each block.
- the presentation size parameters for each block are shown in Table 1.
- the layout parameters of the element pictures in each block are shown in Table 2.
- Table 1 shows the size parameters of the block
- the head height is 30, the display type of header_1 used.
- cellMaxRowCount 2, which means that up to 2 rows are arranged vertically, cellMaxRowCount It is 0, which means horizontal arrangement.
- the client will arrange the element picture (list) in the block from the leftmost end of the screen to the right end. When it can't fit, it will automatically fold; cellMaxRowCount is greater than 0, which means vertical alignment, the client will The top of the screen begins to line up from top to bottom. If the accumulated height reaches rowHeight, it starts to line to the right, and then calculates the arranged width to determine whether it is vertically aligned or folded.
- rowHeight 284, the height of each group is up to 284 when arranged vertically. If this value is more than this, it will be arranged horizontally to the right: if it exceeds the width of the screen, it will be folded.
- the server can convert the presentation size parameter of the above-mentioned block into JSON data and send it to the terminal device.
- Cell_1x2_left Vertical grid of 2 rows Cell_1x1_left 2 or 3 columns to the left Cell_1x2_right 2 or 3 columns to the far right Cell_1x1_center 3 columns in the middle Cell_2x1 2 columns of grids occupy a line Cell_3x1 3 columns of grids occupy a row
- cell_1x1_right 2 columns or 3 columns to the far right;
- cell_1x1_right 2 columns or 3 columns to the far right;
- cell_1x2_left 2 columns or 3 columns to the left.
- the server may convert the layout parameters of the element picture of the above block into XML file data and send the data to the terminal device.
- the server when the server selects the block configuration parameter of the block, the server may select the block according to the preset rule, and the block configuration parameter pre-stored in the block style library may be periodically changed, replaced, or added.
- the terminal device is preset with a drawing operation flow for drawing a block picture on the terminal device according to the block configuration parameter, such as calling a PageCard (a program dedicated to drawing a block picture) in the client application, and the specific drawing process can be seen in the figure. 4 corresponding content of the embodiment, in This will not be repeated.
- the block configuration parameter such as calling a PageCard (a program dedicated to drawing a block picture) in the client application, and the specific drawing process can be seen in the figure. 4 corresponding content of the embodiment, in This will not be repeated.
- the method for playing media content is to transfer the configuration parameter of the block to the server side on the basis of drawing the block picture according to the block configuration parameter that has been fixedly set locally on the existing terminal device side, and After the secondary terminal device side client is linked to the server, the server sends the packet to the terminal device to complete the block picture drawing.
- the maintenance personnel can flexibly change the block configuration parameters on the server side to flexibly draw a richer block of the content style on the terminal device side.
- FIG. 4 is a flowchart of a method for displaying a block according to an embodiment of the present invention.
- the execution body of the method may be a terminal device corresponding to the server in FIG. 1 .
- step S410 a block configuration request is transmitted to the server.
- the terminal device triggers the video application to connect to the corresponding server, and requests the server to display the parameters of the video application screen and the video material.
- the terminal device reads the configuration parameters of the drawing block picture from the local configuration file when the application is turned on. These configuration parameters are usually written in the application, and only after updating the video application is possible. The configuration parameters of these blocks are changed.
- a block configuration request is sent to the server to obtain the configured block screen from the server. Parameters.
- the triggering form of the client acquiring the block configuration parameter may be information by sending the specified request block configuration parameter; or the terminal device and the server may pre-arrange an event that can be used as a requesting server to send the block configuration parameter, when the terminal
- the server selects the block configuration parameters of the multiple blocks from the local block style library for delivery.
- the terminal device may pre-arrange with the server, and the block configuration parameter is directly sent by the server while the application of the terminal device is turned on and connected to the server; for example, the similar link request sent by the terminal device to the server is also visible.
- a pre-agreed event that can be used as a configuration parameter for the requesting server to deliver a block. This embodiment does not limit the specific triggering mode for obtaining the block configuration parameters.
- S420 Receive, by the server, a block configuration parameter of multiple blocks selected from a block style library local to the server.
- the block configuration parameters may include presentation size parameters of each block and layout parameters of element pictures in each block.
- the terminal device After receiving the block configuration parameters sent by the server, the terminal device invokes a block drawing operation flow, such as a PageCard operation flow (program code) integrated on the terminal device, and display size parameters and regions of each block included according to the block configuration parameter.
- a block drawing operation flow such as a PageCard operation flow (program code) integrated on the terminal device, and display size parameters and regions of each block included according to the block configuration parameter.
- the layout parameters of the element pictures in the block are drawn on the terminal device interface to display the block picture.
- the PageCard operation flow is for each
- the terminal device reads the JSON data and the XML file in the block configuration parameter, and performs drawing of the block picture by using a corresponding read drawing specification predefined in the PageCard. For example, the terminal device needs to set the presentation size and position of each block on the application interface, and calculate the position of the element list in each block displayed on the interface, whether it is left or right; the upper side or the lower side. And need to calculate the current element screen footprint, is 1x1 or 1x2. These configuration processes require that the contents of the cellSpace match the name of the interface configuration file xml in the client.
- the material picture of the element picture in each block may be acquired by the client from the local or the server end, and the material picture is drawn in the display area of the element picture in the corresponding block.
- the material picture it is necessary to adapt the size of the material picture to adapt to the element picture layout type in each block.
- the method for displaying a block according to the embodiment of the present invention is to transfer the configuration parameter of the block to the server side on the basis of drawing the block picture according to the block configuration parameter that has been fixedly set locally on the existing terminal device side, and After the secondary terminal device side client is linked to the server, the block configuration parameters are obtained, and the block screen is drawn. In this way, the maintenance personnel can flexibly change the block configuration parameters on the server side to flexibly draw a richer block of the content style on the terminal device side.
- FIG. 5 is a structural block diagram of an embodiment of a server provided by the present invention, which may be used to perform the method steps of the embodiment shown in FIG. 1.
- the server specifically includes: a parameter selection module 510 and a parameter sending module 520, where:
- a parameter selection module 510 configured to respond to a block configuration request sent by the terminal device, The block configuration parameter of the plurality of blocks is selected in the local block style library; the parameter sending module 520 is configured to send the selected block configuration parameter to the terminal device, so that the terminal device draws the block screen according to the block configuration parameter.
- the block configuration parameters include a presentation size parameter of each block and a layout parameter of an element picture in each block.
- presentation size parameter of the above block is JSON data and/or the layout parameter of the element picture in the block is XML file data.
- the parameter selection module 510 is further configured to: select, according to an event executed by the terminal device, requesting the server to send the block configuration parameter, select a block configuration parameter of the plurality of blocks from the local block style library. .
- the server provided by the embodiment of the present invention transfers the configuration parameter of the block to the server side on the basis of the existing terminal device side to draw the block picture according to the locally configured block configuration parameter, and each time the terminal device After the side client is linked to the server, the server sends the block to the terminal device to complete the block picture drawing.
- the maintenance personnel can flexibly change the block configuration parameters on the server side to flexibly draw a richer block of the content style on the terminal device side.
- FIG. 6 is a structural block diagram of an embodiment of a terminal device according to the present invention, which may be used to perform the method steps of the embodiment shown in FIG. 4.
- the terminal device specifically includes: a request sending module 610, a parameter receiving module 620, and a block drawing module 630, where:
- a request sending module 610 configured to send a block configuration request to the server
- the parameter receiving module 620 configured to receive a block configuration parameter of the plurality of blocks selected by the server from the block style library local to the server
- the module 630 is configured to draw a presentation block screen on the terminal device interface according to the block configuration parameter.
- the block configuration parameters include a presentation size parameter of each block and a layout parameter of an element picture in each block.
- the block drawing module 630 is specifically configured to call the block drawing operation flow, and draw the display area on the terminal device interface according to the presentation size parameter of each block included in the block configuration parameter and the layout parameter of the element picture in each block. Block screen.
- presentation size parameter of the above block is JSON data and/or the layout parameter of the element picture in the block is XML file data.
- the block drawing module 630 is further configured to: obtain a material picture of the element picture in each block from the local or the server end, and draw the material picture in the display area of the element picture of the corresponding block.
- the terminal device further includes an event execution module, configured to execute an event that is a requesting server to send a block configuration parameter.
- the terminal device provided by the embodiment of the present invention transfers the configuration parameter of the block to the server side on the basis of the existing terminal device side, according to the block configuration parameter that is fixedly set locally, and transfers the configuration parameter of the block to the server side.
- the device side client links to the server, it obtains the block configuration parameters and draws the block screen. In this way, the maintenance personnel can flexibly change the block configuration parameters on the server side to flexibly draw a richer block of the content style on the terminal device side.
- the present invention also provides a communication system including a server as shown in FIG. 5 and a terminal device as shown in FIG. 6.
- the above method and apparatus according to the present invention may be implemented in hardware, firmware, or as software or computer code that may be stored in a recording medium such as a CD ROM, RAM, floppy disk, hard disk, or magneto-optical disk, or implemented.
- the network downloads computer code originally stored in a remote recording medium or non-transitory machine readable medium and stored in a local recording medium so that the methods described herein can be stored using a general purpose computer, a dedicated processor or programmable
- Such software processing on a recording medium of dedicated hardware such as an ASIC or an FPGA.
- a computer, processor, microprocessor controller or programmable hardware includes storage components (eg, RAM, ROM, flash memory, etc.) that can store or receive software or computer code, when the software or computer code is The processing methods described herein are implemented when the processor or hardware is accessed and executed. Moreover, when a general purpose computer accesses code for implementing the processing shown herein, the execution of the code converts the general purpose computer into a special purpose computer for performing the processing shown herein.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Databases & Information Systems (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Data Mining & Analysis (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
一种区块配置、展现方法、服务器、终端设备和通信系统,所述方法包括:响应于终端设备发送的区块配置请求,从本地的区块样式库中选取多个区块的区块配置参数(S110);将选取的所述区块配置参数发送至所述终端设备,以使所述终端设备根据所述区块配置参数绘制区块画面(S120)。该技术方案可实现在服务器端灵活设置区块的配置参数并在终端设备灵活绘制区块进行展现。
Description
本申请引用于2015年12月10日递交的名称为“区块配置、展现方法、服务器、终端设备和通信系统”的第201510918629.9号中国专利申请,其通过引用被全部并入本申请。
本申请涉及信息处理技术,尤其涉及一种区块配置、展现方法、服务器、终端设备和通信系统。
区块的概念是如视频应用中,所有视频按不同类别划分的展示块,如电影、体育、新闻、综艺等。每个类别都可视为一个区块,每个区块通常占据一定的展示空间,并配有图片和/或文字,用户点击进入后可看到下一级区块或直接看到该区块包括的视频内容。针对视频应用中区块的设置展现,都是统一写死在配置文件中,同一版本的视频应用具有固定的区块个数、样式和对应类别。如果想更换区块的展现形式需在下一版的软件应用中更新。
发明内容
本发明实施例提供一种区块配置、展现方法、服务器、终端设备和通信系统、可实现在服务器端灵活设置区块的配置参数并在终端设备灵活绘制区块进行展现。
为达到上述目的,本发明提供了一种区块配置方法,所述方法包括:响应于终端设备发送的区块配置请求,从本地的区块样式库中选取多个区块的区块配置参数;将选取的所述区块配置参数发送至所述终端设备,以使所述终端设备根据所述区块配置参数绘制区块画面。
本发明实施例还提供了一种区块展现方法,所述方法包括:向服务器发送区块配置请求;接收所述服务器发送的从所述服务器本地的区块样式库中选取的多个区块的区块配置参数;根据所述区块配置参数在终端设备界面绘制展现区块画面。
本发明实施例还提供了一种服务器,所述服务器包括:参数选取模块,用于响应于终端设备发送的区块配置请求,从本地的区块样式库中
选取多个区块的区块配置参数;参数发送模块,用于将选取的所述区块配置参数发送至所述终端设备,以使所述终端设备根据所述区块配置参数绘制区块画面。
本发明实施例还提供了一种终端设备,所述终端设备包括:请求发送模块,用于向服务器发送区块配置请求;参数接收模块,用于接收所述服务器发送的从所述服务器本地的区块样式库中选取的多个区块的区块配置参数;区块绘制模块,用于根据所述区块配置参数在终端设备界面绘制展现区块画面。
本发明实施例还提供了一种通信系统,所述通信系统包括:如上所述的服务器和如上所述的终端设备。
本发明实施例提供的区块配置、展现方法、服务器、终端设备和通信系统,通过服务器从本地选多个区块的区块配置参数并发送至终端设备,然后由终端设备侧根据区块配置参数在终端设备界面绘制区块画面。如此,可利用服务器灵活设置区块的配置参数来实现在终端设备上区块的丰富展现。
图1为本发明实施例一提供的区块配置方法实施例的方法流程图;
图2为本发明实施例一提供的区块的展现尺寸参数图解示例图;
图3为本发明实施例一提供的区块的元素画面的布局参数图解示例图;
图4为本发明实施例二提供的区块展现方法实施例的方法流程图;
图5为本发明实施例三提供的服务器实施例的结构框图;
图6为本发明实施例四提供的终端设备实施例的结构框图。
本发明部分实施例的基本发明构思是,通过服务器灵活设置区块的配置参数并下发至终端设备,并由终端设备绘制区块进行展现。本方案适用于现有客户端中所有区块的页面化配置,而具体区块样式均可由相应的后台服务器进行配置调整。
实施例一
图1为本发明提供的区块配置方法实施例的方法流程图,该方法的执行主体可以为服务器。
参照图1,在步骤S110,响应于终端设备发送的区块配置请求,从本地的区块样式库中选取多个区块的区块配置参数。
通常,用户打开终端设备上的如视频应用后,如果在联网状态下,则终端设备会触发视频应用连接至相应的服务器,并向服务器索取展现视频应用画面的参数以及视频素材。现有技术中,终端会在应用开启时从本地配置文件中读取绘制区块画面的配置参数,这些配置参数通常是写死在应用程序中,只有对视频应用进行更新后才有可能对这些区块的配置参数进行更改。区别于现有技术终端设备侧获取区块配置参数的流程,本实施中,在终端设备的应用连接至后端服务器后,会向服务器发送区块配置请求,以从服务器端获取配置区块画面的参数。
服务器收到终端设备发送的区块配置请求后,从服务器本地的区块样式库中选取多个区块的区块配置参数。该区块配置参数可以包括各区块的展现尺寸参数和各区块中元素画面的布局参数。如表1中所示为各区块的展现尺寸参数。如表2中所示为各区块中元素画面的布局参数。
表1区块的展现尺寸参数
具体地,如图2所示,结合图解对表1中的参数进行说明。
1:sectionHeaderHeight:30
sectionHeaderSpace:header_1
解释:头部高度是30,使用的header_1的显示类型
2:rowHeight:284
cellMaxRowCount:2
sectionColumn:2
解释:sectionColumn:区块最多显示两列
cellMaxRowCount:2,代表竖直排列最多2行,cellMaxRowCount
是0,代表水平排列,客户端会从屏幕最左端一直排列区块中的元素画面(list)到最右端,放不下的时候会自动折行;cellMaxRowCount大于0,代表垂直排列,客户端会从屏幕上方开始从上往下排列,如果累计高度到rowHeight,开始往右排列,然后再计算排列后的宽度,来决定是垂直排列或者折行。
rowHeight:284,竖直排列时每组高度最多284,超过这个数值往右横向排列:如果超过屏幕宽度再折行。
服务器可将上述区块的展现尺寸参数转化为JSON数据后下发给终端设备。
表2区块中元素画面的布局参数(cellSpace)
| cell_1x2_left | 竖排占满2行的格子 |
| cell_1x1_left | 2列或3列最左边 |
| cell_1x2_right | 2列或3列最右边 |
| cell_1x1_center | 3列中间 |
| cell_2x1 | 2列格子占满一行 |
| cell_3x1 | 3列格子占满一行 |
具体地,如图3所示,结合图解对表2中的参数进行说明。
3:cell_1x1_right:2列或3列最右边;
4:cell_1x1_right:2列或3列最右边;
5:cell_1x2_left:2列或3列最左边。
在具体配置参数中可通过设置cellSpace参数来指定各区块中元素画面(list)的布局参数类型。服务器可将上述区块的元素画面的布局参数转化为XML文件数据后下发给终端设备。
在具体应用场景中,服务器选取区块的区块配置参数时,可根据预设规则进行选取,而区块样式库中预存的区块配置参数也可以定期被更改、替换或添加。
S120,将选取的区块配置参数发送至终端设备,以使终端设备根据区块配置参数绘制区块画面。
终端设备中预置有根据区块配置参数在终端设备绘制区块画面的绘制操作流程,如调用客户端应用中的PageCard(专用于绘制区块画面的程序)操作流程,具体绘制流程可参见图4所示实施例的相应内容,在
此不做赘述。
本发明实施例提供的媒体内容播放方法,是在现有终端设备侧根据本地已固定设置的区块配置参数绘制区块画面的基础上,将区块的配置参数转移到服务器侧,并在每次终端设备侧客户端链接至服务器后,由服务器下发至终端设备完成区块画面绘制。如此,维护人员可通过在服务器侧灵活更改区块配置参数来实现在终端设备侧灵活绘制内容样式更为丰富的区块画面。
实施例二
图4为本发明提供的区块展现方法一个实施例的方法流程图,该方法的执行主体可以为图1中服务器所对应的终端设备。
参照图4,在步骤S410,向服务器发送区块配置请求。
通常,用户打开终端设备上的如视频应用后,如果在联网状态下,则终端设备会触发视频应用连接至相应的服务器,并向服务器索取展现视频应用画面的参数以及视频素材。现有技术中,终端设备会在应用开启时从本地配置文件中读取绘制区块画面的配置参数,这些配置参数通常是写死在应用程序中,只有对视频应用进行更新后才有可能对这些区块的配置参数进行更改。区别于现有技术终端设备侧获取区块配置参数的流程,本实施中,在终端设备的应用连接至后端服务器后,会向服务器发送区块配置请求,以从服务器端获取配置区块画面的参数。
具体地,客户端获取区块配置参数的触发形式可以是通过发送指定的请求区块配置参数的信息;或者终端设备与服务器可预先约定可作为请求服务器下发区块配置参数的事件,当终端设备执行这些事件并且被服务器所感知时,服务器从本地的区块样式库中选取多个区块的区块配置参数,以进行下发。举例而言,终端设备可以与服务器预先约定,在终端设备的应用开启并连接至服务器的同时,由服务器直接下发区块配置参数;还比如,终端设备向服务器发送的类似链接请求也可视为预先约定的可作为请求服务器下发区块配置参数的事件。本实施例对获取区块配置参数的具体触发形式不作限定。
S420,接收服务器发送的从服务器本地的区块样式库中选取的多个区块的区块配置参数。
其中,服务器选取区块配置参数的内容可参见步骤S110的内容。上
述区块配置参数可包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
S430,根据区块配置参数在终端设备界面绘制展现区块画面。
终端设备接收到服务器下发的区块配置参数后,调用区块绘制操作流程,如集成在终端设备上PageCard操作流程(程序代码),根据区块配置参数包括的各区块的展现尺寸参数和各区块中元素画面的布局参数在终端设备界面绘制展现区块画面。其中,PageCard操作流程中针对每种
具体地,在绘制区块画面时,终端设备读取区块配置参数中的JSON数据以及XML文件,并利用PageCard中预先定义好的相应读取绘制规范进行区块画面的绘制。例如,终端设备需要设定每个区块在应用界面上的展现尺寸和位置,并计算出每个区块中元素画面(list)在界面上显示的位置,是左边还是右边;上边还是下边。以及需要计算出当前的元素画面占用空间大小,是1x1还是1x2。这些配置过程需要·cellSpace的内容跟客户端中界面配置文件xml的name相匹配。
进一步地,针对各区块中元素画面,可由客户端从本地或从服务器端获取各区块中所述元素画面的素材图片,并将这些素材图片绘制在相应各区块中的元素画面的显示区中。在绘制元素画面时需要适应性的对素材图片进行尺寸等修改,以适应各区块中元素画面布局类型。
本发明实施例提供的区块展现方法,是在现有终端设备侧根据本地已固定设置的区块配置参数绘制区块画面的基础上,将区块的配置参数转移到服务器侧,并在每次终端设备侧客户端链接至服务器后,获取区块配置参数,并绘制区块画面。如此,维护人员可通过在服务器侧灵活更改区块配置参数来实现在终端设备侧灵活绘制内容样式更为丰富的区块画面。
实施例三
图5为本发明提供的服务器一个实施例的结构框图,可用于执行如图1所示实施例的方法步骤。
参照图5,该服务器具体包括:参数选取模块510和参数发送模块520,其中:
参数选取模块510,用于响应于终端设备发送的区块配置请求,从
本地的区块样式库中选取多个区块的区块配置参数;参数发送模块520,用于将选取的区块配置参数发送至终端设备,以使终端设备根据区块配置参数绘制区块画面。
进一步地,上述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
进一步地,上述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
在此基础上,上述参数选取模块510还用于,响应于终端设备执行的作为请求服务器下发区块配置参数的事件,从本地的区块样式库中选取多个区块的区块配置参数。
本发明实施例提供的服务器,是在现有终端设备侧根据本地已固定设置的区块配置参数绘制区块画面的基础上,将区块的配置参数转移到服务器侧,并在每次终端设备侧客户端链接至服务器后,由服务器下发至终端设备完成区块画面绘制。如此,维护人员可通过在服务器侧灵活更改区块配置参数来实现在终端设备侧灵活绘制内容样式更为丰富的区块画面。
实施例四
图6为本发明提供的终端设备一个实施例的结构框图,可用于执行如图4所示实施例的方法步骤。
参照图6,该终端设备具体包括:请求发送模块610、参数接收模块620和区块绘制模块630,其中:
请求发送模块610,用于向服务器发送区块配置请求;参数接收模块620,用于接收服务器发送的从服务器本地的区块样式库中选取的多个区块的区块配置参数;区块绘制模块630,用于根据区块配置参数在终端设备界面绘制展现区块画面。
进一步地,上述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。在此基础上,区块绘制模块630具体用于,调用区块绘制操作流程,根据区块配置参数包括的各区块的展现尺寸参数和各区块中元素画面的布局参数在终端设备界面绘制展现区块画面。
进一步地,上述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
可选地,区块绘制模块630还用于,从本地或从服务器端获取各区块中元素画面的素材图片,并将素材图片绘制在相应各区块的元素画面的显示区中。
进一步地,上述终端设备中还包括事件执行模块,用于执行作为请求服务器下发区块配置参数的事件。
本发明实施例提供的终端设备,是在现有终端设备侧根据本地已固定设置的区块配置参数绘制区块画面的基础上,将区块的配置参数转移到服务器侧,并在每次终端设备侧客户端链接至服务器后,获取区块配置参数,并绘制区块画面。如此,维护人员可通过在服务器侧灵活更改区块配置参数来实现在终端设备侧灵活绘制内容样式更为丰富的区块画面。
在此基础上,本发明还提供了一种通信系统,包括如图5所示的服务器和如图6所示的终端设备。
上述根据本发明的方法和装置可在硬件、固件中实现,或者被实现为可存储在记录介质(诸如CD ROM、RAM、软盘、硬盘或磁光盘)中的软件或计算机代码,或者被实现通过网络下载的原始存储在远程记录介质或非暂时机器可读介质中并将被存储在本地记录介质中的计算机代码,从而在此描述的方法可被存储在使用通用计算机、专用处理器或者可编程或专用硬件(诸如ASIC或FPGA)的记录介质上的这样的软件处理。可以理解,计算机、处理器、微处理器控制器或可编程硬件包括可存储或接收软件或计算机代码的存储组件(例如,RAM、ROM、闪存等),当所述软件或计算机代码被计算机、处理器或硬件访问且执行时,实现在此描述的处理方法。此外,当通用计算机访问用于实现在此示出的处理的代码时,代码的执行将通用计算机转换为用于执行在此示出的处理的专用计算机。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。
Claims (21)
- 一种区块配置方法,所述方法应用于服务器,包括:响应于终端设备发送的区块配置请求,从本地的区块样式库中选取多个区块的区块配置参数;将选取的所述区块配置参数发送至所述终端设备,以使所述终端设备根据所述区块配置参数绘制区块画面。
- 根据权利要求1所述的方法,其中,所述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
- 根据权利要求2所述的方法,其中,所述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
- 根据权利要求1-3中任一项所述的方法,其中,所述方法还包括:响应于终端设备执行的作为请求服务器下发区块配置参数的事件,从本地的区块样式库中选取多个区块的区块配置参数。
- 一种区块展现方法,所述方法应用于终端设备,其中,所述方法包括:向服务器发送区块配置请求;接收所述服务器发送的从所述服务器本地的区块样式库中选取的多个区块的区块配置参数;根据所述区块配置参数在终端设备界面绘制展现区块画面。
- 根据权利要求5所述的方法,其中,所述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
- 根据权利要求6所述的方法,其中,所述根据所述区块配置参数在终端设备界面绘制展现区块画面包括:调用区块绘制操作流程,根据所述区块配置参数包括的各区块的展现尺寸参数和各区块中元素画面的布局参数在终端设备界面绘制展现区块画面。
- 根据权利要求6或7所述的方法,其中,所述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
- 根据权利要求5-8中任一项所述的方法,其中,所述方法还包括:从本地或从所述服务器端获取各区块中所述元素画面的素材图片,并将所述素材图片绘制在相应区块的所述元素画面的显示区中。
- 根据权利要求5-9中任一项所述的方法,其中,所述方法还包括:执行作为请求服务器下发区块配置参数的事件。
- 一种服务器,包括:参数选取模块,用于响应于终端设备发送的区块配置请求,从本地的区块样式库中选取多个区块的区块配置参数;参数发送模块,用于将选取的所述区块配置参数发送至所述终端设备,以使所述终端设备根据所述区块配置参数绘制区块画面。
- 根据权利要求11所述的服务器,其中,所述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
- 根据权利要求12所述的服务器,其中,所述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
- 根据权利要求11-13中任一项所述的服务器,其中,所述参数选取模块还用于,响应于终端设备执行的作为请求服务器下发区块配置参数的事件,从本地的区块样式库中选取多个区块的区块配置参数。
- 一种终端设备,包括:请求发送模块,用于向服务器发送区块配置请求;参数接收模块,用于接收所述服务器发送的从所述服务器本地的区块样式库中选取的多个区块的区块配置参数;区块绘制模块,用于根据所述区块配置参数在终端设备界面绘制展现区块画面。
- 根据权利要求15所述的终端设备,其中,所述区块配置参数包括各区块的展现尺寸参数和各区块中元素画面的布局参数。
- 根据权利要求16所述的终端设备,其中,所述区块绘制模块具体用于,调用区块绘制操作流程,根据所述区块配置参数包括的各区块的展现尺寸参数和各区块中元素画面的布局参数在终端设备界面绘制展现区块画面。
- 根据权利要求16或17所述的终端设备,其中,所述区块的展现尺寸参数为JSON数据和/或区块中元素画面的布局参数为XML文件数据。
- 根据权利要求15-18任一项所述的终端设备,其中,所述区块绘制模块还用于,从本地或从所述服务器端获取各区块中所述元素画面的素材图片,并将所述素材图片绘制在相应区块的所述元素画面的显示区中。
- 根据权利要求15-19任一项所述的终端设备,其中,所述终端设备还包括:事件执行模块,用于执行作为请求服务器下发区块配置参数的事件。
- 一种通信系统,其中,所述通信系统包括:如权利要求11-14任一项所述的服务器和如权利要求15-20任一项所述的终端设备。
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US15/242,259 US20170168995A1 (en) | 2015-12-10 | 2016-08-19 | Block configuration, a method of presenting, servers, terminal equipment and communications systems |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510918629.9A CN105892964A (zh) | 2015-12-10 | 2015-12-10 | 区块配置、展现方法、服务器、终端设备和通信系统 |
| CN201510918629.9 | 2015-12-10 |
Related Child Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| US15/242,259 Continuation US20170168995A1 (en) | 2015-12-10 | 2016-08-19 | Block configuration, a method of presenting, servers, terminal equipment and communications systems |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017096899A1 true WO2017096899A1 (zh) | 2017-06-15 |
Family
ID=57002577
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/089558 Ceased WO2017096899A1 (zh) | 2015-12-10 | 2016-07-10 | 区块配置、展现方法、服务器、终端设备和通信系统 |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20170168995A1 (zh) |
| CN (1) | CN105892964A (zh) |
| WO (1) | WO2017096899A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113497898A (zh) * | 2020-04-02 | 2021-10-12 | 北京字节跳动网络技术有限公司 | 视频特效配置文件生成方法、视频渲染方法及装置 |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106708531A (zh) * | 2016-12-30 | 2017-05-24 | 上海亿账通互联网科技有限公司 | 移动端程序界面的更新方法及装置 |
| CN109413499A (zh) * | 2018-10-24 | 2019-03-01 | 深圳市康冠技术有限公司 | 安卓电视固件的配置方法、系统及设备 |
| CN118331675B (zh) * | 2024-06-12 | 2024-08-30 | 惠州华阳通用电子有限公司 | 一种界面布局自动生成方法、系统及存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103336691A (zh) * | 2013-06-29 | 2013-10-02 | 安科智慧城市技术(中国)有限公司 | 一种基于Android的动态布局方法及系统 |
| CN103631958A (zh) * | 2013-12-17 | 2014-03-12 | 江苏省公用信息有限公司 | 一种页面自动适配实现内容多屏展示的方法 |
| CN104572035A (zh) * | 2013-10-11 | 2015-04-29 | 北大方正集团有限公司 | 网页代码的动态生成方法和动态生成系统 |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102129436A (zh) * | 2010-01-20 | 2011-07-20 | 北大方正集团有限公司 | 一种网页模板的构建方法、系统及装置 |
| CN102404562A (zh) * | 2010-09-15 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | 影像资料编码方法及实现该方法的服务器 |
| CN104102645B (zh) * | 2013-04-07 | 2018-01-02 | 李岳龙 | 基于浏览器技术的多媒体信息发布方法和管理系统 |
| CN104007991B (zh) * | 2014-06-06 | 2019-06-14 | 百度在线网络技术(北京)有限公司 | 应用程序界面布局调整方法和装置 |
-
2015
- 2015-12-10 CN CN201510918629.9A patent/CN105892964A/zh active Pending
-
2016
- 2016-07-10 WO PCT/CN2016/089558 patent/WO2017096899A1/zh not_active Ceased
- 2016-08-19 US US15/242,259 patent/US20170168995A1/en not_active Abandoned
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103336691A (zh) * | 2013-06-29 | 2013-10-02 | 安科智慧城市技术(中国)有限公司 | 一种基于Android的动态布局方法及系统 |
| CN104572035A (zh) * | 2013-10-11 | 2015-04-29 | 北大方正集团有限公司 | 网页代码的动态生成方法和动态生成系统 |
| CN103631958A (zh) * | 2013-12-17 | 2014-03-12 | 江苏省公用信息有限公司 | 一种页面自动适配实现内容多屏展示的方法 |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113497898A (zh) * | 2020-04-02 | 2021-10-12 | 北京字节跳动网络技术有限公司 | 视频特效配置文件生成方法、视频渲染方法及装置 |
| CN113497898B (zh) * | 2020-04-02 | 2023-04-07 | 抖音视界有限公司 | 视频特效配置文件生成方法、视频渲染方法及装置 |
| US11856152B2 (en) | 2020-04-02 | 2023-12-26 | Beijing Bytedance Network Technology Co., Ltd. | Video special effect configuration file generation method and apparatus, and video rendering method and apparatus |
Also Published As
| Publication number | Publication date |
|---|---|
| US20170168995A1 (en) | 2017-06-15 |
| CN105892964A (zh) | 2016-08-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20140372945A1 (en) | Method for outputting images, apparatus and mobile terminal therefor | |
| US11436663B2 (en) | Order processing system, method, device and storage medium | |
| CN104702665B (zh) | 信息分享方法和信息分享装置 | |
| US20220095006A1 (en) | Methods, systems and devices that enable a user of a mobile phone to select what content is displayed on a screen of a consumer electronic device on display | |
| WO2014138287A1 (en) | Automatic alignment of a multi-dimensional layout | |
| US20140317242A1 (en) | Electronic device and method of registering personal cloud apparatus in user portal server thereof | |
| WO2017096899A1 (zh) | 区块配置、展现方法、服务器、终端设备和通信系统 | |
| CN104346115A (zh) | 将图片分配到多个终端进行显示的方法及终端 | |
| CN102724570B (zh) | 交互式网络电视节目显示方法和系统 | |
| US20220308821A1 (en) | Dividing method, distribution method, medium, server, system | |
| JP5878671B1 (ja) | デジタルコンテンツを配信するシステム、方法、及びプログラム | |
| JP2016099732A5 (zh) | ||
| JP6445117B2 (ja) | マルチスクリーンサービスをサポートするためのマークアップ構成装置及び方法 | |
| CN104219585A (zh) | 一种展示电视节目的方法及装置 | |
| US20170318338A1 (en) | Downloading of media based on user profile | |
| CN106951493A (zh) | 无图新闻的自动配图展示方法及装置 | |
| WO2017113713A1 (zh) | 显示界面调整方法及装置 | |
| CN106682014B (zh) | 游戏展示数据的生成方法和装置 | |
| JP5987012B2 (ja) | 情報提供装置、端末装置、情報提供方法、情報提供プログラムおよび情報取得プログラム | |
| CN113688334A (zh) | 一种内容展示方法、装置和计算机可读存储介质 | |
| CN106468992B (zh) | 内容提供服务器以及内容提供方法 | |
| JP5778869B1 (ja) | 情報提供サーバ、情報提供方法、記録媒体、および、プログラム | |
| JP5390424B2 (ja) | プラント監視装置 | |
| US20150051943A1 (en) | System and method of integrating device data with customer relationship management | |
| CN108848409B (zh) | 机顶盒的无线路由模块参数设置方法及机顶盒 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16872099 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 16872099 Country of ref document: EP Kind code of ref document: A1 |
