CN117880602A - Video playing, video configuring method, computer device and computer program product - Google Patents

Video playing, video configuring method, computer device and computer program product Download PDF

Info

Publication number
CN117880602A
CN117880602A CN202410074459.XA CN202410074459A CN117880602A CN 117880602 A CN117880602 A CN 117880602A CN 202410074459 A CN202410074459 A CN 202410074459A CN 117880602 A CN117880602 A CN 117880602A
Authority
CN
China
Prior art keywords
vibration
video
playing
configuration data
object recommendation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410074459.XA
Other languages
Chinese (zh)
Inventor
贺亚龙
曹海峰
肖日城
郑中旭
肖地福
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Music Entertainment Technology Shenzhen Co Ltd
Original Assignee
Tencent Music Entertainment Technology Shenzhen 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 Tencent Music Entertainment Technology Shenzhen Co Ltd filed Critical Tencent Music Entertainment Technology Shenzhen Co Ltd
Priority to CN202410074459.XA priority Critical patent/CN117880602A/en
Publication of CN117880602A publication Critical patent/CN117880602A/en
Pending legal-status Critical Current

Links

Abstract

The application relates to a video playing method, a video playing device, a computer device, a storage medium and a computer program product. The method comprises the following steps: responding to the trigger condition that the terminal meets the object recommendation video to be played, and acquiring vibration configuration data of the object recommendation video; the vibration configuration data comprises vibration parameters matched and configured with video content of the object recommended video at least one time point; in the process of playing the object recommended video, creating a vibration effect matched with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data; the vibration effect is used for simulating the real vibration effect of the vibration event triggered by the object in the object recommendation video in the current video scene; and the control terminal outputs vibration feedback matched with the vibration effect. By adopting the method, the video playing effect of object recommendation can be improved.

Description

Video playing, video configuring method, computer device and computer program product
Technical Field
The present invention relates to the field of audio and video processing technologies, and in particular, to a video playing method, a video configuration method, a computer device, and a computer program product.
Background
With the continuous development of internet technology, an object recommendation form using video as a medium is emerging, for example, object recommendation information related to an object can be added in the video, and the object recommendation information is displayed to a user in a manner of playing the video on a handheld terminal, so that the object is recommended to the user.
However, the handheld terminal in the related art can only generate audio and visual interaction with the user when playing the object-recommended video, and cannot fully display the characteristics of the object recommended video, so that the playing effect of the object-recommended video is poor.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a video playing, video configuring method, apparatus, computer device, computer readable storage medium, and computer program product capable of improving the effect of object-recommended video playing.
In a first aspect, the present application provides a video playing method, where the method includes:
responding to the trigger condition that a terminal meets the object recommendation video playing, and acquiring vibration configuration data of the object recommendation video; the vibration configuration data comprises vibration parameters matched and configured with video content of the object recommended video at least one time point;
In the process of playing the object recommended video, creating a vibration effect matched with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data; the vibration effect is used for simulating the real vibration effect of a vibration event triggered by an object in the object recommendation video in the current video scene;
and controlling the terminal to output vibration feedback matched with the vibration effect.
In one embodiment, during the playing of the object recommended video, creating a vibration effect matching with the video content currently displayed by the object recommended video according to the vibration parameter in the vibration configuration data includes:
creating a vibration simulation engine aiming at the object recommended video, and reading vibration parameters matched with the current playing progress of the object recommended video in the vibration configuration data through the vibration simulation engine in the process of playing the object recommended video;
and processing the vibration parameters through the vibration simulation engine, and creating a vibration effect matched with the video content currently displayed by the object recommended video.
In one embodiment, the reading, by the vibration simulation engine, the vibration parameter matching the current playing progress of the object recommended video in the vibration configuration data includes:
acquiring the current playing time point of the object recommended video in real time by the vibration simulation engine in the process of playing the object recommended video;
and determining that the vibration parameters matched with the current playing progress of the target recommended video are read under the condition that the vibration configuration data are detected by the vibration simulation engine to record the vibration parameters corresponding to the playing time point.
In one embodiment, the responding to the terminal meeting the triggering condition of playing the object recommended video, obtaining vibration configuration data of the object recommended video includes:
responding to the terminal meeting the triggering condition of playing the object recommendation video, and sending an object recommendation request to a server; the object recommendation request is used for indicating the server to issue object recommendation resources corresponding to the object recommendation video to the terminal; the object recommended resources comprise vibration configuration files adopting a preset data exchange format;
And obtaining vibration configuration data of the object recommended video through the vibration configuration file.
In one embodiment, the object recommendation resource further includes object recommendation data, and the method further includes:
creating an object recommendation view for the object recommendation video according to the object recommendation data;
displaying the object recommendation view in a client interface for playing the object recommendation video, and displaying video content of the object recommendation video through the object recommendation view;
and closing the object recommendation view in the client interface in response to a trigger condition for ending playing the object recommendation video.
In one embodiment, the terminal is provided with a linear vibration module, and the controlling the terminal to output vibration feedback matched with the vibration effect includes:
executing a vibration control instruction matched with the vibration effect, and generating a vibration control signal matched with the vibration effect;
transmitting the vibration control signal to a driving circuit in the linear vibration module; the driving circuit is used for driving the linear motor of the linear vibration module to output vibration indicated by the vibration control signal.
In a second aspect, the present application provides a video configuration method, the method including:
receiving vibration effect configuration operation of recommending video for an object; the vibration effect configuration operation is used for generating vibration configuration data, wherein the vibration configuration data comprises vibration parameters matched with video content of the object recommended video at least one time point;
storing vibration configuration data generated by the vibration effect configuration operation; the vibration configuration data is used for controlling the terminal to output vibration feedback matched with the vibration effect in the process of playing the object recommended video, and the vibration effect is used for simulating the actual vibration effect of the vibration event triggered by the object in the object recommended video in the video scene.
In one embodiment, the storing the vibration configuration data generated by the vibration effect configuration operation includes:
according to a preset data exchange format, writing the vibration configuration data generated by the vibration effect configuration operation into a vibration configuration file so as to record the vibration configuration data through the vibration configuration file;
and establishing an association relation between the object recommended video and the vibration configuration file, and storing the vibration configuration file into a target database.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the steps of the method described above when the processor executes the computer program.
In a fourth aspect, the present application also provides a computer program product. The computer program product comprising a computer program which, when executed by a processor, implements the steps of the method described above.
According to the video playing, video configuration method, device, computer equipment, storage medium and computer program product, vibration configuration data of the object recommendation video are obtained by responding to the trigger condition of the terminal meeting the playing object recommendation video, the vibration configuration data comprise vibration parameters matched and configured with the video content of the object recommendation video at least one time point, in the process of playing the object recommendation video, a vibration effect matched with the video content currently displayed by the object recommendation video is created according to the vibration parameters in the vibration configuration data, so that the real vibration effect of a vibration event triggered by an object in the object recommendation video in a current video scene is simulated, in addition, in a mode of controlling the terminal to output the vibration feedback matched with the vibration effect, the terminal can timely and accurately output the vibration feedback matched with the vibration event triggered by the object currently displayed by the object recommendation video in the process of playing the object recommendation video, thereby the terminal simulates the real vibration generated by the vibration event triggered by the object in the current video scene, the real vibration effect matched with the video content is generated by a user watching the object recommendation video in the process of playing the object recommendation video, the actual vibration effect is more fully realized, the recommended video is more fully realized, and the characteristics of the recommended video is more fully realized.
Drawings
FIG. 1 is an application environment diagram of a video playback method according to an embodiment;
FIG. 2 is a flowchart of a video playing method according to an embodiment;
FIG. 3 is a block flow diagram of a video playing method according to one embodiment;
FIG. 4 is a flow chart of a video configuration method according to one embodiment;
FIG. 5 is a block diagram of a video playing device according to one embodiment;
FIG. 6 is a block diagram of a video configuration device in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The video playing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104 or may be located on a cloud or other network server. The terminal 102 responds to the trigger condition that the terminal 102 meets the object recommendation video playing, and vibration configuration data of the object recommendation video are obtained; the vibration configuration data comprises vibration parameters matched and configured with video content of the object recommended video at least one time point; in the process of playing the object recommended video, the terminal 102 creates a vibration effect matched with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data; the vibration effect is used for simulating the real vibration effect of the vibration event triggered by the object in the object recommendation video in the current video scene; the terminal 102 outputs vibration feedback that matches the vibration effect. The terminal 102 may be, but is not limited to, various smartphones, tablet computers, portable wearable devices, etc. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The server 104 may be implemented as a stand-alone server or as a server cluster of multiple servers.
In one embodiment, as shown in fig. 2, a video playing method is provided, and the method is applied to the terminal in fig. 1 for illustration, and includes the following steps:
and step 206, responding to the terminal meeting the triggering condition of playing the object recommended video, and acquiring vibration configuration data of the object recommended video.
Wherein, the object recommendation video may refer to a video for presenting a series of recommendation information of a target object to a user. In practical applications, the object recommendation video may be an advertisement video of a certain product, for example, an advertisement video of a certain automobile.
The vibration configuration data may be configuration data for controlling the terminal to output corresponding vibration feedback in the process of playing the object recommended video. Wherein the vibration configuration data includes vibration parameters configured to match video content of the subject recommended video at least one point in time.
In practical applications, the content of the vibration configuration data may be a time point, and the vibration parameter and the vibration duration corresponding to the time point. The vibration parameter may be a parameter that triggers the terminal to output a corresponding vibration effect according to a set manner.
In particular, the vibration configuration data may be a data record in a preset data interaction format. Specifically, the data interaction format may be JSON (JavaScript Object Notation, JS object profile, a lightweight data exchange language) format.
In practical application, when the object recommended video is in a state to be published, a user account for publishing the object recommended video may configure, in advance, a corresponding vibration effect by means of a computer device according to characteristics of the object recommended video and matching with video content of the object recommended video at least one time point. Wherein the video content of the object recommended video may include video pictures and/or video sounds. The computer equipment generates vibration configuration data for the object recommended video by receiving vibration effect configuration operation of a user account for issuing the object recommended video aiming at the input of the object recommended video and according to vibration effect configuration records generated by the vibration effect configuration operation, and stores the vibration configuration data to the back-end server.
The vibration effect may refer to real vibration generated by a vibration event triggered by the simulation object in the current video scene. For example, for an automobile advertisement video, a user may match the video content of the automobile advertisement video in advance, and sequentially configure vibration events triggered in the video scene by the objects of "automobile close", "automobile engine start", "automobile engine acceleration", "automobile gearbox shift", etc. The back-end server stores the vibration configuration data generated by the vibration effect configuration operation.
Then, the terminal can initiate a play request for the object recommended video to the back-end server in response to a condition that the user triggers the play of the object recommended video. For example, the user may scan the two-dimensional code of the object recommended video, click the play link of the object recommended video, start a certain application program, meet the requirement on the operation behavior of a certain application program, and the like, where the above conditions may be used as conditions for the user to trigger the terminal to play the object recommended video, but are not limited to the above conditions. And the back-end server receives and responds to the play request, inquires out vibration configuration data corresponding to the video identification of the object recommended video in the database, then transmits the vibration configuration data of the object recommended video to the terminal, and the terminal acquires the vibration configuration data of the object recommended video. In practical application, the terminal may also store the vibration configuration data of the object recommended video in advance, and read the vibration configuration data of the object recommended video when the triggering condition of playing the object recommended video is currently satisfied.
And 206, in the process of playing the object recommended video, creating a vibration effect matched with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data.
The vibration effect is used for simulating the actual vibration effect of the vibration event triggered by the object in the object recommendation video in the current video scene.
Specifically, in the process of playing the object recommended video, the terminal can create a vibration effect matched with the object currently displayed by the object recommended video by analyzing the vibration parameters in the vibration configuration data. Specifically, the terminal can detect the current playing progress of the object recommended video in the process of playing the object recommended video, and inquire whether vibration parameters matched with the current playing progress exist in the vibration configuration data; under the condition that the vibration configuration data inquires that the vibration parameters matched with the current playing progress exist, the terminal can create corresponding vibration effects according to the inquired vibration parameters so as to simulate the vibration effects generated by the vibration events triggered by the object in the object recommendation video under the current playing progress by adopting the vibration effects. The terminal can input the vibration parameters to the vibration simulation engine, and simulate the vibration condition generated by the vibration event triggered by the object under the current playing progress through the vibration simulation engine so as to create a corresponding vibration effect.
And 206, outputting vibration feedback matched with the vibration effect by the control terminal.
In the specific implementation, when the terminal obtains the vibration effect matched with the object currently displayed by the object recommendation video, the terminal can output the vibration feedback matched with the vibration effect. Specifically, the terminal may refer to a handheld terminal provided with a vibration feedback device, and the terminal may send a vibration control signal matched with the vibration effect to the vibration feedback device by executing a vibration control instruction set matched with the vibration effect, and the vibration feedback device triggers vibration matched with the vibration effect in response to the vibration control signal, so that the terminal outputs vibration feedback matched with the vibration effect.
In one embodiment, the vibration feedback device may refer to a linear vibration module of the handheld terminal, where the linear vibration module includes a linear motor and a driving circuit; the linear motor is driven by alternating current, and the energized coil is stressed by ampere force in a magnetic field so as to drive the motor to vibrate. Specifically, in the process of controlling the terminal to output vibration feedback matched with the vibration effect, the terminal can execute a vibration control instruction matched with the vibration effect and the linear vibration module to generate a vibration control signal matched with the vibration effect; then, the terminal can send the vibration control signal matched with the vibration effect to a driving circuit in the linear vibration module by calling a control interface of the linear vibration module, and the driving circuit responds to the vibration control signal to drive a linear motor of the linear vibration module to output vibration indicated by the vibration control signal. The alternating current for driving the linear motor can generate instant high voltage, so that the start and stop of the driving linear motor are very sensitive and the vibration sense is similar to that of the driving linear motor, and meanwhile, the linear motor can output different vibration senses by changing the electric frequency, so that the terminal can simulate real vibration generated by a vibration event triggered by an object in the current video scene according to the method.
In the video playing method, the vibration configuration data of the object recommendation video is obtained by responding to the trigger condition of the terminal to play the object recommendation video, the vibration configuration data comprises vibration parameters matched and configured with the video content of the object recommendation video at least one time point, and in the process of playing the object recommendation video, the vibration effect matched with the video content currently displayed by the object recommendation video is created according to the vibration parameters in the vibration configuration data so as to simulate the real vibration effect of the vibration event triggered by the object in the object recommendation video in the current video scene, and in addition, the mode of controlling the terminal to output the vibration feedback matched with the vibration effect is adopted, so that the terminal can timely and accurately output the vibration feedback matched with the vibration event triggered by the object currently displayed by the object recommendation video in the process of playing the object recommendation video, thereby simulating the real vibration generated by the vibration event triggered by the object in the current video scene, realizing the haptic sense, hearing and visual multiple interactions generated by a user watching the object recommendation video in the process of playing the object recommendation video, realizing the characteristics of more comprehensively displaying the video, and effectively improving the playing effect of the object recommendation video.
In another embodiment, during playing the object recommended video, creating a vibration effect matching with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data, including: creating a vibration simulation engine aiming at the object recommended video, and reading vibration parameters matched with the current playing progress of the object recommended video in the vibration configuration data through the vibration simulation engine in the process of playing the object recommended video; and processing vibration parameters through a vibration simulation engine, and creating a vibration effect matched with the video content currently displayed by the object recommended video.
Wherein the vibration simulation engine may refer to an engine that can create a realistic vibration effect for simulating a vibration event triggered by an object in a current video scene. In practical applications, the vibration simulation engine may employ a physical engine. The physical engine may refer to a computer simulation engine, which may simulate physical phenomena in the real world. The physics engine is based on physics principles, including mechanics, thermodynamics, electromagnetism, etc., that are utilized to create physical effects in the virtual environment. In practical applications, the terminal may employ a physical engine to simulate physical phenomena in the real world, such as collisions, vibrations, etc.
In the specific implementation, in the process of creating the vibration effect matched with the object currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data, the terminal can create a vibration simulation engine, analyze the vibration configuration data through the vibration simulation engine, analyze the vibration configuration data and judge whether the vibration parameters matched with the current playing progress of the object recommended video exist in the vibration configuration data.
Specifically, the terminal can acquire the current playing time point of the object recommended video in real time through the vibration simulation engine in the process of playing the object recommended video; then, the terminal can determine whether vibration parameters corresponding to the playing time point are recorded in the vibration configuration data through the vibration simulation engine; and determining to read the vibration parameters matched with the current playing progress of the target recommended video when the vibration simulation engine detects that the vibration parameters corresponding to the playing time point are recorded in the vibration configuration data.
Under the condition that the vibration simulation engine determines that vibration parameters matched with the current playing progress of the object recommended video exist in the vibration configuration data, the vibration simulation engine creates a vibration effect generated by a vibration event triggered by an object displayed by the object recommended video in a current video scene according to the vibration parameters matched with the current playing progress.
In another embodiment, when the vibration simulation engine is a physical engine, the terminal may use the physical primer to process vibration parameters matched with the current playing progress, simulate, by using the physical engine, a vibration condition of a vibration event triggered by an object displayed by the object recommended video in the current video scene in the real world, and output a corresponding vibration effect based on the vibration condition, so as to achieve optimization by using the physical engine, so that the terminal may simulate, more in a simulation, vibration generated by the vibration event triggered by the object in the current video scene. For example, a vibration parameter at a certain time point in the video is recommended for the object, and the vibration parameter may record parameters such as a vibration object attribute (momentum, torque, elasticity, etc.), a vibration event attribute, a vibration scene attribute, a vibration duration attribute, etc. corresponding to a certain vibration event (such as engine start, engine acceleration, hot water boiling, etc.); based on the vibration parameters, the physical engine simulates the vibration phenomenon of the vibration object in the simulated real world, and realizes the more simulated creation of the vibration effect generated by the vibration event triggered by the object displayed by the object recommended video in the current video scene.
According to the technical scheme, by creating the vibration simulation engine for the object recommendation video, in the process of playing the object recommendation video, the vibration simulation engine reads the vibration parameters matched with the current playing progress of the object recommendation video, and creates the vibration effect matched with the object currently displayed by the object recommendation video based on the vibration parameters, and by adopting the vibration simulation engine, the vibration effect of the vibration event triggered by the recommendation object in the current video scene can be quickly and effectively created based on the vibration parameters in the vibration configuration data in combination with the playing progress of the object recommendation video.
In another embodiment, the obtaining vibration configuration data of the object recommendation video in response to the terminal satisfying a trigger condition for playing the object recommendation video includes: responding to the trigger condition that the terminal meets the video recommended by the playing object, and sending an object recommendation request to a server; the object recommendation request is used for indicating the server to issue object recommendation resources corresponding to the object recommendation video to the terminal; the object recommended resources comprise vibration configuration files adopting a preset data exchange format; vibration configuration data of the object recommendation video is obtained through the vibration configuration file.
In the specific implementation, in the process that the terminal responds to the trigger condition that the terminal meets the playing object recommended video and obtains the vibration configuration data of the object recommended video, the terminal can respond to the trigger condition that the terminal meets the playing object recommended video and send an object recommended request to the server. And the server receives and responds to the object recommendation request, inquires out an object recommendation resource corresponding to the video identifier of the object recommendation video in the database, and then issues the object recommendation resource to the terminal so as to enable the terminal to acquire the object recommendation resource of the object recommendation video. The object recommendation resource comprises a vibration configuration file adopting a preset data exchange format, for example, a JSON file recorded with the vibration configuration data; and the terminal analyzes the JSON file recorded with the vibration configuration data to obtain the vibration configuration data of the recommended video aiming at the object.
According to the technical scheme, the object recommendation request is sent to the server in response to the terminal meeting the triggering condition of playing the object recommendation video, so that the server is instructed to send the object recommendation resource corresponding to the object recommendation video to the terminal, and as the object recommendation resource comprises the vibration configuration file adopting the preset data exchange format, the vibration configuration file can be analyzed by the terminals of various types and various operating systems according to the preset data exchange format, and the vibration configuration parameters for controlling the terminal to output corresponding vibration feedback in the process of playing the object recommendation video can be accurately obtained.
In another embodiment, the object recommendation resource further comprises object recommendation data, the method further comprising: creating an object recommendation view for the object recommendation video according to the object recommendation data; displaying an object recommendation view in a client interface for playing the object recommendation video, and displaying video content of the object recommendation video through the object recommendation view; and closing the object recommendation view in the client interface in response to a trigger condition for ending playing the object recommendation video.
Wherein the object recommendation resource further comprises object recommendation data. The object recommendation data may include video playing resources, video playing configuration, and the like of the object recommendation video. For example, in the case when the object recommendation video is an advertisement video, the object recommendation data may refer to advertisement data, and the terminal may create an advertisement view based on the advertisement data.
In the specific implementation, in the process of playing the object recommendation video, the terminal can create an object recommendation view according to object recommendation data for the object recommendation video received from the server; the object recommendation view may be used for display in a client interface that plays the object recommendation video. The client interface for playing the object recommended video may be a first screen interface, a start interface, or a preconfigured specified interface of each application program. And the terminal can display the object recommendation view in the client interface and display the video content of the object recommendation video through the object recommendation view under the condition that the playing of the object recommendation video is satisfied.
In the process of playing the object recommended video, the terminal can detect whether the end playing condition of the object recommended video is currently met, for example, whether the user inputs an end playing operation for the object recommended video, whether the playing of the object recommended video is completed, and the like, and when detecting that the end playing condition of the object recommended video is currently met, the terminal closes the object recommended view in the client interface.
According to the technical scheme, the terminal creates the object recommendation view according to the object recommendation data issued by the server for the object recommendation video in response to the triggering condition of playing the object recommendation video, displays the video content of the object recommendation video to a user accessing the client interface in a mode of displaying the object recommendation view in the client interface, and timely closes the object recommendation view under the condition that the object recommendation video meets the condition of finishing playing, so that the terminal is controlled to stop outputting vibration feedback in time, and the equipment energy consumption of the terminal is effectively saved.
For ease of understanding by those skilled in the art, fig. 3 exemplarily provides a flowchart of a video playing method; the terminal can send an object recommendation request to the server in response to the terminal meeting a triggering condition of playing the object recommendation video. And the server receives and responds to the object recommendation request, inquires out an object recommendation resource corresponding to the video identifier of the object recommendation video in the database, and then issues the object recommendation resource to the terminal so as to enable the terminal to acquire the object recommendation resource of the object recommendation video. The object recommendation resources comprise vibration configuration data and object recommendation data which adopt a preset data exchange format; then, the terminal can create an object recommendation view according to the object recommendation data of the object recommendation video received from the server; the object recommendation view may be used for display in a client interface that plays the object recommendation video. In addition, the terminal creates a vibration simulation engine aiming at the object recommended video, and in the process of playing the object recommended video, the vibration simulation engine reads vibration parameters matched with the current playing progress of the object recommended video; and processing the vibration parameters through a vibration simulation engine, and creating a vibration effect matched with the currently displayed object of the object recommendation video. Such as acceleration, boiling, explosion, drum set, etc. of the automobile engine; the terminal may send a vibration control signal matching the vibration effect to the vibration feedback device by executing a vibration control instruction set matching the vibration effect, and the vibration feedback device triggers vibration matching the vibration effect in response to the vibration control signal, so that the terminal outputs vibration feedback matching the vibration effect.
In one embodiment, as shown in fig. 4, a video configuration method is provided, and the method is applied to a computer device for illustration, and includes the following steps:
step 402, receiving vibration effect configuration operation of recommending video for an object; the vibration effect configuration operation is operable to generate vibration configuration data including vibration parameters that match video content of the subject recommended video at least one point in time.
Step 404, storing vibration configuration data generated by the vibration effect configuration operation; the vibration configuration data are used for controlling the terminal to output vibration feedback matched with the vibration effect in the process of playing the object recommended video, and the vibration effect is used for simulating the actual vibration effect of the vibration event triggered by the object in the object recommended video in the video scene.
It should be noted that, the specific limitation of the above steps may be referred to the specific limitation of a video playing method, which is not described herein.
According to the video configuration method, the vibration effect configuration operation for configuring the corresponding vibration effect for the object displayed by the object recommendation video is received, and the vibration effect configuration record generated by the vibration effect configuration operation is converted into the vibration configuration data, so that the terminal playing the object recommendation video can output the corresponding vibration feedback based on the vibration configuration data, the vibration feedback effect of the object recommendation video can be configured in a self-defined manner, the terminal can output rich vibration feedback matched with the vibration event triggered by the object currently displayed by the object recommendation video, various interactions in touch sense, hearing sense and vision are generated with a user watching the object recommendation video in the process of playing the object recommendation video, the characteristics of the video recommended object can be displayed more comprehensively, and the playing effect of the object recommendation video is effectively improved.
In another embodiment, storing vibration configuration data generated by a vibration effect configuration operation includes: according to a preset data exchange format, writing vibration configuration data generated by the vibration effect configuration operation into a vibration configuration file so as to record the vibration configuration data through the vibration configuration file; and establishing an association relation between the object recommended video and the vibration configuration file, and storing the vibration configuration file into a target database.
In a specific implementation, in the process of converting the vibration effect configuration record generated by the vibration effect configuration operation into the vibration configuration data, the computer equipment can adopt JSON format to write the vibration effect configuration content of the vibration effect configuration record into the vibration configuration JSON file so as to record the vibration configuration data through the vibration configuration JSON file. Then, the computer equipment establishes an association relation between the object recommended video and the vibration configuration JSON file, and stores the vibration configuration JSON file into the target database. When the rear end receives a play request initiated by the terminal aiming at the object recommended video, the rear end responds to the play request, and after a vibration configuration JSON file corresponding to the video identification of the object recommended video is queried in the target database, the vibration configuration JSON file of the object recommended video is issued to the terminal so that the terminal can acquire the vibration configuration data of the object recommended video.
According to the technical scheme, the vibration effect configuration content recorded by the vibration effect configuration is written into the vibration configuration file according to the preset data exchange format, so that the vibration configuration data is recorded by the vibration configuration file, the association relationship between the object recommended video and the vibration configuration file is established, and the vibration configuration file is stored in the target database, so that the vibration configuration file can be analyzed by terminals of various types and various operating systems according to the preset data exchange format, and the vibration configuration parameters for controlling the terminal to output corresponding vibration feedback in the process of playing the object recommended video can be accurately obtained.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a video playing device for realizing the video playing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the video playing device provided below may refer to the limitation of the video playing method hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 5, there is provided a video playing apparatus including:
the response module 510 is configured to obtain vibration configuration data of the object recommendation video in response to the terminal meeting a trigger condition for playing the object recommendation video; the vibration configuration data comprises vibration parameters matched and configured with video content of the object recommended video at least one time point;
the creating module 520 is configured to create a vibration effect that matches the video content currently displayed by the object recommendation video according to the vibration parameter in the vibration configuration data during the playing of the object recommendation video; the vibration effect is used for simulating the real vibration effect of a vibration event triggered by an object in the object recommendation video in the current video scene;
And the control module 530 is used for controlling the terminal to output vibration feedback matched with the vibration effect.
In one embodiment, the creating module 520 is specifically configured to create a vibration simulation engine for the object recommended video, and read, by the vibration simulation engine, a vibration parameter matching with a current playing progress of the object recommended video in the vibration configuration data during the playing of the object recommended video; and processing the vibration parameters through the vibration simulation engine, and creating a vibration effect matched with the video content currently displayed by the object recommended video.
In one embodiment, the creating module 520 is specifically configured to obtain, in real time, a current playing time point of the object recommendation video in a process of playing the object recommendation video by using the vibration simulation engine; and determining that the vibration parameters matched with the current playing progress of the target recommended video are read under the condition that the vibration configuration data are detected by the vibration simulation engine to record the vibration parameters corresponding to the playing time point.
In one embodiment, the response module 530 is specifically configured to send an object recommendation request to a server in response to the terminal meeting a trigger condition for playing an object recommendation video; the object recommendation request is used for indicating the server to issue object recommendation resources corresponding to the object recommendation video to the terminal; the object recommended resources comprise vibration configuration files adopting a preset data exchange format; and obtaining vibration configuration data of the object recommended video through the vibration configuration file.
In one embodiment, the object recommendation resource further includes object recommendation data, and the apparatus is further configured to create an object recommendation view for the object recommendation video according to the object recommendation data; displaying the object recommendation view in a client interface for playing the object recommendation video, and displaying video content of the object recommendation video through the object recommendation view; and closing the object recommendation view in the client interface in response to a trigger condition for ending playing the object recommendation video.
In one embodiment, the terminal is provided with a linear vibration module, and the control module 530 is specifically configured to execute a vibration control instruction matched with the vibration effect, and generate a vibration control signal matched with the vibration effect; transmitting the vibration control signal to a driving circuit in the linear vibration module; the driving circuit is used for driving the linear motor of the linear vibration module to output vibration indicated by the vibration control signal.
Based on the same inventive concept, the embodiment of the application also provides a video configuration device for realizing the video configuration method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of one or more video configuration devices provided below may refer to the limitation of the video configuration method described above, and will not be repeated here.
In one embodiment, as shown in fig. 6, there is provided a video configuration apparatus including:
a receiving module 610, configured to receive a vibration effect configuration operation for a target recommended video; the vibration effect configuration operation is used for generating vibration configuration data, wherein the vibration configuration data comprises vibration parameters matched with video content of the object recommended video at least one time point;
a conversion module 620, configured to store vibration configuration data generated by the vibration effect configuration operation; the vibration configuration data is used for controlling the terminal to output vibration feedback matched with the vibration effect in the process of playing the object recommended video, and the vibration effect is used for simulating the actual vibration effect of the vibration event triggered by the object in the object recommended video in the video scene.
In one embodiment, the conversion module 630 is specifically configured to write the vibration configuration data generated by the vibration effect configuration operation into a vibration configuration file according to a preset data exchange format, so as to record the vibration configuration data through the vibration configuration file; and establishing an association relation between the object recommended video and the vibration configuration file, and storing the vibration configuration file into a target database.
The above-mentioned video playing and video configuring means may be implemented in whole or in part by software, hardware or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program, when executed by a processor, implements a video playing, video configuring method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided that includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of a video playback, video configuration method as described above. The steps of a video playing and video configuring method may be the steps of a video playing and video configuring method in the foregoing embodiments.
In one embodiment, a computer readable storage medium is provided, storing a computer program which, when executed by a processor, causes the processor to perform the steps of a video playing, video configuring method as described above. The steps of a video playing and video configuring method may be the steps of a video playing and video configuring method in the foregoing embodiments.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, causes the processor to perform the steps of a video playing, video configuring method as described above. The steps of a video playing and video configuring method may be the steps of a video playing and video configuring method in the foregoing embodiments.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (10)

1. A video playing method, the method comprising:
responding to the trigger condition that a terminal meets the object recommendation video playing, and acquiring vibration configuration data of the object recommendation video; the vibration configuration data comprises vibration parameters matched and configured with video content of the object recommended video at least one time point;
in the process of playing the object recommended video, creating a vibration effect matched with the video content currently displayed by the object recommended video according to the vibration parameters in the vibration configuration data; the vibration effect is used for simulating the real vibration effect of a vibration event triggered by an object in the object recommendation video in the current video scene;
And controlling the terminal to output vibration feedback matched with the vibration effect.
2. The method according to claim 1, wherein creating a vibration effect matching the video content currently presented by the object recommendation video according to the vibration parameters in the vibration configuration data during the playing of the object recommendation video comprises:
creating a vibration simulation engine aiming at the object recommended video, and reading vibration parameters matched with the current playing progress of the object recommended video in the vibration configuration data through the vibration simulation engine in the process of playing the object recommended video;
and processing the vibration parameters through the vibration simulation engine, and creating a vibration effect matched with the video content currently displayed by the object recommended video.
3. The method of claim 2, wherein the reading, by the vibration simulation engine, in the vibration configuration data, vibration parameters that match a current progress of playing of the object recommended video comprises:
acquiring the current playing time point of the object recommended video in real time by the vibration simulation engine in the process of playing the object recommended video;
And determining that the vibration parameters matched with the current playing progress of the target recommended video are read under the condition that the vibration configuration data are detected by the vibration simulation engine to record the vibration parameters corresponding to the playing time point.
4. The method according to claim 1, wherein the obtaining vibration configuration data of the object-recommended video in response to the terminal satisfying a trigger condition for playing the object-recommended video includes:
responding to the terminal meeting the triggering condition of playing the object recommendation video, and sending an object recommendation request to a server; the object recommendation request is used for indicating the server to issue object recommendation resources corresponding to the object recommendation video to the terminal; the object recommended resources comprise vibration configuration files adopting a preset data exchange format;
and obtaining vibration configuration data of the object recommended video through the vibration configuration file.
5. The method of claim 4, wherein the object recommendation resource further comprises object recommendation data, the method further comprising:
creating an object recommendation view for the object recommendation video according to the object recommendation data;
Displaying the object recommendation view in a client interface for playing the object recommendation video, and displaying video content of the object recommendation video through the object recommendation view;
and closing the object recommendation view in the client interface in response to a trigger condition for ending playing the object recommendation video.
6. The method according to claim 1, wherein the terminal is provided with a linear vibration module, and the controlling the terminal to output vibration feedback matched with the vibration effect comprises:
executing a vibration control instruction matched with the vibration effect, and generating a vibration control signal matched with the vibration effect;
transmitting the vibration control signal to a driving circuit in the linear vibration module; the driving circuit is used for driving the linear motor of the linear vibration module to output vibration indicated by the vibration control signal.
7. A method of video configuration, the method comprising:
receiving vibration effect configuration operation of recommending video for an object; the vibration effect configuration operation is used for generating vibration configuration data, wherein the vibration configuration data comprises vibration parameters matched with video content of the object recommended video at least one time point;
Storing vibration configuration data generated by the vibration effect configuration operation; the vibration configuration data is used for controlling the terminal to output vibration feedback matched with the vibration effect in the process of playing the object recommended video, and the vibration effect is used for simulating the actual vibration effect of the vibration event triggered by the object in the object recommended video in the video scene.
8. The method of claim 7, wherein storing vibration configuration data generated by the vibration effect configuration operation comprises:
according to a preset data exchange format, writing the vibration configuration data generated by the vibration effect configuration operation into a vibration configuration file so as to record the vibration configuration data through the vibration configuration file;
and establishing an association relation between the object recommended video and the vibration configuration file, and storing the vibration configuration file into a target database.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the video playing method of any one of claims 1 to 6 or the steps of the video configuring method of any one of claims 7 to 8.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor implements the steps of the video playing method of any of claims 1 to 6 or the steps of the video configuring method of any of claims 7 to 8.
CN202410074459.XA 2024-01-18 2024-01-18 Video playing, video configuring method, computer device and computer program product Pending CN117880602A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410074459.XA CN117880602A (en) 2024-01-18 2024-01-18 Video playing, video configuring method, computer device and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410074459.XA CN117880602A (en) 2024-01-18 2024-01-18 Video playing, video configuring method, computer device and computer program product

Publications (1)

Publication Number Publication Date
CN117880602A true CN117880602A (en) 2024-04-12

Family

ID=90577128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410074459.XA Pending CN117880602A (en) 2024-01-18 2024-01-18 Video playing, video configuring method, computer device and computer program product

Country Status (1)

Country Link
CN (1) CN117880602A (en)

Similar Documents

Publication Publication Date Title
US11403124B2 (en) Remotely emulating computing devices
Le Muzic et al. Illustrative visualization of molecular reactions using omniscient intelligence and passive agents
CN112182473B (en) Page operation behavior playback method and device, computer equipment and storage medium
CN110809175B (en) Video recommendation method and device
US9870571B1 (en) Methods and systems for determining user interaction based data in a virtual environment transmitted by three dimensional assets
CN104754420A (en) Barrage interaction method and device in process of multimedia file playing
CN104640608A (en) User-based mini-game generation and distribution
CN109191550B (en) Particle rendering method and device, electronic equipment and storage medium
CN105027155A (en) Unifying cloud services for online sharing
US20180014065A1 (en) Video File Processing Method and Device
CN104681048A (en) Multimedia read control device, curve acquiring device, electronic equipment and curve providing device and method
CN107133072A (en) One kind operation performs method and apparatus
CN117880602A (en) Video playing, video configuring method, computer device and computer program product
CN109299355B (en) Recommended book list display method and device and storage medium
CN109478117A (en) For generating and being shown in the method and system of the 3-dimensional digital assets used in thread environment
CN111265875B (en) Method and equipment for displaying game role equipment
CN108319444A (en) Based on music drumbeat control terminal vibrating method, storage device and computer equipment
CN113453048A (en) Audio and video tactile feedback setting method, audio and video playing method and computer equipment
CN105653492A (en) Smart books
US9946440B2 (en) Method of providing flash card and apparatuses performing the same
US20230394935A1 (en) Haptic effect management
CN116320646A (en) Interactive processing method and device for three-dimensional virtual gift in virtual reality live broadcasting room
CN112699047A (en) Application testing method and device, computer equipment and storage medium
EP2899662A1 (en) Code-based enabling of product capabilities
CN115086265A (en) Method and equipment for generating group head portrait information

Legal Events

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