CN104932871A - A method and device for displaying multimedia information - Google Patents

A method and device for displaying multimedia information Download PDF

Info

Publication number
CN104932871A
CN104932871A CN201410101254.2A CN201410101254A CN104932871A CN 104932871 A CN104932871 A CN 104932871A CN 201410101254 A CN201410101254 A CN 201410101254A CN 104932871 A CN104932871 A CN 104932871A
Authority
CN
China
Prior art keywords
multimedia messages
display
terminal
screen
width
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410101254.2A
Other languages
Chinese (zh)
Other versions
CN104932871B (en
Inventor
崔瑞
朱磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201410101254.2A priority Critical patent/CN104932871B/en
Publication of CN104932871A publication Critical patent/CN104932871A/en
Application granted granted Critical
Publication of CN104932871B publication Critical patent/CN104932871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The present invention discloses a method and device for displaying multimedia information, and belongs to the internet communication field. The method comprises receiving at least one multimedia information; determining a display column number for displaying the multimedia information according to the width of a screen of a terminal; determining a display position of each multimedia information among the at least one multimedia information according to the display column number; and displaying each multimedia information according to the display positions of each multimedia information. The device comprises a receiving module, a first determination module, a second determination module and a display module. The display column number of the multimedia information can be determined according to the width of the screen of the terminal.

Description

A kind of method and device showing multimedia messages
Technical field
The present invention relates to field of Internet communication, particularly a kind of method and device showing multimedia messages.
Background technology
Current, in internet, the quantity of multimedia messages gets more and more, and the multimedia messages oneself liked becomes a urgent problem how to make user check rapidly from a large amount of multimedia messagess.In order to address this problem, terminal needs multiple multimedia messages to be shown to user simultaneously, and the multimedia messages making user select oneself to like from multiple multimedia messagess of display is checked.
There is a kind of method showing multimedia messages at present, can be: terminal obtains the display columns of multiple multimedia messages and display multimedia messages from server, according to the display columns obtained, determine the display position of each multimedia messages, the display position of each multimedia messages can be the columns of each multimedia messages of display and line number.Then each multimedia messages is shown respectively according to the display position of each multimedia messages determined.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
The display columns obtained from server due to width difference and the different terminals of the screen of different terminals is identical, the multimedia messages causing the less terminal of the width of screen to be shown according to display column digital display is too intensive, and the multimedia messages that the larger terminal of the width of screen is shown according to display column digital display, still there is a large amount of space resources and do not utilize in terminal screen.
Summary of the invention
In order to avoid the terminal of different screen width shows multimedia messages according to identical display column digital display, the invention provides a kind of method and the device that show multimedia messages.Described technical scheme is as follows:
Show a method for multimedia messages, described method comprises:
Receive at least one multimedia messages;
According to the width of the screen of terminal, determine the display columns showing multimedia messages;
According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described;
According to the display position of described each multimedia messages, show described each multimedia messages.
Show a device for multimedia messages, described device comprises:
Receiver module, for receiving at least one multimedia messages;
First determination module, for the width of the screen according to terminal, determines the display columns showing multimedia messages;
Second determination module, for according to described display columns, determines the display position of each multimedia messages at least one multimedia messages described;
Display module, for the display position according to described each multimedia messages, shows described each multimedia messages.
In embodiments of the present invention, at least one multimedia messages is received; According to the width of the screen of terminal, determine the display columns showing multimedia messages; According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described; According to the display position of described each multimedia messages, show described each multimedia messages.Width due to the screen according to terminal determines the display columns showing multimedia messages, shows multimedia messages, so reasonably can utilize the space resources of the screen of terminal according to the display column digital display determined.
Accompanying drawing explanation
Fig. 1 is a kind of method flow diagram showing multimedia messages that the embodiment of the present invention 1 provides;
Fig. 2-1 is a kind of method flow diagram showing multimedia messages that the embodiment of the present invention 2 provides;
Fig. 2-2 is first display interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-3 is second display interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-4 is first display screen schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-5 is the 3rd display interface schematic diagram that the embodiment of the present invention 2 provides;
Fig. 2-6 is second display screen schematic diagram that the embodiment of the present invention 2 provides;
Fig. 3 is a kind of apparatus structure schematic diagram showing multimedia messages that the embodiment of the present invention 3 provides;
Fig. 4 is a kind of terminal structure schematic diagram that the embodiment of the present invention 4 provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
See Fig. 1, the embodiment of the present invention 1 provides a kind of method showing multimedia messages, comprising:
Step 101: receive at least one multimedia messages;
Step 102: according to the width of the screen of terminal, determines the display columns showing multimedia messages;
Step 103: according to display columns, determine the display position of each multimedia messages at least one multimedia messages;
Step 104: according to the display position of each multimedia messages, shows each multimedia messages.
Preferably, according to the width of the screen of terminal, determine the display columns showing multimedia messages, comprising:
Obtain the col width of display multimedia messages;
According to the width of the screen of terminal and the col width of display multimedia messages, calculate the display columns of display multimedia messages.
Preferably, obtain the col width of display multimedia messages, comprising:
According to the width of each multimedia messages at least one multimedia messages, determine the col width showing multimedia messages; Or,
The col width of the display multimedia messages that reception server sends.
Preferably, according to this display columns, determine the display position of each multimedia messages at least one multimedia messages, comprising:
Each multimedia messages at least one multimedia messages is arranged according to this display columns;
The row number of the row at each multimedia messages place and the line number of row after obtaining arrangement respectively;
The line number of the row number of the row at each multimedia messages place obtained and row is defined as the display position of each multimedia messages.
Preferably, according to the display position of each multimedia messages, show each multimedia messages, comprising:
According to the height of the display position of each multimedia messages, the height of each multimedia messages and the screen of terminal, from each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of the first indication range is less than or equal to the height of the screen of terminal;
According to position and the height of the multimedia messages selected, the multimedia messages of selection is loaded in display interface;
Mobile display interface, is presented at the screen of terminal by the multimedia messages being arranged in the first indication range.
Further, according to the display position of each multimedia messages, after showing each multimedia messages, also comprise:
When the multimedia messages of user's mobile display, periodically obtain the multimedia messages of the screen moving into terminal, display moves into the multimedia messages of the screen of terminal.
In embodiments of the present invention, at least one multimedia messages is received; According to the width of the screen of terminal, determine the display columns showing multimedia messages; According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described; According to the display position of described each multimedia messages, show described each multimedia messages.Width due to the screen according to terminal determines the display columns showing multimedia messages, shows multimedia messages, so reasonably can utilize the space resources of the screen of terminal according to the display column digital display determined.
Embodiment 2
See Fig. 2-1, embodiments provide a kind of method showing multimedia messages, comprising:
Step 201: receive at least one multimedia messages;
Particularly, acquisition request message for obtaining multimedia messages is sent to server, at least one multimedia messages that reception server returns.
Wherein, each multimedia messages at least has width, height and type three attributes, and the width of multimedia messages and the unit of height can be pixel.
Wherein, can also comprise the col width of display multimedia messages in server, server can also return the col width of display multimedia messages to terminal while returning at least one multimedia messages.
Such as, send acquisition request message for obtaining multimedia messages to server, at least one multimedia messages that reception server returns, supposes that the multimedia messages that server returns comprises multimedia messages 1,2,3,4,5 and 6.The property value of the width of each multimedia messages, height and type is as shown in table 1.
Table 1
Wherein, after receiving at least one multimedia messages, the multimedia messages of reception is shown to user by 202-213 as follows.
Step 202: according to the width of the screen of terminal, determines the display columns showing multimedia messages;
Particularly, obtain the col width of display multimedia messages, according to the width of the screen of terminal and the col width of display multimedia messages, calculate the display columns of display multimedia messages.
Wherein, for the col width of display multimedia messages, can be obtained by following three kinds of modes, comprise:
The first, the col width of the display multimedia messages that reception server sends.
Second, the width of each multimedia messages is obtained respectively from the width attribute of each multimedia messages at least one multimedia messages received, calculate the mean value of the width of each multimedia messages obtained, the mean value of calculating is defined as the col width showing multimedia messages.
Such as, suppose that the width of each multimedia messages obtained is respectively 4,6,2 and 8, the mean value calculating the width 2,4,6 and 8 of each multimedia messages obtained is 5, the mean value 5 of calculating is defined as the display col width showing multimedia messages.
3rd, the width of each multimedia messages is obtained respectively from the width attribute of each multimedia messages at least one multimedia messages received, according to the width of each multimedia messages, each multimedia messages obtained is sorted, the multimedia messages coming centre position is obtained from the multimedia messages after sequence, if what come centre position is a multimedia messages, then the width of this multimedia messages is defined as the col width showing multimedia messages.If what come centre position is two multimedia messagess, then calculate the mean value of the width of these two multimedia messagess, the mean value of calculating is defined as the col width showing multimedia messages.
Such as, suppose that the width of each multimedia messages obtained is respectively 4,6,2 and 8, according to the width of each multimedia messages, each multimedia messages obtained is sorted, then after sequence, the width of each multimedia messages is respectively 2,4,6 and 8, the multimedia messages coming centre position is obtained from the multimedia messages after sequence, what come centre position is two multimedia messagess, the mean value calculating the width 4 and 6 of these two multimedia messagess is 5, is defined as the col width showing multimedia messages by 5.Suppose that again the width of each multimedia messages obtained is respectively 4,5,6,2 and 8, then after sequence, the width of each multimedia messages is respectively 2,4,5,6 and 8, the multimedia messages coming centre position is obtained from the multimedia messages after sequence, what come centre position is a multimedia messages, the i.e. multimedia messages of width 5 correspondence, is defined as the col width showing multimedia messages by 5.
Wherein, for the display columns of display multimedia messages, can calculate in the following way, comprise:
Obtain the width of the screen of terminal, the ratio between the width of the screen of computing terminal and the col width of display multimedia messages, if the ratio calculated is integer, then this ratio is defined as the display columns showing multimedia messages; If the ratio calculated is not integer, then downward rounding operation is carried out to this ratio and obtain a round values, this round values is defined as the display columns showing multimedia messages.As supposed, the ratio calculated is 2.3, then carry out downward rounding operation to this ratio 2.3 and obtain round values 2, this round values 2 is defined as the display columns showing multimedia messages.Suppose that the ratio calculated is 2.6 again, then round values 2 is obtained to the downward rounding operation that carries out of this ratio 2.6, this round values 2 is defined as the display columns showing multimedia messages.
Such as, suppose that the col width of the display multimedia messages obtained is 40, the width of the screen of terminal is 100.According to the width 100 of the screen of terminal and the col width 40 of display multimedia messages, the display columns calculating display multimedia messages is 2.
Step 203: according to the display columns determined, determines the display position of each multimedia messages at least one multimedia messages received;
Particularly, at least one multimedia messages received is arranged according to the display columns determined, determine the row number of the row at each multimedia messages place and the line number of row, using the display position of the line number of the row of the row at each multimedia messages place determined number and row as each multimedia messages.
Such as, by the multimedia messages 1 received, 2, 3, 4, 5 and 6 arrange according to display columns 2 row determined, determine that the row number of the row at multimedia messages 1 place are 1 with the line number of row, the row number of the row at multimedia messages 2 place be 2 and the line number of row at place be 1, the row number of the row at multimedia messages 3 place be 1 and the line number of row at place be 2, the row number of the row at multimedia messages 4 place are 2 with the line number of row, the row number of the row at multimedia messages 5 place be 1 and the line number of row at place be 3, the row number of the row at multimedia messages 6 place be 2 and the line number of row at place be 3.As shown in table 2, using the display position of the line number of the row of the row at each multimedia messages place determined number and row as each multimedia messages, namely the display position of multimedia messages 1 is the 1st arrange the 1st row, the display position of multimedia messages 2 is the 2nd arrange the 1st row, the display position of multimedia messages 3 is the 1st arrange the 2nd row, the display position of multimedia messages 4 is the 2nd arrange the 2nd row, and the display position of multimedia messages 5 is the 1st arrange the 3rd row, and the display position of multimedia messages 6 is the 2nd arrange the 3rd row.
Table 2
Multimedia messages Display position
1 1st arranges the 1st row
2 2nd arranges the 1st row
3 1st arranges the 2nd row
4 2nd arranges the 2nd row
5 1st arranges the 3rd row
6 2nd arranges the 3rd row
Step 204: according to the height of the display position of each multimedia messages, the height of each multimedia messages and the screen of terminal, from each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of the first indication range is less than or equal to the height of the screen of terminal;
Particularly, the height of each multimedia messages is obtained respectively from the height attributes of each multimedia messages, according to the display position of each multimedia messages and the height of each multimedia messages, determine the offset ranges of each multimedia messages respectively, display position as multimedia messages is the 1st arrange the 1st row, the height of this multimedia messages is 5, then the offset ranges of this multimedia messages determined is for being more than or equal to 0 and being less than or equal to 5.Obtain the height of the screen of terminal, determine that the burst length of the first indication range is less than or equal to the height of the screen of terminal, from each multimedia messages, obtain offset ranges have overlapping multimedia messages with the first indication range, the multimedia messages of acquisition is defined as the multimedia messages being positioned at the first indication range.
Preferably, the burst length of the first indication range is more than or equal to 0 and is less than or equal to the height of the screen of terminal.
Such as, suppose that the height of the screen of terminal is 100.From the height attributes of multimedia messages 1,2,3,4,5 and 6, obtain the height of multimedia messages 1,2,3,4,5 and 6 respectively, and the height obtained is 60.Arrange the height 60 of the 1st row and multimedia messages 1 according to the display position the 1st of multimedia messages 1, determine that the offset ranges of multimedia messages 1 is for being more than or equal to 0 and being less than or equal to 60.After the same method, for multimedia messages 2, display position is the 2nd arrange the 1st row, and offset ranges is for being more than or equal to 0 and being less than or equal to 60; For multimedia messages 3, display position is the 1st arrange the 2nd row, and offset ranges is for being greater than 60 and being less than or equal to 120; For multimedia messages 4, display position is the 2nd arrange the 2nd row, and offset ranges is for being greater than 60 and being less than or equal to 120; For multimedia messages 5, display position is the 1st arrange the 3rd row, and offset ranges is for being greater than 120 and being less than or equal to 180; For multimedia messages 6, display position is the 2nd arrange the 3rd row, and offset ranges is for being greater than 120 and being less than or equal to 180.The offset ranges that each multimedia messages is corresponding is as shown in table 3.Obtain the height 100 of the screen of terminal, determine that the burst length of the first indication range is more than or equal to 0 and is less than or equal to the height 100 of the screen of terminal, from multimedia messages, obtain offset ranges have overlapping multimedia messages 1,2,3 and 4 with the first indication range, the multimedia messages 1,2,3 and 4 of acquisition is defined as the multimedia messages being positioned at the first indication range.
Table 3
Multimedia messages Offset ranges
1 [0,60]
2 [0,60]
3 (60,120]
4 (60,120]
5 (120,180]
6 (120,180]
Step 205: the type according to each multimedia messages selected obtains a display unit corresponding to each multimedia messages respectively;
Particularly, from the type attribute of each multimedia messages selected, obtain the type of each multimedia messages of selection respectively.For each multimedia messages selected, according to the type of this multimedia messages, determine whether to exist in display unit recycle bin the display unit that the type of this multimedia messages is corresponding.If existed, then from display unit recycle bin, obtain the display unit that the type of this multimedia messages is corresponding.If there is no, then corresponding display unit is created according to the type of this multimedia messages.
Such as, the type obtaining the multimedia messages 1,2,3 and 4 of selection respectively from the type attribute of the multimedia messages 1,2,3 and 4 selected is respectively ' picture ', ' picture ', ' video ' and ' video '.According to the type ' picture ' of the multimedia messages 1 and 2 selected, determine in display unit recycle bin, whether to there is the corresponding display unit Showed Picture, and determine in display unit recycle bin the display unit do not existed for Showing Picture, then create the display unit 1 and 2 for Showing Picture; According to the type ' video ' of the multimedia messages 3 and 4 selected, determine the display unit that whether there is corresponding display video in display unit recycle bin, and determine in display unit recycle bin the display unit do not existed for display video, then create the display unit 3 and 4 being used for display video.
Step 206: the height according to each multimedia messages selected arranges display unit corresponding to each multimedia messages respectively, the display position according to each multimedia messages selected places display unit corresponding to each multimedia messages respectively on display interface;
Wherein, create the equal display interface of every column width according to the display columns determined, the side-play amount at the top of display interface is 0.Display interface can be UI(User Interface, user interface) interface.
This step is specially, for each multimedia messages selected, the height of display unit corresponding to this multimedia messages is set according to the height of this multimedia messages, arrange the width of display unit according to the col width determined, display unit corresponding to this multimedia messages is placed in the position corresponding on display interface according to the display position of this multimedia messages.
Such as, as shown in Fig. 2-2, the height arranging the display unit 1 of multimedia messages 1 correspondence according to the height 60 of the multimedia messages 1 selected is 60, the width arranging display unit 1 according to the col width 40 determined is 40, arranges the 1st row the 1st position arranging the 1st row on display interface place the display unit 1 of multimedia messages 1 correspondence according to the display position the 1st of the multimedia messages 1 selected.According to identical method, the height that the display unit 2 of multimedia messages 2 correspondence is set be 60 and width be 40, and display unit 2 is placed in the 2nd position arranging the 1st row on display interface; The height that the display unit 3 of multimedia messages 3 correspondence is set be 60 and width be 40, and display unit 3 is placed in the 1st position arranging the 2nd row on display interface; The height that the display unit 4 of multimedia messages 4 correspondence is set be 60 and width be 40, and display unit 4 is placed in the 2nd position arranging the 2nd row on display interface.
Step 207: each multimedia messages selected is loaded in display unit corresponding to each multimedia messages respectively;
Such as, as Figure 2-3, the multimedia messages 1 of selection is loaded in the display unit 1 of multimedia messages 1 correspondence, the multimedia messages 2 of selection is loaded in the display unit 2 of multimedia messages 2 correspondence, the multimedia messages 3 of selection is loaded in the display unit 3 of multimedia messages 3 correspondence, the multimedia messages 4 of selection is loaded in the display unit 4 of multimedia messages 4 correspondence.
Step 208: mobile display interface, is presented at the screen of terminal by the multimedia messages being arranged in the first indication range;
Such as, as in Figure 2-4, to the first indication range for being more than or equal to 0 and being less than or equal to 100, mobile display interface, be more than or equal to 0 and the multimedia messages 1,2,3 and 4 being less than or equal to 100 moves to the screen of terminal by being arranged in the first indication range, and show in the screen of terminal.
Wherein, when showing multimedia messages in the screen in terminal, user can move up or down multimedia messages in the terminal.In the process of user's mobile multimedia information, terminal periodic ground obtains displacement and the moving direction of user's mobile multimedia information, the displacement obtained according to each cycle and moving direction are to display interface loading multimedia information and be shown to user, specifically comprise the steps 209-213.
Step 209: when the multimedia messages of user's mobile display, obtains displacement and the moving direction of user's mobile multimedia information in current period, obtains the second indication range according to the displacement of the first indication range, mobile multimedia information and moving direction;
Particularly, when the multimedia messages of user's mobile display, obtain displacement and the moving direction of user's mobile multimedia information in current period, if moving direction is for moving down, then the first indication range and displacement are carried out getting and obtain the second indication range with computing, if moving direction is for moving up, then the first indication range and displacement is carried out doing difference operation and obtain the second indication range.
Such as, suppose that terminal gets the direction of user's mobile multimedia information in current period for moving down, the displacement of mobile multimedia information is 70, first indication range is for being more than or equal to 0 and being less than or equal to 100, according to the first indication range for be more than or equal to 0 and be less than or equal to 100, displacement be 70 and moving direction for moving down, calculate the second indication range for being more than or equal to 70 and being less than or equal to 170.
Wherein, when the multimedia messages of user's mobile display, need 210 to reclaim and shift out display unit corresponding to the multimedia messages of the screen of terminal as follows.
Step 210: obtain according to the second indication range and shift out the multimedia messages of the screen of terminal, reclaims the display unit that the multimedia messages that shifts out the screen of terminal is corresponding;
Particularly, offset ranges and the nonoverlapping multimedia messages of the second indication range is obtained in the current multimedia messages comprised from display interface, the multimedia messages of acquisition is defined as the multimedia messages of the screen shifting out terminal, display unit corresponding for the multimedia messages of the screen shifting out terminal is cached in display unit recycle bin.
Such as, the current multimedia messages comprised of display interface is 1,2,3 and 4, acquisition offset ranges and the second indication range are more than or equal to 70 and are less than or equal to 170 nonoverlapping multimedia messagess 1 and 2, the multimedia messages 1 and 2 of acquisition is defined as the multimedia messages of the screen shifting out terminal, display unit 1 and 2 corresponding respectively for the multimedia messages 1 and 2 shifting out the screen of terminal is cached in display unit recycle bin.
Wherein, when the multimedia messages of user's mobile display, need 211-213 as follows that the multimedia messages of the screen moving into terminal is shown to user.
Step 211: the multimedia messages obtaining the screen moving into terminal according to the first indication range and the second indication range;
Particularly, from each multimedia messages, obtain the multimedia messages that offset ranges is overlapping with the second indication range but not overlapping with the first indication range, the multimedia messages of acquisition is defined as the multimedia messages of the screen moving into terminal.
Such as, from multimedia messages 1,2,3,4,5 and 6, obtain offset ranges be more than or equal to 70 with the second indication range and be less than or equal to 170 overlapping but be not more than or equal to 0 with the first indication range and be less than or equal to 100 overlapping multimedia messagess 5 and 6, the multimedia messages 5 and 6 of acquisition is defined as the multimedia messages of the screen moving into terminal.
Step 212: the multimedia messages of the screen moving into terminal is loaded in display interface according to moving into the display position of multimedia messages of screen of terminal, type and height;
Particularly, any one is moved into the multimedia messages of the display screen of terminal, according to the type of this multimedia messages, determine whether to exist in display unit recycle bin the display unit that the type of this multimedia messages is corresponding.If existed, then from display unit recycle bin, obtain display unit corresponding to this multimedia messages according to the type of this multimedia messages.If there is no, then display unit corresponding to this multimedia messages is created according to the type of this multimedia messages.Then the height of display unit corresponding to this multimedia messages is set according to the height of this multimedia messages, in display interface, place display unit corresponding to this multimedia messages according to the display position of this multimedia messages, this multimedia messages is loaded in this display unit.
Such as, according to the type ' picture ' of the multimedia messages 5 of the screen of immigration terminal, determine whether to exist in display unit recycle bin the display unit that the type ' picture ' of multimedia messages 5 is corresponding, and determine in display unit recycle bin have two display units Showed Picture to be respectively display unit 1 and 2, from display unit recycle bin, obtain display unit 1.The height of display unit 1 is set to 60 by the height 60 according to multimedia messages 5, arranges the 3rd row in display interface, places display unit 1, be loaded into by multimedia messages 5 in display unit 1 according to the display position the 1st of multimedia messages 5; For the multimedia messages 6 of the screen of immigration terminal, type due to multimedia messages 6 is ' video ', and determine in display unit recycle bin the display unit do not existed for display video, create a display unit 5 for display video, the height of display unit 5 is set to 60 by the height 60 according to multimedia messages 6, arrange the 3rd row according to the display position the 2nd of multimedia messages 6 in display interface, place display unit 5, multimedia messages 6 is loaded in display unit 5, as shown in Figure 2-5.
Step 213: mobile display interface, is presented at the display screen of terminal by the multimedia messages being arranged in the second indication range.
Such as, as shown in figures 2-6, to the second indication range for being more than or equal to 70 and being less than or equal to 170, mobile display interface, be more than or equal to 70 and the multimedia messages 3,4,5 and 6 being less than or equal to 170 moves to the display screen of terminal by being arranged in the second indication range, and show in the display screen of terminal.
Further, the first indication range is updated to the second indication range.
Wherein, if user continues mobile display multimedia messages, when entering next cycle, terminal gets displacement and the moving direction of user's mobile multimedia information, returns and performs step 209.
In embodiments of the present invention, at least one multimedia messages is received; According to the width of the screen of terminal, determine the display columns showing multimedia messages; According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described; According to the display position of described each multimedia messages, show described each multimedia messages.Width due to the screen according to terminal determines the display columns showing multimedia messages, shows multimedia messages, so reasonably can utilize the space resources of the screen of terminal according to the display column digital display determined.
Embodiment 3
See Fig. 3, embodiments provide a kind of device showing multimedia messages, comprising:
Receiver module 301, for receiving at least one multimedia messages;
First determination module 302, for the width of the screen according to terminal, determines the display columns showing multimedia messages;
Second determination module 303, for according to display columns, determines the display position of each multimedia messages at least one multimedia messages;
Display module 304, for the display position according to each multimedia messages, shows each multimedia messages.
Wherein, the first determination module 302 comprises:
First acquiring unit, for obtaining the col width of display multimedia messages;
Computing unit, for the width of the screen according to terminal and the col width of display multimedia messages, calculates the display columns of display multimedia messages.
Wherein, acquiring unit comprises:
Determine subelement, for the width according to each multimedia messages at least one multimedia messages, determine the col width showing multimedia messages; Or,
Receive subelement, for the col width of the display multimedia messages that reception server sends.
Wherein, the second determination module 303 comprises:
Arrangement units, for arranging each multimedia messages at least one multimedia messages according to this display columns;
Second acquisition unit, for the row number of the row at each multimedia messages place after obtaining arrangement respectively and the line number of row;
Determining unit, is defined as the display position of each multimedia messages for the row number of the row by each multimedia messages place obtained and the line number of row.
Wherein, display module 304 comprises:
Selection unit, for the height of the display position according to each multimedia messages, the height of each multimedia messages and the screen of terminal, from each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of the first indication range is less than or equal to the height of the screen of terminal;
Loading unit, for position and the height of the multimedia messages according to selection, is loaded in display interface by the multimedia messages of selection;
Display unit, for mobile display interface, is presented at the screen of terminal by the multimedia messages being arranged in the first indication range.
Further, this device also comprises:
Obtain display module, for when the multimedia messages of user's mobile display, periodically obtain the multimedia messages of the screen moving into terminal, display moves into the multimedia messages of the screen of terminal.
In embodiments of the present invention, at least one multimedia messages is received; According to the width of the screen of terminal, determine the display columns showing multimedia messages; According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described; According to the display position of described each multimedia messages, show described each multimedia messages.Width due to the screen according to terminal determines the display columns showing multimedia messages, shows multimedia messages, so reasonably can utilize the space resources of the screen of terminal according to the display column digital display determined.
Embodiment 4
Fig. 4 is the structural representation of the terminal that the embodiment of the present invention provides.This terminal may be used for the method implementing the display multimedia messages provided in above-described embodiment.Specifically:
Terminal 900 can comprise RF(Radio Frequency, radio frequency) circuit 110, the storer 120 including one or more computer-readable recording mediums, input block 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi (wireless fidelity, Wireless Fidelity) module 170, include the parts such as processor 180 and power supply 190 that more than or processes core.It will be understood by those skilled in the art that the restriction of the not structure paired terminal of the terminal structure shown in Fig. 4, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.Wherein:
RF circuit 110 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, transfer to more than one or one processor 180 to process; In addition, base station is sent to by relating to up data.Usually, RF circuit 110 includes but not limited to antenna, at least one amplifier, tuner, one or more oscillator, subscriber identity module (SIM) card, transceiver, coupling mechanism, LNA(Low Noise Amplifier, low noise amplifier), diplexer etc.In addition, RF circuit 110 can also by radio communication and network and other devices communicatings.Described radio communication can use arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband CodeDivision Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Storer 120 can be used for storing software program and module, and processor 180 is stored in software program and the module of storer 120 by running, thus performs the application of various function and data processing.Storer 120 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of terminal 900.In addition, storer 120 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Correspondingly, storer 120 can also comprise Memory Controller, to provide the access of processor 180 and input block 130 pairs of storeies 120.
Input block 130 can be used for the numeral or the character information that receive input, and produces and to arrange with user and function controls relevant keyboard, mouse, control lever, optics or trace ball signal and inputs.Particularly, input block 130 can comprise Touch sensitive surface 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on Touch sensitive surface 131 or near Touch sensitive surface 131 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, Touch sensitive surface 131 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 180, and the order that energy receiving processor 180 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize Touch sensitive surface 131.Except Touch sensitive surface 131, input block 130 can also comprise other input equipments 132.Particularly, other input equipments 132 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 140 can be used for the various graphical user interface showing information or the information being supplied to user and the terminal 900 inputted by user, and these graphical user interface can be made up of figure, text, icon, video and its combination in any.Display unit 140 can comprise display panel 141, optionally, the form such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) can be adopted to configure display panel 141.Further, Touch sensitive surface 131 can cover display panel 141, when Touch sensitive surface 131 detects thereon or after neighbouring touch operation, send processor 180 to determine the type of touch event, on display panel 141, provide corresponding vision to export with preprocessor 180 according to the type of touch event.Although in the diagram, Touch sensitive surface 131 and display panel 141 be as two independently parts realize input and input function, in certain embodiments, can by Touch sensitive surface 131 and display panel 141 integrated and realize input and output function.
Terminal 900 also can comprise at least one sensor 150, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 141, proximity transducer when terminal 900 moves in one's ear, can cut out display panel 141 and/or backlight.As the one of motion sensor; Gravity accelerometer can detect the size of all directions (are generally three axles) acceleration; size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for terminal 900 also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 160, loudspeaker 161, microphone 162 can provide the audio interface between user and terminal 900.Voicefrequency circuit 160 can by receive voice data conversion after electric signal, be transferred to loudspeaker 161, by loudspeaker 161 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 162, voice data is converted to after being received by voicefrequency circuit 160, after again voice data output processor 180 being processed, through RF circuit 110 to send to such as another terminal, or export voice data to storer 120 to process further.Voicefrequency circuit 160 also may comprise earphone jack, to provide the communication of peripheral hardware earphone and terminal 900.
WiFi belongs to short range wireless transmission technology, and terminal 900 can help user to send and receive e-mail by WiFi module 170, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 4 shows WiFi module 170, be understandable that, it does not belong to must forming of terminal 900, can omit in the scope of essence not changing invention as required completely.
Processor 180 is control centers of terminal 900, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 120 and/or module is stored in by running or performing, and call the data be stored in storer 120, perform various function and the process data of terminal 900, thus integral monitoring is carried out to mobile phone.Optionally, processor 180 can comprise one or more process core; Preferably, processor 180 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 180.
Terminal 900 also comprises the power supply 190(such as battery of powering to all parts), preferably, power supply can be connected with processor 180 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.Power supply 190 can also comprise one or more direct current or AC power, recharging system, power failure detection circuit, power supply changeover device or the random component such as inverter, power supply status indicator.
Although not shown, terminal 900 can also comprise camera, bluetooth module etc., does not repeat them here.Specifically in the present embodiment, the display unit of terminal 900 is touch-screen displays, terminal 900 also includes storer, and one or more than one program, one of them or more than one program are stored in storer, and are configured to be performed by more than one or one processor state more than one or one routine package containing the instruction for carrying out following operation:
Receive at least one multimedia messages;
According to the width of the screen of terminal, determine the display columns showing multimedia messages;
According to display columns, determine the display position of each multimedia messages at least one multimedia messages;
According to the display position of each multimedia messages, show each multimedia messages.
Preferably, according to the width of the screen of terminal, determine the display columns showing multimedia messages, comprising:
Obtain the col width of display multimedia messages;
According to the width of the screen of terminal and the col width of display multimedia messages, calculate the display columns of display multimedia messages.
Preferably, obtain the col width of display multimedia messages, comprising:
According to the width of each multimedia messages at least one multimedia messages, determine the col width showing multimedia messages; Or,
The col width of the display multimedia messages that reception server sends.
Preferably, according to this display columns, determine the display position of each multimedia messages at least one multimedia messages, comprising:
Each multimedia messages at least one multimedia messages is arranged according to this display columns;
The row number of the row at each multimedia messages place and the line number of row after obtaining arrangement respectively;
The line number of the row number of the row at each multimedia messages place obtained and row is defined as the display position of each multimedia messages.
Preferably, according to the display position of each multimedia messages, show each multimedia messages, comprising:
According to the height of the display position of each multimedia messages, the height of each multimedia messages and the screen of terminal, from each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of the first indication range is less than or equal to the height of the screen of terminal;
According to position and the height of the multimedia messages selected, the multimedia messages of selection is loaded in display interface;
Mobile display interface, is presented at the screen of terminal by the multimedia messages being arranged in the first indication range.
Further, according to the display position of each multimedia messages, after showing each multimedia messages, also comprise:
When the multimedia messages of user's mobile display, periodically obtain the multimedia messages of the screen moving into terminal, display moves into the multimedia messages of the screen of terminal.
In embodiments of the present invention, at least one multimedia messages is received; According to the width of the screen of terminal, determine the display columns showing multimedia messages; According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described; According to the display position of described each multimedia messages, show described each multimedia messages.Width due to the screen according to terminal determines the display columns showing multimedia messages, shows multimedia messages, so reasonably can utilize the space resources of the screen of terminal according to the display column digital display determined.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (12)

