CN113377455A - Switching method and switching device of media components, storage medium and electronic equipment - Google Patents

Switching method and switching device of media components, storage medium and electronic equipment Download PDF

Info

Publication number
CN113377455A
CN113377455A CN202110697235.0A CN202110697235A CN113377455A CN 113377455 A CN113377455 A CN 113377455A CN 202110697235 A CN202110697235 A CN 202110697235A CN 113377455 A CN113377455 A CN 113377455A
Authority
CN
China
Prior art keywords
media
component
switched
switching
video
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
CN202110697235.0A
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.)
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/CN113377455A/en
Publication of CN113377455A publication Critical patent/CN113377455A/en
Pending legal-status Critical Current

Links

Images

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, a switching device, a storage medium and an electronic device for a media component, 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 assembly to be switched at a preset time. The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.

Description

Switching method and switching device of media components, storage medium and electronic equipment
Technical Field
The present disclosure relates to the field of display control, and in particular, to a method and an apparatus for switching media components, a storage medium, and an electronic device.
Background
In an existing system of an intelligent mobile device, for example, in an android system, a display process of switching between common media components, such as a picture switching picture, a picture switching video, a video switching picture, and the like, is often performed, because the media components are large or the IO performance of the device is poor, the media components to be switched cannot be read in a short time, or because the display performance of the device is poor, the media to be switched cannot be timely rendered on a screen, and finally, a visually perceptible flicker phenomenon is generated due to too long switching interval time, and user experience is poor.
Disclosure of Invention
In view of this, 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 a visually perceivable flicker phenomenon is generated due to an excessively long switching interval between different media components, and user experience is poor.
In one aspect, an embodiment of the present disclosure provides a method for switching a media component, including 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 assembly to be switched at a preset time.
In some embodiments, the determining the preloaded media files based on the type of the media component to be switched includes: 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 assembly according to a preset format based on the current view size so as to obtain a preloaded media file.
In some embodiments, the determining the preloaded media files based on the type of the media component to be switched includes: 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 assembly has a cover picture; and under the condition of having 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 available, the first frame image of the video component is parsed in a predetermined format as the cover picture based on the current view size to obtain a preloaded media file.
In some embodiments, the displaying the media component to be switched at the predetermined time includes: and loading the pre-loaded 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 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; and after the cover picture is rendered, hiding the cover picture and rendering the video data.
In some embodiments, the predetermined time is the time when the current media component has finished playing.
The embodiment of the present disclosure further provides a switching device of a media component, which includes the following parts: a determination module for determining a preloaded media file based on the type of the media component to be switched; the preloading module is used for preloading the media file through a system memory; and the display module is used for displaying the media assembly to be switched at the preset moment.
The embodiment of the present disclosure further provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the steps of any one of the methods described above.
An embodiment of the present disclosure further provides an electronic device, which at least includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program on the memory.
The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a handover method according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a handover method according to an embodiment of the disclosure;
fig. 3 is a schematic flow chart of a handover method according to an embodiment of the disclosure;
fig. 4 is a flowchart 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 clear, the technical solutions of the embodiments of the present disclosure will be described below clearly and completely with reference to the accompanying drawings of the embodiments of the present disclosure. It is to be understood that the described embodiments are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the disclosure without any inventive step, are within the scope of protection of the disclosure.
Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
To maintain the following description of the embodiments of the present disclosure clear and concise, a detailed description of known functions and known components have been omitted from the present disclosure.
A first embodiment of the present disclosure provides a media component switching method, where a user often needs to play and switch a plurality of media components when using an operating system of an intelligent mobile device, and especially, in a process of playing and switching the media components in an android system, a phenomenon that a to-be-switched media component cannot be completely read in a short time due to a large media component or poor device IO performance, or the to-be-switched media component cannot be timely rendered on a screen due to poor device display performance, and finally, a visually perceptible flicker phenomenon occurs due to too long switching interval time.
The switching method related to this embodiment can implement the non-perceptual switching between different media components, taking an android system as an example, when a user starts media playing through the android system, first load and display a current media component, for example, read a picture and/or a video from a storage device for playing, and after the current media component is played, switch to playing a next media component is required, and the switching method according to the embodiment of the present disclosure can implement the non-perceptual switching between a plurality of media components, as shown in fig. 1, the switching method specifically includes the following steps:
s101, determining a pre-loaded media file based on the type of the media component to be switched.
In this step, the 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 that needs to be played after the current media component is finished is already predetermined, a part of files of the media component to be switched need to be preloaded through, for example, an android system; since the media component to be switched can be different types of media components such as a photo media component, a video media component, and the like, it is necessary to determine the preloaded media file based on the type of the media component to be switched.
Further, in an embodiment, in the step of determining the preloaded media files based on the type of the media component to be switched in 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, obtaining the current view size of the current media component.
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 switch between different media components adjacent to each other in the playing sequence, it is necessary to ensure that the contents displayed by the current media component currently being played and the content displayed by the media component to be played next to be played are consistent in view size as much as possible, so that the system does not consume more resources for adjusting the display sizes of the different media components. For this reason, the current view size of the current media component needs to be obtained first, and the representation manner of the view size is not limited, for example, the current view size may be represented in a form of resolution, or may be represented in a form of proportional relationship between the display size of the current playing component and the full size of the display screen.
S202, analyzing the pictures in the picture assembly according to a preset format based on the current view size to obtain a preloaded media file.
Since the picture assembly is composed of a picture file, after the current view size of the current media assembly is obtained through the above step S201, in this step, the picture in the picture assembly is parsed according to a predetermined format based on the current view size to obtain a preloaded media file. That is, after the playing display size of the currently played current media component is obtained, the picture file in the to-be-played media component is analyzed according to the playing display size of the currently played current media component, where the analyzing process may include, but is not limited to, a plurality of operations such as size adjustment, format adjustment, file compression, and the like, so as to adjust the picture file in the to-be-played media component to the current view size, for example, in a compression manner, especially, when 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 a system memory of an android system at a later stage.
In another embodiment, in the step of determining the preloaded media files based on the type of the media component to be switched in 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, the current view size of the current media component is obtained.
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 switch between different media components adjacent to each other in the playing sequence, it is necessary to ensure that the contents displayed by the current media component currently being played and the content displayed by the media component to be played next to be played are consistent in view size as much as possible, so that the system does not consume more resources for adjusting the display sizes of the different media components. For this reason, the current view size of the current media component needs to be obtained first, and the representation manner of the view size is not limited, for example, the current view size may be represented in a form of resolution, or may be represented in a form of proportional relationship between the display size of the current playing component and the full size of the display screen.
S302, judging whether the video assembly has a cover picture.
Since the video component is composed of consecutive frame images, after the current view size of the current media component is acquired through the above step S302, in this step, it is determined whether the video component has a cover picture. Compared with the picture assembly, the video assembly needs to load more system resources when being rendered on a display screen, so that whether the video assembly has a cover picture or not needs to be judged to preload the cover picture, batch loading of the video assembly is achieved, and resource consumption of the system is further saved.
S303, when the cover picture exists, analyzing the cover picture according to a preset format based on the current view size to obtain a preloaded media file.
After the current view size of the current media component is obtained in step S301, and if it is determined that the video component has a cover picture in step S302, in this step, the cover picture in the video component is parsed in 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 currently playing current media component is obtained, the cover picture file in the to-be-played media component is parsed according to the playing display size of the currently playing current media component, where the parsing process may include, but is not limited to, a plurality of operations such as size adjustment, format adjustment, file compression, and the like, so as to adjust the cover picture file in the to-be-played media component to the current view size, for example, in a compression manner, especially, when the size of the cover 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 a system memory of an android system at a later stage.
Further, under the condition that the video assembly does not have the cover picture, the first frame image of the video assembly is analyzed according to a preset format to be used as the cover picture based on the current view size, so that a preloaded media file is obtained.
Specifically, since the video component is composed of continuous frame images, in order to load a part of file of the media component to be switched of 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 picture, and the cover picture is preloaded into a system memory of the android system in a Bitmap format, for example, by referring to the above manner.
And S102, preloading the media file through a system memory.
After determining the pre-loaded media file based on the type of the media component to be switched in step S101, in this step, the determined media file is pre-loaded through a system memory of, for example, an android system. When the media component to be switched is a picture component, the overall loading time of the media component to be switched of pictures is shortened by preloading picture resources in the media component to be switched into a system memory, and the switching effect of playing the media component to be switched of the pictures is improved; when the media component to be switched is a video component, the time for switching to the video media component to be switched is shortened by preloading cover resources in the media component to be switched, and the switching effect of entering the video media component is improved.
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.
Specifically, the predetermined time may be a time when the current media component is played, so as to facilitate the unaware switching of the media components, but may also 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 completion of the playing of the current media component, 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, and first, the playing of the current media component is stopped and the current media component is hidden; and quickly loading the pre-loaded picture files from a system memory such as an android system to 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.
When the media component to be switched is a video component, displaying the media component at the predetermined time 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, loading the video data in the video assembly to a video rendering layer, wherein the video rendering layer is positioned at the lower layer of the view rendering layer.
S403, after the cover picture is rendered and displayed, the cover picture is hidden and the video data is rendered and displayed.
Specifically, when the media component to be switched is a video component, it is necessary to wait for the completion of the playing of the current media component; after the current media component is played, switching to the media component to be switched, namely the video component to be played, firstly, stopping playing the current media component and hiding the current media component; quickly loading a pre-loaded cover picture file from a system memory of an android system to a view rendering layer to realize rendering display; at the moment, starting to load the video data in the video assembly through a system, wherein the video data is loaded into a video rendering layer positioned at the next layer of the view rendering layer where the cover picture is loaded; after the cover picture is rendered and displayed, waiting for a first frame in the video data to be rendered on a display screen; hiding the view of the cover picture in the video assembly after monitoring that the first frame in the video data is rendered on a display screen, and displaying a video rendering layer positioned at the next layer on the top layer of the display screen; thus, the switching of the video component as the media component to be played is completed, and the preloading of the next component is waited. Therefore, the display of the cover picture of the video assembly is synchronously hidden after the video data of the video assembly is monitored to be loaded to the real rendering opportunity on the rendering medium, so that the smooth transition effect of the play switching of the cover picture and the video data of the video assembly is achieved, and the play switching effect of the video media assembly is improved.
The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.
A second embodiment of the present disclosure provides a switching device of a media component, which is used for executing the switching method related to the foregoing embodiments, and is capable of implementing an imperceptible switching between different media components, taking an android system as an example, when a user starts media playing through the android system, the user first loads and displays a current media component, for example, reads a picture and/or a video from a storage device to play, and needs to switch to playing a next media component after playing the current media component is completed. Wherein:
the determining module is used for determining the pre-loaded media file based on the type of the media component to be switched.
Further, in an embodiment, the determining module specifically includes the following components:
and the obtaining unit is used for obtaining the current view size of the current media assembly when the media assembly to be switched is the image assembly.
And the analysis unit is used for analyzing the pictures in the picture assembly according to a preset format based on the current view size so as to obtain a preloaded media file.
Since the picture assembly is composed of a picture file, after the current view size of the current media assembly is obtained through the above step S201, in this step, the picture in the picture assembly is parsed according to a predetermined format based on the current view size to obtain a preloaded media file. That is, after the playing display size of the currently played current media component is obtained, the picture file in the to-be-played media component is analyzed according to the playing display size of the currently played current media component, where the analyzing process may include, but is not limited to, a plurality of operations such as size adjustment, format adjustment, file compression, and the like, so as to adjust the picture file in the to-be-played media component to the current view size, for example, in a compression manner, especially, when 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 a system memory of an android system at a later stage.
In another embodiment, in the determining module, the obtaining unit is further configured to obtain a current view size of a current media component when the media component to be switched is a video component; the judging unit is used for judging whether the video assembly has a cover picture; the analysis unit is further used for analyzing the cover picture according to a preset format based on the current view size under the condition that the cover picture is available so as to obtain a preloaded media file.
The preloading module is used for preloading the media file through a system memory.
The display module is used for displaying the media component to be switched at a preset time.
In one embodiment, the display module includes the following:
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 assembly 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.
The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.
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 in any of the embodiments of the present disclosure, including the following steps S11 to S13:
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 the preset time.
Further, the computer program realizes the other methods provided by the first embodiment of the disclosure when being executed by the processor
The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.
A fourth embodiment of the present disclosure provides an electronic device, which at least includes a memory and a processor, where the memory stores a computer program thereon, and the processor implements the method provided in any embodiment of the present disclosure when executing the computer program on the memory. Illustratively, the electronic device computer program steps are as follows S21-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;
and S23, displaying the media component to be switched at the preset time.
Further, the processor also executes other computer programs in the first embodiment described above
The embodiment of the disclosure realizes smooth switching of different media playing components by preloading and batch rendering of partial files in different media components, improves non-perception switching of the media playing components, can effectively improve fluency of media playing, improves switching display effect of media playing, reduces perception of a user to a switching process, and greatly improves user experience.
The storage medium may be included in the electronic device; or may exist separately without being assembled 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 the internet protocol addresses from the at least two internet protocol addresses and returns the internet protocol addresses; receiving an internet protocol address returned by the node evaluation equipment; wherein the obtained internet protocol address indicates an edge node in the content distribution network.
Alternatively, 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 for the present disclosure may be written in any combination of 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 a remote computer, the remote computer may be connected to the passenger computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be noted that the storage media described above in this disclosure can be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any storage medium 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, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above 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: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), 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. A 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 exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.
While the present disclosure has been described in detail with reference to the embodiments, the present disclosure is not limited to the specific embodiments, and those skilled in the art can make various modifications and alterations based on the concept of the present disclosure, and the modifications and alterations should fall within the scope of the present disclosure as claimed.

