CN108810631B - Method and device for playing startup advertisement, electronic equipment and computer storage medium - Google Patents

Method and device for playing startup advertisement, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN108810631B
CN108810631B CN201810652962.3A CN201810652962A CN108810631B CN 108810631 B CN108810631 B CN 108810631B CN 201810652962 A CN201810652962 A CN 201810652962A CN 108810631 B CN108810631 B CN 108810631B
Authority
CN
China
Prior art keywords
advertisement
film source
advertisement film
memory space
target memory
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
CN201810652962.3A
Other languages
Chinese (zh)
Other versions
CN108810631A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual Technology 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201810652962.3A priority Critical patent/CN108810631B/en
Publication of CN108810631A publication Critical patent/CN108810631A/en
Application granted granted Critical
Publication of CN108810631B publication Critical patent/CN108810631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4432Powering on the client, e.g. bootstrap loading using setup parameters being stored locally or received from the server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26291Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists for providing content or additional data updates, e.g. updating software modules, stored at the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/266Channel or content management, e.g. generation and management of keys and entitlement messages in a conditional access system, merging a VOD unicast channel into a multicast channel
    • H04N21/2668Creating a channel for a dedicated end-user group, e.g. insertion of targeted commercials based on end-user profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/458Scheduling content for creating a personalised stream, e.g. by combining a locally stored advertisement with an incoming stream; Updating operations, e.g. for OS modules ; time-related management operations
    • H04N21/4586Content update operation triggered locally, e.g. by comparing the version of software modules in a DVB carousel to the version stored locally
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/812Monomedia components thereof involving advertisement data

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention discloses a method and a device for playing startup advertisements, electronic equipment and a computer storage medium, wherein the method comprises the following steps: when a starting-up instruction is received, decompressing a starting-up image file, and determining a first advertisement film source in a target memory space, wherein the starting-up image file comprises the first advertisement film source and the address of the target memory space, and the starting-up image file is a backup file of a system state when the electronic equipment is started up; acquiring a second advertisement film source from an advertisement partition of an external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time; replacing the first advertisement film source in the target memory space with the second advertisement film source; and controlling a video player to read the second advertisement film source from the target memory space and play the starting-up advertisement corresponding to the second advertisement film source, thereby realizing the updating of the starting-up advertisement on the basis of ensuring the quick starting-up.

Description