1. show a method for multimedia messages, it is characterized in that, described method comprises:
Receive at least one multimedia messages;
According to the width of the screen of terminal, determine the display columns showing multimedia messages;
According to described display columns, determine the display position of each multimedia messages at least one multimedia messages described;
According to the display position of described each multimedia messages, show described each multimedia messages.
2. the method for claim 1, is characterized in that, the width of the described screen according to terminal, determines the display columns showing multimedia messages, comprising:
Obtain the col width of display multimedia messages;
According to the width of the screen of terminal and the col width of described display multimedia messages, calculate the display columns of display multimedia messages.
3. method as claimed in claim 2, is characterized in that, the described col width obtaining display multimedia messages, comprising:
According to the width of each multimedia messages at least one multimedia messages described, determine the col width showing multimedia messages; Or,
The col width of the display multimedia messages that reception server sends.
4. the method for claim 1, is characterized in that, described according to described display columns, determines the display position of each multimedia messages at least one multimedia messages described, comprising:
Each multimedia messages at least one multimedia messages described is arranged according to described display columns;
The row number of the row at described each multimedia messages place and the line number of row after obtaining described arrangement respectively;
The line number of the row of the row at each multimedia messages place of described acquisition number and row is defined as the display position of described each multimedia messages.
5. the method for claim 1, is characterized in that, the described display position according to described each multimedia messages, shows described each multimedia messages, comprising:
According to the height of the display position of described each multimedia messages, the height of described each multimedia messages and the screen of described terminal, from described each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of described first indication range is less than or equal to the height of the screen of described terminal;
According to position and the height of the multimedia messages of described selection, the multimedia messages of described selection is loaded in display interface;
Mobile described display interface, is presented at the screen of described terminal by the multimedia messages being arranged in described first indication range.
6. method as claimed in claim 5, it is characterized in that, the described display position according to described each multimedia messages, after showing described each multimedia messages, also comprises:
When the multimedia messages of user's mobile display, periodically obtain the multimedia messages of the screen moving into terminal, show the multimedia messages of the screen of described immigration terminal.
7. show a device for multimedia messages, it is characterized in that, described device comprises:
Receiver module, for receiving at least one multimedia messages;
First determination module, for the width of the screen according to terminal, determines the display columns showing multimedia messages;
Second determination module, for according to described display columns, determines the display position of each multimedia messages at least one multimedia messages described;
Display module, for the display position according to described each multimedia messages, shows described each multimedia messages.
8. device as claimed in claim 7, it is characterized in that, described first determination module comprises:
First acquiring unit, for obtaining the col width of display multimedia messages;
Computing unit, for the width of the screen according to terminal and the col width of described display multimedia messages, calculates the display columns of display multimedia messages.
9. device as claimed in claim 8, it is characterized in that, described acquiring unit comprises:
Determine subelement, for the width according to each multimedia messages at least one multimedia messages described, determine the col width showing multimedia messages; Or,
Receive subelement, for the col width of the display multimedia messages that reception server sends.
10. device as claimed in claim 7, it is characterized in that, described second determination module comprises:
Arrangement units, for arranging each multimedia messages at least one multimedia messages described according to described display columns;
Second acquisition unit, for the row number of the row at described each multimedia messages place after obtaining described arrangement respectively and the line number of row;
Determining unit, is defined as the display position of described each multimedia messages for the row number of the row at each multimedia messages place by described acquisition and the line number of row.
11. devices as claimed in claim 7, it is characterized in that, described display module comprises:
Selection unit, for the height of the display position according to described each multimedia messages, the height of described each multimedia messages and the screen of described terminal, from described each multimedia messages, select the multimedia messages being positioned at the first indication range, the burst length of described first indication range is less than or equal to the height of the screen of described terminal;
Loading unit, for position and the height of the multimedia messages according to described selection, is loaded in display interface by the multimedia messages of described selection;
Display unit, for mobile described display interface, is presented at the screen of described terminal by the multimedia messages being arranged in described first indication range.
12. devices as claimed in claim 11, it is characterized in that, described device also comprises:
Obtain display module, for when the multimedia messages of user's mobile display, periodically obtain the multimedia messages of the screen moving into terminal, show the multimedia messages of the screen of described immigration terminal.
CN201410101254.2A 2014-03-18 2014-03-18 A kind of method and device showing multimedia messages Active CN104932871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410101254.2A CN104932871B (en) 2014-03-18 2014-03-18 A kind of method and device showing multimedia messages

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410101254.2A CN104932871B (en) 2014-03-18 2014-03-18 A kind of method and device showing multimedia messages

Publications (2)

Publication Number Publication Date
CN104932871A true CN104932871A (en) 2015-09-23
CN104932871B CN104932871B (en) 2019-08-23

Family

ID=54120049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410101254.2A Active CN104932871B (en) 2014-03-18 2014-03-18 A kind of method and device showing multimedia messages

Country Status (1)

Country Link
CN (1) CN104932871B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426475A (en) * 2015-11-18 2016-03-23 Tcl集团股份有限公司 Media file synchronization method and device
CN107450874A (en) * 2017-07-24 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of multi-medium data double screen player method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289571A (en) * 1990-02-01 1994-02-22 Brother Kogyo Kabushiki Kaisha Layout display control system for displaying size of displayed table
US20060200764A1 (en) * 2005-03-04 2006-09-07 Microsoft Corporation Method and system for navigating paginated content in page-based increments
CN103186638A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and device for arranging pictures
CN103294434A (en) * 2013-05-24 2013-09-11 北京奇虎科技有限公司 Interface realizing method and interface realizing system
CN103605502A (en) * 2013-08-08 2014-02-26 北京九恒星科技股份有限公司 Form page display method and server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5289571A (en) * 1990-02-01 1994-02-22 Brother Kogyo Kabushiki Kaisha Layout display control system for displaying size of displayed table
US20060200764A1 (en) * 2005-03-04 2006-09-07 Microsoft Corporation Method and system for navigating paginated content in page-based increments
CN103186638A (en) * 2011-12-31 2013-07-03 北大方正集团有限公司 Method and device for arranging pictures
CN103294434A (en) * 2013-05-24 2013-09-11 北京奇虎科技有限公司 Interface realizing method and interface realizing system
CN103605502A (en) * 2013-08-08 2014-02-26 北京九恒星科技股份有限公司 Form page display method and server

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105426475A (en) * 2015-11-18 2016-03-23 Tcl集团股份有限公司 Media file synchronization method and device
CN107450874A (en) * 2017-07-24 2017-12-08 宇龙计算机通信科技(深圳)有限公司 A kind of multi-medium data double screen player method and system
CN107450874B (en) * 2017-07-24 2021-04-20 宇龙计算机通信科技(深圳)有限公司 Multimedia data double-screen playing method and system

Also Published As

Publication number Publication date
CN104932871B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN103325332B (en) Page furbishing method, device and equipment
CN104978115A (en) Content display method and device
CN103327102A (en) Application program recommending method and device
CN103327189A (en) Method and device for uploading, browsing and deleting pictures
CN105022616A (en) Method and device for generating web page
CN104571787A (en) Message display method and communication terminal
CN103177217B (en) A kind of file scanning method, system and client and server
CN103068016B (en) The method of mobile terminal and reduction power consumption thereof
CN104954159A (en) Network information statistics method and device
CN105094501A (en) Display method, device and system for messages in mobile terminal
CN104519269A (en) Finder frame display method and finder frame display device of photographic equipment
CN105512150A (en) Method and device for information search
CN104820546A (en) Functional information exhibition method and apparatus
CN104142994A (en) Data list acquisition method, terminal and system
CN105245432A (en) Unread message counting method, unread message counting device and terminal
CN104135396B (en) Show the method for network speed information, device and terminal
CN104834655A (en) Method and device for displaying mass parameter of network resource
CN104965825A (en) Method and terminal for processing data
CN105022621A (en) Method and device for collecting session message and terminal
CN104918130A (en) Methods for transmitting and playing multimedia information, devices and system
CN104238931A (en) Information input method, information input device and electronic equipment
CN104702643A (en) A webpage access method, device and system
CN104063152A (en) Object selection method and device
CN106374988A (en) Downlink inter-band carrier aggregation configuration method and apparatus, and terminal
CN103310155B (en) A kind of method and apparatus searching viral parent

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant