CN1466076A - Seaching-browser - Google Patents

Seaching-browser Download PDF

Info

Publication number
CN1466076A
CN1466076A CNA021234892A CN02123489A CN1466076A CN 1466076 A CN1466076 A CN 1466076A CN A021234892 A CNA021234892 A CN A021234892A CN 02123489 A CN02123489 A CN 02123489A CN 1466076 A CN1466076 A CN 1466076A
Authority
CN
China
Prior art keywords
channel
browser
window
function
seaching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA021234892A
Other languages
Chinese (zh)
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNA021234892A priority Critical patent/CN1466076A/en
Publication of CN1466076A publication Critical patent/CN1466076A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention is a kind of browser tool which belongs to communication technology field of network and multi-media, and which is used as an application on computer. Except the normal functions, the browser has some particular functions; 1. there sets four msall windows which is used as fixed channel, browsing channel, amuse channel and broadcasting channel windows except a main window in the main interface, it can carry on browsing, audio and video program watching, working, dialing net phone, transmitting audio and video broadcast at the same time. 2. It adopts one course and multithreads browsing method, the speed is fast and the occupied resource is little. 3. It sets the frequency band allocation automatically.

Description

Seaching-browser
In nearest decades, network advances under the dual promotion of technology and application with surprising rapidity, and network, main frame and user's number is increasing sharp, and network service and network application are more extensive, various.Seaching-browser is exactly to be born in this case, and it is in order to adapt to the requirement in modernized digital technology epoch, also mainly is the demand for more convenient user's browsing multimedia website.
Technical field
Seaching-browser belongs to network and multimedia communication technical field.In this field, this browser is more convenient, and the user browses real-time multimedia web site, more can the automatic setting bandwidth, and to adapt to the bandwidth demand of oneself.
Technical background
Have tangible advantage owing to adopt object-oriented method to develop software, this software will adopt object-oriented method to develop.Because adopt the object-oriented systems model can make the structure of whole software system become more flexible, the structural model of native system will adopt the object-oriented systems model, adopt this visual development instrument of VC++6.0 to encode.The similar IE in seaching-browser interface, but it is a documentor more than, and tool bar adopts the IE style.It has adopted IHtmlDocument2 and IwebBrowser interface at bottom, and a lot of parts realize with COM.Such as the right-click menu that will forbid seaching-browser, can realize with the IDocHostUIHandler::ShowContextMenu method.IDocHostUIHandler also is a very important interface, its function mainly is exactly to control the ability of user interface characteristics, these characteristics refer to menu, toolbar, scroll bar, context menu and the 3D frame in the application program of administering the WebBrowser control, so as long as realize that the IDocHostUIHandler interface is just passable.In addition, also have a lot of interfaces,, can control, make seaching-browser have more dirigibility each element of exploring as IHTMLElement and IHTMLStyle.
Summary of the invention
Seaching-browser is except the standard feature of IE, and it also has the featured function of oneself:
1, the main interface of seaching-browser except the main window of standard, also increased by four other wickets respectively as fixed channel, browse the main window of channel, entertainment channel and broadcasting channel.
2, adopt the browsing mode of a plurality of threads of process, increased in browsing page, have surfing faster and still less take resource.Other browsers then are the modes of opening the new window multi-process, increase along with opening the recto face, and shared internal memory then increases fast.The relative executable file of seaching-browser still less, it is also lower to take resource.Owing to adopted the browsing mode of a plurality of threads of process, can also conveniently switch between each browsing pages simultaneously, switch labels is placed on the status bar, has increased to browse the space, has made things convenient for and has browsed
3, seaching-browser also can be according to user's demand automatic setting allocated bandwidth.
Description of drawings
1, accompanying drawing 1: clearly expressed the main interface that seaching-browser is different from other browsers
2, accompanying drawing 2: on the main interface of seaching-browser a fixing window being arranged is fixed channel, and it is used for playing the information of fixed client.It is fixed that this window has been write in source program, and the end user does not have authority to close it.This window is used for broadcasting the information of fixed client, also is provided with the button of channel on the window, is used for controlling the switch of other channel.On the right of this window, also have several little buttons, they mainly are the image that is used for controlling other Internet, sound and video.When you click the full frame button of this window, just can make current wicket content displayed occupy whole client area, the maximum space of browsing is provided.
3, the right at seaching-browser master interface also has three wickets, and they are respectively to browse channel, entertainment channel and broadcasting channel.These three channel users can control opening and closing at any time.
1) accompanying drawing 3: browse channel and can be used for landing the website, the main browsing area of it and seaching-browser is the same, also can retreat, and advances, stops etc.If want to allow it amplify, click the client area that full frame button will point to seaching-browser.
2) accompanying drawing 4: entertainment channel mainly is to appreciate CD, VCD, DVD or TV programme for the user, can regulate volume, and the control of stereo left and right sound channels has full frame button, can point to the client area of seaching-browser after the click.
3) accompanying drawing 5: the function of broadcasting channel is more powerful, and it is the multimedia broadcasting station of a LAN (Local Area Network), can send image simultaneously, sound and video, and be real-time.According to different requirements of customers, can also build into the video on-demand system of LAN (Local Area Network) etc.
Embodiment
1. the embodiment of the network bandwidth:
The Core Feature of seaching-browser is a network bandwidth allocation, and this function mainly realizes with OnTimer and Socket.
Design a flow sender, want the 2Mb/s flow such as specifying, come combination with OnTimer and Socket, issue webpage, produce the 2Mb/s flow such as specify, my program just sends the 2Mb/s flow to network.Suppose it is to send file, just with regularly, such as 4000Kb/S.Being converted into BYTE is exactly 4000/8KByte/s, and that is timing 100ms just, and it is just passable once to send 4000/80K BYTE.
To consider also in addition whether the other side receives, the each 512KB that sends at most of SOCKET.Concrete grammar is: as long as there are data just to send immediately in the buffer zone.Sent out information, the client return message is given server, and expression receives that server is sent out again!
At first set the global variable of a long, make a timer then, in timer, the function of limited flow is composed to the long variable, by circulation, packet is sent like this, if buffer zone has data, just send immediately, when buffer zone does not have data, just stop the transmission of packet.
Seaching-browser uses UDP to send packet, because sound and video information are real-time information, the necessity that does not have repeating transmission, if it has error in data to have a significant impact, if use TCP, under the relatively poor situation of network condition, perhaps network condition changes under the big situation, and the transmission situation is just very undesirable.
2. in addition in order not influence other program run, explored multi-thread mechanism.Just each window all is a multithreading, and the benefit of doing like this is exactly the time that allows system distribute CPU automatically, allows the user feel that these several windows move simultaneously.
Such as: I will show the html web page file in the dialog box.Will before the initialization of dialog box, open multithreading.
At first define a pointer that points to thread, overall situation function of this pointed is opened multithreading then.
3. the realization of fixed channel:
Stationary window is created in main window, realizes that with the function of the function of the size that changes subwindow, pop-up window and top-level windows and moving window the function that wherein changes subwindow and top-level windows can allow window be put into the position that you want arbitrarily.Implementation procedure is as follows:
It at first is the top-level windows storage allocation, define a pointer that points to main window then, obtain the rectangle size of window by function, obtain the height of title block and the height of frame by system function again, set top margin and the right of window, the window of dynamic creation dialog box, and window is moved to the rightmost of screen and topmost with move function, window is shown just passable with function at last.
If allow the content full screen of stationary window show, just to establish the pointer variable of a stationary window earlier at main window, establish a BOOL variable, when being genuine, this pointer just points to stationary window, otherwise does not just point to stationary window.To also to establish a same variable and function in the client area of browsing area in addition, so just can click and just point to the client area of browser when full frame.
Control Internet sound and Internet image are realized by revising registration table, when closing internet sound and image, need be restarted seaching-browser and just can come into force.Implementation method is as follows:
At first define a registration table handle and rreturn value, define one again and write the type of registration table and the number of characters that writes, and then definition registration table path, if BOOL value, judge when whether the table path of registering is no, just close Internet image and sound, when the table path of registration is yes, just open Internet image and sound
4. browse the realization of channel:
Browse channel and also in main window, create, use a C++ class,, point to the dialog box of browsing channel by its pointer.Implementation method is as follows:
At first in main window initial, create tool bar, generate a member variable earlier, create by Create then, and window is shown with function.If the content of wicket is repainted, the priority that can do a thread is the same with master routine, upgrades just passable constantly.Write the C++ class of a browsing page, in the thread of dialog box, the handle of the pointed browse window by this browsing page is then by circulation new web page more constantly.And in the thread of creating, catch the system of grabbing and repaint message, send out to dialog box and repaint message, browse window just can repaint like this.Explore when opening webpage all at same window if allow, will add a Virtual Function of opening new window in the client area of browser, and open webpage with the Navigate2 function.
5. the implementation of entertainment channel:
A video player that utilizes the ActiveXMovie control to create, this player is supported multiple form, it has general playing function, can play *.mp3, *.wma, *.mdi, *.wav, *.avi, *.dat wait file, can also control volume, left and right acoustic channels etc.The maximum difficult point of this player can be play VCD exactly automatically, and after CD was put in, it just read dish and operation automatically.I have just begun once to have attempted a lot of ways does not all have successfully, how to detect the user and puts into CD and take out CD, and I just understood afterwards.Originally Windows is the on off state that sends current C DROM by message WM_DEVICECHANGE.Its implementation is as follows:
At first to obtain user's CD-ROM drive drive, obtain the CD-ROM drive drive by the GetDriveType function, this function returns the value between 0~6, successively representative: 0-unknown disc, 1-do not exist, 2-moveable magnetic disc, 3-fixed disk, 4-network disk, 5-CD-ROM, 6-internal memory virtual disk.Therefore with a circulation, cycle detection A~Z if type is 5, has just obtained user's CD-ROM drive drive.
Call the on off state that WM_DEVICECHANGE message sends current C DROM then.At first shine upon WM_DEVICECHANGE message, when the WM_DEVICECHANGE incident occurred, program judged that again the additional messages parameter of this message is to judge the event type of CDROM.When but an equipment is inserted into and becomes the time spent, system can send broadcast event DBT_DEVICEARRIVAL, and when an equipment is removed and becomes unavailable, system can send broadcast event DBT_DEVICEREMOVECOMPLETE, can judge according to these two kinds of message whether current CD-ROM drive is being opened.Handle after the above incident, check in the CD-ROM drive to show that as talented ejection dialog box CD-ROM drive ejects or successfully sends into whether by the CDROM video disc.
In addition, the file of VCD video disc all is present under the catalogue of a Mpegav, can check this catalogue after being checked through CD, and program is carried out searching of file with call function Search_Directory.Search each entity (file or sub-directory) under the current directory at first successively, if a certain sub-directory, then enter this sub-directory and recursive call function S earch_Dirctory searches, search finish after, return the upper level catalogue again; If not sub-directory but a certain file judges then whether it is exactly the file that we will search, if then export its complete file path.Like this, the recursive call repeatedly by the Search_Directory function has just found Mpegav, then the file of the inside is play just passable.
6. seaching-browser also has a function the strongest, is exactly its broadcasting channel, and it is not only the broadcasting of LAN (Local Area Network), and can also make is the broadcasting of internet.In this broadcasting channel, you not only can send image, sound to LAN (Local Area Network), can also send video.This broadcasting channel is based on functions such as the transmission of network instant message, information broadcast, file transfer, image transmission, transfer voice, video transmission of TCP/IP.
The implementation method of broadcasting channel:
(1) broadcasting of image realizes:
Because the screen image that we obtained is a bitmap format, so at first must understand bitmap format.
The structure of BMP file (bitmap file): file header, message bit pattern head, color table, bitmap array
1. file header
File header contains the type of bitmap file, size, information such as data structure
2. message bit pattern head message bit pattern head contains the size and the color format of DIB (device-independent bitmap) and device independent bit.
3. the color table color table has defined a color table, is used for illustrating the color of image.It has several list items.
4. bitmap array
Bitmap array is deposited all pixel values of image.As biBitCount=1,4,8 the time, the value of each pixel is the index sequence number of this pixel color in color table in the bitmap array.Pixel value and color table are closely related, and for a same bitmap image, if color table is different, the pixel value in that bitmap array is also with different.
After understanding bitmap format, just can send image information to all machines of LAN (Local Area Network) by UDP.Why to adopt UDP to send? at first UDP is a connectionless communication protocol, and UDP does not guarantee the transmission of authentic data, but can send data to several targets, receives the data from several sources.Briefly, if a main frame sends data to an other main frame, these data will be sent immediately, and no matter whether an other main frame has prepared to receive data.If an other main frame has been received data, whether it can not acknowledge receipt of.
When network interface card all is 1 datagram from all bit positions that network receives the target physical address correspondence, can receive this message and it is uploaded to driver, this mode of operation of network interface card is called broadcast mode, utilize this characteristic, UDP (User Datagram Protoco (UDP)) also provides the ability that sends broadcast data packet to a plurality of destination addresses.Broadcast data is that data are sent from a workstation, as long as all bit positions of the target physical address correspondence of packet all are made as 1, all working station network interface card in the LAN (Local Area Network) all can be received this message and it is uploaded to driver.This feature is applicable to connectionless protocol, because all machines on the Local Area Network all can obtain and handle broadcast.
General network program all is based on the socket socket.The broadcasting of image is based on also that socket realizes:
Implementation procedure is as follows:
1) loads the Winsock storehouse
2) produce a socket with the socket function
3) call the bind function local address and the new socket that produces are linked together, and these information are notified the network driver of lower floors.
4) send broadcast message by calling the setsockopt function
5) open the image file that will send
5) call sendto and the recvfrom bag that transmits and receive data.
6) if do not re-use this socket socket, call closesocket and close this socket, discharge this socket resource.
7) if do not re-use network function, calling WSACleanUp release WinsockDLL is the money of application assigned.When by the Network Transmission bitmap, the capacity by network interface card divides block transfer at every turn.Wherein image is branch block transfer (capacity with network interface card is that 64KB is an example) till the whole transmissions of the data of bitmap finish, such as the bitmap file of a width of cloth 200KB, wherein:
Information header (50KB)
Palette (100KB)
The content of first transmission of color data piece (50KB) be in the information header of 50KB byte and the palette before the content of 14KB.The content of second transmission is the content of 15KB-----78KB in the palette.The content of the 3rd transmission be in the content of 78KB-----100KB in the palette and the color data piece before the content of 42KB.The content of the 4th transmission is the back 8KB of color data piece
After piecemeal transmission was finished, client made up the former state of four contents according to bitmap when receiving image on screen, just can display image
(2) broadcasting of sound realizes:
Its realization principle is such, allow client detect earlier and have or not player, if do not have, just send request to transmitting terminal, at this moment transmitting terminal, again by broadcast mode to not having the player client to send the broadcasting of player sound and the broadcast principles of image all is the same, be based on all that socket realizes, also all send broadcast message with the UDP message bag.The broadcasting implementation of sound is as follows:
1) loads the Winsock storehouse
2) produce a socket with the socket function
3) call the bind function local address and the new socket that produces are linked together, and these information are notified the network driver of lower floors
4) send broadcast message by calling the setsockopt function
5) open wave file
6) check whether open file is audio files
7) be the voice data storage allocation
8) check audio frequency apparatus, return the performance of audio output apparatus
9) check whether audio output apparatus can play the audio file of appointment
10) call sendto and the recvfrom bag that transmits and receive data.
11) close audio output apparatus, releasing memory
12) if do not re-use this socket socket, call closesocket and close this socket, discharge resource
13), call the resource that WSACleanUp discharges application assigned if do not use network function
(3) realization of video broadcasting: the simplest method of transmission of video is exactly that vfw gathers, the socket transmission.But difficulty is a lot of like this, and data volume is big too such as the video window that is 640*480, the sampling of 24 bit images, pass so one seized with terror must 640*480*3 byte this only be video/audio if 8000 samples of 16 sampling per seconds, so the 2*8000 byte can not be transmitted according to the mode of image in network transmission process so.Should be video ' stream ', utilize the compression algorithm enjoy,, when also having resource fewer, adopt the stereo of 8k, when bandwidth is good, can adopt the sound compression method of high-fidelity as mpeg4 etc.Sound of gathering and the best subchannel transmission of video Voice ﹠ Video because video is lost on a small quantity, generally also be can't see, but audio frequency is lost and can be allowed the people feel bad very much.. during audio transmission, because ACM has 1 second restriction, directly with the hysteresis that has 1 second, so wanting burst to transmit relatively good this program mainly is to be used for realizing video capture, spread through the internet after the compression, I change first decompress(ion) at the serial api of client ICDraw.. (), the mode that the back shows has promptly been used ICDecompress series api.Cap series function is used for realizing video compress.As for mpeg-4, be to realize (being exactly those of ic beginning) with vcm, for example ICOpen (..., mmioFOURCC (' d ', ' i ', ' v ', ' x ') ..) be exactly the handle that has obtained the divx-5 compression algorithm, just want effective words in the other transmission course of HIC.:
1, compression
2, mistake compensation
3, bandwidth adapts to
4, cache policy
The implementation of video broadcasting is as follows:
1) loads the Winsock storehouse
2) produce a socket with the socket function
3) call the bind function local address and the new socket that produces are linked together, and these information are notified the network driver of lower floors
4) send broadcast message by calling the setsockopt function
5) initialization VFW storehouse
6) create the seizure window
7) create the video capture window
8) video captured stream is compressed processing
9) call sendto and the recvfrom bag that transmits and receive data
10) discharge corresponding video resource
11) close the video capture window
12) if do not re-use this socket socket, call closesocket and close this socket, discharge this socket resource
13) if do not re-use network function, calling WSACleanUp release Winsock DLL is the resource of application assigned

