CN108810631A - Playback method, device, electronic equipment and the computer storage media of startup advertisement - Google Patents

Playback method, device, electronic equipment and the computer storage media of startup advertisement Download PDF

Info

Publication number
CN108810631A
CN108810631A CN201810652962.3A CN201810652962A CN108810631A CN 108810631 A CN108810631 A CN 108810631A CN 201810652962 A CN201810652962 A CN 201810652962A CN 108810631 A CN108810631 A CN 108810631A
Authority
CN
China
Prior art keywords
advertisement
film source
memory space
target memory
advertisement film
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.)
Granted
Application number
CN201810652962.3A
Other languages
Chinese (zh)
Other versions
CN108810631B (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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics 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

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 kind of playback method of startup advertisement, device, electronic equipment and computer storage media, the method includes:When receiving power-on instruction, decompression booting image file, determine the first advertisement film source in target memory space, wherein, the booting image file includes the address of the first advertisement film source and the target memory space, and the booting image file is the backup file of system mode when electronic equipment is switched on;The second advertisement film source is obtained from the advertisement subregion of external memory, the second advertisement film source is to be downloaded when being switched on last time;The first advertisement film source in the target memory space is replaced with into the second advertisement film source;Control video player reads the second advertisement film source from the target memory space, and plays the corresponding startup advertisement of the second advertisement film source, and then on the basis of ensureing quick turn-on, realizes the update of startup advertisement.

Description

Playback method, device, electronic equipment and the computer storage media of startup advertisement
Technical field
The present embodiments relate to startup advertisement technical field more particularly to a kind of playback method of startup advertisement, device, Electronic equipment and computer storage media.
Background technology
Currently, the startup advertisement of smart television plays in Android (Android) start-up course, specifically, In Android start-up courses, video player starts, and video player is read from partition holding in ad content to memory. Then, video player reads ad content and is played out from memory.
In order to improve the starting up speed of smart television, snapping technique is answered extensively in the start process of smart television With.Snapping technique refers to making an image file before smart television dispatches from the factory, and the image file is decompressed in start process and is arrived In memory, smart television is directly initiated, pilot process can save the startup time of Android, to save most booting It takes, achievees the purpose that quick turn-on.
But the existing smart television using snapping technique, since start-up course is across Android start-up courses, this Sample makes startup advertisement that can not update.
Invention content
The embodiment of the present invention provides a kind of playback method of startup advertisement, device, electronic equipment and computer storage media, To solve the problems, such as that the existing electronic equipment using snapping technique can not update startup advertisement.
In a first aspect, the embodiment of the present invention provides a kind of playback method of startup advertisement, including:
When receiving power-on instruction, decompression booting image file determines the first advertisement film source in target memory space, Wherein, the booting image file includes the address of the first advertisement film source and the target memory space, the booting mirror As the backup file that file is system mode when electronic equipment is switched on;
The second advertisement film source is obtained from the advertisement subregion of external memory, the second advertisement film source is when being switched on last time It downloads;
The first advertisement film source in the target memory space is replaced with into the second advertisement film source;
Control video player reads the second advertisement film source from the target memory space, and plays described second The corresponding startup advertisement of advertisement film source.
In a kind of possible realization method of first aspect, before the decompression booting image file, the method is also Including:
When making the booting image file, according to the length of the first advertisement film source, continuous memory address is configured Flag bit is arranged as the target memory space and to the target memory space in space, and the flag bit is described for identifying Target memory space is not recovered.
In the alternatively possible realization method of first aspect, first letter is preserved in the target memory space Breath, first header includes the length of the first advertisement film source, the first advertisement film source based on the first header The first address of first byte offset address and the target memory space.;
In the alternatively possible realization method of first aspect, the decompression booting image file determines target memory The first advertisement film source in space, specifically includes:
The booting image file is decompressed, length, the institute of the first advertisement film source in first header are obtained State the first address of first byte offset address and the target memory space of the first advertisement film source based on the first header;
According to the first byte offset of the length of the first advertisement film source, the first advertisement film source based on the first header The first address of address and the target memory space obtains the first advertisement film source in the target memory space.
It is wide that second is obtained in the alternatively possible realization method of first aspect, in the advertisement subregion from memory Before accusing film source, the method further includes:
When being switched on last time, sends advertisement to server and download request, it includes described second wide that request is downloaded in the advertisement Accuse the download address of film source;
The second advertisement film source that the server is downloaded according to the download address of the second advertisement film source is received, and The second advertisement film source is preserved into the advertisement subregion of the external memory.
Second aspect, the embodiment of the present invention provide a kind of playing device of startup advertisement, including:
Decompression module, for when receiving power-on instruction, decompression booting image file to determine in target memory space First advertisement film source, wherein the booting image file includes the ground of the first advertisement film source and the target memory space Location, the booting image file are the backup file of system mode when electronic equipment is switched on;
Acquisition module, for obtaining the second advertisement film source, second advertising film from the advertisement subregion of external memory Source is to be downloaded when being switched on last time;
Replacement module, for the first advertisement film source in the target memory space to be replaced with second advertising film Source;
Read module reads the second advertisement film source for controlling video player from the target memory space;
Playing module, for playing the corresponding startup advertisement of the second advertisement film source.
In the alternatively possible realization method of second aspect, the playing device of the startup advertisement further includes:
Configuration module, when for making the booting image file, according to the length of the first advertisement film source, configuration connects Flag bit, the mark is arranged as the target memory space, and to the target memory space in continuous memory address space Position is not recovered for identifying the target memory space.
In the alternatively possible realization method of second aspect, the first header is also preserved in target memory space, First header includes the length of the first advertisement film source, the lead-in of the first advertisement film source based on the first header Save the first address of offset address and the target memory space.
In the alternatively possible realization method of second aspect, the decompression module includes decompression units and obtains single Member;
The decompression units obtain described first in first header for decompressing the booting image file First byte offset address and the target memory based on the first header of the length of advertisement film source, the first advertisement film source are empty Between first address;
The acquiring unit, for being based on first according to length, the first advertisement film source of the first advertisement film source The first address of the first byte offset address of header and the target memory space obtains first in the target memory space Advertisement film source.
In the alternatively possible realization method of second aspect, the playing device of the startup advertisement further includes:
Sending module, for when being switched on last time, sending advertisement to server and downloading request, request bag is downloaded in the advertisement Include the download address of the second advertisement film source;
Receiving module, receive the server downloaded according to the download address of the second advertisement film source it is described second wide Accuse film source;
Preserving module, for preserving the second advertisement film source into the advertisement subregion of the external memory.
The third aspect, the embodiment of the present invention provide a kind of electronic equipment, including:
Memory, for storing computer program;
Processor, for executing the computer program, to realize the playback method of the startup advertisement described in first aspect.
Fourth aspect, the embodiment of the present invention provide a kind of computer storage media, computer are stored in the storage medium Program, the computer program realize the playback method of the startup advertisement described in first aspect when being executed.
The effect of technical solution provided in an embodiment of the present invention is:
By the way that when receiving power-on instruction, decompression booting image file determines the first advertisement in target memory space Film source, wherein booting image file includes the address of the first advertising film source and target memory headroom, which is electricity The backup file of system mode when sub- device power-up;Obtain the second advertisement film source from the advertisement subregion of external memory, second Advertisement film source is to be downloaded when being switched on last time;The first advertisement film source in target memory space is replaced with into the second advertisement film source, Control video player reads the second advertisement film source from target memory space, and plays this second advertisement film source is corresponding and open Machine advertisement.That is the present embodiment, when being switched on last time, downloads newest second advertisement for the electronic equipment using snapping technique Film source replaces the first advertisement film source in target memory space, and then protecting when this is switched on using the second advertisement film source On the basis of demonstrate,proving quick turn-on, the update of startup advertisement is realized.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention one provides;
Fig. 2 be the present embodiments relate to electronic equipment structural schematic diagram;
Fig. 3 is the playing process schematic diagram of existing startup advertisement;
Fig. 4 is the flow chart of the playback method of startup advertisement provided by Embodiment 2 of the present invention;
Fig. 5 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention three provides;
Fig. 6 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention four provides;
Fig. 7 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention one provides;
Fig. 8 is the structural schematic diagram of the playing device of startup advertisement provided by Embodiment 2 of the present invention;
Fig. 9 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention three provides;
Figure 10 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention four provides;
Figure 11 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides a kind of playback method of startup advertisement, and the second advertisement film source is downloaded when being switched on last time, When this is switched on, decompression booting image file obtains the first advertisement film source in target memory space, and be switched on using last time When the second advertisement film source for downloading replace the first advertisement film source in target memory space, and control video player and play the The corresponding startup advertisement of two advertisement film sources.
That is the update of advertisement may be implemented about the electronic equipment using snapping technique in the technical solution of the present embodiment, protects The timeliness for having demonstrate,proved advertisement, improves user experience.
Technical scheme of the present invention is described in detail with specifically embodiment below.These specific implementations below Example can be combined with each other, and same or analogous concept or process may be repeated no more in some embodiments.
Fig. 1 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention one provides.As shown in Figure 1, this implementation Example method may include:
S101, when receiving power-on instruction, decompression booting image file, determine the first advertisement in target memory space Film source, wherein the booting image file includes the address of the first advertisement film source and the target memory space, described to open Machine image file is the backup file of system mode when electronic equipment is switched on.
The executive agent of the embodiment of the present invention is electronic equipment, the electronic equipment can be smart television, laptop, Computer etc. has the electronic equipment of startup advertisement.The executive agent of the present embodiment can be specifically the place in above-mentioned electronic equipment Manage CPU (Central Processing Unit, central processing unit), the MCU (Micro in device, such as electronic equipment Controller Unit, micro controller unit), the processors such as MPU (Micro Processor Unit, microprocessor unit).
As shown in Fig. 2, the electronic equipment of the present embodiment further includes internal storage (abbreviation memory), external memory and broadcasts Device is put, external memory includes advertisement subregion, which is switched on for storing advertisement film source, player for playing Advertisement.As shown in Fig. 2, processor is electrically connected with memory, external memory, player respectively.
Optionally, the external memory of the present embodiment can be flash memory or EMMC (Embedded Multi Media Card, built-in multimedia memory) etc..
Optionally, the booting image file of the present embodiment is also stored in said external memory.
Fig. 3 is the playing process schematic diagram of existing startup advertisement, as shown in figure 3, current Android intelligent television, The playing process of startup advertisement is,
S11, U-Boot start.
The process that U-Boot (starting code) starts kernel can be divided into two stages, and the function in two stages is as follows:
(1) function of first stage, including;Hardware device initializes;U-Boot second stage code is loaded to RAM (Random Access Memory, random access memory) space;Set stack;Jump to second stage code entrance.
(2) function of second stage, including:Initialize the hardware device that this stage uses;Detecting system memory maps;It will Kernel is read from Flash in RAM;For kernel, start-up parameter is set;Call kernel.
S12, kernel start.
In the start-up course of kernel (operating system nucleus), the content of each subregion of carry external memory, by advertisement Advertisement film source in subregion is set to readable.
S13, Android start.
In the start-up course of S14, Android, control video player plays startup advertisement.
In the start-up course of Android, control video player starts, and video player is by the advertisement in advertisement subregion Film source is read in memory, and plays the corresponding startup advertisement of advertisement film source, completes the broadcasting of startup advertisement.
By above-mentioned flow it is found that the playing process of existing startup advertisement, time-consuming for the start process of electronic equipment, influence The booting of user is experienced.In order to solve the technical problem, snapping technique is used in the electronic device, to improve opening for electronic equipment Machine speed.
Specifically, booting image file is made, the state of system when which has recorded electronic equipment booting. In this way, when being switched on next time, the startup that electronic equipment can be realized in the image file is directly decompressed, it is intermediate across Android Start-up course, and then save most available machine time.
It should be noted that the booting image file of the present embodiment makes when can be electronic equipment manufacture, it can also It is made when being electronic equipment booting, i.e., makes a booting image file when being switched on every time, and use the booting of this making Image file replaces the booting image file that last time booting makes.Optionally, which can also be that electronics is set It is made when standby shutdown, i.e., makes a booting image file when electronic equipment shuts down every time, and use the booting of this making Image file replaces the booting image file made when last time shutdown.
But due to the electronic equipment using snapping technique, across the start-up course of Android in start process, and The update of startup advertisement is realized in the start-up course of Android, in this way so that is broadcast using the electronic equipment of snapping technique The startup advertisement put is always the startup advertisement for being switched on and being preserved in image file, and then cannot achieve the update of startup advertisement, Reduce the actual effect of startup advertisement.
In order to solve the above-mentioned technical problem, the embodiment of the present invention provides a kind of playback method of startup advertisement, to using fast According to the electronic equipment of technology, its startup advertisement can be updated.
Include the first advertisement in the booting image file specifically, preserving booting image file in external memory Address (the i.e. ground of target memory space in memory in film source and the corresponding target memory space of the first advertisement film source Location).When this is switched on, the booting image file is read from external memory, and decompresses the booting image file, will be decompressed Booting image file afterwards is saved in memory, at this point, the first advertisement film source is stored in the target memory space in memory.It connects It, according to the address in target memory space, searches memory, find target memory space, the is read from target memory space One advertisement film source.
S102, the second advertisement film source is obtained from the advertisement subregion of external memory, the second advertisement film source is last time It is downloaded when booting.
Specifically, when last time is switched on, server downloads the second advertisement film source, and the second advertisement film source of download is saved in In the advertisement subregion of local external memory.
When this booting, the second advertisement film source is read from the advertisement subregion of external memory.
Optionally, above-mentioned S102 and above-mentioned S101 may be performed simultaneously, optionally, above-mentioned S101 can above-mentioned S102 it Preceding execution, optionally, above-mentioned S102 can execute before above-mentioned S101, and the present embodiment is without limitation.
S103, the first advertisement film source in the target memory space is replaced with into the second advertisement film source.
S104, control video player read the second advertisement film source from the target memory space, and play institute State the corresponding startup advertisement of the second advertisement film source.
Specifically, the step of according to above-mentioned S101, obtain the first advertisement film source, according to above-mentioned from target memory space The step of S102, obtains the second advertisement film source from external memory.Since the second advertisement film source is compared and the first advertisement film source For new advertisement film source, at this point it is possible to replace the first advertising film preserved in target memory space using the second advertisement film source The update of startup advertisement is realized in source.
Then, control video player reads the second advertisement film source from target memory space, and plays second advertisement The corresponding startup advertisement of film source.
Optionally, the renewal process of the startup advertisement of the present embodiment can be realized in the start-up course of U-Boot, or It is realized in the start-up course of kernel.
The playback method of startup advertisement provided in an embodiment of the present invention, by the way that when receiving power-on instruction, decompression is switched on Image file determines the first advertisement film source in target memory space, wherein booting image file include the first advertisement film source and The address in target memory space, the booting image file are the backup file of system mode when electronic equipment is switched on;It is deposited from outside The second advertisement film source is obtained in the advertisement subregion of reservoir, the second advertisement film source is to be downloaded when being switched on last time;By target memory sky Between in the first advertisement film source replace with the second advertisement film source, control video player read from target memory space this second Advertisement film source, and play the corresponding startup advertisement of the second advertisement film source.That is the present embodiment, for the electronics using snapping technique Equipment is downloaded newest second advertisement film source and is replaced using the second advertisement film source when this is switched on when being switched on last time The first advertisement film source in target memory space, and then on the basis of ensureing quick turn-on, realize the update of startup advertisement.
In a kind of possible realization method of the present embodiment, before above-mentioned S101 decompressions booting image file, this implementation Example further includes making booting image file, be can specifically include:
When S100a, the making booting image file, according to the length of the first advertisement film source, configure in continuous Address space is deposited as the target memory space, and flag bit is arranged to the target memory space, the flag bit is used for The target memory space is identified not to be recovered.
Specifically, the present embodiment before decompression is switched on image file, further includes making booting image file.It is opened in making When machine image file, according to the length (i.e. the size of memory shared by the first advertisement film source) of the first advertisement film source, with applying for memory Location space (i.e. target memory space) preserves the first advertisement film source in booting image file, and marks this section of target memory sky Between be used (having used), ensure make booting image file when, this section of target memory space reclamation will not be fallen.
Optionally, the target memory space of the present embodiment is continuous memory headroom in memory.
In a kind of possible realization method of the present embodiment, first is also preserved in the target memory space of the present embodiment Header, first header include the length of the first advertisement film source, the first advertisement film source based on first letter The first address of the first byte offset address of breath and the target memory space.
Wherein, the length of the first advertisement film source is the memory size shared by the first advertisement film source.
Specifically, preserve the first header and the first advertisement film source in target memory space, first header and First advertisement film source collectively forms the first ad content as shown in Table 1:
Table 1
First header First advertisement film source
In actual use, the memory shared by the first advertisement film source can be obtained according to the length of the first advertisement film source Size, for example, A.According to the first address in target memory space, target memory space position in memory is determined.According to The size of memory shared by first byte offset address and the first advertisement film source of the one advertisement film source based on the first header, can be true Make the size of the first header, for example, B.Then, it is the size that can determine that target memory space according to A and B, further according to Target memory space position in memory, determines the size and location in target memory space.
The playback method of startup advertisement provided in an embodiment of the present invention makes first before decompression is switched on image file Be switched on image file, and configures target memory space, with ensure the target memory space for preserve the first advertisement film source.
Fig. 4 is the flow chart of the playback method of startup advertisement provided by Embodiment 2 of the present invention, in the base of above-described embodiment On plinth, the present embodiment refers to decompression booting image file, determines the specific of the first advertisement film source in target memory space Process.As shown in figure 4, the present embodiment may include:
S201, the decompression booting image file, obtain the length of the first advertisement film source in first header The first address of degree, first byte offset address and the target memory space of the first advertisement film source based on the first header.
As shown in table 1, first ad content of the present embodiment includes the first header and the first advertisement film source.
Wherein, the first header includes the length of the first advertisement film source, the first advertisement film source based on the first header First byte offset address and the target memory space first address.
In this way, in booting, decompression booting image file can obtain the first header.
S202, the length according to the first advertisement film source, the lead-in of the first advertisement film source based on the first header The first address for saving offset address and the target memory space, obtains the first advertisement film source in the target memory space.
Specifically, according to above-mentioned steps, after obtaining the first header, according to the first advertisement film source in the first header The first ground of length, the first advertisement film source first byte offset address and the target memory space based on the first header Location finds position and the size of target storage space from memory, then reads the first advertisement from the target memory space Film source.
It illustrates, it is assumed that the length of the first advertisement film source is a, the first advertisement film source in the first header that S201 is obtained First byte offset address based on the first header is b, and the first address in target memory space is c, in this way, can obtain in target The length for depositing space is a+b, and the first address in target memory space is c, and then target memory space can be determined in memory In position, as [c, a+b+c].Then, it is according to first byte offset address of the first advertisement film source based on the first header B, can obtain the position where the first advertisement film source, as [c-b, a+b+c] from target memory space, and then from Memory slice The first advertisement film source is read in section [c-b, a+b+c].
The method of the present embodiment can be obtained accurately in target by the way that the first header is arranged according to the first header Space position in memory and size are deposited, and then reads the first advertisement film source from target memory space, is improved follow-up wide Accuse the renewal speed and accuracy of film source.
Optionally, first header of the present embodiment can also include the manufacturer's information of the production firm of electronic equipment.
Optionally, the first header can also include the label of the first advertisement film source, and the label of the first advertisement film source is used In marking in the target memory space whether preserve the first advertisement film source.
The playback method of startup advertisement provided in an embodiment of the present invention, decompression booting image file, obtains described first The first byte offset address of length, the first advertisement film source based on the first header of the first advertisement film source in information With the first address in the target memory space;It is based on the according to the length of the first advertisement film source, the first advertisement film source The first address of the first byte offset address of one header and the target memory space obtains in the target memory space One advertisement film source realizes quick, the accurate acquisition to the first advertisement film source.
Fig. 5 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention three provides, in the base of above-described embodiment On plinth, the detailed process for acquisition the second advertisement film source that the present embodiment is related to.As shown in figure 5, before above-mentioned S102, this implementation Example method further include:
S301, when being switched on last time, send advertisement to server and download request, it includes described that request is downloaded in the advertisement The download address of two advertisement film sources.
S302, second advertising film that the server is downloaded according to the download address of the second advertisement film source is received Source, and the second advertisement film source is preserved into the advertisement subregion of the external memory.
Specifically, when being switched on last time, electronic equipment sends advertisement to server and downloads request, which downloads request bag The download address of the second advertisement film source is included, download address of the request for request server according to the second advertisement film source is downloaded in advertisement Download the second advertisement film source.
In the present embodiment, electronic equipment can send advertisement download to server in any moment in open state and ask It asks, for example, electronic equipment sends advertisement in booting moment, to server downloads request, alternatively, electronic equipment is in network idle When, it sends advertisement to server and downloads request.Alternatively, electronic equipment sends advertisement in shutdown moment, to server downloads request, At this point, the second advertisement film source of download can be stored in the external storage of electronic equipment by server when electronic equipment shuts down In device.
The step of according to above-mentioned S301, after server has downloaded the second advertisement film source, server is by the second advertisement film source It is sent to electronic equipment.After electronic equipment receives the second advertisement film source of server download, which is preserved Into the advertisement subregion of external memory, the download of the second advertisement film source is realized.
When this is switched on, the second advertisement film source can be directly obtained from the advertisement subregion of external memory, due to this Second advertisement film source is what electronic equipment was downloaded when being switched on last time, and target memory space is replaced using the second advertisement film source In the first advertisement film source, the update to the first advertisement film source may be implemented, and then improve the timeliness of startup advertisement.
The playback method of startup advertisement provided in an embodiment of the present invention is sent to server under advertisement when being switched on last time Request is carried, the second advertisement film source that the server is downloaded according to the download address of the second advertisement film source is received, and The second advertisement film source is preserved into the advertisement subregion of the external memory, and then realizes the standard to the second advertisement film source Really, quick obtaining.
Fig. 6 is the flow chart of the playback method for the startup advertisement that the embodiment of the present invention four provides, and the present embodiment refers to The playing process of startup advertisement in electronic equipment start-up course.As shown in fig. 6, the method for the present embodiment includes:
S401, U-Boot start.
S402, in the start-up course of U-Boot, decompression booting image file obtains first wide in target memory space Accuse film source.
Specifically, electronic equipment receives power-on instruction, electronic equipment enters open state, and U-Boot starts, system journey Sequence starts to start.In the start-up course of U-Boot, decompression booting image file obtains the first advertisement in target memory space Film source, detailed process is with reference to the description of above-mentioned S101, and details are not described herein.
S403, the second advertisement film source is obtained from the advertisement subregion of external memory.
S404, the first advertisement film source in the target memory space is replaced with into the second advertisement film source.
S405, control video player read the second advertisement film source from the target memory space, and play institute State the corresponding startup advertisement of the second advertisement film source.
Specifically, processor reads the second advertisement film source from the advertisement subregion of the external memory of electronic equipment, and make The first advertisement film source in target memory space is replaced with the second advertisement film source of reading, realizes the update of startup advertisement.
Finally, control video player reads the second advertisement film source from target memory space, and plays second advertisement The corresponding startup advertisement of film source.
I.e. the whole process of the present embodiment is realized in U-Boot start-up courses, during booting, across The start-up course of Android takes to save most booting, achievees the purpose that quick turn-on.Meanwhile it being opened in U-Boot During dynamic, the update of startup advertisement is realized, the timeliness of startup advertisement is improved, improves the booting experience of user.
The playback method of startup advertisement provided in an embodiment of the present invention, in the start-up course of U-Boot, decompression booting mirror As file, the first advertisement film source in target memory space is obtained, the second advertisement is obtained from the advertisement subregion of external memory The first advertisement film source in the target memory space is replaced with the second advertisement film source, controls video player by film source The second advertisement film source is read from the target memory space, and it is wide to play the corresponding booting of the second advertisement film source It accuses, not only increases starting up speed, save the available machine time, while realizing the update of startup advertisement, improve startup advertisement Timeliness.
Fig. 7 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention one provides.As shown in fig. 7, this The playing device 100 of the startup advertisement of embodiment may include:
Decompression module 110, for when receiving power-on instruction, decompression booting image file to determine target memory space In the first advertisement film source, wherein the booting image file includes the first advertisement film source and the target memory space Address, it is described booting image file be electronic equipment be switched on when system mode backup file;
Acquisition module 120, for obtaining the second advertisement film source, second advertisement from the advertisement subregion of external memory Film source is to be downloaded when being switched on last time;
Replacement module 130, for the first advertisement film source in the target memory space to be replaced with second advertisement Film source;
Read module 140 reads second advertising film for controlling video player from the target memory space Source;
Playing module 190, for playing the corresponding startup advertisement of the second advertisement film source.
The playing device of the startup advertisement of the embodiment of the present invention can be used for executing the technology of above-mentioned shown embodiment of the method Scheme, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 8 is the structural schematic diagram of the playing device of startup advertisement provided by Embodiment 2 of the present invention.As shown in figure 8, this The playing device 100 of the startup advertisement of embodiment may include:
Configuration module 150 when for making the booting image file, according to the length of the first advertisement film source, is matched Continuous memory address space is set as the target memory space, and flag bit is arranged to the target memory space, it is described Flag bit is not recovered for identifying the target memory space.
In a kind of possible realization method of the present embodiment, the first header, institute are also preserved in target memory space State the length, the first byte of the first advertisement film source based on the first header that the first header includes the first advertisement film source The first address of offset address and the target memory space.
The playing device of the startup advertisement of the embodiment of the present invention can be used for executing the technology of above-mentioned shown embodiment of the method Scheme, implementing principle and technical effect are similar, and details are not described herein again.
Fig. 9 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention three provides.As shown in figure 9, this The decompression module 110 of embodiment includes decompression units 111 and acquiring unit 112;
The decompression units 111, for decompressing booting image file, described first in acquisition first header is wide Accuse length, the first advertisement film source the first byte offset address and the target memory space based on the first header of film source First address;
The acquiring unit 112, for being based on the according to the length of the first advertisement film source, the first advertisement film source The first address of the first byte offset address of one header and the target memory space obtains in the target memory space One advertisement film source.
The playing device of the startup advertisement of the embodiment of the present invention can be used for executing the technology of above-mentioned shown embodiment of the method Scheme, implementing principle and technical effect are similar, and details are not described herein again.
Figure 10 is the structural schematic diagram of the playing device for the startup advertisement that the embodiment of the present invention four provides.As shown in Figure 10, The playing device 10 of the startup advertisement of the present embodiment may include:
Sending module 160, for when being switched on last time, sending advertisement to server and downloading request, the advertisement download is asked Seek the download address for including the second advertisement film source;
Receiving module 170 receives the server is downloaded according to the download address of the second advertisement film source described Two advertisement film sources;
Preserving module 180, for preserving the second advertisement film source into the advertisement subregion of the external memory.
The playing device of the startup advertisement of the embodiment of the present invention can be used for executing the technology of above-mentioned shown embodiment of the method Scheme, implementing principle and technical effect are similar, and details are not described herein again.
Figure 11 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 11, the electricity of the present embodiment Sub- equipment 200 includes:
Memory 220, for storing computer program;
Processor 230, to realize the playback method of above-mentioned startup advertisement, is realized for executing the computer program Principle is similar with technique effect, and details are not described herein again.
Further, when at least part function of the playback method of startup advertisement in the embodiment of the present invention passes through software reality Now, the embodiment of the present invention also provides a kind of computer storage media, and computer storage media is wide for being stored as above-mentioned booting The computer software instructions of the broadcasting of announcement, when run on a computer so that computer can execute above method implementation The playback method of various possible startup advertisements in example.It, can when loading on computers and executing the computer executed instructions It entirely or partly generates according to the flow or function described in the embodiment of the present invention.The computer instruction can be stored in calculating It in machine storage medium, or transmits from a computer storage media to another computer storage media, the transmission can be with By wireless (such as cellular communication, infrared, short-distance wireless, microwave etc.) mode to another web-site, computer, service Device or data center are transmitted.The computer storage media can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as SSD) etc..
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Present invention has been described in detail with reference to the aforementioned embodiments for pipe, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of playback method of startup advertisement, which is characterized in that including:
When receiving power-on instruction, decompression booting image file determines the first advertisement film source in target memory space, In, the booting image file includes the address of the first advertisement film source and the target memory space, the booting mirror image File is the backup file of system mode when electronic equipment is switched on;
The second advertisement film source is obtained from the advertisement subregion of external memory, the second advertisement film source is to be downloaded when being switched on last time 's;
The first advertisement film source in the target memory space is replaced with into the second advertisement film source;
Control video player reads the second advertisement film source from the target memory space, and plays second advertisement The corresponding startup advertisement of film source.
2. according to the method described in claim 1, it is characterized in that, before decompression booting image file, the method is also Including:
When making the booting image file, according to the length of the first advertisement film source, continuous memory address space is configured Flag bit is set as the target memory space, and to the target memory space, the flag bit is for identifying the mesh Mark memory headroom is not recovered.
3. according to the method described in claim 2, it is characterized in that, preserve the first header in the target memory space, First header includes the length of the first advertisement film source, the lead-in of the first advertisement film source based on the first header Save the first address of offset address and the target memory space.
4. according to the method described in claim 3, the image file it is characterized in that, the decompression is switched on, determines target memory sky Between in the first advertisement film source, specifically include:
Decompress the booting image file, obtain the first advertisement film source in first header length, described the The first address of first byte offset address and the target memory space of the one advertisement film source based on the first header;
According to the first byte offset address of the length of the first advertisement film source, the first advertisement film source based on the first header With the first address in the target memory space, the first advertisement film source in the target memory space is obtained.
5. according to claim 1-4 any one of them methods, which is characterized in that obtained in the advertisement subregion from memory Before second advertisement film source, the method further includes:
When being switched on last time, sends advertisement to server and download request, it includes second advertising film that request is downloaded in the advertisement The download address in source;
Receive the second advertisement film source that the server is downloaded according to the download address of the second advertisement film source, and by institute The second advertisement film source is stated to preserve into the advertisement subregion of the external memory.
6. a kind of playing device of startup advertisement, which is characterized in that including:
Decompression module, for when receiving power-on instruction, decompression booting image file to determine first in target memory space Advertisement film source, wherein the booting image file includes the address of the first advertisement film source and the target memory space, institute State the backup file of system mode when booting image file is electronic equipment booting;
Acquisition module, for obtaining the second advertisement film source from the advertisement subregion of external memory, the second advertisement film source is What last time downloaded when being switched on;
Replacement module, for the first advertisement film source in the target memory space to be replaced with the second advertisement film source;
Read module reads the second advertisement film source for controlling video player from the target memory space;
Playing module, for playing the corresponding startup advertisement of the second advertisement film source.
7. device according to claim 6, which is characterized in that described device further includes:
Configuration module, for when making the booting image file, according to the length of the first advertisement film source, configuration to be continuous Memory address space as the target memory space, and to the target memory space be arranged flag bit, the flag bit It is not recovered for identifying the target memory space.
8. device according to claim 7, which is characterized in that the first header is preserved in the target memory space, First header includes the length of the first advertisement film source, the lead-in of the first advertisement film source based on the first header Save the first address of offset address and the target memory space.
9. device according to claim 8, which is characterized in that the decompression module includes decompression units and acquiring unit;
The decompression units obtain first advertisement in first header for decompressing the booting image file The length of film source, the first advertisement film source first byte offset address and the target memory space based on the first header First address;
The acquisition module, for being based on first letter according to length, the first advertisement film source of the first advertisement film source The first address of the first byte offset address of breath and the target memory space obtains the first advertisement in the target memory space Film source.
10. according to claim 6-9 any one of them devices, which is characterized in that described device further includes:
Sending module, for when being switched on last time, sending advertisement to server and downloading request, it includes institute that request is downloaded in the advertisement State the download address of the second advertisement film source;
Receiving module is downloaded for receiving the server according to the download address of the second advertisement film source described second wide Accuse film source;
Preserving module, for preserving the second advertisement film source into the advertisement subregion of the external memory.
11. a kind of electronic equipment, which is characterized in that including:
Memory, for storing computer program;
Processor, for executing the computer program, realizing the startup advertisement as described in any one of claim 1-5 Playback method.
12. a kind of computer storage media, which is characterized in that store computer program, the computer in the storage medium Program realizes the playback method of the startup advertisement described in any one of claim 1-5 when being executed.
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 true CN108810631A (en) 2018-11-13
CN108810631B 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)

Cited By (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
CN113556583A (en) * 2021-07-19 2021-10-26 杭州国芯科技股份有限公司 Set top box starting advertisement playing method

Citations (8)

* 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
US20110145856A1 (en) * 2009-12-14 2011-06-16 Microsoft Corporation Controlling ad delivery for video on-demand
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

Patent Citations (8)

* 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
US20110145856A1 (en) * 2009-12-14 2011-06-16 Microsoft Corporation Controlling ad delivery for video on-demand
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

Cited By (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
CN113556583A (en) * 2021-07-19 2021-10-26 杭州国芯科技股份有限公司 Set top box starting advertisement playing method

Also Published As

Publication number Publication date
CN108810631B (en) 2021-07-06

Similar Documents

Publication Publication Date Title
CN102646042B (en) Method and terminal equipment for storing application program data
CN109992311B (en) Starting method and device of operating system, storage medium and client
CN102541450B (en) Display control method and display control device for application program icons
CN104978231A (en) Multisystem device based on internal storage partitions and loading and switching method thereof
US20130227565A1 (en) Apparatus and method for managing application for guest operating system
JP2010146257A (en) Information processor, program update method, and information processing system
KR20150087390A (en) Advertisement processing method and device
CN110297658B (en) Function component sharing method and device and computer equipment
CN103778211A (en) Method and device for switching language of mobile terminal game software
CN108810631A (en) Playback method, device, electronic equipment and the computer storage media of startup advertisement
CN111601154B (en) Video processing method and related equipment
US8826263B2 (en) Portable terminal, portable terminal control method, and portable terminal control program
US20110107323A1 (en) Electronic device and method for making upgrade firmware
US20110125993A1 (en) Display apparatus and control method thereof
CN105025364A (en) Method of intelligent television OTA delay upgrade
CN111885420B (en) Standby protection method and device, smart television and readable storage medium
US11579835B2 (en) Multimedia data playing method and terminal device
CN105453518B (en) Synchronization of metering networks
US20140215035A1 (en) Distribution of application components among devices
US20100115503A1 (en) Image processing apparatus and control method thereof
CN113934437B (en) Method and system for installing application on cloud mobile phone and client cloud mobile phone
CN111324410A (en) Terminal boot animation playing method and device, terminal and storage medium
CN114296764A (en) System upgrading method and device, storage medium and electronic equipment
CN107071576A (en) TV programme automatic update method, device, terminal and storage medium
CN106681771B (en) System reinstallation method and device

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
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.

GR01 Patent grant
GR01 Patent grant