Claims (10)

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;
and displaying the media assembly to be switched at a preset time.
2. The switching method according to claim 1, wherein the determining the preloaded media files 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;
and analyzing the pictures in the picture assembly according to a preset format based on the current view size so as to obtain a preloaded media file.
3. The switching method according to claim 1, wherein the determining the preloaded media files 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 assembly has a cover picture;
and under the condition of having 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.
4. The switching method according to claim 3, wherein in the case of not having the cover picture, the first frame image of the video component is parsed in a predetermined format as the cover picture based on the current view size to obtain a preloaded media file.
5. The switching method according to claim 3 or 4, wherein the displaying the media components to be switched at a predetermined time comprises:
and loading the pre-loaded picture or the cover picture to a view rendering layer and rendering.
6. The switching method according to claim 5, wherein when the media component to be switched is a video component, displaying the media component to be switched at the predetermined time 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;
and after the cover picture is rendered, hiding the cover picture and rendering the video data.
7. The switching method according to claim 1, wherein the predetermined time is a time when the current media component is played.
8. A switching device of a media component, comprising:
a determination module for determining a preloaded media file based on the type of the media component to be switched;
the preloading module is used for preloading the media file through a system memory;
and the display module is used for displaying the media assembly to be switched at the preset moment.
9. A storage medium storing a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
10. An electronic device comprising at least a memory, a processor, the memory having a computer program stored thereon, wherein the processor, when executing the computer program on the memory, is adapted to carry out the steps of the method of any of claims 1 to 7.
CN202110697235.0A 2021-06-23 2021-06-23 Switching method and switching device of media components, storage medium and electronic equipment Pending CN113377455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110697235.0A CN113377455A (en) 2021-06-23 2021-06-23 Switching method and switching device of media components, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110697235.0A CN113377455A (en) 2021-06-23 2021-06-23 Switching method and switching device of media components, storage medium and electronic equipment

Publications (1)

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

Family

ID=77578598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110697235.0A Pending CN113377455A (en) 2021-06-23 2021-06-23 Switching method and switching device of media components, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN113377455A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104267A1 (en) * 2022-11-14 2024-05-23 北京字跳网络技术有限公司 Playback control method and apparatus for multimedia file, and device and storage medium

Citations (6)

* 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
CN110545482A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 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
CN112203111A (en) * 2020-09-29 2021-01-08 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium
CN112367558A (en) * 2020-10-29 2021-02-12 深圳Tcl新技术有限公司 Application start-up acceleration method, intelligent playing device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110545482A (en) * 2018-05-29 2019-12-06 北京字节跳动网络技术有限公司 Continuous playing method and device during resolution switching and storage medium
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
CN111935543A (en) * 2020-09-09 2020-11-13 北京搜狐新动力信息技术有限公司 Video playing method and device, electronic equipment and computer storage medium
CN112203111A (en) * 2020-09-29 2021-01-08 北京达佳互联信息技术有限公司 Multimedia resource preloading method and device, electronic equipment and storage medium
CN112367558A (en) * 2020-10-29 2021-02-12 深圳Tcl新技术有限公司 Application start-up acceleration method, intelligent playing device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024104267A1 (en) * 2022-11-14 2024-05-23 北京字跳网络技术有限公司 Playback control method and apparatus for multimedia file, and device and storage medium

