CN112040290B - Multimedia playing method, device, equipment and system - Google Patents

Multimedia playing method, device, equipment and system Download PDF

Info

Publication number
CN112040290B
CN112040290B CN202010956602.XA CN202010956602A CN112040290B CN 112040290 B CN112040290 B CN 112040290B CN 202010956602 A CN202010956602 A CN 202010956602A CN 112040290 B CN112040290 B CN 112040290B
Authority
CN
China
Prior art keywords
light
flicker
event
multimedia data
playing
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
CN202010956602.XA
Other languages
Chinese (zh)
Other versions
CN112040290A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010956602.XA priority Critical patent/CN112040290B/en
Publication of CN112040290A publication Critical patent/CN112040290A/en
Application granted granted Critical
Publication of CN112040290B publication Critical patent/CN112040290B/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/41Structure of client; Structure of client peripherals
    • H04N21/4104Peripherals receiving signals from specially adapted client devices
    • H04N21/4131Peripherals receiving signals from specially adapted client devices home appliance, e.g. lighting, air conditioning system, metering devices
    • 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
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The embodiment of the invention provides a multimedia playing method, a device, equipment and a system, wherein the method comprises the following steps: in the process of playing the multimedia data, the electronic equipment controls the light source response device to flicker light based on the flicker parameters of the light flicker events in the light description file, wherein the light description file is generated aiming at the multimedia data, and the light flicker events contained in the light description file can be matched with the playing rhythm in the multimedia data; that is to say, in this scheme, electronic equipment when playing multimedia data, can control the broadcast rhythm among the light source response unit cooperation multimedia data and carry out light flicker, and the broadcast form is abundant, utilizes the influence of light to build better broadcast atmosphere, helps improving the user and immerses the sense, has improved the broadcast effect.

Description

Multimedia playing method, device, equipment and system
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a multimedia playing method, apparatus, device, and system.
Background
At present, users can use electronic devices such as computers and mobile phones to play multimedia data such as audio and video. For example, a user may watch some video files, such as movies, short videos, etc., or may also listen to some audio files, such as popular songs, light music, etc., via the electronic device.
The scheme for playing multimedia data by the electronic equipment generally comprises the following steps: and acquiring multimedia data to be played according to an operation instruction of a user, and then decoding and playing the multimedia data. However, in this scheme, the electronic device only plays the original multimedia data, and the playing form is single, and the playing effect is poor.
Disclosure of Invention
The embodiment of the invention aims to provide a multimedia playing method, device, equipment and system so as to improve the playing effect.
To achieve the above object, in a first aspect, an embodiment of the present invention provides a multimedia playing method, including:
under the condition of receiving a playing request of multimedia data, acquiring a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
and controlling a light source response device to flicker light in the playing process of the multimedia data based on the flicker parameter.
In a second aspect, an embodiment of the present invention provides a multimedia playing method, including:
generating a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
and under the condition of receiving a multimedia data playing request from the electronic equipment, sending the light flicker file to the electronic equipment, so that the electronic equipment controls the light source response device to flicker light in the multimedia data playing process based on the flicker parameter.
In a third aspect, an embodiment of the present invention provides a multimedia playing apparatus, including:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a light description file corresponding to multimedia data under the condition of receiving a playing request of the multimedia data, and the light description file comprises a flicker parameter for describing at least one light flicker event;
and the control module is used for controlling the light source response device to flicker light in the playing process of the multimedia data based on the flicker parameter.
In a fourth aspect, an embodiment of the present invention further provides a multimedia playing apparatus, including:
the second generation module is used for generating a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
and the sending module is used for sending the light flicker file to the electronic equipment under the condition of receiving a multimedia data playing request from the electronic equipment, so that the electronic equipment controls the light source response device to flicker light in the multimedia data playing process based on the flicker parameter.
In a fifth aspect, an embodiment of the present invention further provides a multimedia playing system, including: the electronic device executes the multimedia playing method of the first aspect, and the server executes the multimedia playing method of the second aspect.
In a sixth aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory;
a memory for storing a computer program;
and the processor is used for realizing any one of the multimedia playing methods when the program stored in the memory is executed.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements any one of the above multimedia playing methods.
By applying the embodiment of the invention, in the process of playing the multimedia data, the electronic equipment controls the light source response device to flicker light based on the flicker parameter of the light flicker event in the light description file, wherein the light description file is generated aiming at the multimedia data, and the contained light flicker event can be matched with the playing rhythm in the multimedia data; that is to say, in this scheme, electronic equipment when broadcast multimedia data, can control the broadcast rhythm among the light source response unit cooperation multimedia data and carry out the light scintillation, and the broadcast form is abundant, utilizes the influence of light to build better broadcast atmosphere, helps improving the user and immerses the sense, has improved the broadcast effect.
Of course, it is not necessary for any product or method to achieve all of the above-described advantages at the same time for practicing the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a first flowchart illustrating a multimedia playing method applied to an electronic device according to an embodiment of the present invention;
fig. 2 is a second flowchart illustrating a multimedia playing method applied to an electronic device according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating a multimedia playing method applied to a server according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multimedia playing apparatus applied to an electronic device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a multimedia playing apparatus applied to a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a multimedia playing system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to achieve the above object, embodiments of the present invention provide a multimedia playing method and apparatus applied to an electronic device, a multimedia playing method and apparatus applied to a server, a multimedia playing system, and an electronic device. First, a multimedia playing method applied to an electronic device is described in detail below, where the electronic device may be a mobile phone, a tablet computer, or the like, and is not limited specifically.
Specifically, the execution subject of the multimedia playing method may be a multimedia playing apparatus running in the electronic device. Illustratively, the multimedia playing apparatus may be a multimedia playing client running in an electronic device, such as: video clients, audio clients, etc.; of course, it is reasonable that the multimedia playing apparatus can also be a plug-in program in the multimedia playing client.
In addition, the multimedia data involved in the embodiments of the present invention may include, but is not limited to: video or audio; and, the multimedia data may be multimedia data that has been downloaded locally by the electronic device, or online multimedia data. When the multimedia data is a video, the video comprises image data and audio data, and at least one piece of music content exists in the audio data; when the multimedia data is audio, the audio contains audio data, and at least one piece of music content exists in the audio data. It should be noted that the types of music content according to the embodiment of the present invention may include: vocal type and instrumental type; the music content of vocal type may include a sound expressed by voice such as a song, rap music, drama music, or opera, and the music content of instrumental type may include a content played by musical instruments such as a solo, a tempo, and a symphony.
Fig. 1 is a first flowchart of a multimedia playing method applied to an electronic device according to an embodiment of the present invention, including:
s101: and under the condition of receiving a playing request of the multimedia data, acquiring a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event.
In order to ensure better user experience, whether to execute the multimedia playing process can be determined according to user requirements. In one implementation, the multimedia playing apparatus may provide a function switch for a user as to whether to start the multimedia playing function, so that the user may select whether to start the multimedia playing function according to a requirement. The function switch can be arranged on a setting page and can also be arranged on a playing interface of the multimedia data. For the function switch is set on the setting page, the user can start the function in the setting page, so that the multimedia playing device can trigger to execute S101 when the multimedia data starts to be played; for the function switch is set on the playing page, the user may start the function at any playing time or before playing the multimedia data, so that the multimedia playing apparatus may trigger to execute S101 after detecting that the function is started.
In another implementation manner, the multimedia playing apparatus may implement the multimedia playing process provided by the embodiment by requesting the user authorization. For example: the multimedia playing device outputs prompt information for guiding the user to authorize, and when the user selects authorization, the multimedia playing device can realize the multimedia playing process provided by the embodiment, namely, the light source response device is controlled to flicker light in the playing process of the multimedia data. When the user does not select authorization, the multimedia playing device can only play the multimedia data, and the light source response device is not controlled to flicker light in the playing process of the multimedia data. The output timing of the prompt message may include, but is not limited to: when the user requests to play the multimedia data, in the process of playing the multimedia data.
In one embodiment, the flashing parameters of the light flashing event may include a time parameter and a flashing manner of the light flashing event.
The time parameter may include at least two of a start time, an end time, and a duration, for example, the time parameter may include the start time and a flashing duration, or may also include the start time and the end time, or may also include the end time and the flashing duration, which is not limited specifically. And determining the starting time, the flashing time length and the ending time of the light flashing event based on the time parameters.
The flashing means may comprise any one or more of: flashing frequency, flashing brightness, flashing color and preset flashing grade.
The light description file may be a JSON (JavaScript Object Notation, which is a lightweight data exchange format), an XML (Extensible Markup Language), or the like, and a specific file type is not limited.
In an embodiment of the present invention, the light description file may be generated according to a music tempo of the multimedia data. Therefore, the light source response device is controlled to flicker in the subsequent content, namely, the light flicker is performed in cooperation with the playing rhythm in the multimedia data.
The light description file may be generated by an electronic device, or a server, or other device.
In one embodiment, the light description file may be generated by the electronic device. Specifically, the process of generating the light description file by the electronic device may include: determining a music tempo parameter of the multimedia data; determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter; a light description file is generated that contains the determined light flicker event.
For example, after determining the music tempo parameter of the multimedia data, the flicker parameter of each light flicker event associated with the music tempo parameter of the multimedia data may be determined as the flicker parameter of the associated light flicker event according to the preset association relationship between the music tempo parameter and the flicker parameter of the light flicker event; and generating a light description file containing the flicker parameters of the associated light flicker event.
For example, the association relationship between the music rhythm parameter and the flicker parameter of the light flicker event can be set according to actual conditions. For example, the music tempo parameter may include beats, such as 1/4 beat, 3/4 beat, 1/8 beat, and so on, and the faster the beat, the higher the flicker frequency may be, the greater the flicker brightness may be, and so on.
Illustratively, in one implementation, the manner of determining the music tempo of the multimedia data may include: the method comprises the steps of obtaining audio data of multimedia data, calculating a cross-correlation function between audio signals of the audio data and audio signals of preset music rhythm models, obtaining the number of the preset music rhythm models contained in the audio data according to the frequency of each peak position of a cross-correlation function curve appearing in the audio signals, obtaining the number of music rhythms, and determining the music rhythm intervals of the music rhythms according to the time intervals of the peak positions. After the music rhythm interval is determined, the type, the strength and the sharpness of the vibration description information corresponding to the music rhythm interval and the vibration change curve can be determined based on the information of the height of the corresponding peak position and the like. The music rhythm model may be a basic beat model selected from a piece of music, for example: dum-Du-Dum-Dum beat model.
In one embodiment, the light description file coincides with a timing start in the multimedia data. For example, a timestamp of each frame of data may be included in the multimedia data, and a flash period of a light flash event included in the light description file may have a corresponding relationship with the timestamp in the multimedia data.
In one embodiment, the electronic device may obtain the multimedia data and the corresponding light description file from the server. For example, an APP (Application program) for playing multimedia data may be installed in the electronic device, and the server may be a background server corresponding to the APP. Or the server may also be other background processing devices capable of communicating with the electronic device, and the specific type of the server is not limited.
In another embodiment, the light description file may be generated by a server, and how to generate the light description file is described in detail later, which is not described herein.
The server may generate a light description file of the multimedia data in response to a request of the electronic device and transmit the light description file to the electronic device. Or, the server may also generate a light description file of the multimedia data in advance, and store the multimedia data in correspondence with the light description file generated for the multimedia data. The multimedia data and the light description file can be stored in the same server or different servers, and the specific storage position is not limited.
In an exemplary embodiment, when a user wants to watch a certain video, the video can be opened through the electronic device, and therefore, the electronic device sends a video playing request to the server to request to play the video based on the user operation. And after receiving the request instruction, the server searches the multimedia data and the light description file thereof corresponding to the request instruction. And the server sends the searched video and light description file to the electronic equipment. Therefore, the electronic equipment can receive the data from the server to obtain the video requested by the electronic equipment and the light description file, so that the video is played, and light flicker can be controlled in the playing process, and the detailed description is carried out later. The way and the sequence of the server for sending the multimedia data and the light description file thereof are not limited. For example, the server may send the multimedia data and the light description file to the electronic device, respectively, and at this time, there is no particular limitation on the sending order; alternatively, for another example, the server may also send the light description file and the multimedia data directly to the electronic device in one communication.
In this embodiment, the electronic device receives multimedia data from the server and plays the multimedia data. In addition, the electronic device may also store the multimedia data in a local cache.
Alternatively, in other embodiments, the electronic device may also obtain the multimedia data and the light description file corresponding to the multimedia data from the local storage.
Or, the electronic device may also obtain the multimedia data from a local storage, and obtain the light description file corresponding to the multimedia data from the server. The specific manner of the electronic device acquiring the multimedia data and the light description file is not limited. That is, the multimedia data and the light description file may be obtained in different manners.
S102: and controlling the light source response device to flicker light in the playing process of the multimedia data based on the flicker parameter.
For example, the light source response means may comprise any one or more of: the electronic equipment comprises an internal flash lamp of the electronic equipment, a screen of the electronic equipment and an external flash equipment which is in wired connection or wireless connection with the electronic equipment.
A flash lamp is usually built in electronic equipment such as a mobile phone and a tablet personal computer, and in S102, the flash lamp can be controlled to flash according to flash parameters of a light flash event included in a light description file. In this case, the electronics can directly control the blinking of the light source response means.
Alternatively, the flash lamp may not be a flash lamp built in the electronic device, but may be an external flash device controlled by the electronic device, and the specific type of the external flash device is not limited. In this case, the electronic device may send a control command to the light source response device, and the light source response device controls itself to flash light based on the control command. For example, in some smart home scenes, the electronic device may control some lighting devices installed in the scene to flash light. For example, in a possible intelligent home scene, when a user watches an integrated art video through a mobile phone or an intelligent television, the current intelligent home products in a room, for example, an intelligent sound box (with a flash lamp) and intelligent light can flash in coordination with the music rhythm of the integrated art video, so that light of a lighting device in the current environment can be utilized to create a better playing atmosphere, the watching experience of immersion is provided for the user, and the playing effect is improved.
Or, in S102, the screen of the electronic device may also be controlled to flash according to the flash parameter of the light flash event included in the light description file. The electronic equipment can also generate the flickering effect when the screen is turned on or off.
In one embodiment, S102 may include: determining a light flicker event corresponding to a current frame played in the multimedia data as a target light flicker event in the playing process of the multimedia data; and controlling a light source response device to flicker light according to the flicker parameters of the target light flicker event.
As described above, the flashing parameters of the light flashing event may include the flashing pattern of the light flashing event. The blinking pattern includes any one or more of: flashing frequency, flashing brightness, flashing color and preset flashing grade.
In particular, the flashing pattern may include a flashing frequency, and the flash may be controlled to flash at the flashing frequency of the light flashing event. For example, the light source response device may be a built-in flash lamp of the electronic device, and the flash lamp is controlled to flash at a certain flashing frequency, which may be understood as that the electronic device controls the flash lamp to turn on and off according to the frequency, so as to achieve the flashing effect. For example, if the flashing frequency is 3 times per second, the electronic device controls the flash lamp to be turned on, turned off, turned on, and turned off within one second, so that the effect of flashing 3 times per second is achieved. In the embodiment of the present invention, the interface for controlling the flash lamp by the electronic device and the control mode of the bottom layer are not limited.
The brightness of the light source response device is adjustable, and the flashing mode can comprise flashing brightness. For example, the light source response means comprises a screen of the electronic device, the brightness of the screen being adjustable. In this case, in S102, the screen of the electronic device may be controlled to blink according to the blinking brightness of the light blinking event.
The flashing pattern may comprise a flashing color, and the light color of the light source response device may be controllable, for example, multiple flashing lights of different colors may be configured in the electronic device, in which case, the multiple flashing lights may be controlled to flash in accordance with the flashing pattern of the light flashing event to form various lights of different colors. Or, the screen of the electronic device may emit light of a plurality of colors, and in this case, the screen of the electronic device may be controlled to flash in a flashing manner of the light flashing event to form various light of different colors.
As described above, the flicker parameter may include a preset flicker level, and the preset flicker level is divided based on the flicker mode of the light flicker event. For example, in one case, the flashing manner of the light flashing event may be a flashing frequency, and in this case, the preset flashing level may be a rhythm level divided based on the flashing frequency of the flashing event. For example, 0-5 flashes per second may be classified as a tempo class of 1, 6-10 flashes per second may be classified as a tempo class of 2, 11-15 flashes per second may be classified as a tempo class of 3, and so on. In this example, the higher the flicker frequency, the larger the rhythm level, or in other cases, the higher the flicker frequency, the smaller the rhythm level, and the specific division is not limited.
Alternatively, the brightness of the light source response unit may be adjustable, and the flashing pattern of the light flashing event may include a flashing brightness, in which case the flashing level may be divided based on the flashing brightness.
Or, in another case, the flashing manner of the light flashing event includes flashing frequency, brightness, color, and the like, in this case, a plurality of flashing levels may be preset, and the flashing manner in different flashing levels is different, for example, the flashing manner in the flashing level 1 includes: the flicker frequency is 5 flickers per second, and the flicker brightness is 120cd/m 2 The blinking color includes red, and the blinking manner in the blinking level 2 includes: the flicker frequency is 10 flickers per second and the flicker brightness is 140cd/m 2 The blinking colors include red and yellow, and the blinking manner in the blinking level 3 includes: the flicker frequency is 20 flickers per second, and the flicker brightness is 160cd/m 2 The blinking colors include red and blue, etc., and the specific manner of blinking included in the blinking levels is not limited.
In one embodiment, if a current frame played in the multimedia data is in a flashing time period of any one of the light flashing events corresponding to the multimedia data, the light flashing event is determined as a target light flashing event.
In another embodiment, if a current frame played in the multimedia data is not in a flashing time period of any one of the light flashing events corresponding to the multimedia data, a flashing event which is located after the current frame and has the smallest time interval with the current frame is searched in the light description file and is used as a candidate light flashing event; and when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event.
For example, if the user does not perform fast forward, fast backward, or other operations for adjusting the playing progress during the playing of the multimedia data, or if the multimedia data is completely played according to its own progress, the light flicker events may be sequentially executed according to the time sequence of the light flicker events in the light description file.
In this embodiment, searching for the candidate light flicker event may include: and searching a flash event with a starting time later than the current playing time of the multimedia data and a minimum interval between the starting time and the current playing time in the light description file as a candidate light flash event. And when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event, and returning to execute the step of searching the light description file for the flicker event with the starting time being later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time as the candidate light flicker event.
In this embodiment, after the candidate light flicker event is found, a first timer may be generated and enlightened, and the timing duration of the first timer is the duration between the current playing time of the multimedia data and the starting time of the candidate light flicker event; and after the first timer finishes timing, determining the candidate light flicker event as a target light flicker event, and returning to continuously search the candidate light flicker event.
For example, assume that the current playing time of the multimedia data is T 0 Traversing each light flicker event in the light description file, assuming that the light flicker event comprises n light flicker events, and the starting time of the n light flicker events is T 1 ~T n . Lookup T 1 ~T n Is greater than T 0 And is and T 0 Is the smallest, assuming that the search result is T x ,T x The lamp flashing event is the event x.
Creating a Timer1, wherein the duration of the Timer1 is T x -T 0 When the Timer1 finishes timing, the event x is started to be executed. Executing a light flashing event, namely executing S102, and controlling the light source response device to flash in a flashing mode of the event in a flashing period of the event.
Then returning to execute the searching step: the current playing time of the updated multimedia data is still marked as T 0 Look up T 1 ~T n Is greater than T 0 And is and T 0 Is the smallest one. The subsequent procedures are similar and are not described again.
In one embodiment, the flicker parameter includes a flicker period, and the flicker period includes a start time; if an instruction for adjusting the playing progress is received in the process of playing the multimedia data, re-determining a current frame played in the multimedia data based on the instruction for adjusting the playing progress; judging whether the redetermined current frame is in the flickering time interval of the light flickering event; if so, determining the lamplight flicker event corresponding to the flicker time interval in which the current frame is positioned as the target lamplight flicker event; if not, determining a light flicker event corresponding to the next flicker time interval corresponding to the re-determined current frame as a light flicker event to be executed; and when the starting time of the light flicker event to be executed is reached, determining the light flicker event to be executed as a target light flicker event.
As described above, if the user does not perform fast forward, fast backward, or other operations of adjusting the playing progress during the playing of the multimedia data, the target light flashing events may be determined in sequence according to the time sequence of the light flashing events in the light description file.
In this embodiment, if the user performs fast forward, fast backward, or other operations for adjusting the playing progress, the electronic device receives the instruction for adjusting the playing progress, and the electronic device re-determines the current frame played in the multimedia data based on the instruction for adjusting the playing progress. And on one hand, the electronic equipment starts playing the multimedia data from the redetermined current frame, on the other hand, the light flicker event corresponding to the current frame is redetermined as the target light flicker event, and then the subsequent process is continued.
If the electronic equipment receives the instruction of adjusting the playing progress and the light source response device is flickering, the light source response device can be controlled to stop the light flickering and then the target light flickering event is determined again. When the target light flicker event is determined again, if the current frame is in the flicker time interval of a certain light flicker event, the light flicker event can be directly determined as the target light flicker event, and the target light flicker event is executed; and if the current frame is not in the flashing time interval of a certain light flashing event, waiting for executing the next light flashing event.
As described above, the light description file is consistent with the timing start point in the multimedia data, and therefore, after the current frame played in the multimedia data is determined again, the position in the light description file corresponding to the current frame can be determined, and the light flicker event at the position is the target light flicker event. And determining whether a light flicker event needing to be executed exists at the position, corresponding to the current frame, in the light description file, if so, executing the light flicker event, otherwise, waiting until the next light flicker event needing to be executed is executed, and executing the light flicker event.
In one embodiment, the flicker parameter of the target light flicker event satisfies a flicker parameter condition set by a user.
In one case, a light flicker event with flicker parameters meeting preset flicker parameter conditions may be determined in the light description file as an effective light flicker event; and determining an effective light flicker event corresponding to the current frame played in the multimedia data as a target light flicker event.
Alternatively, the first and second electrodes may be,
in another case, a light flicker event corresponding to a current frame played in the multimedia data may also be determined; if the flicker parameter of the determined light flicker event meets the flicker parameter condition set by the user, taking the determined flicker parameter as a target light flicker event; and if the determined flicker parameter of the light flicker event meets the flicker parameter condition set by the user, not taking the light flicker event as the target light flicker event, namely not executing the light flicker event.
In this case, the user may set the blinking parameter condition in advance, or the blinking parameter condition may be a default value, and the setting of the specific blinking parameter condition is not limited. Assuming that the preset flicker level includes 1-Z, Z representing a positive integer greater than 1, the flicker parameter condition may be that the flicker level is greater than Y, Y representing a positive integer less than Z.
Besides the foregoing manner, the user can also adjust the flicker parameter condition during the process of playing the multimedia data. For example, the electronic device may present a user interaction interface during playing the multimedia data, and the user interaction interface provides a selection button for adjusting the blinking parameter condition. For another example, the electronic device provides a setting interface, a setting control of the flicker parameter condition is provided in the setting interface, and the user sets the flicker parameter condition in the setting interface. Therefore, the user can flexibly and dynamically adjust the flicker parameter condition according to the own requirements in the process of playing the multimedia data, and thus, the user can enjoy the immersive watching experience which is more in line with the mind.
Supposing that in the process of playing multimedia data, the electronic equipment determines a light flicker event with a preset flicker level meeting a default flicker parameter condition in a light description file as an effective light flicker event, and then determines and executes the effective light flicker event corresponding to a current frame played in the multimedia data; however, if the user feels that the flashing frequency of the currently executed light flashing event is too slow and the rhythm is too slow, the user can improve the flashing frequency of the light flashing event by adjusting the flashing parameter conditions. Or, if the user feels that the flicker frequency of the currently executed light flicker event is too fast, the user may reduce the flicker frequency of the light flicker event by adjusting the flicker parameter condition. The adjustment modes for the user to specifically adjust the flicker parameter condition are not listed one by one.
In some cases, the blinking patterns may be selected by a user, with each blinking pattern corresponding to a blinking parameter. Continuing the above example, assume that the flicker parameter includes flicker frequency, the flicker level is rhythm level, 0-5 times of flicker per second is divided into rhythm level 1, 6-10 times of flicker per second is divided into rhythm level 2, and 11-15 times of flicker per second is divided into rhythm level 3; if the flicker mode selected by the user is a soft mode, the corresponding flicker parameter condition may be that the rhythm level is not greater than 2, and if the flicker mode selected by the user is a hard-burst mode, the corresponding flicker parameter condition may be that the rhythm level is not less than 3, and the like, and the specific flicker mode is not limited.
For another example, in the above case, a plurality of flashing levels are preset, and the flashing modes in different flashing levels are different, in which case, each flashing mode may correspond to one flashing level. Alternatively, user selection of a blinking pattern may be understood as selection of a qualified blinking level.
In this embodiment, a flash event, of which the start time is later than the current playing time of the multimedia data, and of which the interval between the start time and the current playing time is minimum and the flash parameter meets a preset flash parameter condition, may be searched in the light description file as a candidate light flash event; and when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event, returning to execute the step of searching the flicker event with the starting time being later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time in the light description file as the candidate light flicker event.
For example, assume that the current playing time of the multimedia data is T 0 The preset flicker parameter condition is that the rhythm level is less than L 0 Traversing each light flicker event in the light description file, assuming that the light flicker event comprises n light flicker events, wherein the starting time of the n light flicker events is T respectively 1 ~T n The rhythm grades are respectively L 1 ~L n . Can firstly search the rhythm gradeLess than L 0 As an active light flashing event. Then, a light flicker event is searched for among the available light flicker events, the start time of which is greater than T 0 And its start time with T 0 The interval of (2) is minimum, the found light flicker event is assumed to be an event x, and the starting time of the event x is T x
Creating a Timer1, wherein the duration of the Timer1 is T x -T 0 When the Timer1 finishes timing, the event x is started to be executed. Executing a light flashing event, namely executing S102, and controlling the light source response device to flash according to the flashing mode of the event in the flashing period of the event.
In one embodiment, when the light flicker event is started to be executed, a second timer may be generated and enlightened, and the timing duration of the second timer is the flicker duration of the currently executed light flicker event; and when the timing of the second timer is finished, the light flicker event is finished.
Continuing the above example, when the event x starts to be executed, a Timer2 is created, the duration of the Timer2 is the flashing duration of the event x, and when the Timer2 finishes timing, the event x is executed completely.
After the Timer1 finishes timing, the searching steps can be returned to be executed: updating the current playing time of the multimedia data, still recording as T 0 Searching for a light flicker event having a start time greater than T from among the available light flicker events 0 And its start time with T 0 The interval of (c) is minimal. The subsequent procedures are similar and are not described again. Or, if the user adjusts the flashing parameter condition in the process of playing the multimedia data, the searching step is returned to be executed after the flashing parameter condition is determined again.
When the Timer1 finishes timing, the event x is started to be executed. And when the event x is executed, the Timer2 can be created again, the duration of the Timer2 is the flashing duration of the event x, and when the Timer2 finishes timing, the flash lamp is controlled to stop flashing.
Can be determined at Timer1After the time is finished, or after the Timer2 is finished, returning to execute the searching step: updating the current playing time of the multimedia data, still recording as T 0 Look up T 1 —T n Middle greater than T 0 And with T 0 Is the smallest one.
By applying the embodiment, the user can set the flicker parameter condition according to the preference of the user, so that when the multimedia data is played and the light flickers are synchronously carried out, the flicker parameter of the light flickers meets the flicker parameter condition, the preference of the user is met, the user experience is further improved, and the playing effect is improved. In addition, by applying the embodiment, the light flicker effect of different modes, such as the soft mode, the hard explosion mode and the like, can be manufactured.
By applying the embodiment of the invention, in the process of playing the multimedia data, the electronic equipment controls the light source response device to flicker light based on the flicker parameter of the light flicker event in the light description file, wherein the light description file is generated aiming at the multimedia data, and the light flicker event contained in the light description file can be matched with the playing rhythm in the multimedia data; that is to say, in this scheme, electronic equipment when playing multimedia data, can control the broadcast rhythm among the light source response unit cooperation multimedia data and carry out light flicker, and the broadcast form is abundant, utilizes the influence of light to build better broadcast atmosphere, helps improving the user and immerses the sense, has improved the broadcast effect.
The application of the light can directly influence the presentation of artistic effects, in the related scheme, the electronic equipment only plays original multimedia data, and the light only comes from the multimedia displayed in the screen, so that the experience of a user is not rich enough. In the embodiment of the invention, the flash lamp is used for expressing the playing rhythm, such as the music rhythm, the film rhythm and the like, and the effect of stage, dance pool or other scenes can be presented only by using simple equipment such as a mobile phone, a tablet personal computer and the like, so that better audio and video watching experience is brought to a user.
Fig. 2 is a second flowchart of a multimedia playing method applied to an electronic device according to an embodiment of the present invention, including:
s201: under the condition of receiving a playing request of multimedia data, acquiring a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event.
The flashing parameters of the light flashing event can comprise time parameters and a flashing mode of the light flashing event. For example, the blinking manner may include any one or more of: flicker frequency, flicker brightness, flicker color and preset flicker grade. The time parameter may include at least two of a start time, an end time, and a duration, for example, the time parameter may include the start time and a flashing duration, or may also include the start time and the end time, or may also include the end time and the flashing duration, which is not limited specifically. The starting time and the flashing duration of the light flashing event can be determined based on the time parameter.
S202: and searching for a flash event with a starting time later than the current playing time of the multimedia data and a minimum interval between the starting time and the current playing time in the light flash events as candidate light flash events.
S203: when the start time of the candidate light flicker event is reached, the candidate light flicker event is determined as the target light flicker event, then S204 is performed, and the process returns to the step S202.
The sequence of executing S204 and returning to executing S202 is not limited.
For example, assume that the current playing time of the multimedia data is T 0 Traversing each light flicker event in the light description file, assuming that the light flicker event comprises n light flicker events, wherein the starting time of the n light flicker events is T respectively 1 ~T n . Finding T 1 ~T n Middle greater than T 0 And with T 0 Is the smallest, assuming that the search result is T x ,T x The light flicker event is event x.
Suppose the start time of event x is T x (ii) a Creating a Timer1, timer1Duration of T x -T 0 When the Timer1 finishes timing, the event x is started to be executed. And executing a light flicker event, namely executing S204, and controlling the light source response device to flicker light according to the flicker parameter of the event x.
In addition, the process also needs to return to the execution of S202, and when the process returns to the execution of S204, the current playing time of the multimedia data is changed and is marked as T 0 Searching for a light flicker event having a start time greater than T from among the available light flicker events 0 And its start time with T 0 The interval of (a) is minimal. The subsequent processes are similar and will not be described again.
S204: and controlling the light source response device to flicker light according to the flicker parameters of the target light flicker event.
Continuing the above example, assume that a Timer1 is created, and the duration of the Timer1 is T x -T 0 When the Timer1 finishes timing, the event x is started to be executed. And when the event x is executed, the Timer2 can be created again, the duration of the Timer2 is the flashing duration of the event x, and when the Timer2 finishes timing, the flash lamp is controlled to stop flashing.
By applying the embodiment of the invention, when the electronic equipment plays multimedia data, the light description file is synchronously read, and the flash lamp is synchronously controlled to execute the light flicker event in the light description file, wherein the light description file is generated aiming at the multimedia data, and the light flicker event contained in the light description file can be matched with the playing rhythm in the multimedia data; that is to say, in this scheme, electronic equipment when broadcast multimedia data, can control the play rhythm in the flash light cooperation multimedia data and carry out the light scintillation, and the broadcast form is abundant, utilizes the influence of light to build better broadcast atmosphere, has improved the broadcast effect.
The application of the light can directly influence the presentation of artistic effects, in the related scheme, the electronic equipment only plays original multimedia data, and the light only comes from the multimedia displayed in the screen, so that the experience of a user is not rich enough. In the embodiment of the invention, the flash lamp is used for expressing the playing rhythm, such as the music rhythm, the movie rhythm and the like, and the effect of a stage, a dance pool or other scenes can be presented only by using simple equipment such as a mobile phone, a tablet personal computer and the like, so that better audio and video watching experience is brought to a user.
In addition, in the embodiment of fig. 2, the user can set the flicker parameter condition according to the preference of the user, so that when the multimedia data is played and the light flickers synchronously, the flicker parameter of the light flickers meets the flicker parameter condition, the preference of the user is met, the user experience is further improved, and the playing effect is improved. In addition, by applying the embodiment, the light flickering effect of different modes, such as the soft mode, the hard mode, and the like, can be manufactured.
Fig. 3 is a multimedia playing method applied to a server according to an embodiment of the present invention, including:
s301: and generating a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event.
The multimedia data involved in the embodiments of the present invention may include, but is not limited to: video or audio. When the multimedia data is a video, the video comprises image data and audio data, and at least one piece of music content exists in the audio data; when the multimedia data is audio, the audio comprises audio data, and at least one piece of music content exists in the audio data. It should be noted that the types of music content according to the embodiment of the present invention may include: vocal type and instrumental type; the music content of vocal music type may include voice expressed by human voice of song, rap music, drama music, etc., and the music content of instrumental music type may include contents played by musical instruments of solo music, tempos music, and symphony music, etc.
In one embodiment, the flashing parameters of the light flashing event may include a time parameter and a flashing manner of the light flashing event. For example, the blinking manner may include any one or more of: flashing frequency, flashing brightness, flashing color and preset flashing grade. The light description file can be in the type of JSON, XML, etc., and the specific file type is not limited. The time parameter may include at least two of a start time, an end time, and a duration, for example, the time parameter may include the start time and a flashing duration, or may also include the start time and the end time, or may also include the end time and the flashing duration, which is not limited specifically. The starting time, the flashing time length and the ending time of the light flashing event can be determined based on the time parameters.
The light description file may be generated according to a music tempo of the multimedia data. Therefore, the electronic equipment controls the light source response device to flicker light, namely, the light flicker is performed in cooperation with the playing rhythm in the multimedia data.
In one embodiment, S301 may include: determining a music tempo parameter of the multimedia data; determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter; a light description file is generated that contains the determined light flicker event.
For example, after determining the music tempo parameter of the multimedia data, the flicker parameter of each light flicker event associated with the music tempo parameter of the multimedia data may be determined as the flicker parameter of the associated light flicker event according to the preset association relationship between the music tempo parameter and the flicker parameter of the light flicker event; and generating a light description file containing the flicker parameters of the associated light flicker event.
For example, the association relationship between the music rhythm parameter and the flicker parameter of the light flicker event can be set according to actual conditions. For example, the music tempo parameter may include beats, such as 1/4 beat, 3/4 beat, 1/8 beat, and so on, and the faster the beat, the higher the flicker frequency may be, the greater the flicker brightness may be, and so on.
In one embodiment, the light description file coincides with a timing start in the multimedia data. For example, a timestamp of each frame of data may be included in the multimedia data, and a flash period of a light flash event included in the light description file may have a corresponding relationship with the timestamp in the multimedia data.
S302: and under the condition of receiving a multimedia data playing request from the electronic equipment, sending the light flicker file to the electronic equipment, so that the electronic equipment controls the light source response device to flicker light in the multimedia data playing process based on the flicker parameter.
For example, in one case, multimedia data may be stored in the electronic device, and in this case, the server may send a light description file corresponding to the multimedia data to the electronic device. Or, in another case, the server may also send the multimedia data and the light description file corresponding to the multimedia data to the electronic device. Or, in another case, one server sends the multimedia data to the electronic device, and the other server sends the light description file corresponding to the multimedia data to the electronic device. The storage conditions of the multimedia data and the light description file and the specific mode of sending the light flicker file by the server are not limited. The way and the sequence of the server for sending the multimedia data and the light description file thereof are not limited. For example, the server may transmit the multimedia data and the light description file to the electronic device, where the transmission order is not particularly limited; alternatively, for another example, the server may also send the light description file and the multimedia data directly to the electronic device in one communication.
By applying the embodiment of the invention, the server acquires the light description file corresponding to the multimedia data, wherein the light description file comprises the flicker parameter for describing at least one light flicker event; the server sends the light flicker file to the electronic equipment under the condition that the server receives the playing request of the multimedia data from the electronic equipment, so that the electronic equipment can control the light source response device to cooperate with the playing rhythm in the multimedia data to flicker light when playing the multimedia data, the playing forms are rich, a better playing atmosphere is created by utilizing the influence of light, the immersion of a user is facilitated to be improved, and the playing effect is improved.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a multimedia playing apparatus, as shown in fig. 4, including:
an obtaining module 401, configured to obtain a light description file corresponding to multimedia data when a play request of the multimedia data is received, where the light description file includes a flicker parameter for describing at least one light flicker event;
and the control module 402 is configured to control the light source response device to flicker light in the playing process of the multimedia data based on the flicker parameter.
In one embodiment, the flashing parameters include time parameters of a light flashing event and a flashing mode, and the flashing mode includes any one or more of the following: flicker frequency, flicker brightness, flicker color and preset flicker grade.
In one embodiment, the control module 402 includes:
the determining submodule is used for determining a light flicker event corresponding to a current frame played in the multimedia data in the playing process of the multimedia data, and the light flicker event is used as a target light flicker event;
and the control submodule is used for controlling the light source response device to flicker light according to the flicker parameters of the target light flicker event.
In one embodiment, the flash period includes a start time; the determining submodule is specifically configured to: if the current frame played in the multimedia data is in the flickering time interval of any one light flickering event corresponding to the multimedia data, determining the light flickering event as a target light flickering event;
alternatively, the first and second liquid crystal display panels may be,
if the current frame played in the multimedia data is not in the flickering time period of any one light flickering event corresponding to the multimedia data, searching a flickering event which is positioned behind the current frame and has the minimum time interval with the current frame in the light description file to serve as a candidate light flickering event; and when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event.
In one embodiment, the flash period includes a start time; the determining submodule is specifically configured to: if an instruction for adjusting the playing progress is received in the process of playing the multimedia data, re-determining a current frame played in the multimedia data based on the instruction for adjusting the playing progress; judging whether the redetermined current frame is in the flickering time interval of the light flickering event; if so, determining the lamplight flicker event corresponding to the flicker time interval in which the current frame is positioned as the target lamplight flicker event; if not, determining a light flicker event corresponding to the next flicker time interval corresponding to the re-determined current frame as a light flicker event to be executed; and when the starting time of the light flicker event to be executed is reached, determining the light flicker event to be executed as a target light flicker event.
In one embodiment, the flicker parameter of the target light flicker event satisfies a flicker parameter condition set by a user.
In one embodiment, the light description file is generated according to a music tempo of the multimedia data.
In one embodiment, the apparatus further comprises: a first determining module, a second determining module, and a first generating module (not shown in the figure), wherein,
the first determining module is used for determining the music rhythm parameter of the multimedia data;
the second determining module is used for determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter;
a first generation module for generating a light description file containing the determined light flicker event.
In one embodiment, the light source response means comprises any one or more of: the electronic equipment comprises an internal flash lamp of the electronic equipment, a screen of the electronic equipment and an external flash device in wired connection or wireless connection with the electronic equipment.
By applying the embodiment of the invention, in the process of playing the multimedia data, the electronic equipment controls the light source response device to flicker light based on the flicker parameter of the light flicker event in the light description file, wherein the light description file is generated aiming at the multimedia data, and the contained light flicker event can be matched with the playing rhythm in the multimedia data; that is to say, in this scheme, electronic equipment when broadcast multimedia data, can control the broadcast rhythm among the light source response unit cooperation multimedia data and carry out the light scintillation, and the broadcast form is abundant, utilizes the influence of light to build better broadcast atmosphere, helps improving the user and immerses the sense, has improved the broadcast effect.
The application of the light can directly influence the presentation of artistic effects, in the related scheme, the electronic equipment only plays original multimedia data, and the light only comes from the multimedia displayed in the screen, so that the experience of a user is not rich enough. In the embodiment of the invention, the flash lamp is used for expressing the playing rhythm, such as the music rhythm, the film rhythm and the like, and the effect of stage, dance pool or other scenes can be presented only by using simple equipment such as a mobile phone, a tablet personal computer and the like, so that better audio and video watching experience is brought to a user.
An embodiment of the present invention further provides a multimedia playing apparatus applied to a server, as shown in fig. 5, including:
a second generating module 501, configured to generate a light description file corresponding to the multimedia data, where the light description file includes a flicker parameter for describing at least one light flicker event;
a sending module 502, configured to send the light flicker file to an electronic device when receiving a play request of multimedia data from the electronic device, so that the electronic device controls a light source response device to flicker light in a playing process of the multimedia data based on the flicker parameter.
In one embodiment, the light description file is generated according to a music tempo of the multimedia data.
In one embodiment, the apparatus further comprises: a third determining module, a fourth determining module, and a second first generating module (not shown in the figure), wherein,
a third determining module, configured to determine a music tempo parameter of the multimedia data;
the fourth determining module is used for determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter;
and the second generation module is used for generating a light description file containing the determined light flicker event.
By applying the embodiment of the invention, the server acquires the light description file corresponding to the multimedia data, wherein the light description file comprises the flicker parameter for describing at least one light flicker event; the server sends the light flicker file to the electronic equipment under the condition of receiving the playing request of the multimedia data from the electronic equipment, so that the electronic equipment can control the light source response device to cooperate with the playing rhythm in the multimedia data to flicker light when playing the multimedia data, the playing mode is rich, the immersion feeling of a user is improved, a better playing atmosphere is created by utilizing the influence of light, and the playing effect is improved.
An embodiment of the present invention further provides a multimedia playing system, as shown in fig. 6, including: the electronic device 610 may execute any one of the above multimedia playing methods applied to the electronic device side, and the server 620 may execute any one of the above multimedia playing methods applied to the server side.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701 and a memory 702,
a memory 702 for storing a computer program;
the processor 701 is configured to implement any one of the above multimedia playing methods when executing the program stored in the memory 702.
The Memory mentioned in the above electronic device may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program realizes any one of the above multimedia playing methods when executed by a processor.
In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above-mentioned multimedia playing methods.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on differences from other embodiments. In particular, apparatus embodiments, device embodiments, computer-readable storage medium embodiments, and computer program product embodiments are described for simplicity as they are substantially similar to method embodiments, where relevant, reference may be made to some descriptions of method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A multimedia playing method, comprising:
under the condition of receiving a playing request of multimedia data, acquiring a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
in the playing process of the multimedia data, searching a light flicker event with flicker parameters meeting flicker parameter conditions in the light description file as an effective light flicker event, wherein the flicker parameter conditions are parameter conditions preset by a user or parameter conditions set by the user in the playing process of the multimedia data;
searching a light flicker event with a starting time later than the current playing time of the multimedia data and a minimum interval between the starting time and the current playing time in the effective light flicker events as candidate light flicker events;
when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event;
and controlling a light source response device to flicker light according to the flicker parameters of the target light flicker event, returning to the effective light flicker event, and searching for the light flicker event with the starting time later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time as a candidate light flicker event.
2. The method of claim 1, wherein the flashing parameters comprise a time parameter of a light flashing event and a flashing mode, and the flashing mode comprises any one or more of the following: flashing frequency, flashing brightness, flashing color and preset flashing grade.
3. The method of claim 2, wherein the light description file is generated according to a music tempo of the multimedia data.
4. The method of claim 3, further comprising:
determining a music tempo parameter of the multimedia data;
determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter;
a light description file is generated that contains the determined light flicker event.
5. The method of claim 1, wherein the light source response means comprises any one or more of: the electronic equipment comprises an internal flash lamp of the electronic equipment, a screen of the electronic equipment and an external flash equipment which is in wired connection or wireless connection with the electronic equipment.
6. A multimedia playing method, comprising:
generating a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
under the condition of receiving a multimedia data playing request from electronic equipment, sending the light description file to the electronic equipment, so that the electronic equipment searches a light flicker event with flicker parameters meeting flicker parameter conditions in the light description file in the multimedia data playing process as an effective light flicker event, wherein the flicker parameter conditions are parameter conditions preset by a user or parameter conditions set by the user in the multimedia data playing process; searching a light flicker event with the starting time later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time in the effective light flicker events as candidate light flicker events; when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event; and controlling a light source response device to flicker light according to the flicker parameters of the target light flicker event, returning to the effective light flicker event, and searching for the light flicker event with the starting time later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time as a candidate light flicker event.
7. The method of claim 6, wherein the light description file is generated according to a music tempo of the multimedia data.
8. The method of claim 7, wherein generating the light description file corresponding to the multimedia data comprises:
determining a music tempo parameter of the multimedia data;
determining a light flicker event corresponding to the multimedia data based on the music rhythm parameter;
a light description file is generated containing the determined light flicker event.
9. A multimedia playback apparatus, comprising:
the device comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a light description file corresponding to multimedia data under the condition of receiving a playing request of the multimedia data, and the light description file comprises a flicker parameter for describing at least one light flicker event;
the control module is used for searching a light flicker event with flicker parameters meeting flicker parameter conditions in the light description file in the playing process of the multimedia data as an effective light flicker event, wherein the flicker parameter conditions are parameter conditions preset by a user or parameter conditions set by the user in the playing process of the multimedia data; searching a light flicker event with the starting time later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time in the effective light flicker events as candidate light flicker events; when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event; and controlling a light source response device to flicker light according to the flicker parameters of the target light flicker event, returning to execute the effective light flicker event, and searching for the light flicker event which has a starting time later than the current playing time of the multimedia data and a minimum interval between the starting time and the current playing time as a candidate light flicker event.
10. A multimedia playback apparatus, comprising:
the second generation module is used for generating a light description file corresponding to the multimedia data, wherein the light description file comprises a flicker parameter for describing at least one light flicker event;
the sending module is used for sending the light description file to the electronic equipment under the condition of receiving a multimedia data playing request from the electronic equipment, so that the electronic equipment searches a light flicker event with flicker parameters meeting flicker parameter conditions in the light description file in the multimedia data playing process as an effective light flicker event, wherein the flicker parameter conditions are parameter conditions preset by a user or parameter conditions set by the user in the multimedia data playing process; searching a light flicker event with the starting time later than the current playing time of the multimedia data and the minimum interval between the starting time and the current playing time in the effective light flicker events as candidate light flicker events; when the starting time of the candidate light flicker event is reached, determining the candidate light flicker event as a target light flicker event; and controlling a light source response device to flicker light according to the flicker parameters of the target light flicker event, returning to execute the effective light flicker event, and searching for the light flicker event which has a starting time later than the current playing time of the multimedia data and a minimum interval between the starting time and the current playing time as a candidate light flicker event.
11. A multimedia playback system, comprising: electronic device performing the method steps of any of the preceding claims 1-5, and a server performing the method steps of any of the preceding claims 6-8.
12. An electronic device comprising a processor and a memory;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 8 when executing a program stored in the memory.
13. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-8.
CN202010956602.XA 2020-09-11 2020-09-11 Multimedia playing method, device, equipment and system Active CN112040290B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010956602.XA CN112040290B (en) 2020-09-11 2020-09-11 Multimedia playing method, device, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010956602.XA CN112040290B (en) 2020-09-11 2020-09-11 Multimedia playing method, device, equipment and system

Publications (2)

Publication Number Publication Date
CN112040290A CN112040290A (en) 2020-12-04
CN112040290B true CN112040290B (en) 2022-12-06

Family

ID=73588962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010956602.XA Active CN112040290B (en) 2020-09-11 2020-09-11 Multimedia playing method, device, equipment and system

Country Status (1)

Country Link
CN (1) CN112040290B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112866770B (en) * 2020-12-31 2023-12-05 北京奇艺世纪科技有限公司 Equipment control method and device, electronic equipment and storage medium
CN114302232B (en) * 2021-12-31 2024-04-02 广州酷狗计算机科技有限公司 Animation playing method and device, computer equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8370747B2 (en) * 2006-07-31 2013-02-05 Sony Mobile Communications Ab Method and system for adapting a visual user interface of a mobile radio terminal in coordination with music
CN100583979C (en) * 2006-08-23 2010-01-20 深圳创维数字技术股份有限公司 Method for digital media terminal playing advertisement
CN104093078B (en) * 2013-11-29 2019-04-16 腾讯科技(北京)有限公司 A kind of method and device of playing video file
CN104219570B (en) * 2014-09-17 2016-08-24 北京音之邦文化科技有限公司 Audio signal playing method and device

Also Published As

Publication number Publication date
CN112040290A (en) 2020-12-04

