[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113377455B - Media component switching method, switching device, storage medium and electronic equipment - Google Patents

Media component switching method, switching device, storage medium and electronic equipment Download PDF

Info

Publication number
CN113377455B
CN113377455B CN202110697235.0A CN202110697235A CN113377455B CN 113377455 B CN113377455 B CN 113377455B CN 202110697235 A CN202110697235 A CN 202110697235A CN 113377455 B CN113377455 B CN 113377455B
Authority
CN
China
Prior art keywords
media
component
switched
media component
switching
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
Application number
CN202110697235.0A
Other languages
Chinese (zh)
Other versions
CN113377455A (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.)
BOE Technology Group Co Ltd
Original Assignee
BOE Technology Group 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 BOE Technology Group Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202110697235.0A priority Critical patent/CN113377455B/en
Publication of CN113377455A publication Critical patent/CN113377455A/en
Application granted granted Critical
Publication of CN113377455B publication Critical patent/CN113377455B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the disclosure provides a switching method and a switching device for media components, a storage medium and electronic equipment, wherein the switching method comprises the following steps: determining a preloaded media file based on the type of the media component to be switched; preloading the media file through a system memory; and displaying the media component to be switched at a preset moment. According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.

Description

Media component switching method, switching device, storage medium and electronic equipment
Technical Field
The disclosure relates to the field of display control, and in particular, to a media component switching method, a media component switching device, a storage medium and an electronic device.
Background
In the existing system of intelligent mobile equipment, for example, the display process of switching common media components such as picture switching pictures, picture switching videos, video switching pictures and the like in an android system often cannot read the media components to be switched in a short time due to larger media components or poor IO performance of the equipment, or the media to be switched cannot be timely rendered on a screen due to poor display performance of the equipment, finally, a visually perceivable flickering phenomenon is generated due to overlong switching interval time, and user experience is poor.
Disclosure of Invention
In view of the above, the embodiments of the present disclosure provide a method, a device, a storage medium, and an electronic device for switching media components, so as to solve the problems in the prior art that the switching interval time of different media components is too long to generate a flicker phenomenon that can be perceived visually and cause poor user experience.
In one aspect, an embodiment of the present disclosure provides a method for switching media components, including the steps of: determining a preloaded media file based on the type of the media component to be switched; preloading the media file through a system memory; and displaying the media component to be switched at a preset moment.
In some embodiments, the determining the preloaded media file based on the type of media component to be switched comprises: when the media component to be switched is a picture component, acquiring the current view size of the current media component; and analyzing the pictures in the picture component according to a preset format based on the current view size to obtain the preloaded media file.
In some embodiments, the determining the preloaded media file based on the type of media component to be switched comprises: when the media component to be switched is a video component, acquiring the current view size of the current media component; judging whether the video component is provided with a cover picture or not; and under the condition of the cover picture, analyzing the cover picture according to a preset format based on the current view size so as to obtain a preloaded media file.
In some embodiments, when the cover picture is not present, the first frame image of the video component is parsed as the cover picture in a predetermined format based on the current view size to obtain a preloaded media file.
In some embodiments, the displaying the media component to be switched at a predetermined time includes: and loading the preloaded picture or the cover picture to a view rendering layer and rendering.
In some embodiments, when the media component to be switched is a video component, displaying the media component to be switched at the predetermined time further includes: loading video data in the video component to a video rendering layer, wherein the video rendering layer is positioned at the lower layer of the view rendering layer; after rendering the cover picture, hiding the cover picture and rendering the video data.
In some embodiments, the predetermined time is a time when the current media component is played.
The embodiment of the disclosure also provides a switching device of the media component, which comprises the following parts: a determination module for determining a preloaded media file based on a type of media component to be switched; the preloading module is used for preloading the media files through a system memory; and the display module is used for displaying the media component to be switched at a preset moment.
The disclosed embodiments also provide a storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of any of the methods described above.
The embodiment of the disclosure further provides an electronic device, at least comprising a memory and a processor, wherein the memory stores a computer program, and the processor is characterized in that when executing the computer program on the memory, the processor realizes the steps of any one of the methods.
According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flow chart of a switching method according to an embodiment of the disclosure;
fig. 2 is a flow chart of a switching method according to an embodiment of the disclosure;
Fig. 3 is a flow chart of a switching method according to an embodiment of the disclosure;
Fig. 4 is a flow chart illustrating a handover method according to an embodiment of the disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the technical solutions of the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present disclosure. It will be apparent that the described embodiments are some, but not all, of the embodiments of the present disclosure. All other embodiments, which can be made by one of ordinary skill in the art without the need for inventive faculty, are within the scope of the present disclosure, based on the described embodiments of the present disclosure.
Unless defined otherwise, technical or scientific terms used in this disclosure should be given the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The terms "first," "second," and the like, as used in this disclosure, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
In order to keep the following description of the embodiments of the present disclosure clear and concise, the present disclosure omits detailed description of known functions and known components.
The first embodiment of the present disclosure provides a method for switching media components, when a user uses an operating system of an intelligent mobile device, playing and switching of a plurality of media components are often required, and particularly, in playing and switching of media components in an android system, a phenomenon that a media component to be switched cannot be read and completed in a short time due to a large media component or poor IO performance of the device, or the media component to be switched cannot be timely rendered on a screen due to poor display performance of the device, and finally, a visually perceptible flicker phenomenon occurs due to overlong switching interval time is often caused.
The switching method according to the embodiment of the present disclosure may implement non-perceptual switching between different media components, for example, using an android system, after a user starts playing media through the android system, first loads and displays a current media component, for example, reads a picture and/or a video from a storage device to play, and after the current media component is played, needs to switch to play a next media component, and by adopting the switching method according to the embodiment of the present disclosure, non-perceptual switching between multiple media components may be implemented, as shown in fig. 1, where the switching method specifically includes the following steps:
s101, determining a preloaded media file based on the type of the media component to be switched.
In this step, preloaded media components are determined based on the type of media component to be switched. Specifically, when a current media component is played, in the case that a next media component to be switched, which needs to be played after the current media component is finished, has been determined in advance, a partial file of the media component to be switched needs to be preloaded through, for example, an android system; since the media component to be switched may be a different type of media component, such as a picture type media component, a video type media component, etc., it is necessary to determine the preloaded media file based on the type of the media component to be switched.
Further, in one embodiment, in the step of determining the preloaded media file based on the type of the media component to be switched in the step S101, as shown in fig. 2, the method specifically includes the following steps:
s201, when the media component to be switched is a picture component, the current view size of the current media component is obtained.
In this step, when the media component to be switched is a picture component, the current view size of the current media component is obtained. In order to realize the switching between the adjacent different media components in the playing sequence, it is necessary to ensure that the content displayed by the current media component to be played and the content displayed by the next media component to be played are consistent in view size as far as possible, so that the system does not consume more resources for adjusting the display size of the different media components. For this purpose, the current view size of the current media component needs to be obtained first, where the representation manner of the view size is not limited, and the current view size may be represented by a resolution form, or may be represented by a form of a proportional relationship between the display size of the current playing component and the full-screen size of the display screen.
S202, analyzing the pictures in the picture component according to a preset format based on the current view size to obtain a preloaded media file.
Since the picture component is composed of the picture file, after the current view size of the current media component is obtained in the step S201, in this step, the picture in the picture component is parsed according to the predetermined format based on the current view size, so as to obtain the preloaded media file. That is, after the playing display size of the current media component that is currently played is obtained, the picture file in the media component to be played is parsed according to the playing display size of the current media component, where the parsing process may include, but is not limited to, size adjustment, format adjustment, file compression, and other operations, so that the picture file in the media component to be played is adjusted to the current view size, for example, by compression, and especially, in the case that the size of the picture file is larger than the current view size, size reduction adjustment is implemented, and then a file in a predetermined format is formed, for example, a file in a Bitmap format is formed so as to be preloaded into the system memory of the android system in the later stage.
In another embodiment, for the step of determining the preloaded media file based on the type of the media component to be switched in the step S101, as shown in fig. 3, the method specifically includes the following steps:
S301, when the media component to be switched is a video component, acquiring the current view size of the current media component.
In this step, when the media component to be switched is a video component, the current view size of the current media component is obtained. In order to realize the switching between the adjacent different media components in the playing sequence, it is necessary to ensure that the content displayed by the current media component to be played and the content displayed by the next media component to be played are consistent in view size as far as possible, so that the system does not consume more resources for adjusting the display size of the different media components. For this purpose, the current view size of the current media component needs to be obtained first, where the representation manner of the view size is not limited, and the current view size may be represented by a resolution form, or may be represented by a form of a proportional relationship between the display size of the current playing component and the full-screen size of the display screen.
S302, judging whether the video component has a cover picture or not.
Since the video component is composed of continuous frame images, after the current view size of the current media component is obtained in the above step S302, in this step, it is determined whether the video component has a cover picture. Because the video component needs to load more system resources when rendering on the display screen relative to the picture component, whether the video component has a cover picture or not needs to be judged to preload the cover picture, so that batch loading of the video component is realized, and the resource consumption of a system is further saved.
And S303, when the cover picture is provided, analyzing the cover picture according to a preset format based on the current view size so as to obtain a preloaded media file.
After the current view size of the current media component is obtained in the step S301, and in the case that the video component is judged to have a cover picture in the step S302, in this step, the cover picture in the video component is parsed according to a predetermined format based on the current view size, so as to obtain a preloaded media file. That is, after the playing display size of the current media component that is currently played is obtained, the cover image file in the media component to be played is parsed according to the playing display size of the current media component, where the parsing process may include, but is not limited to, size adjustment, format adjustment, file compression, and other operations, so that the cover image file in the media component to be played is adjusted to the current view size, for example, by compression, and especially, in the case that the size of the cover image file is larger than the current view size, size reduction adjustment is implemented, and then a file in a predetermined format, for example, a file in a Bitmap format is formed so as to be preloaded into the system memory of the android system in a later period.
Further, when the video component does not have the cover picture, analyzing a first frame image of the video component according to a preset format based on the current view size to obtain a preloaded media file as the cover picture.
Specifically, since the video component is composed of continuous frame images, in order to load part of the file of the media component to be switched in the video class in advance, the first frame image of the media component to be switched, that is, the video component, is analyzed, the obtained first frame image is used as a cover image, and is preloaded into a system memory of the android system in a Bitmap format, for example, according to the above manner.
S102, preloading the media file through a system memory.
After the preloaded media file is determined based on the type of the media component to be switched through the above-described step S101, the determined media file is preloaded through, for example, a system memory of an android system in this step. When the media component to be switched is a picture component, the picture type resource in the media component to be switched is preloaded into a system memory to shorten the overall loading time of the media component to be switched of the picture type, so that the switching effect of the play of the media component to be switched of the picture type is improved; when the media component to be switched is a video component, the cover resource in the media component to be switched is preloaded so as to shorten the time for switching to the media component to be switched of the video class, and the switching effect of the media component entering the video class is improved.
And S103, displaying the media component to be switched at a preset time.
After the media file is preloaded through the system memory in step S102, in this step, the media component to be switched is displayed at a predetermined time and the current media component is hidden.
In particular, the predetermined time may be a time when the current media component is played, so as to facilitate the non-aware switching of the media component, and may be other predetermined times.
In this step, when the media component to be switched is a picture component, it is necessary to wait for the playing of the current media component to be completed, and after the playing of the current media component is completed, it is necessary to switch to the media component to be switched, that is, the picture component to be played, firstly, stopping playing the current media component and hiding the current media component; and quickly loading the preloaded picture files from the system memory of the android system, for example, onto a view rendering layer to realize rendering display. At this time, the switching of the media component to be switched is completed, and the preloading of the next component is waited for.
When the media component to be switched is a video component, displaying the media component at a preset moment and hiding the current media component, as shown in fig. 4, including the following steps:
S401, loading the cover picture to a view rendering layer.
S402, video data in the video component is loaded to a video rendering layer, and the video rendering layer is positioned at the lower layer of the view rendering layer.
S403, hiding the cover picture and rendering and displaying the video data after rendering and displaying the cover picture.
Specifically, when the media component to be switched is a video component, waiting for the playing of the current media component is completed; after the current media component is played, the media component to be switched, namely the video component to be played, is required to be switched, and firstly, the playing of the current media component is stopped and the current media component is hidden; rapidly loading the preloaded cover picture file from a system memory of an android system, for example, onto a view rendering layer to realize rendering display; at this time, loading video data in the video component is started by a system, wherein the video data is loaded into a video rendering layer positioned at a layer lower than the view rendering layer loading the cover picture; after rendering and displaying the cover picture, waiting for a first frame in the video data to be rendered on a display screen; when the first frame in the video data is monitored to be rendered on a display screen, hiding the view of the cover picture in the video component, and displaying a video rendering layer positioned on the next layer on the top layer of the display screen; in this way, the video component serving as the media component to be played is switched to be completed, and the next component is waited for preloading. Therefore, the display of the cover picture of the video component is synchronously hidden after the real rendering time when the video data of the video component is loaded on the rendering medium is monitored, so that the smooth transition effect of the play switching of the cover picture of the video component and the video data is achieved, and the play switching effect of the video type media component is improved.
According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.
A second embodiment of the present disclosure provides a switching device for media components, which is configured to perform a switching method related to the foregoing embodiment, and take an android system as an example, when a user starts media playing through the android system, first loads and displays a current media component, for example, reads a picture and/or video from a storage device to play, and after the current media component is played, needs to switch to play a next media component. Wherein:
The determining module is used for determining the preloaded media files based on the types of the media components to be switched.
Further, in one embodiment, the determining module specifically includes the following parts:
and the acquisition unit is used for acquiring the current view size of the current media component when the media component to be switched is a picture component.
And the analyzing unit is used for analyzing the pictures in the picture component according to a preset format based on the current view size so as to obtain the preloaded media file.
Since the picture component is composed of the picture file, after the current view size of the current media component is obtained in the step S201, in this step, the picture in the picture component is parsed according to the predetermined format based on the current view size, so as to obtain the preloaded media file. That is, after the playing display size of the current media component that is currently played is obtained, the picture file in the media component to be played is parsed according to the playing display size of the current media component, where the parsing process may include, but is not limited to, size adjustment, format adjustment, file compression, and other operations, so that the picture file in the media component to be played is adjusted to the current view size, for example, by compression, and especially, in the case that the size of the picture file is larger than the current view size, size reduction adjustment is implemented, and then a file in a predetermined format is formed, for example, a file in a Bitmap format is formed so as to be preloaded into the system memory of the android system in the later stage.
In another embodiment, in the determining module, the obtaining unit is further configured to obtain, when the media component to be switched is a video component, a current view size of a current media component; the judging unit is used for judging whether the video component is provided with a cover picture or not; the parsing unit is further configured to parse the cover picture according to a predetermined format based on the current view size, so as to obtain a preloaded media file.
The preloading module is used for preloading the media file through the system memory.
And the display module is used for displaying the media component to be switched at a preset moment.
In one embodiment, the display module includes the following:
and the first loading unit is used for loading the cover picture to the view rendering layer.
And the second loading unit is used for loading the video data in the video component to a video rendering layer, and the video rendering layer is positioned at the lower layer of the view rendering layer.
And the display unit is used for hiding the cover picture and rendering and displaying the video data after rendering and displaying the cover picture.
According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.
A third embodiment of the present disclosure provides a storage medium, which is a computer-readable medium storing a computer program that, when executed by a processor, implements the method provided by any embodiment of the present disclosure, including steps S11 to S13 as follows:
s11, determining a preloaded media file based on the type of the media component to be switched;
s12, preloading the media file through a system memory;
and S13, displaying the media component to be switched at a preset time.
Further, the computer program, when executed by a processor, implements other methods provided by the first embodiment of the present disclosure
According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.
A fourth embodiment of the present disclosure provides an electronic device, at least including a memory, on which a computer program is stored, and a processor, which when executing the computer program on the memory, implements the method provided by any of the embodiments of the present disclosure. Exemplary, the electronic device computer program steps are as follows S21 to S23:
s21, determining a preloaded media file based on the type of the media component to be switched;
s22, preloading the media file through a system memory;
S23, displaying the media component to be switched at a preset time.
Further, the processor also executes the other computer programs in the first embodiment described above
According to the embodiment of the disclosure, the smooth switching of different types of media playing components is realized by preloading and batch rendering of part of files in different media components, so that the non-perception switching of the media playing components is improved, the fluency of media playing can be effectively improved, the switching display effect of media playing is improved, the perception of a user to the switching process is reduced, and the user experience is greatly improved.
The storage medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The storage medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Or the storage medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the passenger computer, partly on the passenger computer, as a stand-alone software package, partly on the passenger computer and partly on a remote computer or entirely on the remote computer or server. In the case of remote computers, the remote computer may be connected to the passenger computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., connected through the internet using an internet service provider).
It should be noted that the storage medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any storage medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a storage medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
While various embodiments of the present disclosure have been described in detail, the present disclosure is not limited to these specific embodiments, and various modifications and embodiments can be made by those skilled in the art on the basis of the concepts of the present disclosure, which modifications and modifications should fall within the scope of the claims of the present disclosure.

Claims (8)

1. A method for switching media components, comprising the steps of:
determining a preloaded media file based on the type of the media component to be switched;
preloading the media file through a system memory;
Displaying the media component to be switched at a preset moment;
the determining the preloaded media file based on the type of the media component to be switched comprises:
When the media component to be switched is a picture component, acquiring the current view size of the current media component;
analyzing the pictures in the picture component according to a preset format based on the current view size to obtain a preloaded media file;
the determining the preloaded media file based on the type of the media component to be switched comprises:
When the media component to be switched is a video component, acquiring the current view size of the current media component;
judging whether the video component is provided with a cover picture or not;
and under the condition of the cover picture, analyzing the cover picture according to a preset format based on the current view size so as to obtain a preloaded media file.
2. The switching method according to claim 1, wherein when the cover picture is not present, the first frame image of the video component is parsed as the cover picture in a predetermined format based on the current view size to obtain a preloaded media file.
3. The switching method according to claim 1 or 2, wherein the displaying the media component to be switched at a predetermined time includes:
And loading the preloaded picture or the cover picture to a view rendering layer and rendering.
4. A switching method according to claim 3, wherein when the media component to be switched is a video component, displaying the media component to be switched at the predetermined timing further comprises:
Loading video data in the video component to a video rendering layer, wherein the video rendering layer is positioned at the lower layer of the view rendering layer;
After rendering the cover picture, hiding the cover picture and rendering the video data.
5. The method of claim 1, wherein the predetermined time is a time when the current media component is played.
6. A switching device for media components employing the switching method for media components according to any one of claims 1 to 5, comprising:
A determination module for determining a preloaded media file based on a type of media component to be switched;
the preloading module is used for preloading the media files through a system memory;
And the display module is used for displaying the media component to be switched at a preset moment.
7. A storage medium storing a computer program, which when executed by a processor performs the steps of the method according to any one of claims 1 to 5.
8. An electronic device comprising at least a memory, a processor, the memory having stored thereon a computer program, characterized in that the processor, when executing the computer program on the memory, implements the steps of the method according to any of claims 1 to 5.
CN202110697235.0A 2021-06-23 2021-06-23 Media component switching method, switching device, storage medium and electronic equipment Active CN113377455B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110697235.0A CN113377455B (en) 2021-06-23 2021-06-23 Media component switching method, switching device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110697235.0A CN113377455B (en) 2021-06-23 2021-06-23 Media component switching method, switching device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN113377455A CN113377455A (en) 2021-09-10
CN113377455B true CN113377455B (en) 2024-08-09

Family

ID=77578598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110697235.0A Active CN113377455B (en) 2021-06-23 2021-06-23 Media component switching method, switching device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113377455B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118042216A (en) * 2022-11-14 2024-05-14 北京字跳网络技术有限公司 Method, device, equipment and storage medium for controlling playing of multimedia file

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN110162394A (en) * 2019-05-31 2019-08-23 北京字节跳动网络技术有限公司 Playback method, device, electronic equipment and the storage medium of media object

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545482B (en) * 2018-05-29 2022-01-07 北京字节跳动网络技术有限公司 Continuous playing method and device during resolution switching and storage medium
CN111935543A (en) * 2020-09-09 2020-11-13 北京搜狐新动力信息技术有限公司 Video playing method and device, electronic equipment and computer storage medium
CN112203111B (en) * 2020-09-29 2023-03-14 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium
CN112367558B (en) * 2020-10-29 2023-12-05 深圳Tcl新技术有限公司 Application playing acceleration method, intelligent playing device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246461A (en) * 2018-11-30 2019-01-18 北京微播视界科技有限公司 Method, applications client and the electronic equipment that video preloads
CN110162394A (en) * 2019-05-31 2019-08-23 北京字节跳动网络技术有限公司 Playback method, device, electronic equipment and the storage medium of media object

