[go: up one dir, main page]

CN115460468A - Interactive video file creating method and interactive video playing method and device - Google Patents

Interactive video file creating method and interactive video playing method and device Download PDF

Info

Publication number
CN115460468A
CN115460468A CN202210956004.1A CN202210956004A CN115460468A CN 115460468 A CN115460468 A CN 115460468A CN 202210956004 A CN202210956004 A CN 202210956004A CN 115460468 A CN115460468 A CN 115460468A
Authority
CN
China
Prior art keywords
target
interactive
style
interactive video
video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210956004.1A
Other languages
Chinese (zh)
Other versions
CN115460468B (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 IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI 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 IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202210956004.1A priority Critical patent/CN115460468B/en
Publication of CN115460468A publication Critical patent/CN115460468A/en
Application granted granted Critical
Publication of CN115460468B publication Critical patent/CN115460468B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention provides a method for creating an interactive video file, a method for playing an interactive video and a device thereof, wherein the creating method comprises the following steps: acquiring an interactive video script file based on the acquired video segments, wherein the interactive video script file is used for describing logic information among the video segments, display time of an interactive page and a target interactive style; acquiring at least one supporting playing platform; acquiring target differentiated style data respectively corresponding to each supporting playing platform based on at least one supporting playing platform and a target interactive style, wherein the target differentiated style data is data with difference between different playing platforms in the target interactive style; and respectively packaging the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform. The technical scheme provided by the invention has higher creation efficiency of the interactive video file.

Description

Interactive video file creating method and interactive video playing method and device
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method for creating an interactive video file, a method for playing an interactive video, and an apparatus for playing an interactive video.
Background
The interactive video is a video form capable of providing plot interaction for the user, and in the playing process of the interactive video, the user can select a branch plot according to own preference, so that the development of the plot is influenced, the trend of the plot is determined, the user can be more immersed in the plot, and the participation sense of the user is improved.
In the prior art, because different terminals have different playing environments, where the playing environment may be ios, android, h5, or tv, and an interactive video often only supports a single playing environment, that is, can be played on only one platform, for example, a user has a high frequency of playing an interactive video using an android phone, and thus an interactive video often only supports an android phone end to be played. If the interactive video files need to be played at the clients in different playing environments, the interactive video files need to be developed independently for different terminals, and the efficiency is low.
Disclosure of Invention
The invention provides a method for creating an interactive video file, a method and a device for playing an interactive video, a computer-readable storage medium and electronic equipment, and aims to solve the technical problem that the interactive video creating efficiency is low in the prior art.
According to a first aspect of the present invention, there is provided a method for creating an interactive video file, applied to a server, including:
determining an interactive video script file based on a plurality of acquired video segments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the video segments, display opportunity of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page;
acquiring at least one supporting playing platform for playing the interactive video file;
based on the at least one playing support platform and the target interaction style, acquiring target differentiation style data corresponding to each playing support platform respectively, wherein the target differentiation style data are data with difference between different playing platforms in the target interaction style;
and respectively packaging the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform.
Optionally, the obtaining target differentiated style data respectively corresponding to each supported playing platform based on the at least one supported playing platform and the target interaction style includes:
reading a target style identification corresponding to a target interaction style in the interactive video script file;
acquiring a target platform identification corresponding to each support playing platform;
and selecting target differential style data with the same platform identification as the target platform identification and the same style identification as the target style identification from the pre-stored differential style data.
Optionally, selecting target differential style data with a platform identifier identical to the target platform identifier and a style identifier identical to the target style identifier from the pre-stored differential style data includes:
determining priorities corresponding to the target platform identifications respectively, wherein the priorities are used for indicating the sequence determination sequence of the target differentiated style data;
and respectively corresponding to the priority based on the target platform identification, sequentially acquiring data identical to the target platform identification from the prestored differentiated style data, and sequentially determining the target differentiated style data identical to the target style identification from the data identical to the target platform identification.
Optionally, after the step of obtaining the interactive video file corresponding to each of the supported playback platforms, the method further includes:
determining a video identifier corresponding to an interactive video set, wherein the interactive video set is composed of the plurality of video segments;
and determining the file name of each interactive video file based on the video identification and the target platform identification corresponding to each interactive video file, and storing each interactive video file in the same directory, wherein the file names are used for distinguishing different interactive video files in the storage directory.
According to a second aspect of the present invention, there is provided a method for playing an interactive video, which is applied to a terminal, and includes:
responding to a playing instruction of the target interactive video, and acquiring a target interactive video file;
analyzing the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is adapted to a terminal playing platform in a target interactive style corresponding to the interactive page but has difference among different playing platforms;
when the target interactive video is played based on the target interactive video script file, aiming at each switching among a plurality of video segments corresponding to the target interactive video, extracting the character content of the target interactive style in the target interactive video script file; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
Optionally, the obtaining a target interactive video file in response to a play instruction of the target interactive video includes:
responding to a playing instruction of the target interactive video, and sending a data acquisition request to a server, wherein the data acquisition request carries a target video identifier corresponding to the target interactive video;
receiving a target storage address returned by the server based on the data acquisition request, wherein a plurality of interactive video files are stored in the target storage address, and the file names of the interactive video files are different;
determining a target file name based on the target video identifier and the terminal platform identifier;
adding the target file name behind the target storage address to obtain a target file downloading address;
and acquiring a target interactive video file based on the target file downloading address.
According to a third aspect of the present invention, there is provided an apparatus for creating an interactive video file, which is provided in a server, and includes:
the file acquisition module is used for determining an interactive video script file based on a plurality of acquired video segments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the video segments, display time of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page;
the platform acquisition module is used for acquiring at least one playing support platform for playing the interactive video file;
a data obtaining module, configured to obtain target differentiated style data corresponding to each supported playing platform based on the at least one supported playing platform and the target interaction style, where the target differentiated style data is data of the target interaction style that is different between different playing platforms;
and the encapsulation processing module is used for encapsulating the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform.
According to a fourth aspect of the present invention, there is provided an interactive video playing apparatus, disposed in a terminal, including:
the file acquisition module is used for responding to a playing instruction of the target interactive video and acquiring a target interactive video file;
the analysis processing module is used for analyzing the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is adapted to a terminal playing platform in a target interactive style corresponding to the interactive page but has difference among different playing platforms;
the page processing module is used for extracting the character content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video segments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
According to a fifth aspect of the present invention, there is provided a computer-readable storage medium storing a computer program for executing the above-described interactive video file creation method or the above-described interactive video playback method.
According to a sixth aspect of the present invention, there is provided an electronic apparatus comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instruction from the memory, and execute the instruction to implement the method for creating the interactive video file or the method for playing the interactive video.
Compared with the prior art, the interactive video file creating method, the interactive video playing method and device, the computer readable storage medium and the electronic equipment provided by the invention at least have the following beneficial effects:
according to the technical scheme, the interactive video script file is obtained, at least a target interactive style used for determining the page presentation of an interactive page is described in the interactive video script file, then at least one supporting playing platform used for playing the interactive video file is obtained, further, target differentiated style data corresponding to each supporting playing platform is obtained according to the at least one supporting playing platform and the target interactive style, and further, the target differentiated style data corresponding to each supporting playing platform is packaged with the video script file respectively to obtain the interactive video file corresponding to each supporting playing platform. According to the technical scheme provided by the invention, the differential style data in the interactive styles of different playing platforms are effectively extracted, so that when the interactive video file is created, different playing environments of different playing platforms can be dealt with by selecting the target differential style data, all the interactive video files supporting the playing platforms can be created at one time, the playing of the interactive video on different playing platforms can be realized by using different interactive video files, and the creation efficiency of the interactive video file is effectively improved.
Drawings
In order to more clearly illustrate the technical solution of the present invention, the drawings needed to be used in the description of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic application environment diagram of a method for creating an interactive video file and a method for playing an interactive video according to an exemplary embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for creating an interactive video file according to an exemplary embodiment of the present invention;
fig. 3 is a flowchart illustrating a playing method of an interactive video according to an exemplary embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for creating an interactive video file according to an exemplary embodiment of the present invention;
fig. 5 is a schematic structural diagram of a playing apparatus for interactive video according to an exemplary embodiment of the present invention;
fig. 6 is a block diagram of an electronic device provided in an exemplary embodiment of the invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, belong to the protection scope of the present embodiments.
Referring to fig. 1, a schematic diagram of an application environment of a method for creating an interactive video file or a method for playing an interactive video according to an exemplary embodiment is shown, where the application environment may include a terminal 11 and a server 12, and the terminal 11 and the server 12 are connected through a wireless network.
The terminal 11 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a television, and the like, but is not limited thereto, and client software providing a human-computer interaction function, such as an Application (App) is installed on the terminal 11, and the Application may be an independent Application or a sub-program in the Application. Illustratively, the application may be a video-type application.
The server 12 may be a server providing background services for applications in the terminal 11. The server 12 may be an independent physical server, or may be a server cluster or a distributed system formed by a plurality of physical servers.
Those skilled in the art will appreciate that the number of the above terminals may be only one, tens or hundreds, or more. The number of terminals and the type of the device are not limited in the embodiments of the present disclosure.
Exemplary method
Fig. 2 is a flowchart illustrating a method for creating an interactive video file according to an exemplary embodiment of the present invention, where the method for creating an interactive video file can be used in the server shown in fig. 1, and includes at least the following steps:
step 11, determining an interactive video script file based on the acquired video segments for forming the interactive video, wherein the interactive video script file is used for describing logic information among the video segments, display time of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page.
In this step, because the interactive video is different from the conventional video, one interactive video is generally composed of a plurality of video segments, and in order to realize that the plurality of video segments are played according to a certain rule, an interactive video script file for driving the interactive video to be played is crucial, and logic information among the plurality of video segments, display time of an interactive page, and a target interactive style are described in the interactive video script file, that is, the interactive video script file is a file set composed of the logic information, the target interactive style, and the like. The logic information is used for indicating various branching scenarios composed of a plurality of video segments, and particularly, a switching relation among the plurality of video segments is defined, if a video segment A played first is provided, the video segment A is provided for a user to select between a video segment B and a video segment C after the video segment A is played, and the video segment B is provided for the user to select between a video segment D and a video segment E after the video segment B is played. And displaying an interactive page when the user selects every time, wherein the interactive page is a page for the user to select and is displayed on the terminal after a certain video segment is played according to the logic information, and the selection of the user on the interactive page determines the subsequent branching scenario. The specific page presentation of the interactive page is determined by the target interactive style, for example, the page background of the interactive page is determined to be a starry sky picture by the target interactive style, two selection buttons are arranged on the page, and the text contents on the two selection buttons respectively go left and right. Specifically, an interaction style includes, but is not limited to, a selection button, a page background, a button background, title text, button text, animation files used, dynamic files implementing style usage, and the like.
For example, an interactive video includes 3 video clips: fragment a, fragment B and fragment C. According to the interactive video script file, when the segment A is played, an interactive interface is generated by taking the end time point of the segment A as a display opportunity, a target interactive style corresponding to the interactive interface can comprise two selection buttons, namely a selection button 1 and a selection button 2, and if a user selects 1, the segment B is further played after the segment A is played; if the user selects 2, after the segment a is played, the segment C is further played.
In a possible implementation manner, all video clips required by an interactive video are uploaded by an editor in an interactive video production platform, then a plurality of video clips for forming the interactive video are obtained, then the interactive video is uniformly configured in logic and produced, an interactive video set and an interactive video script file which are formed by the video clips are produced, and each video clip in the interactive video set has a video clip identifier which can be played and used by each playing platform, namely a unique id, and is used for distinguishing different video clips. Specifically, when describing the logic information among a plurality of video segments, the interactive video script file describes the video segment identifiers corresponding to the plurality of video segments.
And step 12, acquiring at least one playing support platform for playing the interactive video file.
In this step, different supported playback platforms correspond to different playback environments, and the supported playback platforms include, but are not limited to ios (mobile phone end), android (mobile phone end), h5 (corresponding to browser end), tv (television end), pc (computer end), and the like. Specifically, the user is allowed to select the support playing platforms, and the user can select one or more support playing platforms. Certainly, the configuration of the supporting playing platform may also be performed in advance, the configuration information is stored, and at least one supporting playing platform for playing the interactive video file is determined according to the configuration information.
In a possible implementation manner, after acquiring the interactive video set and the interactive video script file, an editor displays a check interface of the playing platform, and responds to a check instruction of the editor on the check interface, and takes an editor check object as a playing platform. For example, if the editor selects ios, android, h5, and pc on the selection interface, the playback-supported platform includes 4 objects, i.e., ios, android, h5, and pc.
And step 13, acquiring target differentiated style data respectively corresponding to each supported playing platform based on the at least one supported playing platform and the target interactive style, wherein the target differentiated style data is data with difference among different playing platforms in the target interactive style.
In this step, because the playing environments of different playing platforms are different, the same interactive video file cannot be played on different playing platforms, and therefore, the differentiated style data in the interactive style is extracted in advance to correspond to different playing environments. The differentiated style data is data that is different between different playing platforms in the interactive style, and specifically is data that is irrelevant to the content of the characters in the interactive style, for example, the differentiated style data may include an animation file used by the style, a dynamic file (H5, lua, etc.) used by the style, a style background picture, and the like. That is to say, the interactive style can be divided into platform general style data and differentiated style data, the platform general style data is the same on each playing platform, and mainly includes text content, specifically title text content, button text content, and the like, and is played on different playing platforms, the platform general style data content is unchanged, for example, at the ios end and the tv end, the title text content of "which room XX should enter" and the button text content of "room a" and "room B" are displayed for a certain interactive style. The differentiated style data corresponds to different data when being played on different playing platforms, for example, the image size and the resolution of a page background of a certain interactive style are different at an ios end and a tv end. Specifically, after the interactive video script file and the supporting playing platform are obtained, the target differentiated style data respectively corresponding to each supporting playing platform can be obtained according to the target interactive style described in the obtained supporting playing platform and the interactive video script file.
It should be noted that, for the text content in the interactive style, the same is performed on different playing platforms, and for the differentiated style data in the interactive style, the different playing platforms are different, but the same platform is only the interactive style with different text content, and the same differentiated style data can be used. For example, the interaction style 1 and the interaction style 2 are different in that the title text of the interaction style 1 is "XX should enter which room", one button text is a room a, one button text is a room B, the title text of the interaction style 2 is "XX should select which color", one button text is "red", and one button text is "blue". The page background, the button background, the animation file and the dynamic file used in the interactive style 1 and the interactive style 2 are the same, that is, different interactive styles of the same playing platform may correspond to the same differentiated style data. The design quantity of the differential style data is effectively reduced, and the design efficiency of the differential style data is improved.
In one embodiment, the step 13 includes:
and step 131, reading a target style identification corresponding to a target interaction style in the interactive video script file.
In this step, a style identification (style id) is determined in advance for different interaction styles, and the style identification has uniqueness for distinguishing the different interaction styles. The interactive video script file describes a target interactive style corresponding to the interactive interface, so that after the interactive video script file is obtained, a target style identification corresponding to the interactive style in the interactive video script file can be read.
Further, because a plurality of target style identifiers often exist in the interactive video script file, all the target style identifiers can form a style array, and the style array is a sequence formed by all the target style identifiers and is set as a style array so as to be convenient for subsequent use.
Step 132, obtain the target platform id corresponding to each supported playing platform.
In this step, a platform identifier (platform id) is set for the playing platform in advance, and the platform identifier has uniqueness and is used for distinguishing different playing platforms, for example, the platform identifier may be ios, android, h5, tv, pc; of course, the platform id of ios may be set to 1, the platform id of android may be set to 2, the platform id of h5 may be set to 3, the platform id of tv may be set to 4, and the platform id of pc may be set to 5. It should be noted that, in this embodiment, the setting content of the platform identifier is not specifically limited, and the user may set the platform identifier according to an actual application scenario. After the supported playing platforms are obtained, the target platform identification corresponding to each supported playing platform can be determined.
Step 133, selecting target differential style data, which is the same as the platform identifier and the target platform identifier and is the same as the target style identifier, from the pre-stored differential style data.
In this step, the stored differential style data is stored in advance, and the stored differential style data includes differential style data corresponding to each interactive style of each playing platform, that is, the stored differential style data has corresponding style identification and platform identification. And then, selecting data according to the target platform identification and the target style identification to determine target differentiated style data.
For example, there are 5 playback platforms: ios, android, h5, tv, pc, there are 3 interaction styles: the method comprises the steps of determining interactive styles 1, 2 and 3, predetermining differential style data corresponding to the 3 interactive styles on 5 playing platforms respectively, and storing the interactive style data by using style id + platform id, namely interactive styles 1+ ios, interactive styles 1+ android, interactive styles 1+ h5, interactive styles 1+ tv and interactive styles 1+ pc; interaction style 2+ ios, interaction style 2+ android, interaction style 2+ h5, interaction style 2+ tv, and interaction style 2+ pc; interaction style 3+ ios, interaction style 3+ android, interaction style 3+ h5, interaction style 3+ tv, and interaction style 3+ pc, for 15 differentiated style data. Of course, the 15 differentiated style data may be stored in groups according to the playing platform. After the target platform identifier and the target style identifier are determined, target differentiated style data with the same platform identifier and the same style identifier as the target platform identifier can be determined. If the target platform identifications ios, android and pc are determined, and the target style identifications are interactive style 1 and interactive style 3, selecting the target differentiated style data from the 15 differentiated style data as follows: interaction style 1+ ios, interaction style 1+ android, interaction style 1+ pc, interaction style 3+ ios, interaction style 3+ android and interaction style 3+ pc.
Further, if there are 5 playing platforms: ios, android, h5, tv, pc, there are 3 interaction styles: if the interactive style 1, the interactive style 2 and the interactive style 3 are only different in text content, namely the interactive style 1, the interactive style 2 and the interactive style 3 correspond to the same differentiated style data, at this time, after the interactive style 1+ ios is determined, the operations of copying and renaming can be performed to determine 3 differentiated style data, namely the interactive style 1+ ios, the interactive style 2+ ios and the interactive style 3+ ios. Certainly, 1 piece of differential style data, that is, the interactive style 1+ the interactive style 2+ the interactive style 3+ ios, may also be determined, which indicates that the interactive style 1, the interactive style 2, and the interactive style 3 all correspond to the differential style data in the ios environment, and thus the amount of the differential style data is effectively reduced.
In this embodiment, style identifiers are set for the interactive styles in advance, platform identifiers are set for the playing platforms, and the differentiated style data corresponding to each interactive style of each playing platform is stored in advance, so that the target differentiated style data can be determined quickly and accurately in the following process.
In one embodiment, the step 133 includes:
step 1331, determining priorities corresponding to the target platform identifiers respectively, where the priorities are used for indicating a sequence determination order of the target differentiated style data.
In this step, a priority list is set for the playing platforms in advance, so that after the identification of the target platform is determined, the priorities corresponding to the identification of the target platform can be determined according to the priority list, the priorities are used for indicating the sequence determination order of the target differentiated style data, and different priorities correspond to different determination orders, so that when the target differentiated style data is subsequently constructed, the subsequent target differentiated style data can be determined orderly according to the priority order, thereby avoiding the disordered subsequent determination of the target differentiated style data, and being beneficial to the subsequent rapid determination of the target differentiated style data corresponding to each playing platform.
And 1332, respectively corresponding to the priorities based on the target platform identification, sequentially acquiring data identical to the target platform identification from the prestored differentiated style data, and sequentially determining the target differentiated style data identical to the target style identification from the data identical to the target platform identification.
In this step, after determining the priorities corresponding to the target platform identifiers, the data reading order may be determined, the data identical to the target platform identifier is sequentially read from the pre-stored differentiated style data, the data identical to the target platform identifier is obtained, and further, the target differentiated style data identical to the target style identifier is sequentially determined from the data identical to the target platform identifier, so that the target differentiated style data corresponding to each of the supported playback platforms may be determined quickly and accurately.
For example, the obtained target platform identifiers are ios, android, and h5, the corresponding priorities are ios being the highest level, android being the next highest level, and h5 being the lowest level, and the target style identifiers in the styleArray are interactive style 1 and interactive style 3. Determining the data same as ios in the stored differentiated style data, and determining the target differentiated style data corresponding to the interactive style 1 and the target differentiated style data corresponding to the interactive style 3 in the data same as ios, so as to obtain two target differentiated style data corresponding to ios of the support playing platform; then determining data identical to the android, and determining target differentiated style data corresponding to an interactive style 1 and target differentiated style data corresponding to an interactive style 3 in the data identical to the android, so as to obtain two target differentiated style data corresponding to the android of the support playing platform; and finally, determining the data the same as h5, and determining the target differentiated style data corresponding to the interactive style 1 and the target differentiated style data corresponding to the interactive style 3 in the data the same as h5, so as to obtain two target differentiated style data corresponding to the playing platform h 5. Certainly, when storing the differentiated style data, the differentiated style data can be stored in groups according to the playing platform to obtain different storage files, so that after the priorities corresponding to the target platform identifiers are determined respectively, the different storage files are read in sequence according to the sequence determined by the priorities to obtain the data identical to the target platform identifiers.
And 14, respectively packaging the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform.
In an embodiment, after target differentiated style data corresponding to each supported playing platform is obtained, file encapsulation is performed on each supported playing platform, that is, all target differentiated style data corresponding to the supported playing platform and an interactive video script file are encapsulated to obtain an interactive video file corresponding to the supported playing platform, and as many supported playing platforms exist, as many interactive video files are obtained, that is, an interactive video file corresponding to at least one supported playing platform is created at a time, so that the creation efficiency of the interactive video file is effectively improved, and the development cost is reduced.
In the above embodiment, the interactive video script file is obtained, at least a target interactive style for determining a page presentation of the interactive page is described in the interactive video script file, then at least one supporting playing platform for playing the interactive video file is obtained, further, target differentiated style data corresponding to each supporting playing platform is obtained according to the at least one supporting playing platform and the target interactive style, and further, the target differentiated style data corresponding to each supporting playing platform is encapsulated with the video script file, so as to obtain the interactive video file corresponding to each supporting playing platform. The technical scheme provided by the embodiment effectively extracts the difference style data in the interaction styles of different playing platforms, so that when an interactive video file is created, different playing environments of different playing platforms can be dealt with by selecting the target difference style data, all interactive video files supporting the playing platforms can be created at one time, the playing of the interactive video on different playing platforms can be realized by using different interactive video files, and the creation efficiency of the interactive video file is effectively improved.
In one embodiment, step 14 is followed by:
and step 15, determining a video identifier corresponding to an interactive video set, wherein the interactive video set is composed of the plurality of video segments.
And step 16, determining a file name of each interactive video file based on the video identification and the target platform identification corresponding to each interactive video file, and storing each interactive video file in the same directory, wherein the file names are used for distinguishing different interactive video files in the storage directory.
In this embodiment, after an interactive video set composed of a plurality of video segments is determined, a video identifier (video id) corresponding to the interactive video set is determined, where the video identifier has uniqueness and is used for distinguishing videos, and the determination of the video identifier is beneficial to subsequent quick and accurate determination of a video that a user intends to play. After the video identifiers are determined, each interactive video file corresponds to one supporting playing platform, the supporting playing platform corresponds to one target platform identifier, therefore, the file name of each interactive video file can be determined according to the video identifiers and the target platform identifiers (such as video id + platform name), then each interactive video file is stored in the same directory, different interactive video files are distinguished by using the text names, and the subsequent terminals can acquire the interactive video files to play the interactive video.
For example, after determining the target differentiated style data respectively corresponding to the ios, h5 and pc supporting the playing platform, all the target differentiated style data and the interactive video script file corresponding to the ios are placed in the same folder and packed into zip/rar and other compression formats to obtain the interactive video file, and the packed interactive video file is renamed in the format: video id + ios; putting all target differentiated style data and interactive video script files corresponding to h5 into the same folder, packaging the target differentiated style data and the interactive video script files into zip/rar and other compression formats to obtain interactive video files, and renaming the packaged interactive video files at the same time, wherein the formats are as follows: video id + h5; putting all target differentiated style data and interactive video script files corresponding to the pc in the same folder, packaging the target differentiated style data and the interactive video script files into zip/rar and other compression formats to obtain interactive video files, and renaming the packaged interactive video files in the format: video id + pc. Thereby obtaining a renamed interactive video file. The renamed interactive video file can be further uploaded to a cloud platform, so that a subsequent terminal can acquire the interactive video file to play the interactive video. And for interactive video files corresponding to different playing platforms supported, the names of the interactive video files are different, the storage and access directories of the interactive video files at the server side are the same, and the storage directory addresses and the video id are stored in the server. When the subsequent terminal plays the interactive video, the video id can be identified, different playing platforms can play the same video content by using the same video id, and the interactive video script file is analyzed according to the same format and processed by the same logic, namely the playing logic of the interactive video is realized according to a uniform protocol.
Fig. 3 is a flowchart illustrating a playing method of an interactive video according to an exemplary embodiment of the present invention, where the playing method of the interactive video can be used in the terminal shown in fig. 1, and includes at least the following steps:
and step 31, responding to a playing instruction of the target interactive video, and acquiring a target interactive video file.
In this step, the target interactive video is an interactive video that the user intends to play. In a possible application scene, a user opens a video app, selects an interactive video A from the video app, the video A is a target interactive video, the user clicks a play button on a page, a play instruction is issued, and a target interactive video file is acquired in response to the play instruction. The target interactive video file is used for driving the playing of the target interactive video.
Specifically, a data acquisition request is sent to a server in response to a playing instruction of a target interactive video, wherein the data acquisition request carries a target video identifier corresponding to the target interactive video; and the terminal receives a target storage address returned by the server based on the data acquisition request, and acquires a target interactive video file based on the target storage address.
In one embodiment, the step 31 includes:
step 311, responding to a playing instruction of the target interactive video, sending a data acquisition request to a server, where the data acquisition request carries a target video identifier corresponding to the target interactive video.
In this step, after the user issues a play instruction at the terminal, the terminal needs to acquire data from the server in order to play the interactive data, so that the terminal sends a data acquisition request to the server, and the data acquisition request carries a target video identifier corresponding to the target interactive video in order to make the server clear that the target interactive video related data needs to be acquired by the terminal.
Step 312, receiving a target storage address returned by the server based on the data acquisition request, where the target storage address stores multiple interactive video files, and the file names of the multiple interactive video files are different.
In this step, a storage directory and a video identifier of the interactive video file are stored in the server, after the server receives a data acquisition request carrying a target video identifier, a target storage directory corresponding to the interactive video file is determined according to the video identifier, a target storage address of the target storage directory is returned to the terminal, and the terminal receives the target storage address returned by the server.
Step 313, determining a target file name based on the target video identifier and the terminal platform identifier.
In this step, after the server obtains the interactive video file corresponding to each supported playing platform, the server renames the interactive video file based on the video identifier and the platform identifier, so that when a certain interactive video file is obtained at the terminal, the name of the target file is determined according to the same naming rule as that of the server, for example, the format of the target file is video identifier plus platform identifier.
And step 314, adding the target file name to the target storage address to obtain a target file downloading address.
In this step, after the target file name is determined, the target file name is added to the received target storage directory to obtain a target file download address, and the target file download address points to a target interactive video file which is stored in the target storage address and has the same name as the target file.
And 315, acquiring a target interactive video file based on the target file downloading address.
In this step, after the file download address is obtained, the target interactive video file is downloaded in the cloud platform to obtain the target interactive video file.
In this embodiment, when an interactive video file needs to be acquired, a data acquisition request is sent to the server, a target file name is determined according to a target storage directory and a terminal platform identifier returned by the server, and the target interactive video file is downloaded on the cloud platform according to the target file name, so that the target interactive video file is accurately and timely acquired.
Step 32, analyzing the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is in a target interactive style corresponding to the interactive page, is suitable for the terminal playing platform and has difference among different playing platforms.
In this step, after the target interactive video file is obtained, the target interactive video file is analyzed to obtain a target interactive video script file and target differentiated style data included in the target interactive video file, where the target interactive video script file is used to describe logic information among a plurality of video segments, a presentation time of an interactive page, and a target interactive style, and the target interactive style is used to determine page presentation of the interactive page. The differentiated style data is data which is different among different playing platforms in the interactive style, and specifically is data which is irrelevant to text content in the interactive style. The target differentiated style data in the step is data which is adaptive to the terminal playing platform and irrelevant to the text content in the target interactive style corresponding to the interactive page.
For example, the playing platform corresponding to the terminal is ios, the interactive video intended to be played by the user is interactive video m, the name of the obtained target file is m + ios, and the obtained corresponding target interactive video file is analyzed to obtain a target interactive video script file, if the target interactive styles corresponding to the target interactive video script file are interactive style 1 and interactive style 3, the target differentiated style data is interactive style 1+ ios and interactive style 3+ ios.
Step 33, when the target interactive video is played based on the target interactive video script file, extracting the text content of the target interactive style in the target interactive video script file for each switching among a plurality of video segments corresponding to the target interactive video; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
In this step, when a plurality of video segments corresponding to the target interactive video are switched according to the logic information described by the target interactive video script file and the display time of the interactive page, the text content in the target interactive style in the target interactive video script file is extracted, and the interactive page is generated according to the text content and the target differentiated style data. The interactive page has at least two options, such as left walking, right walking and the like, a user can make a selection among the at least two options, input an instruction, determine a target video segment selected by the input instruction according to logic information in the target interactive video script file, and play the target video segment, so that the purposes that the user influences the development of a plot and determines the trend of the plot are achieved, and the participation sense of the user is improved.
For example, the plurality of video segments corresponding to the target interactive video include a segment a, a segment B, a segment C, a segment D, and a segment E, and the target interactive video script is described as follows:
when the segment A is played, generating a first interactive interface by taking the end time point of the segment A as a switching opportunity, wherein a target interactive style corresponding to the first interactive interface is an interactive style 1, and title text contents corresponding to the interactive style 1 are as follows: "room to which XX should enter", two buttons are button 1 and button 2, the text content of the button corresponding to button 1 is "room a", and the text content of the button corresponding to button 2 is "room B". If the user presses the button 1, further playing the segment B after the segment A is played; if the user selects the button 2, further playing the segment C after the segment A is played; and generating a second interactive interface by taking the ending time point of the segment C as the switching opportunity, wherein the target interactive style corresponding to the second interactive page is interactive style 3, and the title text content corresponding to the interactive style 3 is as follows: "which color XX should select", two buttons are button 3 and button 4, the text of the button corresponding to button 3 is "red", and the text of the button corresponding to button 4 is "blue".
The target differentiation style data includes: the interactive style 1+ ios and the interactive style 3+ ios are animation files used by the interactive style 1, dynamic files (H5, lua and the like) used by the implementation style, style background pictures and the like; an animation file used for the interactive style 3, a dynamic file (H5, lua, etc.) for realizing style use, a style background picture, etc. Certainly, at this time, the target difference data corresponding to the interactive style 1 and the interactive style 3 may be the same, that is, the same animation file, the same dynamic file, and the same background picture are used, so that the target difference data may include one data: interaction style 1+ interaction style 3+ ios.
When the interactive video is played according to the target interactive video script file, a segment A is played first, when the segment A is played, the room where the title text content 'XX' of the interactive style 1 in the target interactive video script file should enter, the button text content corresponding to the button 1 is 'room A', the button text content corresponding to the button 2 is 'room B', the animation file to be used, the dynamic files (H5, lua and the like) for realizing style use, the style background picture and the like are determined according to the interactive style 1+ ios, and a first interactive page is generated.
If the user selects button 1 on the first interactive page, segment B is further played.
If the user selects the button 2 on the first interactive page, the segment C is further played, when the segment C is played, which color the title text content "XX" of the interactive style 2 should select, "red" for the button text content corresponding to the button 3, and "blue" for the button text content corresponding to the button 4 in the target interactive video script file are extracted, and the animation file to be used, the dynamic file (H5, lua, etc.) for realizing style use, the style background picture, etc. are determined according to the interactive style 3+ ios, so as to generate a second interactive page.
If the user selects button 3 on the second interactive page, segment D is further played.
If the user selects button 4 on the second interactive page, segment E is further played.
The text content is extracted through the target interactive video script file, and the playing environment of the terminal is corresponded through the target differentiated style data, so that the interactive video can be played by the terminal. Different terminals obtain different target interactive video files when playing the interactive video, and the different target interactive video files comprise the same interactive video script file and different differentiated style data of each playing platform, so that the different playing platforms play the interactive video according to different target interactive video files.
An exemplary embodiment of the present invention provides a method for playing an interactive video, which at least includes the following steps:
the terminal responds to a playing instruction of the target interactive video and sends a data acquisition request to the server; the data acquisition request carries a target video identifier corresponding to a target interactive video;
the server receives the data acquisition request, and determines a target storage address based on a target video identifier carried by the data acquisition request, wherein the target storage address stores a plurality of interactive video files; the interactive video files are determined by the server based on a plurality of acquired video segments for component interactive videos, the interactive video script files are used for describing logic information among the video segments, display time of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page; acquiring at least one supporting playing platform for playing the interactive video file, and acquiring target differentiated style data respectively corresponding to each supporting playing platform based on the at least one supporting playing platform and the target interactive style, wherein the target differentiated style data is data of different playing platforms in the target interactive style; respectively packaging the target differentiated style data respectively corresponding to each support playing platform and the interactive video script file to obtain the target differentiated style data;
the terminal acquires a target interactive video file based on the target storage address; specifically, the terminal determines a target file name based on the target video identifier and the terminal platform identifier; adding the target file name behind the target storage address to obtain a target file downloading address; acquiring a target interactive video file based on the target file downloading address;
the terminal analyzes the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is in a target interactive style corresponding to the interactive page, is adaptive to the terminal playing platform and has difference among different playing platforms;
when the terminal plays the target interactive video based on the target interactive video script file, aiming at each switching among a plurality of video segments corresponding to the target interactive video, extracting the character content of the target interactive style in the target interactive video script file; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
In the above embodiment, the server effectively extracts the difference style data in the interaction styles of different playing platforms, so that when an interactive video file is created, different playing environments of different playing platforms can be dealt with by selecting the target difference style data, and all interactive video files supporting the playing platforms can be created at one time. And when the subsequent terminal needs to play the target interactive video, determining a target interactive video script file corresponding to the playing environment of the terminal, and playing the target interactive video at the terminal according to the target interactive video script file. Therefore, the interactive video files applying different playing environments can be created at one time, the creation efficiency of the interactive video files is effectively improved, and the development cost is saved.
Exemplary devices
Based on the same concept as the method embodiment of the invention, the embodiment of the invention also provides a device for creating the interactive video file.
Fig. 4 is a schematic structural diagram of an apparatus for creating an interactive video file according to an exemplary embodiment of the present invention, which is disposed on a server and includes:
the file acquiring module 41 is configured to determine an interactive video script file based on the acquired multiple video segments for forming an interactive video, where the interactive video script file is used to describe logic information among the multiple video segments, a display time of an interactive page, and a target interaction style, and the target interaction style is used to determine page presentation of the interactive page;
a platform obtaining module 42, configured to obtain at least one playing supporting platform for playing the interactive video file;
a data obtaining module 43, configured to obtain target differentiated style data corresponding to each supported playing platform based on the at least one supported playing platform and the target interaction style, where the target differentiated style data is data of the target interaction style that is different between different playing platforms;
and the encapsulation processing module 44 is configured to encapsulate the target differentiated style data respectively corresponding to each supported playing platform with the interactive video script file, so as to obtain an interactive video file respectively corresponding to each supported playing platform.
In an exemplary embodiment of the present invention, the data obtaining module includes:
the first acquisition unit is used for reading a target style identifier corresponding to a target interaction style in the interactive video script file;
the second acquisition unit is used for acquiring a target platform identifier corresponding to each playing support platform;
and the third acquisition unit is used for selecting target differential style data with the same platform identifier as the target platform identifier and the same style identifier as the target style identifier from the pre-stored differential style data.
In an exemplary embodiment of the present invention, the third obtaining unit includes:
the priority determining subunit is configured to determine priorities corresponding to the target platform identifiers, where the priorities are used to indicate a sequence of determining target differentiated style data;
and the data selection subunit is used for sequentially acquiring data which are the same as the target platform identifier from the prestored differentiated style data based on that the target platform identifier respectively corresponds to the priority, and sequentially determining the target differentiated style data which are the same as the target style identifier from the data which are the same as the target platform identifier.
In an exemplary embodiment of the invention, the apparatus further comprises: the name confirmation module is used for determining a video identifier corresponding to an interactive video set, and the interactive video set consists of the plurality of video segments; and determining the file name of each interactive video file based on the video identification and the target platform identification corresponding to each interactive video file, and storing each interactive video file in the same directory, wherein the file names are used for distinguishing different interactive video files in the storage directory.
Fig. 5 is a schematic structural diagram of a playing apparatus for interactive video according to an exemplary embodiment of the present invention, which is disposed in a terminal and includes:
the file acquisition module 51 is configured to respond to a play instruction of the target interactive video and acquire a target interactive video file;
the analysis processing module 52 is configured to analyze the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is in a target interactive style corresponding to the interactive page, is adaptive to the terminal playing platform and has difference among different playing platforms;
a page processing module 53, configured to extract, when the target interactive video is played based on the target interactive video script file, text contents of the target interactive pattern in the target interactive video script file for each switching between a plurality of video segments corresponding to the target interactive video; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
In an exemplary embodiment of the present invention, the file obtaining module includes:
the request sending unit is configured to respond to a playing instruction of the target interactive video and send a data obtaining request to the server, wherein the data obtaining request carries a target video identifier corresponding to the target interactive video;
the data receiving unit is configured to receive a target storage address returned by the server based on the data acquisition request, wherein the target storage address stores a plurality of interactive video files, and the file names of the interactive video files are different;
a name determination unit configured to determine a target file name based on the target video identifier and the terminal platform identifier;
the address determining unit is configured to add the target file name to the target storage address to obtain a target file downloading address;
and the file acquisition unit is configured to acquire the target interactive video file based on the target file downloading address.
Exemplary electronic device
FIG. 6 illustrates a block diagram of an electronic device in accordance with an embodiment of the present invention.
As shown in fig. 6, the electronic device 60 includes one or more processors 61 and a memory 62.
The processor 61 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 60 to perform desired functions.
Memory 62 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 61 may execute the program instructions to implement the method for creating an interactive video file and/or other desired functions of the embodiments of the present invention described above, or to implement the method for creating an interactive video file or the method for playing an interactive video and/or other desired functions of the embodiments of the present invention described above.
In one example, the electronic device 60 may further include: an input device 63 and an output device 64, which are interconnected by a bus system and/or other form of connection mechanism (not shown).
Of course, for the sake of simplicity, only some of the components of the electronic device 60 relevant to the present invention are shown in fig. 6, and components such as buses, input/output interfaces, and the like are omitted. In addition, the electronic device 60 may include any other suitable components depending on the particular application.
Exemplary computer program product and computer-readable storage Medium
In a sixth aspect, in addition to the above methods and apparatuses, embodiments of the present invention may also be a computer program product comprising computer program instructions which, when executed by a processor, cause the processor to perform the steps in the method for creating an interactive video file or the method for playing back an interactive video according to various embodiments of the present invention described in the "exemplary methods" section of this specification above.
The computer program product may write program code for carrying out operations for embodiments of the present invention in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present invention may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the steps in the interactive video file creation method or the steps in the interactive video playing method according to various embodiments of the present invention described in the "exemplary methods" section above in this specification.
The computer readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The basic principles of the present invention have been described above with reference to specific embodiments, but it should be noted that the advantages, effects, etc. mentioned in the present invention are only examples and are not limiting, and the advantages, effects, etc. must not be considered to be possessed by various embodiments of the present invention. Furthermore, the foregoing detailed description of the invention is provided for the purpose of illustration and understanding only, and is not intended to be limiting, since the invention will be described in any way as it would be understood by one skilled in the art.
The block diagrams of devices, apparatus, apparatuses, systems involved in the present invention are by way of illustrative examples only and are not intended to require or imply that the devices, apparatus, apparatuses, systems must be connected, arranged, or configured in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by one skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably therewith. The words "or" and "as used herein mean, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses and methods of the present invention, the components or steps may be decomposed and/or re-combined. These decompositions and/or recombinations are to be regarded as equivalents of the present invention.
The previous description of the inventive aspects is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the invention. Thus, the present invention is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, this description is not intended to limit embodiments of the invention to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (10)

1. A method for creating an interactive video file is applied to a server and comprises the following steps:
determining an interactive video script file based on a plurality of acquired video segments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the video segments, display time of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page;
acquiring at least one supporting playing platform for playing the interactive video file;
based on the at least one playing support platform and the target interaction style, acquiring target differentiation style data corresponding to each playing support platform respectively, wherein the target differentiation style data are data with difference between different playing platforms in the target interaction style;
and respectively packaging the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform.
2. The method according to claim 1, wherein the obtaining target differentiated style data respectively corresponding to each supported playing platform based on the at least one supported playing platform and the target interaction style comprises:
reading a target style identification corresponding to a target interaction style in the interactive video script file;
acquiring a target platform identification corresponding to each support playing platform;
and selecting target differential style data with the same platform identification as the target platform identification and the same style identification as the target style identification from the pre-stored differential style data.
3. The method according to claim 2, wherein selecting target differential style data with a platform identifier identical to the target platform identifier and a style identifier identical to the target style identifier from the pre-stored differential style data comprises:
determining priorities corresponding to the target platform identifications respectively, wherein the priorities are used for indicating the sequence determination sequence of the target differentiated style data;
and respectively corresponding to the priority based on the target platform identification, sequentially acquiring data identical to the target platform identification from the prestored differentiated style data, and sequentially determining the target differentiated style data identical to the target style identification from the data identical to the target platform identification.
4. The method according to claim 1, wherein after the step of obtaining the interactive video file corresponding to each of the supported playback platforms, the method further comprises:
determining a video identifier corresponding to an interactive video set, wherein the interactive video set is composed of the plurality of video segments;
and determining the file name of each interactive video file based on the video identification and the target platform identification corresponding to each interactive video file, and storing each interactive video file in the same directory, wherein the file names are used for distinguishing different interactive video files in the storage directory.
5. A playing method of an interactive video is characterized in that the playing method is applied to a terminal and comprises the following steps:
responding to a playing instruction of the target interactive video, and acquiring a target interactive video file;
analyzing the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is in a target interactive style corresponding to the interactive page, is adaptive to the terminal playing platform and has difference among different playing platforms;
when the target interactive video is played based on the target interactive video script file, aiming at each switching among a plurality of video segments corresponding to the target interactive video, extracting the character content of the target interactive style in the target interactive video script file; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
6. The method of claim 5, wherein the obtaining the target interactive video file in response to the playing instruction of the target interactive video comprises:
responding to a playing instruction of a target interactive video, and sending a data acquisition request to a server, wherein the data acquisition request carries a target video identifier corresponding to the target interactive video;
receiving a target storage address returned by the server based on the data acquisition request, wherein a plurality of interactive video files are stored in the target storage address, and the file names of the interactive video files are different;
determining a target file name based on the target video identifier and the terminal platform identifier;
adding the target file name behind the target storage address to obtain a target file downloading address;
and acquiring a target interactive video file based on the target file downloading address.
7. An interactive video file creating device, which is arranged on a server, comprises:
the file acquisition module is used for determining an interactive video script file based on a plurality of acquired video segments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the video segments, display opportunity of an interactive page and a target interactive style, and the target interactive style is used for determining page presentation of the interactive page;
the platform acquisition module is used for acquiring at least one playing support platform for playing the interactive video file;
a data obtaining module, configured to obtain target differentiated style data corresponding to each supported playing platform based on the at least one supported playing platform and the target interaction style, where the target differentiated style data is data of the target interaction style that is different between different playing platforms;
and the encapsulation processing module is used for encapsulating the target differentiated style data respectively corresponding to each support playing platform with the interactive video script file to obtain the interactive video file respectively corresponding to each support playing platform.
8. The utility model provides a play device of interactive video which characterized in that sets up in the terminal, includes:
the file acquisition module is used for responding to a playing instruction of the target interactive video and acquiring a target interactive video file;
the analysis processing module is used for analyzing the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data is data which is in a target interactive style corresponding to the interactive page, is adaptive to the terminal playing platform and has difference among different playing platforms;
the page processing module is used for extracting the character content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video segments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interactive page based on the text content and the target differentiated style data; and responding to an input instruction of the interactive page, determining a target video clip selected by the input instruction based on logic information in the target interactive video script file, and playing the target video clip.
9. A computer-readable storage medium storing a computer program for executing the method for creating an interactive video file according to any one of claims 1 to 4, or for executing the method for playing an interactive video according to claim 5 or 6.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is configured to read the executable instructions from the memory and execute the instructions to implement the method for creating an interactive video file according to any one of claims 1 to 4 or to execute the method for playing an interactive video according to claim 5 or 6.
CN202210956004.1A 2022-08-10 2022-08-10 Interactive video file creation method, interactive video playing method, device, electronic equipment and medium Active CN115460468B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210956004.1A CN115460468B (en) 2022-08-10 2022-08-10 Interactive video file creation method, interactive video playing method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210956004.1A CN115460468B (en) 2022-08-10 2022-08-10 Interactive video file creation method, interactive video playing method, device, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN115460468A true CN115460468A (en) 2022-12-09
CN115460468B CN115460468B (en) 2023-09-15

Family

ID=84299507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210956004.1A Active CN115460468B (en) 2022-08-10 2022-08-10 Interactive video file creation method, interactive video playing method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN115460468B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833490A (en) * 2011-06-15 2012-12-19 新诺亚舟科技(深圳)有限公司 Method and system for editing and playing interactive video, and electronic learning device
CN110825383A (en) * 2019-10-14 2020-02-21 北京奇艺世纪科技有限公司 Video interaction method and device and computer readable storage medium
CN111031395A (en) * 2019-12-19 2020-04-17 北京奇艺世纪科技有限公司 Video playing method, device, terminal and storage medium
CN112165652A (en) * 2020-09-27 2021-01-01 北京字跳网络技术有限公司 Video processing method, device, equipment and computer readable storage medium
CN112770142A (en) * 2019-11-01 2021-05-07 北京奇艺世纪科技有限公司 Interactive video interaction method and device and electronic equipment
CN113254393A (en) * 2021-04-07 2021-08-13 互影科技(北京)有限公司 Interactive video packaging method and device and electronic equipment
WO2022161183A1 (en) * 2021-01-29 2022-08-04 北京字跳网络技术有限公司 Resource interaction method and apparatus, computer device, and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102833490A (en) * 2011-06-15 2012-12-19 新诺亚舟科技(深圳)有限公司 Method and system for editing and playing interactive video, and electronic learning device
CN110825383A (en) * 2019-10-14 2020-02-21 北京奇艺世纪科技有限公司 Video interaction method and device and computer readable storage medium
CN112770142A (en) * 2019-11-01 2021-05-07 北京奇艺世纪科技有限公司 Interactive video interaction method and device and electronic equipment
CN111031395A (en) * 2019-12-19 2020-04-17 北京奇艺世纪科技有限公司 Video playing method, device, terminal and storage medium
CN112165652A (en) * 2020-09-27 2021-01-01 北京字跳网络技术有限公司 Video processing method, device, equipment and computer readable storage medium
WO2022161183A1 (en) * 2021-01-29 2022-08-04 北京字跳网络技术有限公司 Resource interaction method and apparatus, computer device, and readable storage medium
CN113254393A (en) * 2021-04-07 2021-08-13 互影科技(北京)有限公司 Interactive video packaging method and device and electronic equipment

Also Published As

Publication number Publication date
CN115460468B (en) 2023-09-15

Similar Documents

Publication Publication Date Title
CN110708346B (en) Information processing system and method
US20140040767A1 (en) Shared digital whiteboard
CN107133165B (en) Browser compatibility detection method and device
CN105335132B (en) Method, device and system for customizing application program function
CN112256990B (en) Image processing method and device and computer readable storage medium
CN102902531A (en) Customization and generation method and device of Android application program
CN106844705B (en) Method and apparatus for displaying multimedia content
CN105630792B (en) Information display and push method and device
CN113407882A (en) Component generation method and device, computer-readable storage medium and electronic equipment
US20150058452A1 (en) Video loading method, device and system of mobile terminal
US20200007959A1 (en) Method and apparatus for publishing information, and method and apparatus for processing information
CN111813685A (en) Automatic testing method and device
CN110998503A (en) Capture content sharing interface
CN112612690B (en) User interface information processing method and device, electronic equipment and storage medium
CN107632751B (en) Information display method and device
CN109558186B (en) Page display method and device
CN115460468A (en) Interactive video file creating method and interactive video playing method and device
CN110442806B (en) Method and apparatus for recognizing image
CN112558973A (en) Front-end page generation method and device, storage medium and electronic device
CN113784194A (en) Method and device for embedding a video player
CN107391132B (en) Method, device and equipment for target App to execute preset action
CN105808543B (en) Information display method and device
CN115659085A (en) Interactive resource processing method and device and teaching method and device
CN115795212A (en) Page display method and device, electronic equipment and storage medium
CN113467776A (en) Access method and device of equipment, storage medium and electronic 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