Method and device for playing startup advertisement, electronic equipment and computer storage medium
Technical Field
The embodiment of the invention relates to the technical field of startup advertisements, in particular to a startup advertisement playing method and device, electronic equipment and a computer storage medium.
Background
At present, a startup advertisement of a smart television is played in an Android (Android) startup process, specifically, in the Android startup process, a video player is started, and the video player reads advertisement content from a storage partition into a memory. And then, the video player reads the advertisement content from the memory and plays the advertisement content.
In order to improve the startup speed of the smart television, the snapshot technology is widely applied in the startup process of the smart television. The snapshot technology is that a mirror image file is made before the smart television leaves a factory, the mirror image file is decompressed into a memory in the startup process, the smart television is directly started, and the Android startup time can be saved in the middle process, so that most startup time is saved, and the purpose of quickly starting the smart television is achieved.
However, in the existing smart television adopting the snapshot technology, the starting process spans the Android starting process, so that the starting advertisement cannot be updated.
Disclosure of Invention
The embodiment of the invention provides a method and a device for playing a startup advertisement, electronic equipment and a computer storage medium, and aims to solve the problem that the existing electronic equipment adopting a snapshot technology cannot update the startup advertisement.
In a first aspect, an embodiment of the present invention provides a method for playing a boot advertisement, including:
when a starting-up instruction is received, decompressing a starting-up image file, and determining a first advertisement film source in a target memory space, wherein the starting-up image file comprises the first advertisement film source and the address of the target memory space, and the starting-up image file is a backup file of a system state when the electronic equipment is started up;
acquiring a second advertisement film source from an advertisement partition of an external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time;
replacing the first advertisement film source in the target memory space with the second advertisement film source;
and controlling a video player to read the second advertisement film source from the target memory space and play the starting-up advertisement corresponding to the second advertisement film source.
In a possible implementation manner of the first aspect, before decompressing the boot image file, the method further includes:
and when the boot image file is manufactured, according to the length of the first advertisement film source, configuring a continuous memory address space as the target memory space and setting a flag bit for the target memory space, wherein the flag bit is used for marking that the target memory space is not recycled.
In another possible implementation manner of the first aspect, first header information is stored in the target memory space, where the first header information includes a length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and a first address of the target memory space. (ii) a
In another possible implementation manner of the first aspect, the decompressing the boot image file, and determining the first advertisement movie source in the target memory space specifically includes:
decompressing the starting-up mirror image file, and acquiring the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space;
and obtaining the first advertisement film source in the target memory space according to the length of the first advertisement film source, the first byte offset address of the first advertisement film source based on the first header information and the header address of the target memory space.
In another possible implementation manner of the first aspect, before the obtaining the second advertisement film source from the advertisement partition of the memory, the method further includes:
when the mobile terminal is started up last time, sending an advertisement downloading request to a server, wherein the advertisement downloading request comprises a downloading address of the second advertisement film source;
and receiving the second advertisement film source downloaded by the server according to the download address of the second advertisement film source, and storing the second advertisement film source in the advertisement partition of the external memory.
In a second aspect, an embodiment of the present invention provides a device for playing a boot advertisement, including:
the system comprises a decompression module, a first storage module and a second storage module, wherein the decompression module is used for decompressing a starting image file and determining a first advertisement film source in a target memory space when a starting instruction is received, the starting image file comprises the first advertisement film source and the address of the target memory space, and the starting image file is a backup file of a system state when the electronic equipment is started;
the acquisition module is used for acquiring a second advertisement film source from an advertisement partition of the external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time;
the replacing module is used for replacing the first advertisement film source in the target memory space with the second advertisement film source;
the reading module is used for controlling the video player to read the second advertisement film source from the target memory space;
and the playing module is used for playing the starting-up advertisement corresponding to the second advertisement film source.
In another possible implementation manner of the second aspect, the apparatus for playing the boot advertisement further includes:
and the configuration module is used for configuring a continuous memory address space as the target memory space according to the length of the first advertising film source when the boot image file is manufactured, and setting a zone bit for the target memory space, wherein the zone bit is used for identifying that the target memory space is not recycled.
In another possible implementation manner of the second aspect, first header information is further stored in the target memory space, where the first header information includes a length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and a first address of the target memory space.
In another possible implementation manner of the second aspect, the decompression module includes a decompression unit and an acquisition unit;
the decompression unit is used for decompressing the starting-up image file, and acquiring the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space;
the obtaining unit is configured to obtain the first advertisement film source in the target memory space according to the length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and the header address of the target memory space.
In another possible implementation manner of the second aspect, the apparatus for playing the boot advertisement further includes:
the sending module is used for sending an advertisement downloading request to a server when the server is started up last time, wherein the advertisement downloading request comprises a downloading address of the second advertisement film source;
the receiving module is used for receiving the second advertisement film source downloaded by the server according to the download address of the second advertisement film source;
and the storage module is used for storing the second advertisement film source into the advertisement partition of the external memory.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for executing the computer program to realize the method for playing the boot advertisement in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, where a computer program is stored in the storage medium, and the computer program, when executed, implements the method for playing a boot advertisement according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following effects:
when a starting instruction is received, decompressing a starting image file, and determining a first advertisement film source in a target memory space, wherein the starting image file comprises addresses of the first advertisement film source and the target memory space, and the starting image file is a backup file of a system state when the electronic equipment is started; acquiring a second advertisement film source from an advertisement partition of the external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time; and replacing the first advertisement film source in the target memory space with a second advertisement film source, controlling the video player to read the second advertisement film source from the target memory space, and playing the starting-up advertisement corresponding to the second advertisement film source. That is, in this embodiment, for the electronic device adopting the snapshot technology, when the electronic device is started up last time, the latest second advertisement film source is downloaded, and when the electronic device is started up this time, the first advertisement film source in the target memory space is replaced by the second advertisement film source, so that the update of the startup advertisement is realized on the basis of ensuring the fast startup.
Drawings
In order to more clearly illustrate the embodiments of the present invention 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, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a flowchart of a method for playing a boot advertisement according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a playing process of a conventional boot advertisement;
fig. 4 is a flowchart of a method for playing a boot advertisement according to a second embodiment of the present invention;
fig. 5 is a flowchart of a method for playing a boot advertisement according to a third embodiment of the present invention;
fig. 6 is a flowchart of a method for playing a boot advertisement according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of a display device for a boot advertisement according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a playing apparatus for a startup advertisement according to a second embodiment of the present invention;
fig. 9 is a schematic structural diagram of a playing apparatus for a startup advertisement according to a third embodiment of the present invention;
fig. 10 is a schematic structural diagram of a playing apparatus for a startup advertisement according to a fourth embodiment of the present invention;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a method for playing a startup advertisement, which comprises the steps of downloading a second advertisement film source when starting up at the last time, decompressing a startup image file when starting up at this time, obtaining a first advertisement film source in a target memory space, replacing the first advertisement film source in the target memory space by using the second advertisement film source downloaded when starting up at the last time, and controlling a video player to play a startup advertisement corresponding to the second advertisement film source.
That is, in the technical scheme of this embodiment, regarding the electronic device adopting the snapshot technology, the update of the advertisement can be realized, the timeliness of the advertisement is ensured, and the user experience is improved.
The technical solution of the present invention will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 1 is a flowchart of a method for playing a boot advertisement according to an embodiment of the present invention. As shown in fig. 1, the method of this embodiment may include:
s101, when a starting instruction is received, decompressing a starting image file, and determining a first advertisement film source in a target memory space, wherein the starting image file comprises the first advertisement film source and the address of the target memory space, and the starting image file is a backup file of a system state when the electronic equipment is started.
The execution main body of the embodiment of the invention is electronic equipment, and the electronic equipment can be an intelligent television, a notebook computer, a computer and other electronic equipment with starting advertisements. The execution main body of this embodiment may be a Processor in the electronic device, for example, a Processor in the electronic device, such as a CPU (Central Processing Unit), an MCU (Micro Controller Unit), and an MPU (Micro Processor Unit).
As shown in fig. 2, the electronic device of this embodiment further includes an internal memory (for short, a memory), an external memory, and a player, where the external memory includes an advertisement partition, the advertisement partition is used to store an advertisement source, and the player is used to play a startup advertisement. As shown in fig. 2, the processor is electrically connected to the memory, the external memory, and the player, respectively.
Optionally, the external memory of this embodiment may be a flash memory, an EMMC (Embedded multimedia Media Card), or the like.
Optionally, the boot image file of this embodiment is also stored in the external memory.
Fig. 3 is a schematic diagram illustrating a playing process of a conventional startup advertisement, as shown in fig. 3, in a conventional Android smart television, the playing process of the startup advertisement is,
and S11, starting the U-Boot.
The process of starting the kernel by the U-Boot (Boot code) can be divided into two phases, and the functions of the two phases are as follows:
(1) a function of a first stage comprising; initializing hardware equipment; loading the U-Boot second-stage codes to a RAM (Random Access Memory) space; setting a stack; jump to the second phase code entry.
(2) A second stage of functions comprising: initializing the hardware equipment used in the current stage; detecting system memory mapping; reading the kernel from the Flash to the RAM; setting a starting parameter for the kernel; the kernel is invoked.
S12, kernel start.
During the starting process of the kernel, the content of each partition of the external memory is mounted, and the advertisement film source in the advertisement partition is set to be readable.
And S13, Android starting.
And S14, controlling the video player to play the boot advertisements in the starting process of the Android.
And in the Android starting process, the video player is controlled to be started, the video player reads the advertisement film source in the advertisement partition into the memory, and plays the starting-up advertisement corresponding to the advertisement film source to complete the playing of the starting-up advertisement.
According to the above process, the playing process of the existing startup advertisement and the startup process of the electronic device are time-consuming, and the startup experience of the user is affected. In order to solve the technical problem, a snapshot technology is adopted in the electronic equipment to improve the starting speed of the electronic equipment.
Specifically, a boot image file is created, which records the state of the system when the electronic device is booted. Therefore, when the electronic equipment is started next time, the electronic equipment can be started by directly decompressing the image file, the Android starting process is crossed in the middle, and most of starting time is saved.
It should be noted that the boot image file of this embodiment may be manufactured when the electronic device leaves a factory, or may be manufactured when the electronic device is booted, that is, a boot image file is manufactured each time the electronic device is booted, and the boot image file manufactured this time is used to replace the boot image file manufactured last time the electronic device is booted. Optionally, the boot image file may also be made when the electronic device is powered off, that is, a boot image file is made each time the electronic device is powered off, and the boot image file made at this time is used to replace the boot image file made at the last time of the power off.
However, because the electronic device adopting the snapshot technology strides over the starting process of the Android, and the updating of the start-up advertisement is realized in the starting process of the Android, the start-up advertisement played by the electronic device adopting the snapshot technology is always the start-up advertisement stored in the start-up image file, so that the updating of the start-up advertisement cannot be realized, and the effectiveness of the start-up advertisement is reduced.
In order to solve the foregoing technical problem, an embodiment of the present invention provides a method for playing a startup advertisement, which can update a startup advertisement of an electronic device that uses a snapshot technology.
Specifically, a boot image file is stored in the external memory, where the boot image file includes a first advertisement film source and an address of a target memory space corresponding to the first advertisement film source (i.e., an address of the target memory space in the memory). When the mobile phone is started up, the starting-up image file is read from the external storage, the starting-up image file is decompressed, the decompressed starting-up image file is stored in the internal memory, and at the moment, the first advertisement film source is stored in a target internal memory space in the internal memory. And then, searching the memory according to the address of the target memory space, finding the target memory space, and reading the first advertisement film source from the target memory space.
S102, a second advertisement film source is obtained from an advertisement partition of the external memory, and the second advertisement film source is downloaded when the external memory is started last time.
Specifically, when the mobile terminal is started up last time, the server downloads the second advertisement film source and stores the downloaded second advertisement film source in the advertisement partition of the local external memory.
And when the computer is started, reading the second advertisement film source from the advertisement partition of the external memory.
Optionally, the S102 and the S101 may be executed at the same time, optionally, the S101 may be executed before the S102, optionally, the S102 may be executed before the S101, and this embodiment does not limit this.
S103, replacing the first advertisement film source in the target memory space with the second advertisement film source.
And S104, controlling the video player to read the second advertisement film source from the target memory space and playing the starting-up advertisement corresponding to the second advertisement film source.
Specifically, according to the step of S101, a first advertisement movie source is obtained from the target memory space, and according to the step of S102, a second advertisement movie source is obtained from the external storage. Because the second advertisement film source is a new advertisement film source compared with the first advertisement film source, at this time, the first advertisement film source stored in the target memory space can be replaced by the second advertisement film source, and the update of the startup advertisement is realized.
And then, controlling the video player to read a second advertisement film source from the target memory space and playing the starting-up advertisement corresponding to the second advertisement film source.
Optionally, the update process of the Boot advertisement of this embodiment may be implemented in the start process of the U-Boot, or in the start process of the kernel.
According to the method for playing the startup advertisement provided by the embodiment of the invention, when a startup instruction is received, a startup image file is decompressed, and a first advertisement film source in a target memory space is determined, wherein the startup image file comprises addresses of the first advertisement film source and the target memory space, and the startup image file is a backup file of a system state when the electronic equipment is started; acquiring a second advertisement film source from an advertisement partition of the external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time; and replacing the first advertisement film source in the target memory space with a second advertisement film source, controlling the video player to read the second advertisement film source from the target memory space, and playing the starting-up advertisement corresponding to the second advertisement film source. That is, in this embodiment, for the electronic device adopting the snapshot technology, when the electronic device is started up last time, the latest second advertisement film source is downloaded, and when the electronic device is started up this time, the first advertisement film source in the target memory space is replaced by the second advertisement film source, so that the update of the startup advertisement is realized on the basis of ensuring the fast startup.
In a possible implementation manner of this embodiment, before decompressing the boot image file in S101, this embodiment further includes making the boot image file, which may specifically include:
s100a, when the boot image file is manufactured, according to the length of the first advertisement film source, configuring a continuous memory address space as the target memory space, and setting a flag bit for the target memory space, wherein the flag bit is used for marking that the target memory space is not recycled.
Specifically, in this embodiment, before decompressing the boot image file, the boot image file is further manufactured. When the boot image file is manufactured, according to the length of the first advertisement film source (namely the size of the memory occupied by the first advertisement film source), a memory address space (namely a target memory space) is applied to store the first advertisement film source in the boot image file, and the target memory space is marked as used (used), so that the target memory space cannot be recycled when the boot image file is manufactured.
Optionally, the target memory space in this embodiment is a continuous memory space in the memory.
In a possible implementation manner of this embodiment, first header information is further stored in the target memory space of this embodiment, where the first header information includes a length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and a first address of the target memory space.
The length of the first advertisement film source is the memory size occupied by the first advertisement film source.
Specifically, first header information and a first advertisement film source are stored in the target memory space, and the first header information and the first advertisement film source jointly form first advertisement content shown in table 1:
TABLE 1
First header information First advertisement film source
In actual use, the size of the memory occupied by the first advertisement source may be obtained according to the length of the first advertisement source, for example, a. And determining the position of the target memory space in the memory according to the first address of the target memory space. According to the first byte offset address of the first advertisement film source based on the first header information and the size of the memory occupied by the first advertisement film source, the size of the first header information can be determined, for example, to be B. And then, determining the size of the target memory space according to the A and the B, and determining the size and the position of the target memory space according to the position of the target memory space in the memory.
The method for playing the boot advertisement provided by the embodiment of the invention comprises the steps of firstly making the boot image file before decompressing the boot image file, and configuring the target memory space so as to ensure that the target memory space is used for storing the first advertisement film source.
Fig. 4 is a flowchart of a method for playing a boot advertisement according to a second embodiment of the present invention, where on the basis of the second embodiment, this embodiment relates to a specific process of decompressing a boot image file and determining a first advertisement film source in a target memory space. As shown in fig. 4, the present embodiment may include:
s201, decompressing the starting image file, and acquiring the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space.
As shown in table 1, the first advertisement content of the present embodiment includes first header information and a first advertisement film source.
The first header information comprises the length of a first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information and a first address of the target memory space.
Therefore, when the computer is started, the starting mirror image file is decompressed, and the first head information can be obtained.
S202, obtaining a first advertisement film source in the target memory space according to the length of the first advertisement film source, the first byte offset address of the first advertisement film source based on the first header information and the header address of the target memory space.
Specifically, after the first header information is obtained according to the above steps, the position and size of the target storage space are found from the memory according to the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information, and the head address of the target memory space, and then the first advertisement film source is read from the target memory space.
For example, it is assumed that the length of the first advertisement film source in the first header information obtained in S201 is a, the first byte offset address of the first advertisement film source based on the first header information is b, and the first address of the target memory space is c, so that the length of the target memory space is a + b, and the first address of the target memory space is c, and then the position of the target memory space in the memory, that is, [ c, a + b + c ], may be determined. Then, according to the first byte offset address of the first advertisement film source based on the first header information being b, the position of the first advertisement film source can be obtained from the target memory space, namely [ c-b, a + b + c ], and the first advertisement film source is further read from the memory segment [ c-b, a + b + c ].
According to the method, the position and the size of the target memory space in the memory can be accurately obtained according to the first head information by setting the first head information, so that the first advertisement film source is read from the target memory space, and the updating speed and the updating accuracy of the subsequent advertisement film source are improved.
Optionally, the first header information of this embodiment may further include manufacturer information of a manufacturer of the electronic device.
Optionally, the first header information may further include a mark of the first advertisement film source, where the mark of the first advertisement film source is used to mark whether the first advertisement film source is stored in the target memory space.
The method for playing the boot advertisement provided by the embodiment of the invention decompresses the boot image file, and acquires the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space; and obtaining the first advertisement film source in the target memory space according to the length of the first advertisement film source, the first byte offset address of the first advertisement film source based on the first header information and the header address of the target memory space, so as to realize the quick and accurate acquisition of the first advertisement film source.
Fig. 5 is a flowchart of a method for playing a startup advertisement according to a third embodiment of the present invention, and based on the foregoing embodiments, a specific process for acquiring a second advertisement source according to the present embodiment is described. As shown in fig. 5, before the step S102, the method of this embodiment further includes:
s301, when the mobile terminal is started up last time, sending an advertisement downloading request to a server, wherein the advertisement downloading request comprises a downloading address of the second advertisement film source.
S302, receiving the second advertisement film source downloaded by the server according to the download address of the second advertisement film source, and storing the second advertisement film source in the advertisement partition of the external memory.
Specifically, when the electronic device is started up last time, the electronic device sends an advertisement downloading request to the server, the advertisement downloading request includes a downloading address of the second advertisement film source, and the advertisement downloading request is used for requesting the server to download the second advertisement film source according to the downloading address of the second advertisement film source.
In this embodiment, the electronic device may send the advertisement downloading request to the server at any time when the electronic device is in the power-on state, for example, the electronic device sends the advertisement downloading request to the server at the power-on moment, or the electronic device sends the advertisement downloading request to the server when the network is idle. Or, the electronic device sends an advertisement downloading request to the server at the moment of shutdown, and at this time, the server may store the downloaded second advertisement film source in an external memory of the electronic device when the electronic device is shutdown.
According to the step of S301, after the server downloads the second advertisement film source, the server sends the second advertisement film source to the electronic device. And after receiving the second advertisement film source downloaded by the server, the electronic equipment stores the second advertisement film source into the advertisement partition of the external memory to realize the downloading of the second advertisement film source.
When the electronic equipment is started at the time, the second advertisement film source can be directly obtained from the advertisement partition of the external storage, and because the second advertisement film source is downloaded when the electronic equipment is started at the last time, the first advertisement film source in the target memory space is replaced by the second advertisement film source, the first advertisement film source can be updated, and the timeliness of the starting advertisements is improved.
The method for playing the start-up advertisement provided by the embodiment of the invention sends an advertisement downloading request to the server when the server is started up last time, receives the second advertisement film source downloaded by the server according to the downloading address of the second advertisement film source, and stores the second advertisement film source into the advertisement partition of the external memory, thereby realizing accurate and rapid acquisition of the second advertisement film source.
Fig. 6 is a flowchart of a method for playing a startup advertisement according to a fourth embodiment of the present invention, which relates to a playing process of a startup advertisement during a starting process of an electronic device. As shown in fig. 6, the method of the present embodiment includes:
and S401, starting the U-Boot.
S402, in the starting process of the U-Boot, decompressing the Boot image file to obtain a first advertisement film source in the target memory space.
Specifically, the electronic device receives a Boot instruction, enters a Boot state, starts the U-Boot, and starts a system program. In the starting process of the U-Boot, the Boot image file is decompressed to obtain the first advertisement film source in the target memory space, and the specific process refers to the description of the above S101, which is not described herein again.
S403, acquiring a second advertisement film source from the advertisement partition of the external memory.
S404, replacing the first advertisement film source in the target memory space with the second advertisement film source.
S405, controlling a video player to read the second advertisement film source from the target memory space and playing the boot advertisement corresponding to the second advertisement film source.
Specifically, the processor reads the second advertisement film source from the advertisement partition of the external memory of the electronic device, and replaces the first advertisement film source in the target memory space with the read second advertisement film source, thereby realizing updating of the boot advertisement.
And finally, controlling the video player to read a second advertisement film source from the target memory space and playing the starting-up advertisement corresponding to the second advertisement film source.
That is, the whole process of this embodiment is implemented in the U-Boot startup process, and in the startup process, the Android startup process is crossed, so that most of the startup time is saved, and the purpose of fast startup is achieved. Meanwhile, in the starting process of the U-Boot, the updating of the starting-up advertisement is realized, the timeliness of the starting-up advertisement is improved, and the starting-up experience of a user is improved.
In the method for playing the Boot advertisement provided by the embodiment of the invention, in the starting process of the U-Boot, the Boot image file is decompressed, the first advertisement film source in the target memory space is obtained, the second advertisement film source is obtained from the advertisement partition of the external memory, the first advertisement film source in the target memory space is replaced by the second advertisement film source, the video player is controlled to read the second advertisement film source from the target memory space, and the Boot advertisement corresponding to the second advertisement film source is played, so that the Boot speed is increased, the Boot time is saved, the update of the Boot advertisement is realized, and the timeliness of the Boot advertisement is improved.
Fig. 7 is a schematic structural diagram of a playing apparatus for a startup advertisement according to an embodiment of the present invention. As shown in fig. 7, the playing apparatus 100 for the start-up advertisement of the present embodiment may include:
the decompression module 110 is configured to decompress a boot image file when a boot instruction is received, and determine a first advertisement film source in a target memory space, where the boot image file includes addresses of the first advertisement film source and the target memory space, and the boot image file is a backup file of a system state when the electronic device is booted;
an obtaining module 120, configured to obtain a second advertisement film source from an advertisement partition of an external memory, where the second advertisement film source is downloaded when the external memory is started last time;
a replacing module 130, configured to replace the first advertisement film source in the target memory space with the second advertisement film source;
a reading module 140, configured to control the video player to read the second advertisement film source from the target memory space;
and the playing module 190 is configured to play the boot advertisement corresponding to the second advertisement film source.
The starting-up advertisement playing device of the embodiment of the invention can be used for executing the technical scheme of the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated here.
Fig. 8 is a schematic structural diagram of a playing apparatus for a boot advertisement according to a second embodiment of the present invention. As shown in fig. 8, the playing apparatus 100 for the start-up advertisement of the present embodiment may include:
a configuration module 150, configured to configure a continuous memory address space as the target memory space according to the length of the first advertisement film source when the boot image file is manufactured, and set a flag bit for identifying that the target memory space is not recovered.
In a possible implementation manner of this embodiment, first header information is further stored in the target memory space, where the first header information includes a length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and a first address of the target memory space.
The starting-up advertisement playing device of the embodiment of the invention can be used for executing the technical scheme of the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated here.
Fig. 9 is a schematic structural diagram of a playing apparatus for a startup advertisement according to a third embodiment of the present invention. As shown in fig. 9, the decompression module 110 of the present embodiment includes a decompression unit 111 and an acquisition unit 112;
the decompression unit 111 is configured to decompress a boot image file, and acquire a length of the first advertisement film source in the first header information, a first byte offset address of the first advertisement film source based on the first header information, and a first address of the target memory space;
the obtaining unit 112 is configured to obtain the first advertisement film source in the target memory space according to the length of the first advertisement film source, the first byte offset address of the first advertisement film source based on the first header information, and the header address of the target memory space.
The starting-up advertisement playing device of the embodiment of the invention can be used for executing the technical scheme of the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated here.
Fig. 10 is a schematic structural diagram of a playing apparatus for a boot advertisement according to a fourth embodiment of the present invention. As shown in fig. 10, the playing device 10 for the start-up advertisement of the present embodiment may include:
a sending module 160, configured to send an advertisement downloading request to the server when the server is started last time, where the advertisement downloading request includes a downloading address of the second advertisement film source;
a receiving module 170, configured to receive the second advertisement source downloaded by the server according to the download address of the second advertisement source;
a saving module 180, configured to save the second advertisement film source to the advertisement partition of the external memory.
The starting-up advertisement playing device of the embodiment of the invention can be used for executing the technical scheme of the method embodiment, the implementation principle and the technical effect are similar, and the details are not repeated here.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 11, the electronic device 200 according to the embodiment includes:
a memory 220 for storing a computer program;
the processor 230 is configured to execute the computer program to implement the above-mentioned method for playing the boot advertisement, and the implementation principle and the technical effect are similar, which are not described herein again.
Furthermore, when at least a part of the functions of the method for playing the boot advertisement in the embodiment of the present invention are implemented by software, an embodiment of the present invention further provides a computer storage medium, where the computer storage medium is used to store computer software instructions for playing the boot advertisement, and when the computer storage medium runs on a computer, the computer can execute various possible methods for playing the boot advertisement in the embodiment of the method. The processes or functions described in accordance with the embodiments of the present invention may be generated in whole or in part when the computer-executable instructions are loaded and executed on a computer. The computer instructions may be stored on a computer storage medium or transmitted from one computer storage medium to another via wireless (e.g., cellular, infrared, short-range wireless, microwave, etc.) to another website site, computer, server, or data center. The computer storage media may be any available media that can be accessed by a computer or a data storage device, such as a server, data center, etc., that incorporates one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., SSD), among others.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for playing a boot advertisement, comprising:
when a starting-up image file is manufactured, configuring a continuous memory address space as a target memory space according to the length of a first advertisement film source, and setting a flag bit for marking that the target memory space is not recycled; the starting mirror image file is a backup file of a system state when the electronic equipment is started; a first advertisement film source is stored in the target memory space;
when a starting-up instruction is received, decompressing the starting-up image file, and determining a first advertisement film source in the target memory space; the first advertisement film source is an advertisement film source corresponding to a starting-up advertisement played in the last starting-up;
acquiring a second advertisement film source from an advertisement partition of an external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time;
replacing the first advertisement film source in the target memory space with the second advertisement film source;
and controlling a video player to read the second advertisement film source from the target memory space and play the starting-up advertisement corresponding to the second advertisement film source.
2. The method of claim 1, wherein the target memory space stores therein first header information, the first header information including a length of the first advertisement source, an offset address of a first byte of the first advertisement source based on the first header information, and a header address of the target memory space.
3. The method according to claim 2, wherein decompressing the boot image file and determining the first advertisement film source in the target memory space specifically comprises:
decompressing the starting-up mirror image file, and acquiring the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space;
and obtaining the first advertisement film source in the target memory space according to the length of the first advertisement film source, the first byte offset address of the first advertisement film source based on the first header information and the header address of the target memory space.
4. The method of any of claims 1-3, wherein prior to retrieving the second commercial source from the commercial partition in the memory, the method further comprises:
when the mobile terminal is started up last time, sending an advertisement downloading request to a server, wherein the advertisement downloading request comprises a downloading address of the second advertisement film source;
and receiving the second advertisement film source downloaded by the server according to the download address of the second advertisement film source, and storing the second advertisement film source in the advertisement partition of the external memory.
5. A device for playing a boot advertisement, comprising:
the system comprises a configuration module, a storage module and a processing module, wherein the configuration module is used for configuring a continuous memory address space as a target memory space according to the length of a first advertising film source when a starting-up image file is manufactured, and setting a zone bit for the target memory space, wherein the zone bit is used for marking that the target memory space is not recycled; the starting mirror image file is a backup file of a system state when the electronic equipment is started; a first advertisement film source is stored in the target memory space; the decompression module is used for decompressing the starting image file and determining a first advertisement film source in the target memory space when a starting instruction is received; the first advertisement film source is an advertisement film source corresponding to a starting-up advertisement played in the last starting-up;
the acquisition module is used for acquiring a second advertisement film source from an advertisement partition of the external memory, wherein the second advertisement film source is downloaded when the external memory is started up last time;
the replacing module is used for replacing the first advertisement film source in the target memory space with the second advertisement film source;
the reading module is used for controlling the video player to read the second advertisement film source from the target memory space;
and the playing module is used for playing the starting-up advertisement corresponding to the second advertisement film source.
6. The apparatus of claim 5, wherein the target memory space stores therein first header information, the first header information comprising a length of the first advertisement source, an offset address of a first byte of the first advertisement source based on the first header information, and a header address of the target memory space.
7. The apparatus of claim 6, wherein the decompression module comprises a decompression unit and an acquisition unit;
the decompression unit is used for decompressing the starting-up image file, and acquiring the length of the first advertisement film source in the first header information, the first byte offset address of the first advertisement film source based on the first header information and the first address of the target memory space;
the obtaining module is configured to obtain the first advertisement film source in the target memory space according to the length of the first advertisement film source, a first byte offset address of the first advertisement film source based on the first header information, and a header address of the target memory space.
8. The apparatus of any of claims 5-7, further comprising:
the sending module is used for sending an advertisement downloading request to a server when the server is started up last time, wherein the advertisement downloading request comprises a downloading address of the second advertisement film source;
the receiving module is used for receiving the second advertisement film source downloaded by the server according to the download address of the second advertisement film source;
and the storage module is used for storing the second advertisement film source into the advertisement partition of the external memory.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for playing the boot advertisement according to any one of claims 1-4.
10. A computer storage medium, wherein a computer program is stored in the storage medium, and when executed, the computer program implements the method for playing a boot advertisement according to any one of claims 1 to 4.
CN201810652962.3A 2018-06-22 2018-06-22 Method and device for playing startup advertisement, electronic equipment and computer storage medium Active CN108810631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810652962.3A CN108810631B (en) 2018-06-22 2018-06-22 Method and device for playing startup advertisement, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810652962.3A CN108810631B (en) 2018-06-22 2018-06-22 Method and device for playing startup advertisement, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN108810631A CN108810631A (en) 2018-11-13
CN108810631B true CN108810631B (en) 2021-07-06

Family

ID=64084676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810652962.3A Active CN108810631B (en) 2018-06-22 2018-06-22 Method and device for playing startup advertisement, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN108810631B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857848A (en) * 2020-07-13 2020-10-30 海信视像科技股份有限公司 Display device starting performance improving method and display device
CN113556583B (en) * 2021-07-19 2023-03-31 杭州国芯科技股份有限公司 Set top box starting advertisement playing method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272449A (en) * 2008-03-28 2008-09-24 山东泰信电子有限公司 Television advertisement cut-broadcasting method based on digital TV set-top box
CN101546266A (en) * 2008-03-28 2009-09-30 华硕电脑股份有限公司 Boot method for computer device
CN102098560A (en) * 2009-12-14 2011-06-15 国基电子(上海)有限公司 Set top box and method for starting set top box to play advertising pictures
CN103237186A (en) * 2013-03-27 2013-08-07 四川长虹电器股份有限公司 Method for realizing boot interface update of television
CN103458097A (en) * 2012-06-05 2013-12-18 Tcl集团股份有限公司 Mobile terminal startup animation and startup music updating system and method
CN105812858A (en) * 2014-12-31 2016-07-27 深圳市中兴微电子技术有限公司 Set-top box starting animation producing and displaying method, device and system
CN107333179A (en) * 2017-06-27 2017-11-07 青岛海信电器股份有限公司 A kind of player method and device of video of starting shooting

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8387086B2 (en) * 2009-12-14 2013-02-26 Microsoft Corporation Controlling ad delivery for video on-demand

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272449A (en) * 2008-03-28 2008-09-24 山东泰信电子有限公司 Television advertisement cut-broadcasting method based on digital TV set-top box
CN101546266A (en) * 2008-03-28 2009-09-30 华硕电脑股份有限公司 Boot method for computer device
CN102098560A (en) * 2009-12-14 2011-06-15 国基电子(上海)有限公司 Set top box and method for starting set top box to play advertising pictures
CN103458097A (en) * 2012-06-05 2013-12-18 Tcl集团股份有限公司 Mobile terminal startup animation and startup music updating system and method
CN103237186A (en) * 2013-03-27 2013-08-07 四川长虹电器股份有限公司 Method for realizing boot interface update of television
CN105812858A (en) * 2014-12-31 2016-07-27 深圳市中兴微电子技术有限公司 Set-top box starting animation producing and displaying method, device and system
CN107333179A (en) * 2017-06-27 2017-11-07 青岛海信电器股份有限公司 A kind of player method and device of video of starting shooting