Also Published As

Publication number Publication date
CN113377455A (en) 2021-09-10

Similar Documents

Publication Publication Date Title
CN112261226B (en) Horizontal screen interaction method and device, electronic equipment and storage medium
CN111816139B (en) Screen refresh rate switching method and electronic equipment
EP4231650A1 (en) Picture display method and apparatus, and electronic device
CN109640158B (en) Control method, device, equipment and medium for video playing
CN110611847B (en) Video preview method and device, storage medium and electronic equipment
CN110070496A (en) Generation method, device and the hardware device of image special effect
US20220394333A1 (en) Video processing method and apparatus, storage medium, and electronic device
US20240143649A1 (en) Multimedia information processing method, apparatus, electronic device, and medium
US20230421857A1 (en) Video-based information displaying method and apparatus, device and medium
WO2015161809A1 (en) Picture splitting method and apparatus, and picture loading method and apparatus
CN113377455B (en) Media component switching method, switching device, storage medium and electronic equipment
US20230136022A1 (en) Virtual reality display device and control method thereof
CN110134905B (en) Page update display method, device, equipment and storage medium
CN110381365A (en) Video takes out frame method, device and electronic equipment
CN110365918A (en) A kind of information source switching method and equipment
CN111949325B (en) Display method and device and electronic equipment
CN112565835A (en) Video content display method, client and storage medium
CN112465940B (en) Image rendering method and device, electronic equipment and storage medium
CN111221444A (en) Split screen special effect processing method and device, electronic equipment and storage medium
CN110278479B (en) Picture display method and television
CN115775290A (en) Animation frame rate processing method, device, equipment and storage medium
CN113382293A (en) Content display method, device, equipment and computer readable storage medium
CN114327722B (en) Mobile terminal performance optimization method, device, equipment and readable storage medium
CN112866779A (en) Video display method, device, computer equipment and medium
CN115150653B (en) Media content display method and device, electronic equipment and storage medium

Legal Events

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