CN106803993B - Method and device for realizing video branch selection playing - Google Patents

Method and device for realizing video branch selection playing Download PDF

Info

Publication number
CN106803993B
CN106803993B CN201710117150.4A CN201710117150A CN106803993B CN 106803993 B CN106803993 B CN 106803993B CN 201710117150 A CN201710117150 A CN 201710117150A CN 106803993 B CN106803993 B CN 106803993B
Authority
CN
China
Prior art keywords
branch selection
branch
playing
video file
composite 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.)
Active
Application number
CN201710117150.4A
Other languages
Chinese (zh)
Other versions
CN106803993A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710117150.4A priority Critical patent/CN106803993B/en
Publication of CN106803993A publication Critical patent/CN106803993A/en
Application granted granted Critical
Publication of CN106803993B publication Critical patent/CN106803993B/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/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44016Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving splicing one content stream with another content stream, e.g. for substituting a video clip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand

Abstract

The invention discloses a method and a device for realizing video branch selection playing, which are used for realizing video playing according to the branch selection of a terminal, and the method comprises the following steps: when the composite video file is triggered to play, acquiring the current playing time value of the composite video file in real time, wherein the composite video file is generated by splicing a plurality of branch videos; obtaining a branch selection result, and determining the playing start time corresponding to the branch selection result, wherein the playing start time corresponding to the branch selection result is the start time of the branch video corresponding to the branch selection result in the composite video file; and assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing.

Description

Method and device for realizing video branch selection playing
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for realizing video branch selection playing.
Background
With the development of mobile terminals and mobile internet, content can be displayed to users in a video playing manner in some mobile terminal application program clients, for example, advertisement clips are played. In the single video playing mode, the user terminal cannot participate in interaction, so a playing mode in which the terminal can participate in branch selection in the video playing process is needed. However, in the prior art, a video branch selection playing implementation mode is lacked, and different videos cannot be played in a fast switching manner according to different selections of a user terminal.
Disclosure of Invention
In view of this, the present invention provides a method and an apparatus for implementing video branch selection playing, so as to solve the technical problem in the prior art that video branch selection playing cannot be implemented.
In order to solve the above problems, the technical solutions provided in the embodiments of the present invention are as follows:
a method of enabling video branch selection playback, the method comprising:
when a composite video file is triggered to play, acquiring the current playing time value of the composite video file in real time, wherein the composite video file is generated by splicing a plurality of branch videos;
obtaining a branch selection result, and determining playing start time corresponding to the branch selection result, wherein the playing start time corresponding to the branch selection result is the start time of a branch video corresponding to the branch selection result in the composite video file;
and assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing. Correspondingly, reserved fault-tolerant pictures exist among all the branch videos in the composite video file.
Correspondingly, when the composite video file is triggered to be played, the obtaining of the current playing time value of the composite video file in real time includes:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
Correspondingly, before obtaining the branch selection result, the method further comprises:
and triggering and displaying a branch selection interface when the current playing time value reaches a preset time value.
Correspondingly, when the current playing time value reaches a preset time value, a branch selection interface is triggered to be displayed, including:
when the current playing time value reaches a preset time value, overlaying the animation of the branch selection button on the playing page of the composite video file to generate a branch selection interface;
and displaying the branch selection interface.
Correspondingly, the obtaining of the branch selection result includes:
when a branch selection option triggered by clicking the branch selection button is obtained, a branch selection result corresponding to the triggered branch selection option is obtained;
and when the branch selection option triggered by clicking the branch selection button is not received for more than the preset time, acquiring a preset default branch selection result as a branch selection result, or stopping playing the composite video file until the branch selection option triggered by clicking the branch selection button is acquired, and acquiring a branch selection result corresponding to the triggered branch selection option.
An apparatus for enabling video branch selection playback, the apparatus comprising:
the device comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring the current playing time value of a composite video file in real time when the composite video file is triggered to play, and the composite video file is generated by splicing a plurality of branch videos;
a second obtaining unit for obtaining a branch selection result;
a determining unit, configured to determine a playing start time corresponding to the branch selection result, where the playing start time corresponding to the branch selection result is a start time of a branch video corresponding to the branch selection result in the composite video file;
and the assigning unit is used for assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing.
Correspondingly, reserved fault-tolerant pictures exist among all the branch videos in the composite video file.
Correspondingly, the first obtaining unit is specifically configured to:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
Correspondingly, the device further comprises:
and the display unit is used for triggering a display branch selection interface when the current playing time value reaches a preset time value.
Correspondingly, the display unit comprises:
the generating subunit is used for overlaying the animation of the branch selection button on the playing page of the composite video file when the current playing time value reaches a preset time value, and generating a branch selection interface;
and the display subunit is used for displaying the branch selection interface.
Correspondingly, the second obtaining unit comprises:
the first obtaining subunit is used for obtaining a branch selection result corresponding to the triggered branch selection option when the branch selection option triggered by clicking the branch selection button is obtained;
and the second obtaining subunit is configured to, when a branch selection option triggered by clicking the branch selection button is not received for more than a preset time, obtain a preset default branch selection result as a branch selection result, or stop playing the composite video file, until the first obtaining subunit obtains the branch selection option triggered by clicking the branch selection button, obtain a branch selection result corresponding to the triggered branch selection option.
Therefore, the embodiment of the invention has the following beneficial effects:
the embodiment of the invention splices a plurality of branch videos to generate a composite video file, acquires the current playing time value of the composite video file in real time when the composite video file is played, acquires a branch selection result after a terminal performs branch selection, determines the starting time of the branch video corresponding to the branch selection result in the composite video file, and assigns the starting time to the current playing time value of the composite video file, so that the composite video file jumps to the starting position of the branch video corresponding to the branch selection result to continue playing, different branch videos are presented according to the terminal selection, the composite video file is continuously played in the playing process, a black screen does not appear in the switching process, other animation transition is not needed, and the video playing has richer interactive experience.
Drawings
Fig. 1 is a flowchart of an embodiment of a method for implementing video branch selection playing according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a branch selection interface in an embodiment of the invention;
fig. 3 is a schematic diagram of a video branch selection playing process according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating branching video splicing according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an embodiment of an apparatus for implementing video branch selection playing according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another embodiment of an apparatus for implementing video branch selection playing according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
The embodiment of the invention provides a method and a device for realizing video branch selective playing, aiming at the technical problem that video branch selective playing cannot be realized in the prior art, so that different videos can be presented according to terminal selection in the video playing process, no black screen appears in the switching process, and transition is not needed by other animations.
The embodiment of the present invention will be described from the perspective of a device for implementing video branch selection playing, where the device for implementing video branch selection playing may be specifically integrated in a client, and the client may be loaded in a terminal, where the terminal may specifically be a smart phone, a tablet computer, an e-book reader, an MP3(Moving Picture Experts Group Audio Layer iii, motion video Experts compression standard Audio Layer 3) player, an MP4(Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 3) player, a laptop portable computer, a desktop computer, and the like.
Referring to fig. 1, an embodiment of a method for implementing video branch selection playing provided in the embodiment of the present invention may include the following steps:
step 101: and when the composite video file is triggered to play, acquiring the current playing time value of the composite video file in real time, wherein the composite video file is generated by splicing a plurality of branch videos.
Firstly, synthesizing branch videos which may appear in the playing process into one video to generate a synthesized video file. For example, a video with content of forward running may be taken as one piece of branch video, and after running to a certain place, the user may select to continue running to the left, running to the right, or running back using the terminal, and then the video with content of running to the left, running to the right, or running back may be taken as another number of pieces of branch video, and these pieces of branch video are synthesized together in sequence in advance to generate a synthesized video file. The manner of video composition in this embodiment is not limiting. When video branch selection playing is needed, the composite video file is obtained first.
In some possible implementations of the embodiment of the present invention, there may also be a reserved fault-tolerant picture between each of the branch videos in the composite video file.
According to the video playing sequence, a fault-tolerant picture of 1-2 seconds can be reserved at the joint where the videos need to be switched, wherein the fault-tolerant picture is a picture similar to the scene between two branch videos played in sequence, so that transition is natural in the video playing process. For example, there may be a reserved fault-tolerant picture between a branch video whose content is running forward and a branch video whose content is running to the left, that is, there may be a reserved fault-tolerant picture after the branch video whose content is running forward and a reserved fault-tolerant picture before the branch video whose content is running to the left; similarly, there may be a reserved fault-tolerant picture between the branch video whose content is running forward and the branch video whose content is running to the right, i.e., there may also be a reserved fault-tolerant picture before the branch video whose content is running to the right. And so on, splicing the reserved fault-tolerant pictures before and/or after the branching video according to the possible playing sequence.
The user using the terminal may trigger to start playing the composite video file, for example, in practical applications, an animation effect interface may be provided on a playing page, and the playing of the composite video file is triggered by clicking a button in the animation effect interface. And in the playing process of the composite video file, acquiring the current playing time value of the composite video file in real time.
In some possible implementation manners of the embodiment of the present invention, when the composite video file is triggered to be played, the implementation of acquiring the current playing time value of the composite video file in real time may include:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
In this embodiment, the playing page may be a HyperText markup language 5 (HTML 5) page, and the composite video file may be a video element embedded in the HTML5 page, where the video element may have currentTime (current playing time) attribute. In this embodiment, a timer may be set on the playing page of the composite video file, and a currentTime attribute value (i.e., a current playing time value) of a video element (i.e., the composite video file) played in the page is obtained in real time through the timer.
Step 102: and acquiring a branch selection result, and determining the playing start time corresponding to the branch selection result, wherein the playing start time corresponding to the branch selection result is the start time of the branch video corresponding to the branch selection result in the synthesized video file.
In some possible implementations of the present invention, before step 102, the display of the branch selection interface may be triggered when the current playing time value reaches the preset time value.
The preset time value can be preset according to needs, when the current playing time value reaches the preset time value, the terminal can perform branch selection, and at the moment, a branch selection interface corresponding to the preset time value is triggered and displayed. In some possible implementation manners of the embodiment of the present invention, there may be one or more preset time values, and each preset time value may correspond to one branch selection interface respectively.
In some possible implementation manners of the embodiment of the present invention, when the current play time value reaches the preset time value, the triggering and displaying a branch selection interface includes:
when the current playing time value reaches a preset time value, overlaying the animation of the branch selection button on a playing page of the composite video file to generate a branch selection interface; a branch selection interface is displayed.
In an embodiment, the branch selection interface may be generated by superimposing an animation of the branch selection button on a playing page of the composite video file, and different branch selection interfaces may be generated and displayed when different preset time values are reached. Referring to fig. 2, a schematic diagram of a branch selection interface is shown, where the branch selection interface includes three branch selection buttons, and when the branch selection button is clicked to trigger different branch selection options, a terminal is represented to select different branch selection results.
After the terminal performs the branch selection, a branch selection result may be obtained, where the branch selection result corresponds to one branch video, and each branch video has a start time in the composite video file, for example, the start time of the second branch video is the 10 th second in the composite video file, and after the branch selection result is obtained, the start time of the branch video corresponding to the branch selection result in the composite video file may be determined.
In some possible implementation manners of the embodiment of the present invention, an implementation manner of obtaining the branch selection result may include:
when a branch selection option triggered by clicking a branch selection button is obtained, a branch selection result corresponding to the triggered branch selection option is obtained;
and when the branch selection option triggered by clicking the branch selection button is not received for more than the preset time, acquiring a preset default branch selection result as a branch selection result, or stopping playing the composite video file until the branch selection option triggered by clicking the branch selection button is acquired, and acquiring a branch selection result corresponding to the triggered branch selection option.
In practical application, a user using a terminal can trigger a branch selection option by clicking a branch selection button, and if the branch selection option triggered by clicking the branch selection button is not received after the preset time, the preset default branch selection result can be directly used as a branch selection result, or the user waits for clicking until the branch selection option triggered by clicking the branch selection button is obtained, and then the branch selection result corresponding to the triggered branch selection option is obtained.
Step 103: and assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing.
Assigning the playing start time corresponding to the branch selection result, namely the start time of the branch video corresponding to the branch selection result in the composite video file, to the current playing time value of the composite video file, namely modifying the currentTime attribute value, so that the composite video file can directly jump to the playing start time corresponding to the branch selection result to continue playing, namely continuously playing the branch video corresponding to the branch selection result, the jump enables the playing process not to generate a black screen, transition is not needed by means of other animation effects, the branch video before being selected and the branch video after being selected are smoothly played for the terminal, and a pause phenomenon cannot exist. In addition, due to the fact that reserved fault-tolerant pictures exist among all the branch videos in the synthesized video file, even if certain errors exist in the current playing time value, the skipped videos can be kept in smooth transition with videos before skipping.
Therefore, the embodiment of the invention splices a plurality of branch videos to generate a composite video file, when the composite video file is played, the current playing time value of the composite video file is obtained in real time, after the terminal carries out branch selection, the branch selection result is obtained, the starting time of the branch video corresponding to the branch selection result in the composite video file is determined, and the starting time is assigned to the current playing time value of the composite video file, so that the composite video file is jumped to the starting position of the branch video corresponding to the branch selection result to continue playing, different branch videos are presented according to the selection of the terminal, the composite video file is continuously played in the playing process, no black screen occurs in the switching process, other animation transition is not needed, and the video playing has richer interactive experience.
The following describes an embodiment of a method for implementing video branch selection playing provided in the embodiment of the present invention, by taking an actual application scenario as an example.
Referring to fig. 3, a schematic diagram of a video branch selection playing process is shown, assuming that a playing process of a video is required to display a loading/starting interface first, when a terminal triggers playing, the starting playing content is a branch video a of a person running forward, when the branch video a is played to a preset time value, the branch selection interface is displayed, the terminal can select left, down or right, if the terminal selects left, the terminal jumps to a branch video B of the person running to the left, if the terminal selects down, the terminal jumps to a branch video C of the person running back, if the terminal selects right, the terminal jumps to a branch video D of the person running to the right, if the terminal does not select, the terminal jumps to a branch video E of the person intercepted, and when the branch video E is played to a preset time value, the branch selection interface is displayed, the terminal can select rescue, if the terminal does not select the rescue, the terminal is waited for selecting the terminal all the time, and if the terminal selects the rescue, the user jumps to the branch video F with the content of continuing to run forwards for the character to continue playing.
In order to implement the above playing flow, the branch videos A, B, C, D, E, F are first spliced to generate a composite video file, as shown in fig. 4, and the composite video file may adopt an mp4(Moving Picture Experts Group) format in order to be compatible with playing on various mobile devices. When the composite video file needs to be played, the composite video file can be obtained, after the composite video file is played in a triggering mode through a playing button and the like, a timer in a playing page can obtain the current playing time value of the composite video file in real time, and the branch video A can be played according to the playing sequence. When the current playing time value of the synthesized video file reaches a preset time value, a branch selection interface can be triggered and displayed, and a branch selection option is triggered by clicking a button on the branch selection interface, so that a branch selection result corresponding to the branch selection option can be obtained. For example, if the terminal selects the left branch selection option, the branch selection result corresponding to the left branch selection option may be obtained, the branch video B should be continuously played, after the branch selection result is obtained, the start time of the branch video B corresponding to the branch selection result in the composite video file may be determined, and the start time is assigned to the current playing time value of the composite video file, so that the branch video B may be continuously played. Similar process is carried out if the terminal selects other branch selection options, so that the branch selection of playing by the terminal is realized. The embodiment effectively solves the technical problem that the video HTML5 only has a single playing flow, realizes multi-branch switching of the video HTML5, and gives richer interactive experience to the video HTML 5.
Referring to fig. 5, an embodiment of an apparatus for implementing video branch selection playing is further provided in the embodiment of the present invention, and may include:
the first obtaining unit 501 is configured to obtain a current playing time value of a composite video file in real time when the composite video file is triggered to be played, where the composite video file is generated by splicing multiple branch videos.
In some possible implementations of the embodiment of the present invention, there may also be a reserved fault-tolerant picture between each of the branch videos in the composite video file.
In some possible implementation manners of the embodiment of the present invention, the first obtaining unit may be specifically configured to:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
A second obtaining unit 502 is configured to obtain a branch selection result.
In some possible implementation manners of the embodiment of the present invention, the second obtaining unit may include:
the first acquisition subunit is used for acquiring a branch selection result corresponding to the triggered branch selection option when the branch selection option triggered by clicking the branch selection button is acquired;
and the second obtaining subunit is used for obtaining a preset default branch selection result as a branch selection result or stopping playing the composite video file when the branch selection option triggered by clicking the branch selection button is not received for more than the preset time, and obtaining the branch selection result corresponding to the triggered branch selection option until the first obtaining subunit obtains the branch selection option triggered by clicking the branch selection button.
The determining unit 503 is configured to determine a playing start time corresponding to the branch selection result, where the playing start time corresponding to the branch selection result is a start time of a branch video corresponding to the branch selection result in the composite video file.
An assigning unit 504, configured to assign the playing start time corresponding to the branch selection result to the current playing time value of the composite video file, so that the composite video file jumps to the playing start time corresponding to the branch selection result to continue playing.
In some possible implementation manners of the embodiment of the present invention, the apparatus may further include a display unit, configured to trigger to display the branch selection interface when the current play time value reaches the preset time value.
In some possible implementation manners of the embodiment of the present invention, the display unit may include:
the generation subunit is used for superposing the animation of the branch selection button on the playing page of the synthesized video file to generate a branch selection interface when the current playing time value reaches a preset time value;
and the display subunit is used for displaying the branch selection interface.
Therefore, the embodiment of the invention splices a plurality of branch videos to generate a composite video file, when the composite video file is played, the current playing time value of the composite video file is obtained in real time, after the terminal carries out branch selection, the branch selection result is obtained, the starting time of the branch video corresponding to the branch selection result in the composite video file is determined, and the starting time is assigned to the current playing time value of the composite video file, so that the composite video file is jumped to the starting position of the branch video corresponding to the branch selection result to continue playing, different branch videos are presented according to the selection of the terminal, the composite video file is continuously played in the playing process, no black screen occurs in the switching process, other animation transition is not needed, and the video playing has richer interactive experience.
Another apparatus for implementing video branch selection playing is provided in the embodiment of the present invention, as shown in fig. 6, for convenience of description, only the relevant portions of the embodiment of the present invention are shown, and details of the specific technology are not disclosed, please refer to the method portion of the embodiment of the present invention. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 6 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present invention. Referring to fig. 6, the handset includes: radio Frequency (RF) circuit 610, memory 620, input unit 630, display unit 640, sensor 650, audio circuit 660, wireless fidelity (WiFi) module 670, processor 680, and power supply 690. Those skilled in the art will appreciate that the handset configuration shown in fig. 6 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 6:
the RF circuit 610 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, receives downlink information of a base station and then processes the received downlink information to the processor 680; in addition, the data for designing uplink is transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 60 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to global system for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), etc.
The memory 620 may be used to store software programs and modules, and the processor 680 may execute various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 620. The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone 600. Specifically, the input unit 630 may include a touch panel 631 and other input devices 632. The touch panel 631, also referred to as a touch screen, may collect touch operations of a user (e.g., operations of the user on the touch panel 631 or near the touch panel 631 by using any suitable object or accessory such as a finger or a stylus) thereon or nearby, and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 631 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 680, and can receive and execute commands sent by the processor 680. In addition, the touch panel 631 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The input unit 630 may include other input devices 632 in addition to the touch panel 631. In particular, other input devices 632 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 640 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 640 may include a display panel 641, and optionally, the display panel 641 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 631 can cover the display panel 641, and when the touch panel 631 detects a touch operation thereon or nearby, the touch panel is transmitted to the processor 680 to determine the type of the touch event, and then the processor 680 provides a corresponding visual output on the display panel 641 according to the type of the touch event. Although in fig. 6, the touch panel 631 and the display panel 641 are two independent components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 631 and the display panel 641 may be integrated to implement the input and output functions of the mobile phone.
The handset 600 may also include at least one sensor 650, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 641 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 641 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuit 660, speaker 661, and microphone 662 can provide an audio interface between a user and a cell phone. The audio circuit 660 may transmit the electrical signal converted from the received audio data to the speaker 661, and convert the electrical signal into an audio signal through the speaker 661 for output; on the other hand, the microphone 662 converts the collected sound signals into electrical signals, which are received by the audio circuit 660 and converted into audio data, which are processed by the audio data output processor 680 and then transmitted via the RF circuit 610 to, for example, another cellular phone, or output to the memory 620 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 670, and provides wireless broadband Internet access for the user. Although fig. 6 shows the WiFi module 670, it is understood that it does not belong to the essential constitution of the handset 600, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 680 is a control center of the mobile phone, and connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory 620, thereby performing overall monitoring of the mobile phone. Optionally, processor 680 may include one or more processing units; preferably, the processor 680 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 680.
The handset 600 also includes a power supply 690 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 680 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone 600 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In the embodiment of the present invention, the processor 680 included in the terminal further has the following functions:
when a composite video file is triggered to play, acquiring the current playing time value of the composite video file in real time, wherein the composite video file is generated by splicing a plurality of branch videos;
obtaining a branch selection result, and determining playing start time corresponding to the branch selection result, wherein the playing start time corresponding to the branch selection result is the start time of a branch video corresponding to the branch selection result in the composite video file;
and assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing. Correspondingly, reserved fault-tolerant pictures exist among all the branch videos in the composite video file.
Correspondingly, when the composite video file is triggered to be played, the obtaining of the current playing time value of the composite video file in real time includes:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
Correspondingly, before obtaining the branch selection result, the method further comprises the following steps:
and triggering and displaying a branch selection interface when the current playing time value reaches a preset time value.
Correspondingly, when the current playing time value reaches a preset time value, a branch selection interface is triggered to be displayed, including:
when the current playing time value reaches a preset time value, overlaying the animation of the branch selection button on the playing page of the composite video file to generate a branch selection interface;
and displaying the branch selection interface.
Correspondingly, the obtaining of the branch selection result includes:
when a branch selection option triggered by clicking the branch selection button is obtained, a branch selection result corresponding to the triggered branch selection option is obtained;
and when the branch selection option triggered by clicking the branch selection button is not received for more than the preset time, acquiring a preset default branch selection result as a branch selection result, or stopping playing the composite video file until the branch selection option triggered by clicking the branch selection button is acquired, and acquiring a branch selection result corresponding to the triggered branch selection option.
Therefore, the embodiment of the invention splices a plurality of branch videos to generate a composite video file, when the composite video file is played, the current playing time value of the composite video file is obtained in real time, after the terminal carries out branch selection, the branch selection result is obtained, the starting time of the branch video corresponding to the branch selection result in the composite video file is determined, and the starting time is assigned to the current playing time value of the composite video file, so that the composite video file is jumped to the starting position of the branch video corresponding to the branch selection result to continue playing, different branch videos are presented according to the selection of the terminal, the composite video file is continuously played in the playing process, no black screen occurs in the switching process, other animation transition is not needed, and the video playing has richer interactive experience.
It should be noted that, in the present specification, the embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the system or the device disclosed by the embodiment, the description is simple because the system or the device corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for realizing video branch selection playing is characterized in that the method comprises the following steps:
when a composite video file is triggered to play, acquiring the current play time value of the composite video file in real time, wherein the composite video file is generated by splicing a plurality of branch videos, each branch video has an initial time in the composite video file, and fault-tolerant pictures reserved according to a possibly existing play sequence exist among the branch videos in the composite video file;
obtaining a branch selection result, and determining playing start time corresponding to the branch selection result, wherein the playing start time corresponding to the branch selection result is the start time of a branch video corresponding to the branch selection result in the composite video file;
and assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing.
2. The method according to claim 1, wherein the obtaining the current playing time value of the composite video file in real time when the composite video file is triggered to be played comprises:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
3. The method of claim 1, wherein prior to obtaining branch selection results, the method further comprises:
and triggering and displaying a branch selection interface when the current playing time value reaches a preset time value.
4. The method according to claim 3, wherein the triggering the display of the branch selection interface when the current playing time value reaches a preset time value comprises:
when the current playing time value reaches a preset time value, overlaying the animation of the branch selection button on the playing page of the composite video file to generate a branch selection interface;
and displaying the branch selection interface.
5. The method of claim 4, wherein obtaining branch selection results comprises:
when a branch selection option triggered by clicking the branch selection button is obtained, a branch selection result corresponding to the triggered branch selection option is obtained;
and when the branch selection option triggered by clicking the branch selection button is not received for more than the preset time, acquiring a preset default branch selection result as a branch selection result, or stopping playing the composite video file until the branch selection option triggered by clicking the branch selection button is acquired, and acquiring a branch selection result corresponding to the triggered branch selection option.
6. An apparatus for implementing video branch selection playback, the apparatus comprising:
the device comprises a first obtaining unit, a second obtaining unit and a third obtaining unit, wherein the first obtaining unit is used for obtaining the current playing time value of a composite video file in real time when the composite video file is triggered to be played, the composite video file is generated by splicing a plurality of branch videos, each branch video has a starting time in the composite video file, and fault-tolerant pictures reserved according to a possibly existing playing sequence exist among the branch videos in the composite video file;
a second obtaining unit for obtaining a branch selection result;
a determining unit, configured to determine a playing start time corresponding to the branch selection result, where the playing start time corresponding to the branch selection result is a start time of a branch video corresponding to the branch selection result in the composite video file;
and the assigning unit is used for assigning the playing start time corresponding to the branch selection result to the current playing time value of the composite video file so as to enable the composite video file to jump to the playing start time corresponding to the branch selection result for continuous playing.
7. The apparatus according to claim 6, wherein the first obtaining unit is specifically configured to:
and setting a timer on a playing page of the composite video file, and triggering the timer to acquire the current playing time value of the composite video file in real time when the composite video file is triggered to be played.
8. The apparatus of claim 6, further comprising:
and the display unit is used for triggering a display branch selection interface when the current playing time value reaches a preset time value.
9. The apparatus of claim 8, wherein the display unit comprises:
the generating subunit is used for overlaying the animation of the branch selection button on the playing page of the composite video file when the current playing time value reaches a preset time value, and generating a branch selection interface;
and the display subunit is used for displaying the branch selection interface.
10. The apparatus of claim 9, wherein the second obtaining unit comprises:
the first obtaining subunit is used for obtaining a branch selection result corresponding to the triggered branch selection option when the branch selection option triggered by clicking the branch selection button is obtained;
and the second obtaining subunit is configured to, when a branch selection option triggered by clicking the branch selection button is not received for more than a preset time, obtain a preset default branch selection result as a branch selection result, or stop playing the composite video file, until the first obtaining subunit obtains the branch selection option triggered by clicking the branch selection button, obtain a branch selection result corresponding to the triggered branch selection option.
CN201710117150.4A 2017-03-01 2017-03-01 Method and device for realizing video branch selection playing Active CN106803993B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710117150.4A CN106803993B (en) 2017-03-01 2017-03-01 Method and device for realizing video branch selection playing

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710117150.4A CN106803993B (en) 2017-03-01 2017-03-01 Method and device for realizing video branch selection playing
PCT/CN2018/077506 WO2018157812A1 (en) 2017-03-01 2018-02-28 Method and apparatus for implementing video branch selection and playback

