CN112584239B - Program preview method and program preview device - Google Patents

Program preview method and program preview device Download PDF

Info

Publication number
CN112584239B
CN112584239B CN201910940900.7A CN201910940900A CN112584239B CN 112584239 B CN112584239 B CN 112584239B CN 201910940900 A CN201910940900 A CN 201910940900A CN 112584239 B CN112584239 B CN 112584239B
Authority
CN
China
Prior art keywords
media
preview
time
playing
target
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
CN201910940900.7A
Other languages
Chinese (zh)
Other versions
CN112584239A (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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201910940900.7A priority Critical patent/CN112584239B/en
Publication of CN112584239A publication Critical patent/CN112584239A/en
Application granted granted Critical
Publication of CN112584239B publication Critical patent/CN112584239B/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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44204Monitoring of content usage, e.g. the number of times a movie has been viewed, copied or the amount which has been watched
    • 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
    • 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/83Generation or processing of protective or descriptive data associated with content; Content structuring
    • H04N21/845Structuring of content, e.g. decomposing content into time segments
    • H04N21/8456Structuring of content, e.g. decomposing content into time segments by decomposing the content in the time domain, e.g. in time segments

Abstract

The embodiment of the invention discloses a program previewing method and a program previewing device. The program preview method comprises the following steps: receiving an instruction for previewing a program to be previewed, and recording the receiving time as a first moment, wherein the program to be previewed comprises at least one media; determining the next playing time of the at least one media according to the parameter information of the at least one media; refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media, and updating the next playing time of the target preview media. The embodiment of the invention can realize smooth preview playing of the program.

Description

Program preview method and program preview device
Technical Field
The present invention relates to the field of program editing technologies, and in particular, to a program previewing method and a program previewing device.
Background
In a program editing scene, in order to enable a user to see the playing effect of a program in time after editing the program, the edited program is usually required to be previewed and played, so that the user can conveniently check the playing effect, such as playing time and animation effect, of each media in the current program to judge whether the requirement is met.
In the prior art, a timer is generally used to implement scheduling of media so as to implement a preview function of a program. Specifically, a timer is created for each media according to the playing time length of each media in the program to be previewed currently, and a timer corresponding to the total playing time length of the program is also required to be created. The preview playing of each media in the program is controlled by a corresponding timer, and the preview playing of the whole program is controlled by the timer of the total duration of the program.
However, when the program includes a plurality of media, a plurality of timers need to be created, but if the timers are too much created and cannot be destroyed in time, the program preview playing is blocked, and even the browser is crashed.
Disclosure of Invention
Therefore, in order to overcome the defects and shortcomings in the prior art, the embodiment of the invention provides a program previewing method and a program previewing device, so that smooth preview playing of a program is realized without setting a timer.
In one aspect, an embodiment of the present invention provides a program preview method, including: receiving an instruction for previewing a program to be previewed, and recording the receiving time as a first moment, wherein the program to be previewed comprises at least one media; determining the next playing time of the at least one media according to the parameter information of the at least one media; refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media, and updating the next playing time of the target preview media.
In the above scheme, the preview duration is determined according to the first time of receiving the program to be previewed and the second time of refreshing the screen, the target preview media is determined according to the preview duration and the next playing time of the media in the program to be previewed, and the target preview media is scheduled to be previewed and played.
In one embodiment of the present invention, the parameter information of the at least one media includes a media type and a play duration, the media type includes a general media or a media collection, the media collection is formed by combining a plurality of general media in a predetermined order; the determining the next playing time of the at least one media according to the parameter information of the at least one media specifically includes: when the at least one media is a general media, determining the next play time of the general media as zero; and when the at least one media is a media set, setting the next playing time of the general media in the media set as follows:
Figure GDA0002259622450000021
wherein T is i For the duration of play of the ith generic media in the media collection in the predetermined order, where i is an integer, t n And the next playing time of the nth general media in the media set according to the preset sequence is set, wherein n is an integer.
In one embodiment of the present invention, the determining a target preview media from the program to be previewed according to the preview duration and the next playing time of the at least one media, previewing the target preview media, and updating the next playing time of the target preview media specifically includes: when the target preview media is general media and the preview duration is equal to the next playing duration of the target preview media, previewing and playing the target preview media, determining the playing times of the target preview media, and multiplying the playing times by the playing duration of the target preview media to obtain the next playing time of the target preview media; and when the target preview media is a media collection and the preview duration is equal to the next play time of the target general media in the target preview media, previewing and playing the target general media in the target preview media, and updating the next play time of the target general media in the target preview media to be the sum of the next play time of the target general media and the play duration of the target preview media, wherein the play duration of the target preview media is equal to the sum of the play durations of a plurality of general media in the target preview media.
In one embodiment of the present invention, the determining the number of play times of the target preview media specifically includes: and adding 1 to the playing times of the target preview media.
In one embodiment of the present invention, the determining the preview duration according to the first time and the second time is specifically: and subtracting the first time value corresponding to the first time from the second time value corresponding to the second time to obtain the preview duration.
In one embodiment of the present invention, before the determining the next playing time of the at least one media according to the parameter information of the at least one media, the program preview method further includes: and acquiring the parameter information of the at least one media included in the program to be previewed.
On the other hand, an embodiment of the present invention provides a program preview apparatus, including: the program previewing instruction receiving module is used for receiving the program previewing instruction and recording the receiving time as a first moment, wherein the program previewing instruction comprises at least one media; a next play time determining module, configured to determine a next play time of the at least one media according to the parameter information of the at least one media; the screen refreshing module is used for refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and the preview playing module is used for determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media and updating the next playing time of the target preview media.
In the above scheme, the preview duration is determined according to the first time of receiving the program to be previewed and the second time of refreshing the screen, the target preview media is determined according to the preview duration and the next playing time of the media in the program to be previewed, and the target preview media is scheduled to be previewed and played.
In one embodiment of the present invention, the parameter information of the at least one media includes a media type and a play duration, the media type includes a general media or a media collection, the media collection is formed by combining a plurality of general media in a predetermined order; the next play time determining module is specifically configured to: when the at least one medium is a general medium, the general medium is selected from the group consisting ofIs determined to be zero; and when the at least one media is a media set, setting the next playing time of the general media in the media set as follows:
Figure GDA0002259622450000041
wherein T is i For the duration of play of the ith generic media in the media collection in the predetermined order, where i is an integer, t n And the next playing time of the nth general media in the media set according to the preset sequence is set, wherein n is an integer.
In one embodiment of the present invention, the preview playing module is specifically configured to: when the target preview media is general media and the preview duration is equal to the next playing duration of the target preview media, previewing and playing the target preview media, determining the playing times of the target preview media, and multiplying the playing times by the playing duration of the target preview media to obtain the next playing time of the target preview media; and when the target preview media is a media collection and the preview duration is equal to the next playing time of the target general media in the target preview media, previewing and playing the target general media in the target preview media, and updating the next playing time of the target general media to be the sum of the next playing time of the target general media in the target preview media and the playing duration of the target preview media, wherein the playing duration of the target preview media is equal to the sum of the playing durations of a plurality of general media in the target preview media.
In one embodiment of the present invention, the determining the number of play times of the target preview media specifically includes: and adding 1 to the playing times of the target preview media.
The above technical solution may have the following advantages or benefits: the preview duration is determined according to the first moment of receiving the program to be previewed and the second moment of refreshing the screen, the target preview media is determined according to the preview duration and the next playing time of the media in the program to be previewed, and the target preview media is scheduled to be previewed and played.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a program preview method according to a first embodiment of the present invention.
Fig. 2 is a flowchart of another program preview method according to the first embodiment of the present invention.
Fig. 3A to 3F are schematic process diagrams showing a program preview method according to a first embodiment of the present invention.
Fig. 4 is a schematic block diagram of a program preview apparatus according to a second embodiment of the present invention.
Fig. 5 is a schematic block diagram of another program preview apparatus according to a second embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a program preview system according to a third embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a computer storage medium according to a fourth embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
[ first embodiment ]
Referring to fig. 1, a program preview method according to a first embodiment of the present invention is shown. The program preview method includes the following steps:
s102, receiving an instruction for previewing a program to be previewed, and recording the receiving time as a first moment, wherein the program to be previewed comprises at least one media;
s104, determining the next playing time of the at least one media according to the parameter information of the at least one media;
s106, refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and
s108, determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media, and updating the next playing time of the target preview media.
As shown in fig. 2, before step S104, step S103 is further included: and acquiring the parameter information of the at least one media included in the program to be previewed.
In S104, the next playing time is the next playing time of the media.
In order to facilitate understanding of the present embodiment, a program preview method of the present embodiment will be described in detail with reference to fig. 3A to 3F.
In an embodiment of the present invention, media included in a program to be previewed may include general media and small containers, where the general media represents media directly arranged in the program, for example, including: text, pictures, video, digital clocks, analog clocks, weather components, rich text weather components, calendar components, web pages. A capsule is a combination of general media in a program that has a predetermined play order, i.e., a capsule includes a plurality of general media that can be played in the predetermined play order. The small container may also be referred to as a media collection, that is, a media collection comprising a plurality of general media having a predetermined play order.
The program preview method according to the embodiment of the present invention may be implemented, for example, by software installed on a PC, such as program preview software, which is previewed, for example, based on a browser, as shown in fig. 3A, which shows a program preview software interface 201. Program preview software interface 201 has program editing interface 203 and preview button 202 thereon. In response to a user adding at least one media, the program preview software adds 4 media, such as media 1, media 2, media 3, and media 4, respectively, on the program editing interface 203, for illustrative purposes, only 4 media are shown herein, and in practical applications, the user may add any number of media on the interface editing interface 203 according to the program requirements, and the number of media added on the program editing interface is not specifically limited in this embodiment of the present invention. In addition, the added media may be from the PC or may be obtained from a server, which is not specifically limited herein.
In the process of executing the program preview method according to the embodiment of the present invention by the program preview software, first, the program preview software receives an instruction for previewing a program to be previewed, for example, an instruction corresponding to clicking the preview button 202 by a user, records the time for receiving the instruction as a first time, and then, the program preview software obtains parameter information of 4 media on a program editing interface, where the parameter information includes the type of the media and the playing duration of the media, and the type of the media is the general media or the small container described above. Fig. 3B-3F describe parameter information of media 1 to 4 and a process of initializing each media information according to the parameter information of each media, that is, determining information such as a next play time of each media. As shown in fig. 3B, the type of the medium 1 is a general medium, the play duration is 2s, and the initialization parameter value of the medium 1 can be determined according to the parameter information of the medium 1, such as the type of the medium 1 and the play duration, for example, the number of plays is determined to be 0, the play duration is 2s, and the next play time is 0s. As shown in fig. 3C, the type of the medium 2 is a general medium, the playing duration is 2s, and the initialization parameter value of the medium 2 can be determined according to the parameter information of the medium 2, for example, the playing frequency is 0, and the playing duration is2s, and the next playing time is 0s. As shown in fig. 3D, the type of the medium 3 is a general medium, the playing duration is 4s, and the initialization parameter value of the medium 3 can be determined according to the parameter information of the medium 3, for example, the playing time is 0, the playing duration is 4s, and the next playing time is 0s. As shown in fig. 3E, the type of media 4 is a small container (i.e., a media collection) that includes 3 general media, which are general media a, general media b, and general media c, respectively, in a predetermined play order. Correspondingly, the play duration of the general media a is 2s, the play duration of the general media b is 1s, and the play duration of the general media c is 3s. The initialization parameter value of the medium 4 (media collection) may be determined according to the parameter information of the medium 4, for example, it is determined that the next play time of the general medium a is 0s, the next play time of the general medium b is 2s, the next play time of the general medium c is 3s, the play duration of the medium 4 is 6s, and the next play time of the general medium in the media collection 4 is determined according to the following formula:
Figure GDA0002259622450000081
wherein T is i For the duration of play of the ith generic media in the media collection in the predetermined order, where i is an integer, t n For the next playing time of the nth general media in the media collection according to the predetermined sequence, where n is an integer, specifically, for the first general media a in the media 4 according to the predetermined sequence, the next playing time of the second general media b is the playing duration of the first media a, that is, 2s, and the next playing time of the third general media c is the sum of the playing duration of the first general media a and the playing duration of the second general media b, that is, 2s plus 1s, that is, 3s. It should be noted that, in the embodiment of the present invention, the program preview software may optionally perform a generalization operation on the general media information in the program to be previewed, that is, use the general media with the same playing duration as a group of media, because for the general media, the general media with the same playing duration must also have the same playing time next time, becauseIn this way, when determining the target preview media, a group of general media can be quickly acquired, so that the running speed of the preview playing software can be increased, and the processing efficiency of the processor corresponding to the preview playing software can be improved.
After determining the next play time for each media on the program editing interface, the program preview software will detect a screen refresh. Here, a screen refers to a screen of a device on which program preview software is running, for example, a display screen of a PC, for example, a display screen refresh frequency is typically 60 hz, that is, 60 times per second, that is, every 16.7ms, where a screen refresh is detected, that is, a refresh of the display screen is detected. When the screen refreshing is detected, responding to the screen refreshing, recording the screen refreshing time as a second moment, and then determining the preview duration time by the program preview software according to the first moment and the second moment, wherein the obtained value is obtained by subtracting the first value corresponding to the first moment from the second value corresponding to the second moment.
Further, the program preview software traverses next playing time of each media according to the determined preview duration, determines whether at least one media has a target preview media whose next playing time is equal to the preview duration, if so, schedules preview playing of the target preview media, and updates the next playing time of the target preview media so as to determine whether preview playing of the target preview media is performed according to the updated next playing time in response to the next preview playing.
Specifically, for example, if the preview play duration is 0s, that is, the difference between the second time of screen refresh and the first time of preview on is 0, media 1 to media 4 are traversed, and when the next play time of the general media a in media 1, media 2, media 3, and media 4 is determined to be 0, the general media a in media 1, media 2, media 3, and media 4 is preview played, and the respective corresponding next play times are updated. Specifically, as shown in fig. 3F, for media 1, the number of plays is 0 plus 1 before previewing the play of the media 1 to determine that the number of plays of the media 1 is 1. The next playing time is determined according to the determined playing times and the playing duration of the media 1, and may be obtained by multiplying the determined playing times and the playing duration, for example, that is, the next playing time of the media 1 is 2s. Correspondingly, for general media, the playing times and the next playing time determining process are similar to those of the media 1, and are not described herein, specifically, the playing times of the media 2 are updated to 1, and the next playing time of the media 2 is updated to 2s; and the number of play times of the media 3 is updated to 1, and the next play time of the media 3 is updated to 4s. For the general media a in the small container, which is the media 4, the next playing time is updated to be the sum of the current next playing time and the playing duration of the media 4, wherein the playing duration of the media 4 is the sum of the respective playing durations of a plurality of general media included in the media 4, that is, the general media a, the general media b and the general media c, wherein the playing duration of the media 4 is 6s, and for the general media a, the next playing time is updated to be the sum of the current next playing time 0 and the playing duration 6s of the media 4, that is, the next playing time of the general media a is updated to be 6s.
It should be noted that, the program preview software will respond to each screen refresh to traverse the media in the program to be previewed, so as to schedule and play the corresponding media, so as to complete the preview play of the media. In the embodiment of the invention, the corresponding media is scheduled to preview and play in response to each screen refresh, so that the phenomenon of frame loss of a picture can be avoided, and compared with the scheme of previewing and playing programs by using a timer in the prior art, the program previewing and playing problem can be realized, and the program previewing and playing delay is avoided. In addition, the program preview software periodically responds to the screen refreshing and updates the second moment, and judges whether the next playing time of at least one media accords with the preview condition, namely whether the next playing time of the target preview media is equal to the preview duration, and when the next playing time of the target preview media accords with the condition, the target preview media is previewed and updated.
In the above scheme, the preview duration is determined according to the first time of receiving the program to be previewed and the second time of refreshing the screen, the target preview media is determined according to the preview duration and the next playing time of the media in the program to be previewed, and the target preview media is scheduled to be previewed and played.
[ second embodiment ]
As shown in fig. 4, a second embodiment of the present invention provides a program preview apparatus 300. The program previewing apparatus 300 includes, for example, a preview program instruction receiving module 302, a next play time determining module 304, a screen refreshing module 306, and a preview playing module 308.
Specifically, the preview program to be previewed instruction receiving module 302 is configured to receive a preview program to be previewed instruction, and record that the receiving time is a first time, where the program to be previewed includes at least one media;
the next play time determining module 304 is configured to determine a next play time of the at least one media according to the parameter information of the at least one media;
the screen refreshing module 306 is configured to refresh a screen, record that a time for refreshing the screen is a second time, and determine a preview duration according to the first time and the second time; and
the preview playing module 308 is configured to determine a target preview media from the programs to be previewed according to the preview duration and the next playing time, preview the target preview media, and update the next playing time of the target preview media.
In a specific embodiment of the present invention, the parameter information of the at least one media includes a media type and a play duration, the media type includes a general media or a media collection, and the media collection is formed by combining a plurality of general media in a predetermined order; the next play time determining module 304 is specifically configured to: when the at least one media is a general media, determining the next play time of the general media as zero; and when the at least one media is a media collection, combining the mediaThe next playing time of the general media in the media collection is as follows:
Figure GDA0002259622450000111
wherein T is i For the duration of play of the ith generic media in the media collection in the predetermined order, where i is an integer, t n And the next playing time of the nth general media in the media set according to the preset sequence is set, wherein n is an integer.
In one embodiment of the present invention, the preview playing module 308 is specifically configured to: when the target preview media is general media and the preview duration is equal to the next playing duration of the target preview media, previewing and playing the target preview media, determining the playing times of the target preview media, and multiplying the playing times by the playing duration of the target preview media to obtain the next playing time of the target preview media; and when the target preview media is a media collection and the preview duration is equal to the next playing time of the target general media in the target preview media, previewing and playing the target general media in the target preview media, and updating the next playing time of the target general media to be the sum of the next playing time of the target general media in the target preview media and the playing duration of the target preview media, wherein the playing duration of the target preview media is equal to the sum of the playing durations of a plurality of general media in the target preview media.
In one embodiment of the present invention, the determining the number of play times of the target preview media specifically includes: and adding 1 to the playing times of the target preview media.
In an embodiment of the present invention, as shown in fig. 5, the program preview apparatus 300 further includes a parameter information obtaining module 303, configured to obtain the parameter information of the at least one media included in the program to be previewed.
The specific working procedure and technical effects between the modules in the program preview apparatus 300 in the present embodiment are referred to the description of the foregoing first embodiment.
[ third embodiment ]
As shown in fig. 6, a third embodiment of the present invention provides a program preview system 400. Program preview system 400 includes a memory 410 and a processor 430 coupled to memory 410. The memory 410 may be, for example, a non-volatile memory, on which the computer program 411 is stored. Processor 430 may comprise, for example, an embedded processor. The processor 430, when executing the computer program 411, performs the program preview method provided by the foregoing first embodiment.
[ fourth embodiment ]
As shown in fig. 7, a fourth embodiment of the present invention provides a computer storage medium 500 having stored thereon computer executable instructions 510. The computer-executable instructions 510 are for performing the program preview method as in the first embodiment described above. The computer storage medium 500 is, for example, a nonvolatile memory, such as includes: magnetic media (e.g., hard disk, floppy disk, and magnetic strips), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices that are specially constructed for storing and performing computer-executable instructions (e.g., read-only memory (ROM), random Access Memory (RAM), flash memory, etc.). Computer storage media 500 may be used by one or more processors or processing devices to execute computer-executable instructions 510.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments may be arbitrarily combined and matched without conflict in technical features, contradiction in structure, and departure from the purpose of the present invention.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the partitioning of elements is merely a logical functional partitioning, and there may be additional partitioning in actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not implemented. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit/module in the embodiments of the present invention may be integrated in one processing unit/module, or each unit/module may exist alone physically, or two or more units/modules may be integrated in one unit/module. The integrated units/modules may be implemented in hardware or in hardware plus software functional units/modules.
The integrated units/modules implemented in the form of software functional units/modules described above may be stored in a computer readable storage medium. The software functional units described above are stored in a storage medium and include instructions for causing one or more processors of a computer device (which may be a personal computer, a server, or a network device, etc.) to perform some steps of the methods described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (9)

1. A program preview method, comprising:
receiving an instruction for previewing a program to be previewed, and recording the receiving time as a first moment, wherein the program to be previewed comprises at least one media;
determining the next playing time of the at least one media according to the parameter information of the at least one media, wherein the parameter information of the at least one media comprises a media type and a playing duration, the media type comprises general media or a media set, and the media set is formed by combining a plurality of general media according to a preset sequence;
refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and
determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media, and updating the next playing time of the target preview media;
the determining the next playing time of the at least one media according to the parameter information of the at least one media specifically includes: when the at least one media is a general media, the next playing time of the general media is zero; and when the at least one media is a media set, the next playing time of the 1 st general media in the media set according to the preset sequence is zero, and the next playing time of the n-th general media in the media set according to the preset sequence is determined according to the playing duration of the first n-1 general media in the media set, wherein n is greater than 1, and n is an integer;
wherein, the determining the preview duration according to the first time and the second time specifically includes: and subtracting the first time value corresponding to the first time from the second time value corresponding to the second time to obtain the preview duration.
2. The program preview method according to claim 1, wherein the determining the next playing time of the at least one media according to the parameter information of the at least one media is specifically:
when the at least one media is a general media, determining the next play time of the general media as zero; and
when the at least one media is a media set, the next playing time of the general media in the media set is as follows:
Figure QLYQS_1
wherein->
Figure QLYQS_2
Is the first of the media collections in the predetermined orderiA duration of play of the general media, whereiniIs an integer of the number of the times,t n is the first of the media collections in the predetermined ordernNext play time of general media, whereinnIs an integer.
3. The program preview method according to claim 2, wherein the determining a target preview media from the program to be previewed according to the preview duration and the next play time of the at least one media, previewing the target preview media, and updating the next play time of the target preview media is specifically:
when the target preview media is general media and the preview duration is equal to the next playing duration of the target preview media, previewing and playing the target preview media, determining the playing times of the target preview media, and multiplying the playing times by the playing duration of the target preview media to obtain the next playing time of the target preview media; and
when the target preview media is a media collection and the preview duration is equal to the next playing time of the target general media in the target preview media, previewing and playing the target general media in the target preview media, and updating the next playing time of the target general media in the target preview media to be the sum of the next playing time of the target general media and the playing duration of the target preview media, wherein the playing duration of the target preview media is equal to the sum of the playing durations of a plurality of general media in the target preview media.
4. The program preview method as recited in claim 3, wherein said determining the number of plays of the target preview media is specifically:
and adding 1 to the playing times of the target preview media.
5. The program preview method as recited in claim 1, further comprising, before said determining a next play time of said at least one media based on said parameter information of said at least one media: and acquiring the parameter information of the at least one media included in the program to be previewed.
6. A program preview apparatus, comprising:
the program previewing instruction receiving module is used for receiving the program previewing instruction and recording the receiving time as a first moment, wherein the program previewing instruction comprises at least one media;
a next play time determining module, configured to determine a next play time of the at least one media according to parameter information of the at least one media, where the parameter information of the at least one media includes a media type and a play duration, the media type includes a general media or a media set, and the media set is formed by combining a plurality of general media according to a predetermined sequence;
the screen refreshing module is used for refreshing a screen, recording the time for refreshing the screen as a second moment, and determining the preview duration time according to the first moment and the second moment; and
the preview playing module is used for determining target preview media from the program to be previewed according to the preview duration time and the next playing time, previewing the target preview media and updating the next playing time of the target preview media;
the next play time determining module is specifically configured to: when the at least one media is a general media, the next playing time of the general media is zero; and when the at least one media is a media set, the next playing time of the 1 st general media in the media set according to the preset sequence is zero, and the next playing time of the n-th general media in the media set according to the preset sequence is determined according to the playing duration of the first n-1 general media in the media set, wherein n is greater than 1, and n is an integer;
the screen refreshing module is specifically configured to: and subtracting the first time value corresponding to the first time from the second time value corresponding to the second time to obtain the preview duration.
7. The program preview device of claim 6, wherein the next play time determining module is specifically configured to:
when the at least one media is a general media, determining the next play time of the general media as zero; and
when the at least one media is a media set, the next playing time of the general media in the media set is as follows:
Figure QLYQS_3
wherein->
Figure QLYQS_4
Is the first of the media collections in the predetermined orderiA duration of play of the general media, whereiniIs an integer of the number of the times,t n is the first of the media collections in the predetermined ordernThe next play time of the general media, where n is an integer.
8. The program preview device of claim 7, wherein the preview playing module is specifically configured to:
when the target preview media is general media and the preview duration is equal to the next playing duration of the target preview media, previewing and playing the target preview media, determining the playing times of the target preview media, and multiplying the playing times by the playing duration of the target preview media to obtain the next playing time of the target preview media; and
when the target preview media is a media collection and the preview duration is equal to the next playing time of the target general media in the target preview media, previewing and playing the target general media in the target preview media, and updating the next playing time of the target general media to be the sum of the next playing time of the target general media in the target preview media and the playing duration of the target preview media, wherein the playing duration of the target preview media is equal to the sum of the playing durations of a plurality of general media in the target preview media.
9. The program preview apparatus as recited in claim 8, wherein the determining the number of plays of the target preview media is specifically:
and adding 1 to the playing times of the target preview media.
CN201910940900.7A 2019-09-30 2019-09-30 Program preview method and program preview device Active CN112584239B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910940900.7A CN112584239B (en) 2019-09-30 2019-09-30 Program preview method and program preview device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910940900.7A CN112584239B (en) 2019-09-30 2019-09-30 Program preview method and program preview device

Publications (2)

Publication Number Publication Date
CN112584239A CN112584239A (en) 2021-03-30
CN112584239B true CN112584239B (en) 2023-05-09

Family

ID=75116743

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910940900.7A Active CN112584239B (en) 2019-09-30 2019-09-30 Program preview method and program preview device

Country Status (1)

Country Link
CN (1) CN112584239B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982376A (en) * 2016-01-18 2017-07-25 上海交通大学 The time line control method that a kind of content of multimedia personalization is presented
CN109815348A (en) * 2018-12-25 2019-05-28 北京凯视达科技有限公司 Playback method, device, storage medium and the electronic equipment of multimedia file

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731728A (en) * 2004-08-05 2006-02-08 华为技术有限公司 Device and method for realizing multicast preview
CN101071602B (en) * 2006-05-09 2010-08-25 广达电脑股份有限公司 Method and device for determining video frame playing duration
US9349335B2 (en) * 2012-02-24 2016-05-24 Sharp Kabushiki Kaisha Display device, electronic device comprising same, and drive method for display device
CN102752642B (en) * 2012-06-18 2014-12-17 深圳市云动创想科技有限公司 Method and system for synchronously broadcasting multi-terminal video based on IP (internet protocol) network
US20170264973A1 (en) * 2016-03-14 2017-09-14 Le Holdings (Beijing) Co., Ltd. Video playing method and electronic device
CN108156509B (en) * 2017-12-28 2021-06-08 新华三云计算技术有限公司 Video playing method and device and user terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106982376A (en) * 2016-01-18 2017-07-25 上海交通大学 The time line control method that a kind of content of multimedia personalization is presented
CN109815348A (en) * 2018-12-25 2019-05-28 北京凯视达科技有限公司 Playback method, device, storage medium and the electronic equipment of multimedia file

Also Published As

Publication number Publication date
CN112584239A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
US9280542B2 (en) Process for creating a media sequence by coherent groups of media files
JP2005065244A (en) Method and apparatus for reviewing video
CN102117291A (en) Method and system for displaying network resources
US9196305B2 (en) Smart transitions
CN103559713A (en) Method and terminal for providing augmented reality
CN105007442A (en) Marking method for continuously recording video and image
JP2005318583A (en) Editting system for audiovisual work for television news and corresponding text
CN103442299B (en) A kind of display methods for playing record and electronic equipment
CN103873819B (en) The method and its system of video file quick playback in video monitoring
WO2022017450A1 (en) Previewing method and apparatus for effect application, and device and storage medium
CN111901619A (en) Message pushing method and device
CN104023176A (en) Method and device of processing audio frequency and image information as well as terminal equipment
KR100597398B1 (en) Apparatus and method for searching for video clip
CN112584239B (en) Program preview method and program preview device
CN108619700B (en) Motion recording method and device
EP4351150A1 (en) Video processing method and apparatus, and device and storage medium
CN112860188A (en) Data migration method, system, device and medium
CN109996022B (en) Monitoring storage capacity expansion method and video monitoring system
JP2007267356A (en) File management program, thumb nail image display method, and moving image reproduction device
CN107885807B (en) File saving method and device, intelligent tablet and storage medium
EP1872272A1 (en) Method and apparatus for editing program search information
US20180176481A1 (en) Method for producing media file and electronic device thereof
CN115170700A (en) Method for realizing CSS animation based on Flutter framework, computer equipment and storage medium
JP2012239042A (en) Monitoring image reproduction method and apparatus
JP2005136485A (en) Edit apparatus

Legal Events

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