Claims (1)

  1. Seaching-browser is a kind of many forms browser instrument, and it uses in conjunction with computing machine together as application program.Except the function that general browser is provided, many featured functions have also been increased.
    The right that this invention is asked for protection is many forms function of browse; the main interface that is browser is except the main window of standard; also be provided with in addition a plurality of wickets respectively as fixed channel, browse the main window of channel, entertainment channel and broadcasting channel, can carry out online browsing simultaneously, the audio frequency and video program is appreciated, handled official business, dials the networking telephone, sends audio frequency and video broadcasting etc.By the different window channel of click, can realize the conversion of channel easily, the amplification of channel window and dwindle (recovery), the user need not frequent opening and closing (hiding) program, can realize in seaching-browser that fully greatly degree has made things convenient for the user.
CNA021234892A 2002-07-02 2002-07-02 Seaching-browser Pending CN1466076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA021234892A CN1466076A (en) 2002-07-02 2002-07-02 Seaching-browser

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA021234892A CN1466076A (en) 2002-07-02 2002-07-02 Seaching-browser

Publications (1)

Publication Number Publication Date
CN1466076A true CN1466076A (en) 2004-01-07

Family

ID=34142344

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA021234892A Pending CN1466076A (en) 2002-07-02 2002-07-02 Seaching-browser

Country Status (1)

Country Link
CN (1) CN1466076A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752979B (en) * 2004-09-23 2010-06-23 捷讯研究有限公司 Web browser graphical user interface and method for implementing same
CN101390103B (en) * 2006-02-28 2010-11-03 微软公司 Customizable service provider user interface
CN101055586B (en) * 2006-04-11 2011-07-20 国际商业机器公司 Method for selectively starting small window and system for displaying Web content
CN101167122B (en) * 2005-04-29 2012-09-12 微软公司 Method for displaying program window
CN102843369A (en) * 2012-08-24 2012-12-26 广东宇天科技有限公司 Network access method and system of user interface (UI)
CN103116503A (en) * 2011-11-17 2013-05-22 华为软件技术有限公司 Implement method and implement device of multiple windows
CN103168301A (en) * 2010-08-10 2013-06-19 谷歌公司 Exposing resource capabilities to web applications
CN103197836A (en) * 2013-03-15 2013-07-10 北京小米科技有限责任公司 Interactive method, device and system of multimedia information

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1752979B (en) * 2004-09-23 2010-06-23 捷讯研究有限公司 Web browser graphical user interface and method for implementing same
CN101167122B (en) * 2005-04-29 2012-09-12 微软公司 Method for displaying program window
CN101390103B (en) * 2006-02-28 2010-11-03 微软公司 Customizable service provider user interface
CN101055586B (en) * 2006-04-11 2011-07-20 国际商业机器公司 Method for selectively starting small window and system for displaying Web content
CN103168301A (en) * 2010-08-10 2013-06-19 谷歌公司 Exposing resource capabilities to web applications
CN103116503A (en) * 2011-11-17 2013-05-22 华为软件技术有限公司 Implement method and implement device of multiple windows
CN103116503B (en) * 2011-11-17 2016-12-07 华为软件技术有限公司 The implementation method of a kind of multiwindow and device
CN102843369A (en) * 2012-08-24 2012-12-26 广东宇天科技有限公司 Network access method and system of user interface (UI)
CN103197836A (en) * 2013-03-15 2013-07-10 北京小米科技有限责任公司 Interactive method, device and system of multimedia information
WO2014139257A1 (en) * 2013-03-15 2014-09-18 小米科技有限责任公司 Multimedia information interaction method, device and system
CN103197836B (en) * 2013-03-15 2016-07-06 小米科技有限责任公司 The exchange method of a kind of multimedia messages, Apparatus and system

