CN101159739B - Subtitling display process and communication system and related equipment - Google Patents
Subtitling display process and communication system and related equipment Download PDFInfo
- Publication number
- CN101159739B CN101159739B CN2007101541739A CN200710154173A CN101159739B CN 101159739 B CN101159739 B CN 101159739B CN 2007101541739 A CN2007101541739 A CN 2007101541739A CN 200710154173 A CN200710154173 A CN 200710154173A CN 101159739 B CN101159739 B CN 101159739B
- Authority
- CN
- China
- Prior art keywords
- browser
- subtitle server
- caption information
- captions
- data
- 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.)
- Active
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a text display method and a communication system and related equipment, for realtime displaying text information and improving user experience. The method comprises constructing the data transmission connection between a browser page and a text server; communicating between the browser and the text server to keep the data transmission connection; transmitting text information from the text server to the browser; and displaying the text information on the browser page of the browser. The invention also provides the communication system and the related equipment, and can effectively improve the user experience.
Description
Technical field
The present invention relates to networking technology area, relate in particular to a kind of caption presentation method and communication system and relevant device.
Background technology
Along with development of internet technology, the user is also more and more higher to the requirement of network application service, and for example under some particular environment, the user may watch the literal of roll display on the WEB webpage, address that need, a kind of caption presentation method is in the prior art:
Determine the form of rolling by the webpage SGML;
Read the caption information that needs demonstration from subtitle server;
Show caption information according to the rolling form of determining.
Technique scheme can reach the purpose of roll display literal, but, because said method promptly carries out roll display after reading the caption information that needs to show from subtitle server, so can only the current caption information that reads of roll display, if subtitle server has produced new caption information, then can not be real-time carry out roll display, can show new caption information and need refresh, so reduced user experience to the WEB webpage.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of caption presentation method and communication system and relevant device, can show in real time that caption information is to improve user experience.
The caption presentation method that the embodiment of the invention provides comprises: set up browser page and be connected with transfer of data between the subtitle server; Browser carries out communication with subtitle server and is connected to keep described transfer of data; Subtitle server sends caption information to browser; Browser shows described caption information in browser page.
Alternatively, described transfer of data is connected to the HTML (Hypertext Markup Language) connection;
The described transfer of data step of connecting of setting up between browser page and the subtitle server comprises:
Browser sends the HTML (Hypertext Markup Language) that comprises browser transmission property information to subtitle server and connects the request of foundation;
Subtitle server is carried out data transfer negotiation according to described browser transmission property information and subtitle server transmission property information and described browser;
Subtitle server is fed back the HTML (Hypertext Markup Language) connection establishment response according to negotiation result to described browser;
Or
Subtitle server sends the HTML (Hypertext Markup Language) that comprises subtitle server transmission property information to browser and connects the request of foundation;
Browser carries out data transfer negotiation according to described subtitle server transmission property information and browser transmission property information and described subtitle server;
Browser feeds back the HTML (Hypertext Markup Language) connection establishment response according to negotiation result to described subtitle server.
Alternatively, described browser and subtitle server are carried out communication and are comprised to keep described transfer of data step of connecting:
Browser sends the heartbeat data packets that comprises heartbeat data according to the time interval of presetting at preset time to subtitle server;
Subtitle server judges that the packet that receives is a heartbeat data packets, then to browser feedback heartbeat response data packet.
Alternatively, described subtitle server comprises to the step that browser sends caption information before:
Subtitle server receives the caption information that the captions delivery system sends.
Alternatively, the step of the caption information of described subtitle server reception captions delivery system transmission comprises:
When the captions delivery system produced new caption information, the captions delivery system sent the captions issue request message that comprises described new caption information to subtitle server;
Subtitle server is to captions delivery system feedback captions issue response message.
Alternatively, described subtitle server comprises to the step that browser sends described caption information: subtitle server is obtained the current browser information that keeps transfer of data to be connected with subtitle server; Address according to the corresponding browser of described browser information inquiry; To send the javascript formatted file that comprise the caption information that receives from the captions delivery system to the browser of correspondence according to the address of described browser.
Alternatively, described browser comprises the step that described caption information shows in browser page: browser receives after the javascript formatted file of subtitle server transmission, utilizes the marquee mode to move the caption information that shows in the described javascript formatted file in browser page.
The communication system that the embodiment of the invention provides, comprise: browser, being used to set up browser page is connected with transfer of data between the subtitle server, carrying out communication with subtitle server is connected to keep described transfer of data, receive caption information, show the caption information that receives by browser page; Subtitle server is safeguarded described transfer of data connection, receives the caption information that the captions delivery system produces, and transmits described caption information by the javascript mode to browser; The captions delivery system is used to produce caption information, transmits described caption information to subtitle server.
The browser that the embodiment of the invention provides comprises: connect and set up the unit, be used for setting up transfer of data with subtitle server and be connected; Connect holding unit, be used for by send or receive heartbeat data with keep with subtitle server between transfer of data be connected; The caption information receiving element is used to receive the caption information that subtitle server sends by the javascript mode; The captions display unit is used for utilizing the marquee mode to move the caption information that shows in the javascript formatted file at browser page.
The subtitle server that the embodiment of the invention provides comprises: connect maintenance unit, be used to safeguard with browser between the transfer of data set up be connected; The second caption information receiving element is used to receive the caption information that the captions delivery system produces; The caption information transmitting element is used for sending the javascript formatted file that comprises described caption information to browser.
As can be seen from the above technical solutions, the embodiment of the invention has the following advantages:
In the embodiment of the invention owing to keep described transfer of data to connect, browser page can't disconnect with subtitle server and being connected, so after browser receives the caption information of subtitle server transmission, browser can extract caption information, and directly on the browsing device net page that current maintenance connects, revise caption information, realize the real-time demonstration of caption information, thereby improved user experience.
Description of drawings
Fig. 1 is the caption presentation method first embodiment flow chart in the embodiment of the invention;
Fig. 2 is caption presentation method embodiment signaling process figure in the embodiment of the invention;
Fig. 3 is a communication system embodiment schematic diagram in the embodiment of the invention;
Fig. 4 is a browser embodiment schematic diagram in the embodiment of the invention;
Fig. 5 is a subtitle server embodiment schematic diagram in the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of caption presentation method and communication system and relevant device, is used for showing in real time that caption information is to improve user experience.
In the embodiment of the invention, the page of WEB browser keeps transfer of data to be connected by transmission heartbeat data and subtitle server, the caption information that subtitle server sends by the javascript mode, browser can extract caption information from the javascript formatted file, and directly on the browsing device net page that current maintenance connects, revise caption information by the marquee mode, realize the real-time roll display of caption information, and do not need to carry out roll display to captions, so improved user experience by refreshing the page.
Below the caption presentation method in the embodiment of the invention is described in detail, see also Fig. 1, caption presentation method first embodiment comprises in the embodiment of the invention:
101, setting up browser page is connected with transfer of data between the subtitle server;
Connecting the example that connects as transfer of data with HTML (Hypertext Markup Language) (HTTP, Hyper Text Transfer Protocol) in the present embodiment and describe, be understandable that, can be that other transfer of data connects equally, and for example TCP connects;
Setting up the HTTP step of connecting is specifically as follows:
Browser sends the HTTP that comprises browser transmission property information to captions and connects the request of foundation;
Subtitle server is carried out data transfer negotiation according to browser transmission property information and subtitle server transmission property information and browser;
Subtitle server is fed back the HTTP connection establishment response to finish the HTTP establishment of connection according to negotiation result to browser.
Be understandable that can initiate the HTTP establishment of connection by subtitle server equally, concrete steps are:
Subtitle server sends the HTTP that comprises subtitle server transmission property information to browser and connects the request of foundation;
Browser carries out data transfer negotiation according to subtitle server transmission property information and browser transmission property information and subtitle server;
Browser feeds back the HTTP connection establishment response to finish the HTTP establishment of connection according to negotiation result to subtitle server.
The mode that may also have other in concrete implementation procedure is connected with transfer of data between the subtitle server in order to set up browser page, concrete grammar is not limited herein.
In addition, data transfer negotiation mainly is that the transmission property parameters such as data transmission format that adopt between browser and the subtitle server are held consultation, be understandable that, if browser and the pre-specified transmission property separately of subtitle server then can not carry out data transfer negotiation in the process of setting up the HTTP connection.
102, the transfer of data that keeps setting up by the transmission heartbeat data connects;
After HTTP connect to set up, roll display that can be real-time when receiving caption information after making, so need to keep the HTTP of current foundation to connect, concrete mode can for:
Browser sends the heartbeat data packets that comprises heartbeat data according to the time interval of presetting at preset time to subtitle server;
Subtitle server judges that the packet that receives is a heartbeat data packets, then to browser feedback heartbeat response data packet.
Concrete, can take following two kinds of means to realize keeping HTTP to connect:
A, heartbeat data is carried in the page:
Browser and subtitle server are carried out the timing communication, the promptly mutual new WEB page (can be the transparent WEB page or the empty WEB page), include the heartbeat data that is used to keep the HTTP connection in the WEB page of this moment, the size of heartbeat data is set, and make the size of population of this page remain a bigger numerical value, concrete numerical basis situation and deciding, to make that in a word data can not be sent completely within the predetermined time, in http protocol, data are not sent completely, link can not disconnect, and can combine the maintenance that realizes that HTTP is connected with the transmission heartbeat data like this;
B, directly transmit heartbeat data packets:
Directly transmit heartbeat data packets between browser and the subtitle server, promptly do not need to use the new WEB page, this moment need heartbeat data packets size be set to a bigger numerical value, calculate needed in the ideal case time A of heartbeat data packets of transmission according to bandwidth situation, transmission B blanking time that heartbeat data packets is set simultaneously is less than A, then can make HTTP in connecting transfer of data be arranged all the time, thereby keep this HTTP to connect, in addition, for reducing the influence of heartbeat data packets to the general data transmission, the transmission priority that heartbeat data packets can be set is minimum under this kind scheme.
Above-mentioned implementation can be decided according to concrete application.
103, subtitle server receives the caption information that the captions delivery system sends;
After the demand generation caption information of captions delivery system according to the user, send the caption information that produces to subtitle server.
In the present embodiment, after HTTP connection foundation was finished, subtitle server can be monitored to judge whether it produces caption information the captions delivery system.
Communication between subtitle server and the captions delivery system is specially:
When the captions delivery system produced new caption information, the captions delivery system sent the captions issue request message that comprises described new caption information to subtitle server;
Subtitle server is to captions delivery system feedback captions issue response message.
104, send caption information by the javascript mode to browser;
Subtitle server receives after the caption information of captions delivery system issue, obtains the current browser information that keeps transfer of data to be connected with subtitle server;
Address according to the corresponding browser of browser information inquiry;
To send the javascript formatted file that comprise the caption information that receives from the captions delivery system to the browser of correspondence according to the address of browser.
Be that subtitle server will be encapsulated as the file of javascript form from the caption information that the captions delivery system receives, the file of the javascript form that forms be sent to the browser page of browser correspondence.
105, at browser page caption information is carried out roll display.
Browser receives after the file of javascript form, therefrom extract caption information, directly be presented in the current browser page by the marquee mode, the marquee mark can be realized moving of literal, because current browser page still keeps HTTP to be connected with subtitle server, so the caption information that comprises in the javascript file can directly be realized roll display in current browser page, and do not need to refresh once more browser page, so realized that real-time roll display caption information is to improve user experience.
Signaling process to caption presentation method in the embodiment of the invention is introduced below, sees also Fig. 2, and caption presentation method embodiment signaling process comprises in the embodiment of the invention:
201, browser sends the transfer of data connection to subtitle server and sets up request;
Connecting the example that connects as transfer of data with HTTP in the present embodiment and describe, be understandable that, can be that other transfer of data connects equally, and for example TCP connects.
In the present embodiment, transfer of data connects in the request of foundation and includes browser transmission property information, and concrete transmission property information comprises the information such as data format that transmission is adopted;
202, subtitle server and browser carry out the transfer of data connection negotiation;
Subtitle server is carried out data transfer negotiation according to browser transmission property information and subtitle server transmission property information and browser.
Consulting mainly is to hold consultation at the transmission property parameters such as data transmission format that adopt between browser and the subtitle server, to reach consistent.
203, subtitle server feedback data transmission connection establishment response;
Subtitle server is fed back the HTTP connection establishment response to finish the HTTP establishment of connection according to negotiation result to browser.
204, browser sends heartbeat data packets to subtitle server;
After the HTTP connection was set up and finished, browser sent the heartbeat data packets that comprises heartbeat data to subtitle server, and concrete heartbeat data can be that some contents are sky, or only contains the data that are useful on the identification data classification information.
205, subtitle server feedback heartbeat data packets receives response;
Subtitle server receives response to browser feedback heartbeat data packets after receiving heartbeat data packets, connects to keep current HTTP.
Other maintenance HTTP ways of connecting can also repeat no more as the described situation of embodiment herein.
206, the captions delivery system produces caption information according to user's request;
207, the captions delivery system sends the caption information that produces to subtitle server;
208, subtitle server encapsulates caption information;
Subtitle server encapsulates caption information after receiving the caption information of captions delivery system issue, forms the file of javascript form.
209, subtitle server sends the file of the javascript form that forms to browser;
Subtitle server connects the file of the browser transmission javascript form of the browser page correspondence that connects to current maintenance by HTTP.
210, the browser utilization is carried out roll display to caption information.
Browser receives after the file of javascript form, therefrom extract caption information, directly be presented in the current browser page by the marquee mode, the marquee mark can be realized moving of literal, because current browser page still keeps HTTP to be connected with subtitle server, so the caption information that comprises in the javascript file can directly be realized roll display in current browser page, and do not need to refresh once more browser page, so realized that real-time roll display caption information is to improve user experience.
See also Fig. 3, communication system embodiment comprises in the embodiment of the invention:
In the present embodiment, the subtitle server 302 performed operations that connection is safeguarded to transfer of data can be regarded as to browser 301 feedback heartbeat datas responses.
See also Fig. 4, consult Fig. 3 in the lump, browser embodiment comprises in the embodiment of the invention:
Connect and set up unit 401, be used for setting up transfer of data and be connected with subtitle server 302;
Connect holding unit 402, be used for by send or receive heartbeat data with keep with subtitle server 302 between transfer of data be connected;
Caption information receiving element 403 is used to receive the caption information that subtitle server 302 sends by the javascript mode;
Captions display unit 404 is used for utilizing the marquee mode to move the caption information that shows in the javascript formatted file at browser page.
See also Fig. 5, consult Fig. 3 in the lump, subtitle server embodiment comprises in the embodiment of the invention:
The second caption information receiving element 502 is used to receive the caption information that captions delivery system 303 produces;
Caption information transmitting element 503 is used for sending the javascript formatted file that comprises caption information to browser 301.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises the steps: to set up browser page and is connected with transfer of data between the subtitle server when carrying out; Browser carries out communication with subtitle server and is connected to keep described transfer of data; Subtitle server sends caption information to browser; Browser shows described caption information in browser page.
The above-mentioned storage medium of mentioning can be a read-only memory, disk or CD etc.
More than a kind of caption presentation method provided by the present invention and communication system and relevant device are described in detail, for one of ordinary skill in the art, thought according to the embodiment of the invention, part in specific embodiments and applications all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (9)
1. a caption presentation method is characterized in that, comprising:
Setting up browser page is connected with transfer of data between the subtitle server;
Browser sends the heartbeat data packets that comprises heartbeat data and connects to keep described transfer of data to subtitle server at preset time according to the time interval of presetting, the transmission time of described heartbeat data packets is greater than the described time interval of presetting;
Subtitle server sends caption information to browser;
Browser upgrades to show described caption information immediately the captions that showing according to described caption information at browser page.
2. method according to claim 1 is characterized in that, described transfer of data is connected to HTML (Hypertext Markup Language) and connects;
The described transfer of data step of connecting of setting up between browser page and the subtitle server comprises:
Browser sends the HTML (Hypertext Markup Language) that comprises browser transmission property information to subtitle server and connects the request of foundation;
Subtitle server is carried out data transfer negotiation according to described browser transmission property information and subtitle server transmission property information and described browser;
Subtitle server is fed back the HTML (Hypertext Markup Language) connection establishment response according to negotiation result to described browser;
Or
Subtitle server sends the HTML (Hypertext Markup Language) that comprises subtitle server transmission property information to browser and connects the request of foundation;
Browser carries out data transfer negotiation according to described subtitle server transmission property information and browser transmission property information and described subtitle server;
Browser feeds back the HTML (Hypertext Markup Language) connection establishment response according to negotiation result to described subtitle server.
3. method according to claim 2 is characterized in that, described browser comprised after subtitle server sends the step of the heartbeat data packets comprise heartbeat data at preset time according to the time interval of presetting:
Subtitle server judges that the packet that receives is a heartbeat data packets, then to browser feedback heartbeat response data packet.
4. according to claim 2 or 3 described methods, it is characterized in that described subtitle server comprises to the step that browser sends caption information before:
Subtitle server receives the caption information that the captions delivery system sends.
5. method according to claim 4 is characterized in that, the step that described subtitle server receives the caption information of captions delivery system transmission comprises:
When the captions delivery system produced new caption information, the captions delivery system sent the captions issue request message that comprises described new caption information to subtitle server;
Subtitle server is to captions delivery system feedback captions issue response message.
6. method according to claim 5 is characterized in that, described subtitle server comprises to the step that browser sends described caption information:
Subtitle server is obtained the current browser information that keeps transfer of data to be connected with subtitle server;
Address according to the corresponding browser of described browser information inquiry;
To send the javascript formatted file that comprise the caption information that receives from the captions delivery system to the browser of correspondence according to the address of described browser.
7. method according to claim 6 is characterized in that, described browser comprises the step that the captions that showing upgrade to show described caption information immediately according to described caption information at browser page:
Browser receives after the javascript formatted file of subtitle server transmission, utilizes literal to move the marquee mode and move the caption information that shows in the described javascript formatted file in browser page.
8. a communication system is characterized in that, comprising:
Browser, being used to set up browser page is connected with transfer of data between the subtitle server, sending the heartbeat data packets that comprises heartbeat data to subtitle server at preset time according to the time interval of presetting connects to keep described transfer of data, the transmission time of described heartbeat data packets is greater than the described time interval of presetting, receive caption information, according to described caption information the captions that showing are upgraded to show described caption information immediately at browser page;
Subtitle server is safeguarded described transfer of data connection, receives the caption information that the captions delivery system produces, and transmits described caption information by the javascript mode to browser;
The captions delivery system is used to produce caption information, transmits described caption information to subtitle server.
9. a browser is characterized in that, comprising:
Connect and set up the unit, be used for setting up transfer of data and be connected with subtitle server;
Connect holding unit, be used for sending the heartbeat data packets that comprises heartbeat data to subtitle server at preset time according to the time interval of presetting and connect to keep described transfer of data, the transmission time of described heartbeat data packets is greater than the described time interval of presetting;
The caption information receiving element is used to receive the caption information that subtitle server sends by the javascript mode;
The captions display unit is used to utilize literal to move the marquee mode, according to described caption information the captions that showing is upgraded to show described caption information immediately.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101541739A CN101159739B (en) | 2007-09-19 | 2007-09-19 | Subtitling display process and communication system and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101541739A CN101159739B (en) | 2007-09-19 | 2007-09-19 | Subtitling display process and communication system and related equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101159739A CN101159739A (en) | 2008-04-09 |
CN101159739B true CN101159739B (en) | 2011-07-06 |
Family
ID=39307657
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101541739A Active CN101159739B (en) | 2007-09-19 | 2007-09-19 | Subtitling display process and communication system and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101159739B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102035880B (en) * | 2010-11-02 | 2014-04-30 | 中兴通讯股份有限公司 | Method and device for maintaining connection |
CN102209039B (en) * | 2011-06-27 | 2015-05-06 | 华为数字技术(成都)有限公司 | Method and equipment for transmitting file |
CN102426842B (en) * | 2011-12-15 | 2015-05-20 | 深圳Tcl新技术有限公司 | Lyric display method and terminal based on browser |
CN104850560A (en) * | 2014-02-18 | 2015-08-19 | 北京京东尚科信息技术有限公司 | Method and system for loading business data in webpage in real time |
CN105404458B (en) * | 2014-09-10 | 2021-02-05 | 腾讯科技(深圳)有限公司 | Webpage content updating method and device |
CN108156511B (en) * | 2014-11-03 | 2021-02-19 | 阿里巴巴(中国)有限公司 | Method and system for realizing double-screen or multi-screen splicing display |
CN106484703B (en) * | 2015-08-25 | 2019-09-20 | 北京国双科技有限公司 | The sending method and device of web data |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1956404A (en) * | 2005-10-28 | 2007-05-02 | 国际商业机器公司 | System and method for dynamically updating web pages using messaging-oriented middleware |
-
2007
- 2007-09-19 CN CN2007101541739A patent/CN101159739B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1956404A (en) * | 2005-10-28 | 2007-05-02 | 国际商业机器公司 | System and method for dynamically updating web pages using messaging-oriented middleware |
Also Published As
Publication number | Publication date |
---|---|
CN101159739A (en) | 2008-04-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101159739B (en) | Subtitling display process and communication system and related equipment | |
US9721541B2 (en) | Portable communication device for an advanced display | |
US9571556B2 (en) | Browser kernel adaptation method and browser therefor | |
CN102118419A (en) | Method, device and communication system for transmitting picture information | |
CN103338247A (en) | Power system remote image retrieval method based on Web service mode | |
CN102867007A (en) | Webpage browsing method and device | |
CN103747074B (en) | mobile monitoring system based on Web server | |
CN101707627B (en) | Method and device for presenting page information | |
CN102938788A (en) | Processing method and device of events | |
CN104105007A (en) | Video loading method of mobile terminal, devices and system | |
CN103092834A (en) | Method and client-side device for browsing pictures of web pages | |
CN103516787A (en) | Method, terminal and system for synchronous display | |
KR100846799B1 (en) | A method and system for pushing notifications to networked devices | |
CN103347215B (en) | A kind of multi-screen interaction method and Set Top Box | |
KR20130065777A (en) | Apparatus and method for sharing web contents using inspector script | |
CN104661089A (en) | Terminal desktop display method, terminal desktop display device and terminal | |
CN104735042B (en) | Method, device and system for self-adaptive adjustment of webpage cross-screen transmission | |
CN101668254A (en) | Method for mobile terminal to browse continuous related pictures through network | |
CN102571935B (en) | A kind of method of transfer of data, client, server and system | |
CN102790749A (en) | Method and system for processing data service, WAP (wireless application protocol) gateway and user terminal | |
CN101778122A (en) | Method, device and system for implementing message service | |
CN104601616B (en) | A kind of methods, devices and systems logging in Wireless Application Protocol website | |
CN103312736A (en) | Webpage processing method and system and proxy server | |
CN103297820A (en) | Advertising information processing method | |
JP2008021193A (en) | Information processor, method and computer program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |