[go: up one dir, main page]

CN115460468B - Interactive video file creation method, interactive video playing method, device, electronic equipment and medium - Google Patents

Interactive video file creation method, interactive video playing method, device, electronic equipment and medium Download PDF

Info

Publication number
CN115460468B
CN115460468B CN202210956004.1A CN202210956004A CN115460468B CN 115460468 B CN115460468 B CN 115460468B CN 202210956004 A CN202210956004 A CN 202210956004A CN 115460468 B CN115460468 B CN 115460468B
Authority
CN
China
Prior art keywords
target
interactive
video
interactive video
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210956004.1A
Other languages
Chinese (zh)
Other versions
CN115460468A (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

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 and a device for playing the interactive video, wherein the method for creating the interactive video file comprises the following steps: based on the obtained video clips, an interactive video script file is obtained, wherein the interactive video script file is used for describing logic information among the video clips, display time of an interactive page and a target interactive pattern; acquiring at least one supporting playing platform; based on at least one support playing platform and a target interaction pattern, target differentiated pattern data corresponding to each support playing platform is obtained, wherein the target differentiated pattern data is data with differences among different playing platforms in a target interaction pattern; and respectively packaging the target differentiated style data corresponding to each support playing platform with the interactive video script file to obtain the interactive video file corresponding to each support playing platform. The technical scheme provided by the invention has higher efficiency of creating the interactive video file.

Description

Interactive video file creation method, interactive video playing method, device, electronic equipment and medium
Technical Field
The present invention relates to the field of multimedia technologies, and in particular, to a method for creating an interactive video file, and a method and apparatus for playing an interactive video.
Background
The interactive video is a video form capable of providing scenario interaction for users, and in the playing process of the interactive video, the users can select branching scenarios according to own preference, influence the development of the scenarios, determine the trend of the scenarios, enable the users to be immersed in the scenarios, and promote the participation feeling of the users.
In the prior art, because different terminals have different playing environments, wherein the playing environments can be ios, android, h5 or tv, and the like, one interactive video often only supports a single playing environment, i.e. can only be played on one platform, for example, the frequency of playing the interactive video by a user using an android mobile phone is high, so that the interactive video often only supports the playing of the android mobile phone. If the interactive video file needs to be played at the clients with different playing environments, the interactive video file needs to be independently developed for different terminals by a developer, 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, which are used for solving the technical problem of low efficiency of creating the interactive video 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 video clips which are obtained and used for forming an interactive video, wherein the interactive video script file is used for describing logic information among the plurality of video clips, display time of an interactive page and a target interactive pattern, and the target interactive pattern 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 support playing platform and the target interactive style, target differentiated style data corresponding to each support playing platform are obtained, wherein the target differentiated style data are data with differences among different playing platforms in the target interactive style;
and respectively packaging the target differentiated style data corresponding to each support playing platform with the interactive video script file to obtain the interactive video file corresponding to each support playing platform.
Optionally, the obtaining, based on the at least one supporting playing platform and the target interaction style, target differentiated style data corresponding to each supporting playing platform respectively includes:
Reading a target style identifier corresponding to a target interactive style in the interactive video script file;
acquiring a target platform identifier corresponding to each supporting playing platform;
and selecting target differential pattern data with the same platform identifier as the target platform identifier and the same pattern identifier as the target pattern identifier from the prestored differential pattern data.
Optionally, the selecting, from the prestored differential pattern data, target differential pattern data having the same platform identifier as the target platform identifier and the same pattern identifier as the target pattern identifier includes:
determining priorities corresponding to the target platform identifiers respectively, wherein the priorities are used for indicating the sequence of determining the target differentiated style data;
and sequentially acquiring data identical to the target platform identifier from prestored differential pattern data based on the priorities respectively corresponding to the target platform identifiers, and sequentially determining target differential pattern data identical to the target pattern identifier from the data identical to the target platform identifier.
Optionally, after the step of obtaining the interactive video file corresponding to each supported playing platform, the method further includes:
Determining a video identifier corresponding to an interactive video set, wherein the interactive video set consists of a plurality of video clips;
and determining the file name of each interactive video file based on the video identifier and the target platform identifier corresponding to each interactive video file, and storing each interactive video file under the same directory, wherein the file name is used for distinguishing different interactive video files under the storage directory.
According to a second aspect of the present invention, there is provided a playing method of an interactive video, applied to a terminal, including:
responding to a playing instruction of the target interactive video to acquire a target interactive video file;
analyzing the target interactive video file to obtain a target interactive video script file and target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
extracting text content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video fragments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 the target interactive video file in response to the playing instruction of the target interactive video includes:
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 plurality of 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 after the target storage address to obtain a target file downloading address;
and acquiring the target interactive video file based on the target file downloading address.
According to a third aspect of the present invention, there is provided an interactive video file creation apparatus, provided in a server, comprising:
the file acquisition module is used for determining an interactive video script file based on a plurality of acquired video fragments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the plurality of video fragments, display time of an interactive page and a target interactive pattern, and the target interactive pattern is used for determining page presentation of the interactive page;
The platform acquisition module is used for acquiring at least one supporting playing platform for playing the interactive video file;
the data acquisition module is used for acquiring target differentiated style data corresponding to each support playing platform respectively based on the at least one support playing platform and the target interaction style, wherein the target differentiated style data is data with differences among different playing platforms in the target interaction style;
and the packaging processing module is used for packaging the target differentiated style data corresponding to each supporting playing platform with the interactive video script file respectively to obtain the interactive video file corresponding to each supporting playing platform.
According to a fourth aspect of the present invention, there is provided an interactive video playing device, set in a terminal, including:
the file acquisition module is used for responding to a playing instruction of the target interactive video to acquire a target interactive video file;
the analysis processing module is used for analyzing the target interactive video file and acquiring a target interactive video script file and the target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
The page processing module is used for extracting the text content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video fragments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 device 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 above-mentioned method for creating an interactive video file or the above-mentioned method for playing an interactive video.
Compared with the prior art, the method for creating the interactive video file, the method and the device for playing the interactive video, the computer-readable storage medium and the electronic equipment provided by the invention at least comprise the following beneficial effects:
according to the technical scheme, the interactive video script file is obtained, at least a target interaction pattern used for determining 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 pattern data corresponding to each supporting playing platform respectively are obtained according to the at least one supporting playing platform and the target interaction pattern, and further the target differentiated pattern data corresponding to each supporting playing platform respectively are respectively packaged with the video script file to obtain the interactive video file corresponding to each supporting playing platform respectively. 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 mode of 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 the different playing platforms can be realized by utilizing the 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 solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application environment 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 flow chart of a method for creating an interactive video file according to an exemplary embodiment of the present invention;
fig. 3 is a flowchart illustrating a method for playing 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 an interactive video playing device according to an exemplary embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an exemplary embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made more apparent and fully hereinafter with reference to the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by one of ordinary skill in the art without creative efforts, based on the embodiments of the present invention are within the protection scope of the present embodiments.
Referring to fig. 1, 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, etc., but is not limited thereto, and client software such as an Application (App) for providing a man-machine interaction function is installed on the terminal 11, and the Application may be a stand-alone Application or a subroutine in the Application. The application may be, for example, a video-type application.
The server 12 may be a server providing a background service for an application in the terminal 11. The server 12 may be a stand-alone 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 recognize that the number of the above terminals may be only one, tens or hundreds, or more. The embodiment of the present disclosure does not limit the number of terminals and the type of devices.
Exemplary method
Fig. 2 is a flowchart of 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 may be used in the server shown in fig. 1, and at least includes the following steps:
and 11, determining an interactive video script file based on a plurality of video fragments which are acquired and used for forming an interactive video, wherein the interactive video script file is used for describing logic information among the plurality of video fragments, display time of an interactive page and a target interactive pattern, and the target interactive pattern 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 clips, in order to realize that the plurality of video clips are played according to a certain rule, an interactive video script file for driving the interactive video to play is important, and in the interactive video script file, logic information among the plurality of video clips, a presentation timing of an interactive page, and a target interactive style are described, 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 storylines formed by a plurality of video clips, and specifically, a switching relation among the plurality of video clips is limited, if the video clip A which is played first is A, the user can select between the video clip B and the video clip C after the video clip A is played, and the user can select between the video clip D and the video clip E after the video clip B is played. And displaying an interactive page when the user selects each time, wherein the interactive page is a page which is presented at the terminal and used for the user to select after a certain video clip is completely played according to logic information, and the user selects on the interactive page to determine the subsequent branching storyline. The specific page presentation of the interactive page is determined by a target interactive style, for example, the target interactive style determines that the page background of an interactive page is a star image, two selection buttons are arranged on the page, and the text contents on the two selection buttons respectively walk left and right. Specifically, one interactive style includes, but is not limited to, select buttons, page background, button background, title text, button text, animation file used, dynamic file implementing style use, and the like.
For example, one interactive video includes 3 video segments: 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 ending time point of the segment A as the display time, wherein the target interaction style corresponding to the interactive interface can comprise two selection buttons, namely a selection button 1 and a selection button 2, and if the user selects 1, the segment B is further played after the segment A is played; if the user selects 2, further play segment C after playing segment a.
In one possible implementation manner, an editor uploads all video clips required by an interactive video in an interactive video production platform, then obtains a plurality of video clips for forming the interactive video, performs unified configuration of interactive video logic, and performs production to produce an interactive video set and an interactive video script file formed by the video clips, wherein each video clip in the interactive video set has a video clip identifier, namely a unique id, which is used for distinguishing different video clips and can be played by each playing platform. Specifically, when the interactive video script file describes logic information among a plurality of video clips, video clip identifiers corresponding to the video clips respectively are described.
Step 12, at least one supporting playing platform for playing the interactive video file is obtained.
In this step, different support playing platforms correspond to different playing environments, and the support playing 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 one or more support playing platforms. Of course, the configuration of the support playing platform can be performed in advance, the configuration information is stored, and at least one support playing platform for playing the interactive video file is determined according to the configuration information.
In one possible implementation manner, after the editor acquires the interactive video set and the interactive video script file, displaying a checking interface of the playing platform, and responding to a checking instruction of the editor on the checking interface, taking the checked object of the editor as a supporting playing platform. For example, if the editor has checked ios, android, h and pc at the check interface, the support playback platform includes 4 objects, ios, android, h and pc.
And step 13, acquiring target differentiated style data corresponding to each support playing platform respectively based on the at least one support playing platform and the target interactive style, wherein the target differentiated style data is data with differences among different playing platforms in the target interactive style.
In this step, because the playing environments of the different playing platforms are different, the same interactive video file cannot be played on the different playing platforms, so that in order to cope with the different playing environments, the differentiated style data in the interactive style is extracted in advance. The differentiated style data is data having differences between different playing platforms in the interactive style, specifically, data unrelated to the content of the Chinese in the interactive style, for example, the differentiated style data may include animation files used by the style, dynamic files (H5, lua, etc.) used by the style, style background pictures, etc. That is, the interactive style may be divided into platform universal style data and differential style data, where the platform universal style data is the same on each playing platform and mainly includes text content, specifically, title text content, button text content, etc., and playing is performed on different playing platforms, where the platform universal style data content is unchanged, e.g., at ios end and tv end, for a certain interactive style, title text content of "which room XX should enter" and button text content of "room a", "room B" are displayed. The differentiated style data corresponds to different data when played by different playing platforms, such as different image sizes and resolutions of page backgrounds of a certain interactive style at ios end and tv end. Specifically, after the interactive video script file and the support playing platform are obtained, target differentiated style data corresponding to each support playing platform respectively can be obtained according to the obtained support playing platform and the target interaction style described in the interactive video script file.
It should be noted that, for text content in an interactive style, the same is used on different playback platforms, and for differentiated style data in an interactive style, the same may be used on different playback platforms, but for interactive styles in which the same platform is different only from text content. For example, the interactive style 1 and the interactive style 2 differ in that the title literal of the interactive style 1 is "which room XX should enter", one button literal is a room a, one button literal is a room B, the title literal of the interactive style 2 is "which color XX should be selected", one button literal is "red", and one button literal is "blue". The page background, button background, animation file and dynamic file used by 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 differentiated style data is effectively reduced, and the design efficiency of the differentiated style data is improved.
In one embodiment, the step 13 includes:
Step 131, reading a target style identifier corresponding to the target interactive style in the interactive video script file.
In this step, style identifications (style ids) having uniqueness for distinguishing different interactive styles are determined in advance for the different interactive styles. The interactive video script file is described with a target interactive style corresponding to the interactive interface, so that after the interactive video script file is obtained, a target style identifier corresponding to the interactive style in the interactive video script file can be read.
Furthermore, because a plurality of target style identifiers often exist in the interactive video script file, all the target style identifiers can be formed into a style array, and the style array is a sequence formed by all the target style identifiers and is set as a styleArray so as to be convenient for subsequent use.
Step 132, obtaining a target platform identifier corresponding to each supported playing platform.
In this step, a platform identifier (platform id) is set for the playing platform in advance, where the platform identifier has uniqueness and is used for distinguishing different playing platforms, for example, the platform identifier may be ios, android, h, tv, pc; of course, the ios platform identifier may be set to 1, the android platform identifier may be set to 2, the h5 platform identifier may be set to 3, the tv platform identifier may be set to 4, and the pc platform identifier 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 according to an actual application scenario. After the supporting playing platforms are obtained, the target platform identification corresponding to each supporting playing platform can be determined.
And step 133, selecting target differentiated style data which is the same as the platform identifier and the target platform identifier and has the same style identifier and the target style identifier from the pre-stored differentiated style data.
In this step, the differential style data is stored in advance, where 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 a corresponding style identifier and platform identifier. And then selecting data according to the target platform identifier and the target style identifier, and determining target differentiated style data.
For example, there are 5 playback platforms: ios, android, h5, tv, pc, there are 3 interaction patterns: the method comprises the steps of determining differentiated style data corresponding to 3 interactive styles on 5 playing platforms in advance, and storing the interactive style data by using style id+platform id, namely, an interactive style 1+ios, an interactive style 1+android, an interactive style 1+h5, an interactive style 1+tv and an interactive style 1+pc; interactive style 2+ios, interactive style 2+android, interactive style 2+h5, interactive style 2+tv, interactive style 2+pc; the interactive style 3+ios, the interactive style 3+android, the interactive style 3+h5, the interactive style 3+tv, the interactive style 3+pc, and 15 pieces of differentiated style data in total. Of course, the 15 differentiated style data may be stored in groups according to the playback platform. After the target platform identifier and the target style identifier are determined, the 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 marks are ios, android and pc and the target styles are marked as the interactive styles 1 and 3, the target differential style data selected from the 15 differential style data are: the interactive style 1+ios, the interactive style 1+android, the interactive style 1+pc, the interactive style 3+ios, the interactive style 3+android, the interactive style 3+pc.
Further, if there are 5 playing platforms: ios, android, h5, tv, pc, there are 3 interaction patterns: if the interactive style 1, the interactive style 2 and the interactive style 3 are 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, copying and renaming operations can be performed to determine 3 pieces of differentiated style data, namely the interactive style 1+ios, the interactive style 2+ios and the interactive style 3+ios. Of course, 1 piece of differential style data, namely, the interactive style 1+the interactive style 2+the interactive style 3+ios, can be determined, and the interactive style 1, the interactive style 2 and the interactive style 3 are indicated to correspond to the differential style data in the ios environment, so that the quantity of the differential style data is effectively reduced.
In this embodiment, a style identifier is set for an interactive style in advance, a platform identifier is set for a playing platform, and differentiated style data corresponding to each interactive style of each playing platform is stored in advance, so that 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, wherein the priorities are used for indicating the sequence of determining the target differentiated style data.
In this step, a priority list is set for the playing platform in advance, so that after the target platform identifier is determined, the priorities corresponding to the target platform identifiers can be determined according to the priority list, the priorities are used for indicating the sequence of determining the target differentiated pattern data, and different priorities correspond to different determining sequences, so that when the target differentiated pattern data is subsequently constructed, the sequential processing can be performed according to the priority sequence, the determination of the subsequent target differentiated pattern data is avoided, and the sequential rapid sequential determination of the target differentiated pattern data corresponding to each supporting playing platform is facilitated.
Step 1332, based on the priorities corresponding to the target platform identifiers, sequentially obtaining data identical to the target platform identifiers from the prestored differentiated pattern data, and sequentially determining target differentiated pattern data identical to the target pattern identifiers from the data identical to the target platform identifiers.
In this step, after determining the priorities corresponding to the target platform identifiers, the data reading order may be determined, and the data identical to the target platform identifiers are sequentially read from the prestored differential pattern data, so as to obtain the data identical to the target platform identifiers.
For example, the obtained target platform identifier is ios, android, h, the corresponding priorities are ios highest, android second highest, h5 lowest, and the target styles in the styleArray are identified as interaction style 1 and interaction style 3. Firstly determining the data which are the same as ios in the stored differentiated style data, and determining target differentiated style data corresponding to the interactive style 1 and target differentiated style data corresponding to the interactive style 3 in the data which are the same as ios, so as to obtain two target differentiated style data corresponding to the ios of the support playing platform; then determining the same data as the android, and determining target differentiated style data corresponding to the interactive style 1 and target differentiated style data corresponding to the interactive style 3 in the same data as the android, so as to obtain two target differentiated style data corresponding to the supporting playing platform android; and finally, determining the data same as h5, and determining target differentiated style data corresponding to the interactive style 1 and target differentiated style data corresponding to the interactive style 3 in the data same as h5, thereby obtaining two target differentiated style data corresponding to the supported playing platform h 5. And when the differential style data is stored, the differential 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 identifications are determined, the different storage files are sequentially read according to the determined sequence of the priorities to obtain the data identical to the target platform identifications.
And 14, respectively packaging the target differentiated style data corresponding to each support playing platform with the interactive video script file to obtain the interactive video file corresponding to each support playing platform.
In an embodiment, after target differential style data corresponding to each support playing platform is obtained, packaging is performed on the files for each support playing platform, namely, all target differential style data corresponding to the support playing platform and the interactive video script file are packaged to obtain the interactive video file corresponding to the support playing platform, and how many support playing platforms exist, how many interactive video files are obtained, that is, how many interactive video files corresponding to at least one support playing platform are created at one time, so that the creation efficiency of the interactive video file is effectively improved, and the development cost is reduced.
In the above embodiment, by obtaining an interactive video script file, at least a target interaction style for determining page presentation of an interactive page is described in the interactive video script file, then at least one support playing platform for playing the interactive video file is obtained, further target differentiated style data corresponding to each support playing platform respectively is obtained according to at least one support playing platform and the target interaction style, and further the target differentiated style data corresponding to each support playing platform respectively is packaged with the video script file respectively, so as to obtain the interactive video file corresponding to each support playing platform respectively. According to the technical scheme provided by the embodiment, 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 mode of 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 the different playing platforms can be realized by utilizing the different interactive video files, and the creation efficiency of the interactive video file is effectively improved.
In one embodiment, the step 14 further includes:
and 15, determining a video identifier corresponding to an interactive video set, wherein the interactive video set consists of the plurality of video clips.
And step 16, 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 under the same directory, wherein the file names are used for distinguishing different interactive video files under the storage directory.
In this embodiment, after an interactive video set formed by a plurality of video clips 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 determining the video identifier is beneficial to quickly and accurately determining the video that the user intends to play. After the video identification is determined, each interactive video file corresponds to a supporting playing platform, and the supporting playing platform corresponds to a target platform identification, so that the file name of each interactive video file can be determined according to the video identification and the target platform identification (such as video id+platform name), then each interactive video file is stored in the same directory, and different interactive video files are distinguished by using the text names, thereby being beneficial to a subsequent terminal to acquire the interactive video file and play the interactive video.
For example, after determining the target differential style data corresponding to the support playing platforms ios, h5 and pc respectively, placing all the target differential style data corresponding to the ios and the interactive video script file in a same folder, and packaging into compression formats such as zip/rar to obtain the interactive video file, and renaming the packaged interactive video file according to the formats: video id+ios; all the target differentiated style data and the interactive video script files corresponding to h5 are placed in the same folder, and are packed into compression formats such as zip/rar, so that the interactive video files are obtained, and the packed interactive video files are renamed, wherein the formats are as follows: video id+h5; placing all target differentiated style data and interactive video script files corresponding to pc in the same folder, packaging the files into compression formats such as zip/rar and the like to obtain the interactive video file, and renaming the packaged interactive video file, wherein the formats are as follows: video id+pc. Thereby obtaining the renamed interactive video file. The renamed interactive video file can be further uploaded to the cloud platform, so that a subsequent terminal can acquire the interactive video file to play the interactive video. And for the interactive video files corresponding to different support playing platforms, the naming of the interactive video files is different, the storage and access catalogs of the interactive video files at the server are the same, and the storage catalogue addresses and video ids are stored in the server. When the interactive video is played by the subsequent terminal, the video id can be identified, the same video content can be played by different playing platforms by using the same video id, and the interactive video script file is analyzed and processed according to the same format and the same logic, namely, the playing logic of the interactive video is realized according to a unified protocol.
Fig. 3 is a flowchart of a playing method of an interactive video according to an exemplary embodiment of the present invention, where the playing method of the interactive video may be used in the terminal shown in fig. 1, and at least includes the following steps:
and step 31, responding to the playing instruction of the target interactive video, and acquiring the target interactive video file.
In this step, the target interactive video is the interactive video that the user intends to play. In one possible application scenario, a user opens a video app, selects an interactive video a from the video app, and at this time, the video a is the target interactive video, and the user clicks a play button on a page, i.e. issues a play instruction, and responds to the play instruction to obtain a target interactive video file. 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, in response to the playing instruction of the target interactive video, a data acquisition request is sent to the server, where the data acquisition request carries a target video identifier corresponding to the target interactive video.
In this step, after the user issues the play command 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 in order to make the server clear that the terminal needs to acquire the relevant data of the target interactive video, the data acquisition request carries a target video identifier corresponding to the target interactive video.
Step 312, receiving a target storage address returned by the server based on the data acquisition request, where the target storage address stores a plurality of interactive video files, and file names of the plurality of interactive video files are different.
In the step, a storage catalog of the interactive video file and a video identifier are stored in a server, after the server receives a data acquisition request carrying the target video identifier, the target storage catalog corresponding to the interactive video file is determined according to the video identifier, a target storage address of the target storage catalog is returned to the terminal, and the terminal receives the target storage address returned by the server.
And step 313, determining a target file name based on the target video identification and the terminal platform identification.
In this step, after the server obtains the interactive video file corresponding to each supporting playing platform, renaming is performed for the interactive video file based on the video identifier and the platform identifier, so that when the terminal obtains a certain interactive video file, the naming rule is the same as that of the server, and the name of the target file, for example, the format is the video identifier+the platform identifier, is determined.
And step 314, adding the target file name to the target storage address to obtain a target file downloading address.
In this step, after determining the target file name, adding the target file name to the received target storage directory to obtain a target file download address, where the target file download address points to a target interactive video file stored in the target storage address and having the same target file name.
And step 315, acquiring the target interactive video file based on the target file downloading address.
In the step, after the file downloading address is obtained, downloading the target interactive video file 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 a server, a target file name is determined according to a target storage directory returned by the server and a terminal platform identifier, and the target interactive video file is downloaded in a 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 adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but has differences among different playing platforms.
In this step, after the target interactive video file is obtained, the target interactive video file is parsed 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 between a plurality of video segments, display timing 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 in the interactive style, which has differences between different playing platforms, and specifically, is data in the interactive style, which is irrelevant to text content. 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 interaction style corresponding to the interaction page.
For example, the playing platform corresponding to the terminal is ios, the interactive video intended to be played by the user is the interactive video m, so that the obtained target file name is m+ios, the obtained corresponding target interactive video file is analyzed to obtain the target interactive video script file, if the target interactive style corresponding to the target interactive video script file is interactive style 1 and interactive style 3, the target differential style data is interactive style 1+ios, and the interactive style 3+ios.
Step 33, extracting text content of the target interaction style in the target interaction video script file according to 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 interaction page based on the text content and the target differentiated style data; and responding to the 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 step, when a plurality of video clips corresponding to a target interactive video are switched according to logic information described by a target interactive video script file and display time of an interactive page, text content in a target interactive pattern in the target interactive video script file is extracted, and the interactive page is generated according to the text content and target differentiated pattern data. At least two options exist in the interactive page, such as left-going, right-going and the like, a user can make a selection in the at least two options, input an instruction, determine a target video clip selected by the input instruction according to logic information in the target interactive video script file, and play the target video clip, so that the purposes of influencing the development of the scenario by the user, determining the trend of the scenario and improving the participation of the user are achieved.
For example, the plurality of video clips corresponding to the target interactive video include clip a, clip B, clip C, clip D, and clip E, and the target interactive video script is described as follows:
when the segment A is played, a first interactive interface is generated by taking the ending time point of the segment A as a switching time, a target interactive style corresponding to the first interactive interface is an interactive style 1, and title text content corresponding to the interactive style 1 is displayed: "which room XX should enter", two buttons are button 1 and button 2, the button text corresponding to button 1 is "room a", and the button text corresponding to button 2 is "room B". If the user presses the button 1, further playing the segment B after playing the segment A; if the user selects the button 2, further playing the segment C after playing the segment A; generating a second interactive interface by taking the ending time point of the segment C as a switching time, wherein a target interactive style corresponding to the second interactive page is an interactive style 3, and the title text content corresponding to the interactive style 3 is displayed: "which color XX should be selected", two buttons are button 3 and button 4, the button text corresponding to button 3 is "red", and the button text corresponding to button 4 is "blue".
The target differential pattern data includes: the interactive style 1+ios and the interactive style 3+ios, namely, an animation file used by the interactive style 1, a dynamic file (H5, lua, etc.) used by the realization style, a style background picture, etc.; animation files used for the interactive style 3, dynamic files (H5, lua, etc.) for realizing the style use, style background pictures, etc. Of course, at this time, the target differential data corresponding to the interaction pattern 1 and the interaction pattern 3 may be the same, that is, the same animation file, the same dynamic file and the same background picture are used, and the target differential pattern data may include one data: interactive style 1+ interactive style 3+ ios.
When playing the interactive video according to the target interactive video script file, firstly playing the fragment A, and when the playing of the fragment A is finished, extracting which room 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 the room A, the button text content corresponding to the button 2 is the room B, determining the used animation file, the dynamic files (H5, lua and the like) for realizing the style use, the style background picture and the like according to the interactive style 1+ios, and generating a first interactive page.
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, further playing the segment C, and when the playing of the segment C is finished, extracting which color should be selected by the title text content "XX" of the interactive style 2 in the target interactive video script file, the button text content corresponding to the button 3 being red, the button text content corresponding to the button 4 being blue, determining the animation file to be used, the dynamic file (H5, lua, etc.) for realizing the style use, the style background picture, etc., and generating the second interactive page according to the interactive style 3+ios.
If the user selects button 3 in the second interaction page, the clip D is further played.
If the user selects button 4 in the second interaction 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 responded through the target differentiated style data, so that the terminal can play the interactive video. When playing the interactive video, different terminals obtain different target interactive video files, wherein 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 the different target interactive video files.
The method for playing the interactive video provided by the exemplary embodiment of the invention at least comprises 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 the 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 method comprises the steps that the plurality of interactive video files are the server, based on a plurality of video fragments used for assembly interactive video, an interactive video script file is determined, the interactive video script file is used for describing logic information among the plurality of video fragments, display time of an interactive page and a target interactive pattern, and the target interactive pattern is used for determining page presentation of the interactive page; acquiring at least one support playing platform for playing the interactive video file, and acquiring target differential pattern data corresponding to each support playing platform respectively based on the at least one support playing platform and the target interactive pattern, wherein the target differential pattern data is data with differences among different playing platforms in the target interactive pattern; respectively encapsulating the target differentiated style data corresponding to each supporting playing platform with 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 after 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 target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
when the terminal plays the target interactive video based on the target interactive video script file, extracting the text content of the target interactive pattern in the target interactive video script file aiming at each switching among a plurality of video fragments corresponding to the target interactive video; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 differentiated style data in the interaction styles of different playing platforms, so that when the interactive video file is created, the server can cope with different playing environments of different playing platforms by selecting the mode of selecting the target differentiated style data, thereby creating all the interactive video files supporting the playing platforms at one time. When a 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 in the terminal according to the target interactive video script file. Therefore, the interactive video files applied to different playing environments are created at one time, the creation efficiency of the interactive video files is effectively improved, and the development cost is saved.
Exemplary apparatus
Based on the same conception as the embodiment of the method, 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 acquisition module 41 is configured to determine an interactive video script file based on a plurality of video segments that are acquired to form an interactive video, where the interactive video script file is used to describe logic information between the plurality of video segments, a presentation timing of an interactive page, and a target interaction pattern, and the target interaction pattern is used to determine a page presentation of the interactive page;
A platform acquisition module 42, configured to acquire at least one supporting playing platform for playing the interactive video file;
the data obtaining module 43 is configured to obtain, based on the at least one supported playing platform and the target interaction style, target differentiated style data corresponding to each supported playing platform, where the target differentiated style data is data in the target interaction style, where differences exist between different playing platforms;
and the packaging processing module 44 is configured to package the target differentiated style data corresponding to each supporting playing platform with the interactive video script file respectively, so as to obtain an interactive video file corresponding to each supporting playing platform.
In an exemplary embodiment of the present invention, the data acquisition module includes:
the first acquisition unit is used for reading a target style identifier corresponding to a target interactive style in the interactive video script file;
the second acquisition unit is used for acquiring a target platform identifier corresponding to each supporting playing platform;
the third acquisition unit is used for selecting target differentiated 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 differentiated style data.
In an exemplary embodiment of the present invention, the third obtaining unit includes:
a priority determining subunit, configured to determine priorities corresponding to the target platform identifiers, where the priorities are used to indicate a sequence of determining the target differentiated style data;
the data selecting subunit is used for sequentially acquiring the data identical to the target platform identifier from the prestored differentiated pattern data based on the priority corresponding to the target platform identifier respectively, and sequentially determining the target differentiated pattern data identical to the target pattern identifier from the data identical to 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, wherein the interactive video set consists of the plurality of video clips; and determining the file name of each interactive video file based on the video identifier and the target platform identifier corresponding to each interactive video file, and storing each interactive video file under the same directory, wherein the file name is used for distinguishing different interactive video files under the storage directory.
Fig. 5 is a schematic structural diagram of an interactive video playing device according to an exemplary embodiment of the present invention, where the interactive video playing device is disposed in a terminal, and includes:
the file obtaining module 51 is configured to obtain a target interactive video file in response to a play instruction of the target interactive video;
the parsing module 52 is configured to parse the target interactive video file to obtain a target interactive video script file and the target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
the page processing module 53 is configured to extract, for each switching between a plurality of video segments corresponding to the target interactive video, text content of the target interactive style in the target interactive video script file when the target interactive video is played based on the target interactive video script file; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 acquisition module includes:
the request sending unit is configured to respond to a playing instruction of the target interactive video and send a data acquisition request to the server, wherein the data acquisition 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 file names of the plurality of interactive video files are different;
a name determining unit configured to determine a target file name based on the target video identification and the terminal platform identification;
the address determining unit is configured to add the target file name after 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 according to an embodiment of the invention.
As shown in fig. 6, the electronic device 60 includes one or more processors 61 and memory 62.
The processor 61 may be a Central Processing Unit (CPU) or other form of processing unit having data processing and/or instruction execution capabilities and may control other components in the electronic device 60 to perform the 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) and/or cache memory (cache), and the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, and the like. 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 implement the method for creating an interactive video file or the method for playing an interactive video of the embodiments of the present invention described above and/or other desired functions.
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 forms of connection mechanisms (not shown).
Of course, only some of the components of the electronic device 60 that are relevant to the present invention are shown in fig. 6 for simplicity, components such as buses, input/output interfaces, etc. 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, embodiments of the present invention may be a computer program product, in addition to the above-described methods and apparatuses, 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 an interactive video according to the various embodiments of the present invention described in the "exemplary method" section of the present specification.
The computer program product may write program code for performing operations of 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, 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, on which computer program instructions are stored, which, when being executed by a processor, cause the processor to perform steps in a method of creating an interactive video file or steps in a method of playing an interactive video according to various embodiments of the present invention described in the above-mentioned "exemplary method" section of the present specification.
The computer readable storage medium may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may include, for example, but is 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 would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk 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 in connection with specific embodiments, however, it should be noted that the advantages, benefits, effects, etc. mentioned in the present invention are merely examples and not intended to be limiting, and these advantages, benefits, effects, etc. are not to be considered as essential to the various embodiments of the present invention. Furthermore, the specific details of the invention described above are for purposes of illustration and understanding only, and are not intended to be limiting, as the invention may be practiced with the specific details described above.
The block diagrams of the devices, apparatuses, devices, systems referred to in the present invention are only illustrative examples and are not intended to require or imply that the connections, arrangements, configurations must be made in the manner shown in the block diagrams. As will be appreciated by one of skill in the art, the devices, apparatuses, devices, systems may be connected, arranged, configured in any manner. Words such as "including," "comprising," "having," and the like are words of openness and mean "including but not limited to," and are used interchangeably therewith. The terms "or" and "as used herein refer to and are used interchangeably with the term" and/or "unless the context clearly indicates otherwise. The term "such as" as used herein refers to, and is used interchangeably with, the phrase "such as, but not limited to.
It is also noted that in the apparatus, devices and methods of the present invention, the components or steps may be disassembled and/or assembled. Such decomposition and/or recombination should be considered as equivalent aspects 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 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. Although a number of example aspects and embodiments have been discussed above, a person of ordinary skill in the art will recognize certain variations, modifications, alterations, additions, and subcombinations thereof.