Publications (2)

Publication Number Publication Date
CN106803993A CN106803993A (en) 2017-06-06
CN106803993B true CN106803993B (en) 2020-04-07

Family

ID=58987926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710117150.4A Active CN106803993B (en) 2017-03-01 2017-03-01 Method and device for realizing video branch selection playing

Country Status (2)

Country Link
CN (1) CN106803993B (en)
WO (1) WO2018157812A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106803993B (en) * 2017-03-01 2020-04-07 腾讯科技(深圳)有限公司 Method and device for realizing video branch selection playing
CN108260014A (en) * 2018-04-12 2018-07-06 腾讯科技(上海)有限公司 A kind of video broadcasting method and terminal and storage medium
CN110381384A (en) * 2019-07-25 2019-10-25 网宿科技股份有限公司 A kind of method and device that interactive audiovisual plays
WO2021013272A1 (en) * 2019-07-25 2021-01-28 网宿科技股份有限公司 Video playback method, electronic device, and storage medium
CN110913273A (en) * 2019-11-27 2020-03-24 北京翔云颐康科技发展有限公司 Video live broadcasting method and device
CN111193963A (en) * 2020-01-06 2020-05-22 福建天泉教育科技有限公司 Video interaction method and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2015912A1 (en) * 1989-05-05 1990-11-05 Terrence H. Pocock Television system for the interactive distribution of selectable video presentations
CN105472456A (en) * 2015-11-27 2016-04-06 北京奇艺世纪科技有限公司 Video playing method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409831B (en) * 2008-07-10 2010-10-27 浙江师范大学 Method for processing multimedia video object
US9641790B2 (en) * 2011-10-17 2017-05-02 Microsoft Technology Licensing, Llc Interactive video program providing linear viewing experience
US20130097643A1 (en) * 2011-10-17 2013-04-18 Microsoft Corporation Interactive video
US9009619B2 (en) * 2012-09-19 2015-04-14 JBF Interlude 2009 Ltd—Israel Progress bar for branched videos
US9653115B2 (en) * 2014-04-10 2017-05-16 JBF Interlude 2009 LTD Systems and methods for creating linear video from branched video
CN104602129B (en) * 2015-01-27 2018-03-06 三星电子(中国)研发中心 The player method and system of interactive multi-angle video
US10582265B2 (en) * 2015-04-30 2020-03-03 JBF Interlude 2009 LTD Systems and methods for nonlinear video playback using linear real-time video players
CN104837051B (en) * 2015-05-26 2019-02-22 腾讯科技(北京)有限公司 Video broadcasting method and client
CN105430509B (en) * 2015-11-27 2018-10-30 北京奇艺世纪科技有限公司 A kind of method for broadcasting multimedia file and device
CN106331525A (en) * 2016-08-29 2017-01-11 陈虎 Realization method for interactive film
CN106803993B (en) * 2017-03-01 2020-04-07 腾讯科技(深圳)有限公司 Method and device for realizing video branch selection playing

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2015912A1 (en) * 1989-05-05 1990-11-05 Terrence H. Pocock Television system for the interactive distribution of selectable video presentations
CN105472456A (en) * 2015-11-27 2016-04-06 北京奇艺世纪科技有限公司 Video playing method and device

Also Published As

Publication number Publication date
CN106803993A (en) 2017-06-06
WO2018157812A1 (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN106803993B (en) Method and device for realizing video branch selection playing
CN106686396B (en) Method and system for switching live broadcast room
KR102040754B1 (en) Interaction method, terminal and server based on recommended content
CN106303733B (en) Method and device for playing live special effect information
US9924205B2 (en) Video remote-commentary synchronization method and system, and terminal device
US10750223B2 (en) System, method, and device for displaying content item
CN106534941B (en) Method and device for realizing video interaction
CN105979312B (en) Information sharing method and device
CN106254910B (en) Method and device for recording image
CN106231433B (en) A kind of methods, devices and systems playing network video
WO2015131768A1 (en) Video processing method, apparatus and system
CN106921791B (en) Multimedia file storage and viewing method and device and mobile terminal
CN107333162B (en) Method and device for playing live video
CN106973330B (en) Screen live broadcasting method, device and system
CN109062467B (en) Split screen application switching method and device, storage medium and electronic equipment
WO2017215661A1 (en) Scenario-based sound effect control method and electronic device
CN106791916B (en) Method, device and system for recommending audio data
CN104142779A (en) UI (user interface) control method and device as well as terminal
CN103294442A (en) Method, device and terminal unit for playing prompt tones
CN104408051A (en) Song recommendation method and device
CN109800095B (en) Notification message processing method and mobile terminal
CN106375179B (en) Method and device for displaying instant communication message
CN109905754B (en) Virtual gift receiving method and device and storage equipment
CN107770449B (en) Continuous shooting method, electronic device and storage medium
CN105513098B (en) Image processing method and device

Legal Events

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