Similar Documents

Publication Publication Date Title
CN109194960B (en) Image frame rendering method and device and electronic equipment
CN112261226B (en) Horizontal screen interaction method and device, electronic equipment and storage medium
CN109614194B (en) List interface display method, device, equipment and storage medium
CN110691282B (en) Video processing method and device, storage medium and electronic equipment
US11032683B2 (en) Method and apparatus for publishing cloud resource
US20200258195A1 (en) Image Processing Method and Device
CN111291244A (en) House resource information display method, device, terminal and storage medium
CN110611847B (en) Video preview method and device, storage medium and electronic equipment
CN110647702A (en) Picture preloading method and device, electronic equipment and readable medium
CN113377455A (en) Switching method and switching device of media components, storage medium and electronic equipment
CN113535105B (en) Media file processing method, device, equipment, readable storage medium and product
CN112565870B (en) Content caching and reading method, client and storage medium
CN110134905B (en) Page update display method, device, equipment and storage medium
CN112465940A (en) Image rendering method and device, electronic equipment and storage medium
CN110147283B (en) Display content switching display method, device, equipment and medium
CN109976857B (en) Display control method and device of terminal interface, storage medium and electronic equipment
CN116048371A (en) Page component switching method, device, equipment, medium and product in application program
CN112565835A (en) Video content display method, client and storage medium
CN113507632B (en) Video processing method, device, terminal and storage medium
CN110807114B (en) Method, device, terminal and storage medium for picture display
CN114090938A (en) Page processing method and equipment
CN113918849A (en) Page display method, device and system, electronic equipment and storage medium
CN111949325B (en) Display method and device and electronic equipment
CN112306339B (en) Method and apparatus for displaying image
CN112565859B (en) Video content display method, client 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