Claims (10)

1. The method for creating the interactive video file is characterized by being applied to a server and comprising the following steps:
Determining an interactive video script file based on a plurality of video clips which are obtained and used for forming an interactive video, wherein the interactive video script file is used for describing logic information among the plurality of video clips, display time of an interactive page and a target interactive pattern, and the target interactive pattern 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 support playing platform and the target interactive style, target differentiated style data corresponding to each support playing platform are obtained, wherein the target differentiated style data are data with differences among different playing platforms in the target interactive style;
and respectively packaging the target differentiated style data corresponding to each support playing platform with the interactive video script file to obtain the interactive video file corresponding to each support playing platform.
2. The method according to claim 1, wherein the obtaining, based on the at least one support playback platform and the target interactive style, target differentiated style data corresponding to each support playback platform respectively includes:
Reading a target style identifier corresponding to a target interactive style in the interactive video script file;
acquiring a target platform identifier corresponding to each supporting playing platform;
and selecting target differential pattern data with the same platform identifier as the target platform identifier and the same pattern identifier as the target pattern identifier from the prestored differential pattern data.
3. The method according to claim 2, wherein selecting target differential pattern data having a platform identifier identical to the target platform identifier and a pattern identifier identical to the target pattern identifier from the pre-stored differential pattern data includes:
determining priorities corresponding to the target platform identifiers respectively, wherein the priorities are used for indicating the sequence of determining the target differentiated style data;
and sequentially acquiring data identical to the target platform identifier from prestored differential pattern data based on the priorities respectively corresponding to the target platform identifiers, and sequentially determining target differential pattern data identical to the target pattern identifier from the data identical to the target platform identifier.
4. The method of claim 1, wherein after the step of obtaining the interactive video file corresponding to each supported playback platform, the method further comprises:
Determining a video identifier corresponding to an interactive video set, wherein the interactive video set consists of a plurality of video clips;
and determining the file name of each interactive video file based on the video identifier and the target platform identifier corresponding to each interactive video file, and storing each interactive video file under the same directory, wherein the file name is used for distinguishing different interactive video files under the storage directory.
5. The playing method of the interactive video is characterized by being applied to a terminal and comprising the following steps:
responding to a playing instruction of the target interactive video to acquire a target interactive video file;
analyzing the target interactive video file to obtain a target interactive video script file and target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
extracting text content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video fragments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 play command 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 the target storage address stores a plurality of interactive video files, and file names of the plurality of 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 after the target storage address to obtain a target file downloading address;
and acquiring the target interactive video file based on the target file downloading address.
7. An interactive video file creation device, which is characterized in that the device is arranged on a server and comprises:
the file acquisition module is used for determining an interactive video script file based on a plurality of acquired video fragments for forming an interactive video, wherein the interactive video script file is used for describing logic information among the plurality of video fragments, display time of an interactive page and a target interactive pattern, and the target interactive pattern is used for determining page presentation of the interactive page;
The platform acquisition module is used for acquiring at least one supporting playing platform for playing the interactive video file;
the data acquisition module is used for acquiring target differentiated style data corresponding to each support playing platform respectively based on the at least one support playing platform and the target interaction style, wherein the target differentiated style data is data with differences among different playing platforms in the target interaction style;
and the packaging processing module is used for packaging the target differentiated style data corresponding to each supporting playing platform with the interactive video script file respectively to obtain the interactive video file corresponding to each supporting 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 to acquire a target interactive video file;
the analysis processing module is used for analyzing the target interactive video file and acquiring a target interactive video script file and target differentiated style data; the target differentiated style data are data which are adaptive to the terminal playing platform in the target interaction style corresponding to the interaction page, but have differences among different playing platforms;
The page processing module is used for extracting the text content of the target interaction pattern in the target interaction video script file aiming at each switching among a plurality of video fragments corresponding to the target interaction video when the target interaction video is played based on the target interaction video script file; generating an interaction page based on the text content and the target differentiated style data; and responding to the 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 of creating an interactive video file according to any one of the preceding claims 1-4 or for executing the method of 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 CN115460468A (en) 2022-12-09
CN115460468B true 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
CN115460468A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
US9934254B2 (en) Terminal apparatus, information processing system, and information processing method
CN110798501B (en) Data processing method and device and readable storage medium
CN110708346B (en) Information processing system and method
US20140040767A1 (en) Shared digital whiteboard
WO2017092313A1 (en) Method and apparatus for controlling video playing of playing device
CN107888978A (en) KEY codes method for burn-recording, device and computer-readable recording medium
CN104361075A (en) Image website system and realizing method
CN112256990B (en) Image processing method and device and computer readable storage medium
CN105704562B (en) Multi-version compatible method and device for network television cloud service platform
EP4561051A1 (en) Special effect prop processing method and apparatus, electronic device, and storage medium
CN113407882A (en) Component generation method and device, computer-readable storage medium and electronic equipment
CN112217671A (en) Method and equipment for performing interface display on front-end micro-service based on split deployment
US9898443B2 (en) Method and system for webpage processing
CN112449250B (en) Method, device, equipment and medium for downloading video resources
CN110998503A (en) Capture content sharing interface
CN112612690B (en) User interface information processing method and device, electronic equipment and storage medium
CN112035412B (en) Data file importing method, device, storage medium and apparatus
CN105744338B (en) A kind of method for processing video frequency and its equipment
CN115460468B (en) Interactive video file creation method, interactive video playing method, device, electronic equipment and medium
CN109558186B (en) Page display method and device
CN103747280A (en) Method for creating a program and device thereof
CN106886583B (en) Method and apparatus for managing multimedia file broadcasting in the electronic device
CN103631872A (en) Method for playing multimedia files and electronic terminal
CN115659085A (en) Interactive resource processing method and device and teaching method and device
CN105808543B (en) Information display method and device

Legal Events

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