Similar Documents

Publication Publication Date Title
WO2022121558A1 (en) Livestreaming singing method and apparatus, device, and medium
US11829680B2 (en) System for managing transitions between media content items
GB2496304A (en) Managing playback of media content
WO2022152064A1 (en) Video generation method and apparatus, electronic device, and storage medium
WO2017025040A1 (en) Picture switching method and picture switching device during picture video playing
CN112040290B (en) Multimedia playing method, device, equipment and system
US11755280B2 (en) Media content system for enhancing rest
JP7273856B2 (en) Selection of one or more light effects depending on delay variation
CN106777353B (en) Method and device for playing multimedia file
US10762130B2 (en) Method and system for creating combined media and user-defined audio selection
EP3997692A1 (en) Template-based excerpting and rendering of multimedia performances
WO2017185584A1 (en) Method and device for playback optimization
US9305601B1 (en) System and method for generating a synchronized audiovisual mix
CN112086082A (en) Voice interaction method for karaoke on television, television and storage medium
WO2020089144A1 (en) Determining light effects based on video and audio information in dependence on video and audio weights
CN114466242A (en) Display device and audio processing method
CN114615534A (en) Display device and audio processing method
CN112086080A (en) Music rhythm feedback method and device, electronic equipment and system
JP5986387B2 (en) Information processing program, information processing apparatus, lyrics display method, and communication system
CN106340287A (en) Processing method of mobile phone song requesting
WO2023144269A1 (en) Determining global and local light effect parameter values
CN112040147B (en) Lamplight flicker control method, device, equipment and system
CN114466241A (en) Display device and audio processing method
CN114598917A (en) Display device and audio processing method
US20220124383A1 (en) Audio bullet screen processing 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
GR01 Patent grant
GR01 Patent grant