Also Published As

Publication number Publication date
CN108810631A (en) 2018-11-13

Similar Documents

Publication Publication Date Title
CN109634645B (en) Firmware upgrading method and terminal
US9298444B2 (en) Software updating method and portable terminal device
EP1926022B1 (en) Apparatus and method for efficient memory use in portable terminal
CN110825563B (en) System recovery method and device and electronic equipment
JP2006040301A (en) Method of organizing information stored in non-volatile re-programmable semiconductor memory
KR101555210B1 (en) Apparatus and method for downloadin contents using movinand in portable terminal
JP5821393B2 (en) Information processing apparatus, activation method, program
CN108810631B (en) Method and device for playing startup advertisement, electronic equipment and computer storage medium
CN103778211A (en) Method and device for switching language of mobile terminal game software
CN115543368B (en) Operating system upgrading method and electronic equipment
CN109753299A (en) A kind of method for upgrading system, device and computer storage medium
US10120791B2 (en) Data read apparatus, data read method, and storage medium storing data read program
CN110825419A (en) Firmware refreshing method and device, electronic equipment and storage medium
US8826263B2 (en) Portable terminal, portable terminal control method, and portable terminal control program
CN115586933A (en) Computer startup method, system, equipment, medium and shutdown method
US20230315213A1 (en) Program download method for intelligent terminal and intelligent terminal
CN108446144B (en) Application program starting method and device, terminal and storage medium
CN114327675B (en) Method and related device for starting mini-game application
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN113132816B (en) Program switching method, terminal, system and storage medium
CN111324410A (en) Terminal boot animation playing method and device, terminal and storage medium
CN110045929B (en) Mounting point management method and related device
CN102202129A (en) Method for loading mobile phone operating system
CN104683594A (en) SIM card-oriented method for loading mobile phone operating system
US20180004442A1 (en) Accelerated loading of guest virtual machine from live snapshot

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
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co., Ltd

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: HISENSE ELECTRIC Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant