Abstract:
The invention discloses a video rendering method and a video rendering device, said method comprising registering a trigger operation of a video node after parsing it on a webpage, creating a video component corresponding to said target video node and using said video component to render said target video node only upon detection of said trigger operation oriented towards said target video node. The video rendering method disclosed by this invention can create the corresponding video component according to a user's playing demands and prevent the system resource waste arising from the system's automatic allocation of a video component to the video node on the webpage and the lack of system memory and poor user experience incurred thereby.
Abstract:
The disclosure provides a method for executing extended JavaScript (JS) by using an extended JS interface. The method includes the following steps: inquiring an extension program whether to execute the extended JS at a predetermined occasion when a webpage is loaded, wherein the extension program is loaded when a browser is started up; the browser assembles the extended JS interface according to an open application programming interface (API) when determining that the extended JS is needed to be executed; executing the extended JS by using the extended JS interface. According to the disclosure, browsing mode and layout mode of a browser can be changed dynamically according to the requirement for webpage contents in the form of extension programs, accordingly browsing experience of users is improved.
Abstract:
The present invention provides an image compression method, comprising: determining non-edge portions of an image to be compressed by performing an image edge detection on the image to be compressed; dividing each of non-edge portions into a plurality of connected domains of pixels according to color similarity of the pixels in the non-edge portion, wherein each of the connected domains of pixels is composed of a pixel selected during the division into the connected domains of pixels and the pixels similar in color to and continuously adjacent to the selected pixel; setting the color of each of the connected domains of pixels to be the color of the selected pixel; merging the colors of a plurality of divided connected domains of pixels according to similarity of the colors of the connected domains of pixels; and compressing the image to be compressed by using the merged colors. According to the method, the number of colors used for image compression can be determined according to the characteristics of the image, thus the file size of the compressed image can be effectively reduced with the display effect thereof kept substantially unchanged.
Abstract:
The disclosure provides a method and device a method for detecting and receiving an induction signal induced by a contact of a pointing object with the touch screen, identifying information corresponding to the induction signal in response to receipt of the induction signal, determining a control operation based on the information, and executing the control operation in response to the determination. The control operation comprises at least one of closing a present application interface and displaying a new application interface.
Abstract:
This application discloses a method and an apparatus for lifting video resolution, where an initial magnified signal obtained by performing upsampling on an original signal is decomposed into two parts, that is, a first signal and a second signal by means of forward wavelet transform, where the first signal and the original signal have the same volume, and high-frequency information in the original signal is preserved; then the first signal is enhanced, so that enhancement on the first signal is transferred to the second signal by performing inverse wavelet transform on the second signal and the enhanced first signal, to compensate high frequency loss in the second signal, that is, high-frequency information of an entire final magnified signal obtained through inverse wavelet transform is compensated relative to the initial magnified signal, so that a magnified image corresponding to the final magnified signal can better preserve high-frequency information of an original image, vagueness of the magnified image is reduced or even eliminated, and definition of an entire video is improved.
Abstract:
The present disclosure provides a method, a browser client, and a server for reading web page information by speech. The browser client is installed with a text to speech (TTS) engine. The method includes: sending, by a browser client, a page access request to a server, where the page access request includes a page address and TTS identity information; receiving, by the browser client, response data returned by the server, where the response data includes a TTS standard version number determined by the server according to the TTS identity information, and TTS page data corresponding to the page address; and reading, by the browser client, the TTS page data by speech according to the TTS standard version number by using a TTS engine. In the present disclosure, page information is read by speech by using the TTS engine installed on the browser client. When it is inconvenient for a user to browse a page with eyes, and for users whose eyes have physical problems, the read page information can be listened by using a sense of hearing. Therefore, a convenient hearing-based manner is provided to users to browse a page.
Abstract:
Disclosed are a method, device, and server for producing a video frame set. The method comprises: compiling statistics on the degree of playback intensity of each video frame in a video, selecting at least one “selected video frame” from the video on a basis of the degree of playback intensity, where the degree of playback intensity of the video frame is a ratio between the number of times that the video frame is played back and the number of times the video is played back; and then, splicing the “selected video frames” to form a video frame set. The present embodiment selects the “selected video frames” on a basis of the degree of playback intensity of the video frames in the video, and splices together the video frames so selected to form a video frame set, thus allowing video contents considered to be highlights by a majority of users to be spliced into the video frame set.
Abstract:
A method for data synchronization performed by a server is described. The method comprises receiving, from a client terminal, a synchronization request and information about a synchronization anchor of the client terminal; determining, based on the synchronization anchor of the client terminal and a synchronization anchor of the server, difference data to be synchronized with the client terminal; determining whether a size of the difference data exceeds a threshold; and responsive to determining that a size of the difference data exceeds the threshold, transmitting the difference data to the client terminal in a plurality of difference data segments, wherein a size of each of the plurality of the difference data segments does not exceed the threshold, and wherein each of the plurality of the difference data segments is to be synchronized separately with the client terminal.
Abstract:
Methods and apparatus for compressing webpage text are provided. According to a webpage-opening request of a mobile terminal browser, a current language environment of the terminal is obtained. According to the language environment, a character container corresponding to the language environment is initialized. Requested webpage data are received. The received webpage data are parsed. The webpage data are merged and stored using the corresponding character container. During the initializing of the corresponding character container according to the language environment, it is determined whether the language environment belongs to Latin languages. When the language environment belongs to Latin languages, the character container is initialized to store utf-8 encoded data. Otherwise, the character container is initialized to store utf-16 encoded data. The present disclosure can intelligently determine a storage method according to the language environment, optimize and adapt stored content, and effectively reduce the browser memory occupied by the webpage data.
Abstract:
The present invention discloses a webpage edge content selection method and device, and a mobile terminal. The method includes, upon detecting that a user performs the operation of dragging the cursor part of the two cursors used to define a selection area toward a screen edge of a touch-screen of a mobile terminal, moving the cursor toward the screen edge of the touch-screen; determining whether the distance between the screen edge and the cursor part after the movement of the cursor is within a first predetermined distance; and, when within the first predetermined distance, triggering the content webpage to move in an opposite direction. Further, when the cursor part after the movement of the cursor reaches the content edge of the content webpage, the content webpage is moved further in the opposite direction by a second predetermined distance, bringing the edge of the content closer to the center of the screen than the edge of the screen. Using this method can help the user to more effectively select the text at the screen edge.