Similar Documents

Publication Publication Date Title
US11895342B2 (en) Video analysis method and system
CN102439578B (en) Dynamic variable rate media delivery system
US8261205B2 (en) User interface for presenting a list of thumbnail items associated with media items
CN1238800C (en) Internet convolution audio/video server
US7751683B1 (en) Scene change marking for thumbnail extraction
CN108475158A (en) The system and method that can be converted allowed between content item based on gesture is gently swept
CN112291627A (en) Video editing method and device, mobile terminal and storage medium
CN1591291A (en) Apparatus, systems and methods relating to improved user interaction with a computer device
CN103166941A (en) Data sharing method and device
JP2007534279A (en) Systems and methods for using graphics hardware for real time 2D and 3D, single and high definition video effects
CN106658079A (en) Customized expression image generation method and device
CN101076089A (en) Method for displaying captions
CN101031028A (en) TV-set top box for supporting multi-customer use simultaneouslly
CN101056385A (en) Video communication method, video synthesizing processor, terminal and server
CN1893572A (en) Insertion-type media player for use in network television-set top-set-box
CN1491380A (en) Background video player, method for processing moving images on background screen using the same, and computer-readable storage medium for storing program for execution of either of them
CN1466076A (en) Seaching-browser
CN107659850A (en) Media information processing method and device
CN113535063A (en) Live broadcast page switching method, video page switching method, electronic device and storage medium
US8954851B2 (en) Adding video effects for video enabled applications
CN103096170B (en) A kind of distributed live streaming media channel management method
CN102819851A (en) Method for implementing sound pictures by using computer
CN1556609A (en) Mobile robot network control platform device
CN1178144C (en) Method for displaying synchronously content of host on client machine
CN105791964B (en) cross-platform media file playing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication