WO2024051612A1 - 视频内容预览交互方法、装置、电子设备及存储介质 - Google Patents

视频内容预览交互方法、装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2024051612A1
WO2024051612A1 PCT/CN2023/116620 CN2023116620W WO2024051612A1 WO 2024051612 A1 WO2024051612 A1 WO 2024051612A1 CN 2023116620 W CN2023116620 W CN 2023116620W WO 2024051612 A1 WO2024051612 A1 WO 2024051612A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
target
text
progress
subtitle
Prior art date
Application number
PCT/CN2023/116620
Other languages
English (en)
French (fr)
Inventor
唐艺丹
张智霖
谈斯奇
杜育璋
林晔
Original Assignee
抖音视界有限公司
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 抖音视界有限公司 filed Critical 抖音视界有限公司
Publication of WO2024051612A1 publication Critical patent/WO2024051612A1/zh

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/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/47217End-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 controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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
    • H04N21/4316Generation 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 for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Definitions

  • the embodiments of the present disclosure relate to the field of Internet technology, and in particular, to a video content preview interactive method, device, electronic device, and storage medium.
  • a video jump function and a corresponding video preview function are set up. That is, during the process of adjusting the video playback progress, before the video jumps, the video jump function is set. Decode and display the video frame at the target jump position, so that the user can preview the video content at that video position and decide whether to jump.
  • Embodiments of the present disclosure provide a video content preview interaction method, device, electronic device, and storage medium.
  • embodiments of the present disclosure provide a video content preview interaction method, including:
  • a progress bar component is provided in the video playback interface, and the progress bar component is used to display the playback progress of the target video played in the video playback interface; in response to the movement operation of the progress bar component , display the corresponding target text, wherein the movement operation is used to indicate the first video position of the target video, and the target text represents the video content of the target video at the first video position.
  • embodiments of the present disclosure provide a video content preview interactive device, including:
  • a display module is used to display a video playback interface.
  • a progress bar component is provided in the video playback interface. The progress bar component is used to display the playback progress of the target video played in the video playback interface;
  • a processing module configured to display corresponding target text in response to a movement operation on the progress bar component, wherein the movement operation is used to indicate the first video position of the target video, and the target text characterizes the target.
  • an electronic device including:
  • a processor and a memory communicatively connected to the processor
  • the memory stores computer execution instructions
  • the processor executes computer execution instructions stored in the memory to implement the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer-readable storage medium.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • the processor executes the computer-executable instructions, the above first aspect is implemented.
  • the video content preview interactive method described in various possible designs in the first aspect.
  • embodiments of the present disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer program that, when executed by a processor, implements the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • the video content preview interaction method, device, electronic device and storage medium provided by this embodiment display a video playback interface, and a progress bar component is provided in the video playback interface.
  • the progress bar component is used to display the video playback interface.
  • the video content at the video position corresponding to the movement operation is displayed in the form of text.
  • Figure 1 is an application scenario diagram of the video content preview interaction method provided by an embodiment of the present disclosure
  • Figure 2 is a schematic flowchart 1 of a video content preview interaction method provided by an embodiment of the present disclosure
  • Figure 3 is a schematic diagram of a video playback interface provided by an embodiment of the present disclosure.
  • FIG. 4 is a flow chart of specific implementation steps of step S102 in the embodiment shown in Figure 2;
  • Figure 5 is a schematic diagram of target text data provided by an embodiment of the present disclosure.
  • Figure 6 is a schematic diagram of a progress component provided by an embodiment of the present disclosure.
  • Figure 7 is a schematic flowchart 2 of a video content preview interaction method provided by an embodiment of the present disclosure
  • Figure 8 is a schematic diagram of the operation of a second language component provided by an embodiment of the present disclosure.
  • FIG. 9 is a flow chart of specific implementation steps of step S204 in the embodiment shown in Figure 7;
  • Figure 10 is a schematic diagram of the operation of a first language component provided by an embodiment of the present disclosure.
  • Figure 11 is a schematic diagram of changes in text attributes provided by an embodiment of the present disclosure.
  • Figure 12 is a structural block diagram of a video content preview interactive device provided by an embodiment of the present disclosure.
  • Figure 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • Figure 14 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present disclosure.
  • Figure 1 is an application scenario diagram of a video content preview interaction method provided by an embodiment of the disclosure.
  • the video content preview interaction method provided by an embodiment of the disclosure can be applied to application scenarios of video playback. More specifically, it can be applied to the application scenario of video preview during video playback.
  • the method provided by the embodiment of the present disclosure can be applied to terminal devices, such as smart phones, tablet computers, etc.
  • a target application Application, APP
  • the target application is, for example, a short video platform application.
  • the target application downloads and plays the target video by connecting to the short video platform server.
  • the target application has a video playback interface, and a progress bar component for displaying the progress of video playback is provided in the video playback interface.
  • a progress bar component for displaying the progress of video playback is provided in the video playback interface.
  • the user can realize jump playback (seek) of the target video by dragging the progress bar component in the video playback interface, that is, adjusting the playback progress.
  • you can preview the video content corresponding to the target video position to be jumped.
  • a preview window is displayed to display the video at the video playback position. frames to achieve video preview.
  • the video frame can only show the image information in the video, but cannot show the voice information in the video.
  • the video preview implemented through the above solution in the prior art has the problem that the amount of information displayed is small and the video content cannot be fully displayed, which affects the preview effect of the video content.
  • Embodiments of the present disclosure provide a video content preview interactive method to solve the above problems.
  • FIG 2 is a schematic flowchart 1 of a video content preview interaction method provided by an embodiment of the present disclosure.
  • the method of this embodiment can be applied to terminal devices, such as smart phones, personal computers, etc.
  • a smart phone with a touch screen is used as an execution subject to perform the video content preview interactive method provided in this embodiment.
  • the video content preview interaction methods include:
  • Step S101 Display the video playback interface.
  • the video playback interface is provided with a progress bar component.
  • the progress bar component is used to display the playback progress of the target video played in the video playback interface.
  • the video playback interface is an interface used for playing videos in a target application of the video playback class.
  • the terminal device displays the video playback interface by running the target application and calling the corresponding system components.
  • the video playback interface includes not only a basic video playback component for playing the target video, but also a progress bar component for displaying the playback progress of the target video.
  • the progress bar component can be implemented through a video playback component, that is, the progress bar component is a subcomponent of the video playback component that displays video playback progress to the user.
  • the progress bar component can be a component independent of the video playback component.
  • the progress bar component can also respond to operation instructions to control the video playback progress.
  • FIG 3 is a schematic diagram of a video playback interface provided by an embodiment of the present disclosure.
  • the video playback interface is provided with a video playback component and a progress bar component, and the progress bar component is provided below the video playback component.
  • the progress indicator in the progress bar component will move as the playback progress of the target video changes.
  • the user operates the progress bar component by applying gesture operations to the touch screen, such as dragging the progress indicator of the progress bar component the playback progress of the target video played in the video playback component will be controlled accordingly. That is, jump to play.
  • the specific implementation principles of the above video playback component and progress bar component are based on existing technologies. The technique will not be described in detail here.
  • Step S102 In response to the movement operation on the progress bar component, display the corresponding target text, where the movement operation is used to indicate the first video position of the target video, and the target text represents the video content of the target video at the first video position.
  • the terminal device when the user performs a movement operation on the progress bar component through the touch screen, the terminal device will detect the movement operation and generate corresponding operation instructions to control the progress bar component.
  • the movement operation may include a drag operation or a click operation for the progress bar component.
  • the drag operation is a non-release drag gesture for the progress indicator in the progress bar component, that is, it is always in a pressed (button down) state. Drag gesture below.
  • the click operation is a non-release click operation for a certain identification position in the progress bar component.
  • the progress identification in the progress bar component can be moved to the identification position (or the progress identification does not move). , and then determine the corresponding first video position based on the timestamp corresponding to the identification position.
  • the first video position may be represented by the playback timestamp of the target video.
  • the subtitle text corresponding to the timestamp is obtained from the preset text data corresponding to the target video (the target video and the corresponding text data have consistent timestamps), that is, target text.
  • the target text is displayed in the preset area of the video playback interface. Since the movement operation is a continuous operation (such as dragging the progress indicator), one movement operation can correspond to multiple first video positions. Therefore, as the mobile operation continues, the target text corresponding to each first video position is synchronously displayed in the video playback interface.
  • step S102 include:
  • Step S1021 Obtain target text data corresponding to the target video.
  • the target text data includes subtitle text of the target video at at least two video positions.
  • the subtitle text is generated from the audio information of the target video at the corresponding video position.
  • Step S1022 Display the subtitle text corresponding to the first video position as the target text.
  • the target text data corresponding to the target video may be pre-generated data.
  • the target text data includes subtitle text corresponding to the target video at different timestamp positions.
  • the subtitle text is obtained by processing the target video based on speech recognition technology. More Specifically, the target text data may be obtained by the terminal device by accessing the server, or may be obtained by the terminal device after processing the target video. Examples will not be repeated here.
  • Figure 5 is a schematic diagram of target text data provided by an embodiment of the present disclosure.
  • the target text data includes N subtitle texts, where each subtitle text corresponds to at least one video frame of the target video, and each subtitle text They are aligned with the video frames of the target video through timestamps, that is, as shown in the figure, for example, subtitle text #1 corresponds to video frames p1-p3, and subtitle text #2 corresponds to video frames p4-p7.
  • the corresponding subtitle text is obtained from the target text data and displayed as the target text.
  • the corresponding target text is obtained and displayed. Since the display process of the text data does not require video decoding, therefore, Compared with the existing solution for previewing video content based on video frames, the resource consumption is smaller, so the display of the target text is also better in real time, and the operation fluency and precision are better.
  • the mobile operations are all non-release operations.
  • the progress bar component can be used to control the playback progress of the target video.
  • the mobile gesture is released (for example, releasing the drag progress indicator) Gesture)
  • the progress bar component includes a first progress identifier and a second progress identifier, where the first progress identifier is used to control the preview position of the target video, and the second progress identifier is used to control The playback progress of the target video.
  • the specific implementation method of displaying the corresponding target text is: in response to the movement operation on the first progress indicator, in the video preview view of the video playback interface, the target text corresponding to the preview position is displayed.
  • Figure 6 is a schematic diagram of a progress component provided by an embodiment of the present disclosure.
  • the progress bar component includes a first progress identifier and a second progress identifier, where, for example, in the case of normal playback of the target video , the video playback interface will synchronously play the target video and the corresponding text subtitles based on the playback timestamp of the target video.
  • the timestamps of the target video and the corresponding text subtitles are consistent.
  • the text subtitles may be pre-generated to describe text characterizing the video content.
  • the target video can be modified.
  • the playback is controlled, that is, jump playback.
  • This process is a conventional method for realizing jump playback of videos in the prior art, and will not be described again.
  • the first progress indicator such as dragging or clicking (shown as dragging the first progress indicator in the figure)
  • the first progress indicator is moved to the video position B (the first video position).
  • the text corresponding to the first video position that is, the target text
  • the target text is displayed in the video preview view of the video playback interface.
  • the target video and the corresponding text subtitles in the second video playback interface are still played normally, but at the same time, the user can preview to the third video based on the video preview view.
  • Text subtitles at a video position i.e. preview position
  • the progress bar component including a progress indicator
  • the progress indicator when the user only needs to preview and does not need to jump, when the movement operation for the progress indicator ends, the progress indicator cannot be manually restored to the current state of the video.
  • An issue with the identification position corresponding to the playback progress causes unexpected jump playback of the target video that is being played normally.
  • the operation decoupling of the video playback progress control and the video content preview is realized, and the video content is processed through mobile operations.
  • a progress bar component is provided in the video playback interface.
  • the progress bar component is used to display the playback progress of the target video played in the video playback interface; in response to the movement operation of the progress bar component, The corresponding target text is displayed, where the movement operation is used to indicate the first video position of the target video, and the target text represents the video content of the target video at the first video position.
  • the video content at the video position corresponding to the mobile operation is displayed in the form of text, and a text preview of the target video is realized, thereby effectively increasing the information display amount of the video and solving the problem of being unable to fully display the video content. question.
  • FIG. 7 is a schematic flowchart 2 of a video content preview interactive method provided by an embodiment of the present disclosure. Based on the embodiment shown in Figure 2, this embodiment further refines the implementation process of step S102.
  • the video content preview interaction method includes:
  • Step S201 Display a video playback interface.
  • a progress bar component is provided in the video playback interface.
  • the progress bar component is used to display the playback progress of the target video played in the video playback interface.
  • Step S202 Search for alternative text data corresponding to the target video, and display data identifiers corresponding to at least two alternative text data.
  • Step S203 In response to the selection operation for the target data identifier, download the first target text data corresponding to the target data identifier.
  • the text data is descriptive text for the target video, corresponds to the timestamp of the target video, and is used to characterize the content of the target video at the corresponding timestamp position.
  • the text data consists of multiple subtitle texts, and the subtitle text may be generated by parsing and identifying the audio information of the target video.
  • the text data is a subjective description text of the target video, for example, video barrages uploaded by users, video commentary subtitles, etc. In this case, the text data may be obtained based on different algorithms or produced by different users.
  • the target video can correspond to multiple alternative text data
  • the alternative text data can be stored in a server that communicates with the target application (ie, the server of the target application).
  • the terminal device By accessing the server and performing a text data search on the target video, alternative text data corresponding to the target video can be obtained.
  • the terminal device can display the data identifier corresponding to the alternative text data in the application interface, for example, display it in the video playback interface, and then, based on the user's selection operation, select one of the multiple alternative text data as the First target text data. And based on the first target text data selected by the user, subsequent target text display is performed.
  • FIG 8 is a schematic diagram of the operation of a second language component provided by an embodiment of the present disclosure.
  • a second language component is provided, and the second language component is used in When triggered, displays search results for alternative text data for the target video.
  • the target video is a game video
  • the corresponding candidate text data is a text explanation of the game video.
  • the data identification of the alternative text data corresponding to the target video is displayed in the corresponding display view. More specifically, the data identification is a string, which includes the sorting number, the target video number and the introduction information. .
  • the data identifier with the sorting number #1, the corresponding target video number is No.0001, and the corresponding introduction information is "A versus B-user_1 commentary"; for example, the data identifier with the sorting number #2, the corresponding The target video number is No.0001, and the corresponding introduction information is "A versus B-user_2 commentary”.
  • the target data identifier data identifier with sorting number #2
  • the selection result is displayed in the second language component.
  • the figure shows the sorting identifier #2 corresponding to the target data identifier. After that, by accessing the server, the corresponding first target text data is obtained and loaded.
  • the selection of text data can be realized.
  • the user can select the first target text data of interest and perform the following steps in the following steps: , based on the first target text data, the target text is displayed for in-video preview, thereby improving the flexibility and diversity of video content preview and meeting the personalized needs of users.
  • Step S204 Obtain the subtitle text category corresponding to the target video.
  • the subtitle text category represents the language used by the subtitle text in the text data.
  • Step S205 Based on the subtitle text category corresponding to the target video, obtain the second target text data corresponding to the subtitle text category from the first target text data.
  • the target application can implement language-free display for the subtitle text in the first target text data, that is, the target video can correspond to multiple subtitle text types.
  • first The target text data includes first text data, second text data and third text data.
  • the first text data is based on Chinese text
  • the second text data is based on English text
  • the third text data is based on Russian text.
  • the semantics represented by the first text data, the second text data and the third text data are consistent, but their languages are different. More specifically, for example, the second text data and the third text data may be obtained by translation based on the first text data.
  • the corresponding subtitle text is displayed by displaying the identification of the corresponding sub-data based on different languages in the first text data (such as the first text data, the second text data and the third text data in the above embodiment). category. Afterwards, based on the user's setting operation, a target category is selected from multiple subtitle text categories, and the text data corresponding to the target category is used to determine the second target text data.
  • a first language component is provided in the video playback interface, and the language component is used to display at least two subtitle text categories.
  • the specific implementation steps of step S204 include:
  • Step S2041 Detect the number of subtitle text categories corresponding to the target video
  • Step S2042 If the number of subtitle text types is greater than 1, set the first language component to an available state.
  • Step S2043 In response to the setting operation for the first language component, determine the target subtitle text category corresponding to the target video.
  • Figure 10 is a schematic diagram of the operation of a first language component provided by an embodiment of the present disclosure.
  • the above process is introduced with reference to Figure 10.
  • the first language component is set to an available state. More specifically, the available state includes, for example, a visible state and a clickable state (shown in the figure is the word "optional" displayed in the first language component. ); On the contrary, if the number is equal to 1, that is, the first target text data only includes text data in one language. Set the first language component to an unavailable state, such as invisible and unclickable.
  • the first language component when the first language component is in an available state, the first language component is triggered, and the available subtitle text categories are displayed in the corresponding view page, such as "Simplified Chinese” in Figure 10 ” and “English”.
  • the target subtitle text category ie, selecting the target subtitle text category
  • the text data corresponding to the target subtitle text category is used as the second target text data to display the subtitles.
  • the language of the subtitle text is further selected, so that in the subsequent display of the target text and the process of previewing the video content, the target text can be displayed in a specific language, improving the video quality.
  • the flexibility of content preview and the amount of displayed information meet the diverse preview needs of users.
  • steps S202-S203 are steps for selecting alternative text data of the target video
  • steps S204-S205 are steps for selecting text categories of the target video.
  • the above two steps can be The methods in this embodiment are executed sequentially; in other embodiments provided by the present disclosure, they can also be executed separately and one of them is omitted.
  • alternative text data of the target video is selected, and after the first target text data is obtained, based on Perform subsequent steps directly based on the first target text data (only steps S202-S203 are performed); or, there is only one set of alternative text data for the target video. Therefore, the text category can be performed based on a unique set of alternative text data. choose. (Only steps S204-S205 are performed).
  • the implementation of specific steps in the above method is similar to the previous introduction to steps S202-S205, and will not be described again here.
  • Step S206 In response to the movement operation on the progress bar component, determine the first video position.
  • Step S207 Based on the first video position, determine the target text attributes, and the text attributes represent the text style and/or text special effects corresponding to the text.
  • Step S208 Determine the subtitle text corresponding to the first video position in the target text data as the target text, and render and display the target text based on the target text attributes.
  • the text attributes include at least one of the following: font type, font size, and font color.
  • the terminal device detects the movement operation input by the user, and determines a corresponding first video position based on the movement operation. If the movement operation is a continuous operation (such as a drag operation), the first video position is The video position corresponding to a transient operation, the specific implementation method of the mobile operation and the corresponding response have been introduced in detail in the embodiment shown in Figure 2, and will not be described again here.
  • the corresponding target text has corresponding text attributes. That is, as the position of the first video changes, the style and special effects of the displayed target text also change accordingly.
  • Figure 11 is a schematic diagram of changes in text attributes provided by an embodiment of the present disclosure.
  • the target text has the first text attribute.
  • the font corresponding to the target text is italic; when the first progress logo in the progress logo is moved to the second video position (time stamp t2), the target text has the second text attribute.
  • the font corresponding to the target text is bold, and the target text has text special effects (which can be implemented based on texture rendering).
  • the direct mapping relationship between the video position and the text attribute may be preset and may be determined by the configuration data stored in the first target text data or the second target text data, which will not be described again here.
  • step S201 is the same as the implementation manner of step S101 in the embodiment shown in FIG. 2 of the present disclosure, and will not be described again one by one.
  • FIG. 12 is a structural block diagram of a video content preview interaction device provided by an embodiment of the present disclosure.
  • the video content preview interactive device 3 includes:
  • the display module 31 is used to display the video playback interface.
  • the video playback interface is provided with a progress bar component.
  • the progress bar component is used to display the playback progress of the target video played in the video playback interface;
  • the processing module 32 is configured to display the corresponding target text in response to the movement operation on the progress bar component, where the movement operation is used to indicate the first video position of the target video, and the target text represents the video content of the target video at the first video position. .
  • the progress bar component includes a first progress indicator and a second progress indicator, wherein the first progress indicator is used to control the preview position of the target video, and the second progress indicator is used to control the playback progress of the target video.
  • the processing module 32 is specifically configured to: in response to the movement operation for the first progress indicator, display the target text corresponding to the preview position in the video preview view of the video playback interface.
  • the target text has a text attribute, and the text attribute represents the text corresponding to the target text. Styles and/or text effects; the text properties of the target text are determined by the first video position.
  • the text attributes include at least one of the following: font type, font size, and font color.
  • the processing module 32 when displaying the corresponding target text, is specifically configured to: obtain the target text data corresponding to the target video, where the target text data includes the subtitle text of the target video in at least two video positions, The subtitle text is generated from the audio information of the target video at the corresponding video position; the subtitle text corresponding to the first video position is displayed as the target text.
  • the processing module 32 when obtaining the target text data corresponding to the target video, is specifically configured to: obtain the subtitle text category corresponding to the target video, and the subtitle text category represents the language used by the subtitle text in the text data. ; Based on the subtitle text category corresponding to the target video, obtain the target text data corresponding to the target video.
  • a first language component is provided in the video playback interface, and the language component is used to display at least two subtitle text categories; when obtaining the subtitle text category corresponding to the target video, the processing module 32 is specifically used to: Detect the number of subtitle text categories corresponding to the target video; if the number of subtitle text types is greater than 1, set the first language component to an available state; in response to the setting operation for the first language component, determine the target subtitle text corresponding to the target video category.
  • the processing module 32 when acquiring the target text data corresponding to the target video, is specifically configured to: search for alternative text data corresponding to the target video; display at least two data identifiers corresponding to the alternative text data; In response to the selection operation for the target data identifier, the target text data corresponding to the target data identifier is downloaded.
  • the display module 31 and the processing module 32 are connected.
  • the video content preview interactive device 3 provided in this embodiment can execute the technical solution of the above method embodiment. Its implementation principles and technical effects are similar, and will not be described again in this embodiment.
  • FIG 13 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. As shown in Figure 13, the electronic device 4 includes:
  • Processor 41 and memory 42 communicatively connected to processor 41;
  • Memory 42 stores computer execution instructions
  • the processor 41 executes the computer execution instructions stored in the memory 42 to implement the video content preview interactive method in the embodiment shown in FIGS. 2 to 11 .
  • processor 41 and the memory 42 are connected through the bus 43 .
  • the electronic device 900 may be a terminal device or a server.
  • terminal devices may include but are not limited to mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (Personal Digital Assistant, PDA), tablet computers (Portable Android Device, PAD), portable multimedia players (Portable Media Player , PMP), mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals), and fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • PDA Personal Digital Assistant
  • PMP portable multimedia players
  • mobile terminals such as vehicle-mounted terminals (such as vehicle-mounted navigation terminals)
  • fixed terminals such as digital televisions (Television, TV), desktop computers, etc.
  • the electronic device shown in FIG. 14 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device 900 may include a processing device (such as a central processing unit, a graphics processor, etc.) 901, which may be configured according to a program stored in a read-only memory (Read Only Memory, ROM) 902 or from a storage device 908.
  • the program loaded into the random access memory (Random Access Memory, RAM) 903 executes various appropriate actions. operation and processing.
  • RAM 903 various programs and data required for the operation of the electronic device 900 are also stored.
  • the processing device 901, the ROM 902 and the RAM 903 are connected to each other via a bus 904.
  • An input/output (I/O) interface 905 is also connected to bus 904.
  • the following devices can be connected to the I/O interface 905: input devices 906 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; including, for example, a Liquid Crystal Display (LCD) , an output device 907 such as a speaker, a vibrator, etc.; a storage device 908 including a magnetic tape, a hard disk, etc.; and a communication device 909.
  • the communication device 909 may allow the electronic device 900 to communicate wirelessly or wiredly with other devices to exchange data.
  • FIG. 14 illustrates electronic device 900 with various means, it should be understood that implementation or availability of all illustrated means is not required. More or fewer means may alternatively be implemented or provided.
  • embodiments of the present disclosure include a computer program product including a computer program carried on a computer-readable medium, the computer program containing program code for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via communication device 909, or from storage device 908, or from ROM 902.
  • the processing device 901 the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
  • the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium may be, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination thereof.
  • Computer readable storage media may include, but are not limited to: an electrical connection having one or more conductors, a portable computer disk, a hard drive, random access memory (RAM), read only memory (ROM), erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM) or flash memory, optical fiber, portable compact disk read only memory (Compact Disc Read Only Memory, CD-ROM), optical storage device, magnetic storage device, or any of the above suitable combination.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device .
  • Program code contained on a computer-readable medium can be transmitted using any appropriate medium, including but not limited to: wires, optical cables, radio frequency (Radio Frequency, RF), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; it may also exist independently without being assembled into the electronic device.
  • the computer-readable medium carries one or more programs.
  • the electronic device When the one or more programs are executed by the electronic device, the electronic device performs the method shown in the above embodiment.
  • Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional Procedural programming language—such as "C" or a similar programming language.
  • the program code is fully usable may execute on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or it can be connected to an external computer ( For example, using an Internet service provider to connect via the Internet).
  • LAN Local Area Network
  • WAN Wide Area Network
  • each block in the flowchart or block diagram may represent a module, segment, or portion of code that contains one or more logic functions that implement the specified executable instructions.
  • the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown one after another may actually execute substantially in parallel, or they may sometimes execute in the reverse order, depending on the functionality involved.
  • each block of the block diagram and/or flowchart illustration, and combinations of blocks in the block diagram and/or flowchart illustration can be implemented by special purpose hardware-based systems that perform the specified functions or operations. , or can be implemented using a combination of specialized hardware and computer instructions.
  • the units involved in the embodiments of the present disclosure can be implemented in software or hardware.
  • the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first acquisition unit can also be described as "the unit that acquires at least two Internet Protocol addresses.”
  • exemplary types of hardware logic components include: Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (Application Specific Integrated Circuit, ASIC), Application Specification Standard Product (Application Specification) Specific Standard Parts (ASSP), System On Chip (SOC), Complex Programmable Logic Device (CPLD), etc.
  • FPGA Field-Programmable Gate Array
  • ASIC Application Specific Integrated Circuit
  • ASSP Application Specification Standard Product
  • SOC System On Chip
  • CPLD Complex Programmable Logic Device
  • a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with an instruction execution system, apparatus, or device.
  • the machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium.
  • Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or devices, or any suitable combination of the foregoing.
  • machine-readable storage media may include an electrical connection based on one or more wires, a portable computer 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), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory erasable programmable read only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • a video content preview interactive method including:
  • a progress bar component is provided in the video playback interface, and the progress bar component is used to display the playback progress of the target video played in the video playback interface; in response to the movement operation of the progress bar component , display the corresponding target text, wherein the movement operation is used to indicate the first video position of the target video, and the target text represents the video content of the target video at the first video position.
  • the progress bar component includes a first progress indicator and a second progress indicator, wherein the first progress indicator is used to control the preview position of the target video, and the second progress indicator
  • the progress indicator is used to control the playback progress of the target video; in response to the movement operation of the progress bar component, displaying the corresponding target text includes: in response to the movement operation of the first progress indicator, in the video In the video preview view of the playback interface, the Display the target text corresponding to the preview position.
  • the target text has text attributes, and the text attributes represent text styles and/or text special effects corresponding to the target text; the text attributes of the target text are determined by the first Video location determined.
  • the text attributes include at least one of the following: font type, font size, and font color.
  • displaying the corresponding target text includes: obtaining target text data corresponding to the target video, where the target text data includes the target video in at least two video positions.
  • Subtitle text the subtitle text is generated from the audio information of the target video at the corresponding video position; the subtitle text corresponding to the first video position is displayed as the target text.
  • obtaining the target text data corresponding to the target video includes: obtaining a subtitle text category corresponding to the target video, and the subtitle text category represents the subtitles in the text data.
  • the language used in the text based on the subtitle text category corresponding to the target video, the target text data corresponding to the target video is obtained.
  • a first language component is provided in the video playback interface, and the language component is used to display at least two types of subtitle text; the obtaining subtitles corresponding to the target video Text categories include: detecting the number of subtitle text categories corresponding to the target video; if the number of subtitle text types is greater than 1, setting the first language component to an available state; responding to the The setting operation determines the target subtitle text category corresponding to the target video.
  • obtaining target text data corresponding to the target video includes: searching for alternative text data corresponding to the target video; displaying at least two text data corresponding to the alternative text data.
  • Data identification in response to the selection operation for the target data identification, download the target text data corresponding to the target data identification.
  • a video content preview interactive device including:
  • a display module is used to display a video playback interface.
  • a progress bar component is provided in the video playback interface. The progress bar component is used to display the playback progress of the target video played in the video playback interface;
  • a processing module configured to display corresponding target text in response to a movement operation on the progress bar component, wherein the movement operation is used to indicate the first video position of the target video, and the target text characterizes the target.
  • the progress bar component includes a first progress indicator and a second progress indicator, wherein the first progress indicator is used to control the preview position of the target video, and the second progress indicator The progress indicator is used to control the playback progress of the target video; the processing module is specifically configured to: in response to the movement operation of the first progress indicator, display the video preview view of the video playback interface. The target text corresponding to the preview position.
  • the target text has text attributes, and the text attributes represent text styles and/or text special effects corresponding to the target text; the text attributes of the target text are determined by the first Video location determined.
  • the text attributes include at least one of the following: font type, font size, and font color.
  • the processing module when displaying the corresponding target text, is specifically configured to: obtain the target text data corresponding to the target video, and the target text data includes the location of the target video in the target text.
  • Subtitle text for at least two video positions the subtitle text is generated from the audio information of the target video at the corresponding video position;
  • the subtitle text corresponding to the first video position is displayed as the target text.
  • the processing module when obtaining the target text data corresponding to the target video, is specifically configured to: obtain the subtitle text category corresponding to the target video, and the subtitle text category represents the The language used by the subtitle text in the text data; based on the subtitle text category corresponding to the target video, obtain the target text data corresponding to the target video.
  • a first language component is provided in the video playback interface, and the language component is used to display at least two subtitle text categories; the processing module obtains the target video
  • the corresponding subtitle text category is specifically used to: detect the number of subtitle text categories corresponding to the target video; if the number of subtitle text types is greater than 1, set the first language component to an available state; respond to the The setting operation of the first language component determines the target subtitle text category corresponding to the target video.
  • the processing module when acquiring the target text data corresponding to the target video, is specifically configured to: search for alternative text data corresponding to the target video; display at least two of the The data identifier corresponding to the alternative text data; in response to the selection operation for the target data identifier, download the target text data corresponding to the target data identifier.
  • an electronic device including: a processor, and a memory communicatively connected to the processor;
  • the memory stores computer execution instructions
  • the processor executes computer execution instructions stored in the memory to implement the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • a computer-readable storage medium is provided.
  • Computer-executable instructions are stored in the computer-readable storage medium.
  • a processor executes the computer-executed instructions, Implement the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the video content preview interactive method described in the first aspect and various possible designs of the first aspect.
  • embodiments of the present disclosure provide a computer program that, when executed by a processor, implements the video content preview interactive method described in the first aspect and various possible designs of the first aspect.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

本公开实施例提供一种视频内容预览交互方法、装置、电子设备及存储介质,通过显示视频播放界面,视频播放界面内设置有进度条组件,进度条组件用于显示视频播放界面内播放的目标视频的播放进度;响应于针对进度条组件的移动操作,显示对应的目标文本,其中,移动操作用于指示目标视频的第一视频位置,目标文本表征目标视频在第一视频位置的视频内容。通过响应针对进度条组件的移动操作,以文本的形式来显示移动操作对应视频位置处的视频内容。

Description

视频内容预览交互方法、装置、电子设备及存储介质
相关申请交叉引用
本申请要求于2022年09月09日提交中国专利局、申请号为202211105139.3、发明名称为“视频内容预览交互方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用并入本文。
技术领域
本公开实施例涉及互联网技术领域,尤其涉及一种视频内容预览交互方法、装置、电子设备及存储介质。
背景技术
当前,在视频播放软件中,为了方便用户调节视频的播放进度,设置了视频跳转功能,以及对应的视频预览功能,即在视频调节视频播放进度的过程中,在视频未跳转之前,先解码并展示目标跳转位置的视频帧,从而使用户可以预览到该视频位置的视频内容,从而决定是否进行跳转。
发明内容
本公开实施例提供一种视频内容预览交互方法、装置、电子设备及存储介质。
第一方面,本公开实施例提供一种频内容预览交互方法,包括:
显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
第二方面,本公开实施例提供一种视频内容预览交互装置,包括:
显示模块,用于显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;
处理模块,用于响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
第三方面,本公开实施例提供一种电子设备,包括:
处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以 及第一方面各种可能的设计所述的视频内容预览交互方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
第六方面,本公开实施例提供一种计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
本实施例提供的视频内容预览交互方法、装置、电子设备及存储介质,通过显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。通过响应针对进度条组件的移动操作,以文本的形式来显示移动操作对应视频位置处的视频内容。
附图说明
为了更清楚地说明本公开实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本公开实施例提供的视频内容预览交互方法的一种应用场景图;
图2为本公开实施例提供的视频内容预览交互方法流程示意图一;
图3为本公开实施例提供的一种视频播放界面的示意图;
图4为图2所示实施例中步骤S102的具体实现步骤流程图;
图5为本公开实施例提供的一种目标文本数据的示意图;
图6为本公开实施例提供的一种进度组件的示意图;
图7为本公开实施例提供的视频内容预览交互方法的流程示意图二;
图8为本公开实施例提供的一种第二语言组件的操作示意图;
图9为图7所示实施例中步骤S204的具体实现步骤流程图;
图10为本公开实施例提供的一种第一语言组件的操作示意图;
图11为本公开实施例提供的一种文本属性的变化示意图;
图12为本公开实施例提供的视频内容预览交互装置的结构框图;
图13为本公开实施例提供的一种电子设备的结构示意图;
图14为本公开实施例提供的电子设备的硬件结构示意图。
具体实施方式
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
下面对本公开实施例的应用场景进行解释:
图1为本公开实施例提供的视频内容预览交互方法的一种应用场景图,本公开实施例提供的视频内容预览交互方法,可以应用于视频播放的应用场景。更具体地,可以应用于视频播放过程中进行视频预览的应用场景下。如图1所示,本公开实施例提供的方法,可以应用于终端设备,例如智能手机、平板电脑等。示例性地,终端设备内运行有用于播放视频的目标应用程序(Application,APP)。更具体地,该目标应用程序例如为短视频平台应用,目标应用程序通过连接短视频平台服务器,下载并播放的目标视频。目标应用程序具有视频播放界面,视频播放界面内设置有用于显示视频播放进行的进度条组件。在播放目标视频的过程中,用户通过拖动视频播放界面内的进度条组件,可以实现对目标视频的跳转播放(seek),也即播放进度的调节,在该过程中,通过视频预览窗口,可以对将要跳转的目标视频位置对应的视频内容进行预览。
现有技术中,为了方便用户在调节视频播放进度的过程中,能够得知目标视频播放位置(即跳转目标位置)处的视频内容,会通过展示预览窗,来显示视频播放位置处的视频帧,从而实现视频预览。然而,在实际应用过程中,视频帧只能表现出视频中的图像信息,而无法表现出视频中的语音信息,同时,由于视频帧的静态特征,也无法表现出视频播放位置对应的前文后信息,因此,现有技术中通过上述方案实现的视频预览,存在信息展示量少,无法充分展示视频内容的问题,影响视频内容的预览效果。本公开实施例提供一种视频内容预览交互方法以解决上述问题。
参考图2,图2为本公开实施例提供的视频内容预览交互方法流程示意图一。本实施例的方法可以应用在终端设备中,例如智能手机、个人电脑等,本实施例中,示例性地以带有触摸屏的智能手机作为执行主体,对本实施例提供的视频内容预览交互方法进行介绍。该视频内容预览交互方法包括:
步骤S101:显示视频播放界面,视频播放界面内设置有进度条组件,进度条组件用于显示视频播放界面内播放的目标视频的播放进度。
示例性地,视频播放界面是视频播放类的目标应用中,用于播放视频的界面。终端设备通过运行目标应用,调用对应的系统组件,来实现对视频播放界面的显示,具体过程不再赘述。其中,视频播放界面中除了包括基本的用于播放目标视频的视频播放组件,还包括用于显示目标视频的播放进度的进度条组件。其中,一种可能的实现方式中,进度条组件可以通过视频播放组件实现,即进度条组件是视频播放组件中用户显示视频播放进度的子组件。另一种可能的实现方式中,进度条组件可以是独立与视频播放组件的组件。进一步地,进度条组件除了可以显示视频播放界面中播放的视频的播放进度外,还可以响应操作指令,来控制视频播放进度。
图3为本公开实施例提供的一种视频播放界面的示意图,如图3所示,示例性地,视频播放界面中设置有视频播放组件和进度条组件,进度条组件设置于视频播放组件下方位置,当视频播放组件播放目标视频的过程中,一方面,进度条组件中的进度标识会随着目标视频的播放进度变化而移动。另一方面,当用户通过向触摸屏施加手势操作,对进度条组件进行操作时,例如拖拽进度条组件的进度标识,则会相应的对视频播放组件中播放的目标视频的播放进度进行控制,即跳转播放。上述视频播放组件和进度条组件的具体实现原理为现有技 术,此处不再赘述。
步骤S102:响应于针对进度条组件的移动操作,显示对应的目标文本,其中,移动操作用于指示目标视频的第一视频位置,目标文本表征目标视频在第一视频位置的视频内容。
进一步地,参考图3所示的视频播放界面的示意图,当用户通过触摸屏施加针对进度条组件的移动操作时,终端设备会检测该移动操作并生成对应的操作指令对进度条组件进行控制。其中,移动操作可以包括针对进度条组件的拖动操作或点击操作,具体地,拖动操作是针对进度条组件中的进度标识进行的非释放拖动手势,即始终处于按压(button down)状态下的拖动手势。当进度标识被拖动至进度条组件内的某个标识位置时,基于该标识位对应的时间戳,确定对应的第一视频位置。而点击操作是针对进度条组件内的某个标识位置的非释放点选操作,响应于该非释放点击操作,进度条组件内的进度标识可以被移动至该标识位置(或者进度标识不移动),进而基于该标识位置对应的时间戳,确定对应的第一视频位置。
进一步地,第一视频位置可以通过目标视频的播放时间戳表示。在得到第一视频位置后,基于对应的时间戳,从预设的目标视频对应的文本数据中(目标视频与对应的文本数据具有一致的时间戳),得到该时间戳对应的字幕文本,即目标文本。之后在视频播放界面的预设区域内,对该目标文本进行显示,其中,由于移动操作是一个延续性的操作(例如拖动进度标识),一次移动操作可以对应多个第一视频位置,因此,随着移动操作的持续,在视频播放界面内同步显示与各第一视频位置对应的目标文本。
在一种可能的实现方式中,如图4所示,示例性地,步骤S102的具体实现步骤包括:
步骤S1021:获取目标视频对应的目标文本数据,目标文本数据中包括目标视频在至少两个视频位置的字幕文本,字幕文本由目标视频在对应的视频位置的音频信息生成。
步骤S1022:将第一视频位置对应的字幕文本作为目标文本进行显示。
示例性地,目标视频对应的目标文本数据可以是预生成的数据,目标文本数据中包括目标视频在不同时间戳位置对应的字幕文本,字幕文本基于语音识别技术对目标视频进行处理后得到,更具体地,目标文本数据可以是终端设备通过访问服务器获得,或者是终端设备对目标视频进行处理后获得的,此处不再一一举例赘述。
图5为本公开实施例提供的一种目标文本数据的示意图,如图5所示,目标文本数据中包括N个字幕文本,其中,各字幕文本对应至少一个目标视频的视频帧,各字幕文本与目标视频的视频帧之间,通过时间戳来对齐,即参考图中所示,示例性地,字幕文本#1对应视频帧p1-p3,字幕文本#2对应视频帧p4-p7。在得到目标视频对应的目标文本数据后,基于第一视频位置所对应的时间戳,从目标文本数据中获得对应的字幕文本,将其作为目标文本进行显示。
本实施例中,通过移动操作对应的第一视频位置和独立的文本数据,利用统一的时间戳,得到对应的目标文本并进行显示,由于对文本数据的显示过程不需要进行视频解码,因此,相对于现有技术中基于视频帧进行视频内容预览的方案,资源消耗更小,因此目标文本的显示实时性也更好,操作流畅度和精细度更好。
另一方面,现有技术中基于视频帧进行视频内容预览的方案,由于视频帧之间时间间隔短,因此在响应移动操作时,即使两次移动操作连续,也会出现漏帧现象,无法实现视频内容的完整表达。而利用字幕文本进行视频内容预览的方式,由于字幕文本对应的时间跨度大, 通过连续的移动操作,可以实现针对相邻字幕文本的连续预览,展示连续的上下文信息。从而实现视频内容(在文本维度)的完整表达。
进一步地,针对上述移动操作,移动操作均为非释放性的操作,这是由于,进度条组件可以用于控制目标视频的播放进度,在释放该移动手势时(例如松开拖动进度标识的手势),基于释放该移动手势时的视频位置,会触发对应跳转播放。针对此情况,在另一种可能的实现方式中,进度条组件包括第一进度标识和第二进度标识,其中,第一进度标识用于控制目标视频的预览位置,第二进度标识用于控制目标视频的播放进度。响应于针对进度条组件的移动操作,显示对应的目标文本的具体实现方式为:响应于针对第一进度标识的移动操作,在视频播放界面的视频预览视图中,显示预览位置对应的目标文本。
图6为本公开实施例提供的一种进度组件的示意图,如图6所示,进度条组件包括第一进度标识和第二进度标识,其中,示例性地,在正常播放目标视频的情况下,视频播放界面内会基于目标视频的播放时间戳,同步播放目标视频以及对应的文本字幕,目标视频以及对应的文本字幕的时间戳是一致的。示例性地,文本字幕可以是预先生成的,用于描述表征视频内容的文本。当用户对针对第二进度标识进行操作,例如拖动或者通过点击的方式(图中示为拖动第二进度标识),将第二进度标识移动至视频位置A时,可以实现对目标视频的播放进行控制,即跳转播放,该过程为现有技术中实现视频跳转播放的常规手段,不再赘述。而当用户对针对第一进度标识进行操作,例如拖拽或者通过点击的方式(图中示为拖动第一进度标识),将第一进度标识移动至视频位置B(第一视频位置)时,视频播放界面内会显示该第一视频位置对应的文本,即目标文本,可选地,该目标文本显示在视频播放界面的视频预览视图中。此时,由于控制视频播放进度的第二进度标识未被移动,因此,第二视频播放界面内的目标视频以及对应的文本字幕仍正常播放,但同时,用户可以基于视频预览视图,预览到第一视频位置(即预览位置)处的文本字幕。
在进度条组件包括一个进度标识的实现方式中,在用户仅需要进行预览,而不需要进行跳转的情况下,当针对该进度标识的移动操作结束后,存在进度标识无法手动还原至视频当前播放进度对应的标识位置的问题,导致正常播放的目标视频发生非预期的跳转播放。而本实施例中,通过设置分别用于控制预览位置和播放进度的第一进度标识和第二进度标识,实现了视频播放进度控制和视频内容预览的操作解耦,在通过移动操作对视频内容进行预览,显示目标文本时,由于不涉及对第二进度标识的操作,因此可以不影响目标视频的正常播放,避免在移动操作结束后目标视频出现的非预期的跳转播放,提高视频播放流畅度。
在本实施例中,通过显示视频播放界面,视频播放界面内设置有进度条组件,进度条组件用于显示视频播放界面内播放的目标视频的播放进度;响应于针对进度条组件的移动操作,显示对应的目标文本,其中,移动操作用于指示目标视频的第一视频位置,目标文本表征目标视频在第一视频位置的视频内容。通过响应针对进度条组件的移动操作,以文本的形式来显示移动操作对应视频位置处的视频内容,实现针对目标视频的文本预览,从而有效提高视频的信息展示量,解决无法充分展示视频内容的问题。
参考图7,图7为本公开实施例提供的视频内容预览交互方法的流程示意图二。本实施例在图2所示实施例的基础上,进一步对步骤S102的实现过程进行细化,该视频内容预览交互方法包括:
步骤S201:显示视频播放界面,视频播放界面内设置有进度条组件,进度条组件用于显示视频播放界面内播放的目标视频的播放进度。
步骤S202:搜索目标视频对应的备选文本数据,并显示至少两个备选文本数据对应的数据标识。
步骤S203:响应于针对目标数据标识的选取操作,下载目标数据标识对应的第一目标文本数据。
示例性地,结合上文实施例中对文本数据的介绍,文本数据为针对目标视频的描述性文本,与目标视频的时间戳相对应,用于表征对应时间戳位置处,目标视频的内容。其中,文本数据由多个字幕文本构成,字幕文本可以是由针对目标视频的音频信息进行解析和识别后生成的。一种可能的实现方式中,文本数据是对目标视频的主观性描述文本,例如,用户上传的视频弹幕、视频解说字幕等。在此情况下,文本数据可以是基于不同的算法得到,或者由不同的用户制作的。以及,目标视频可以对应多个备选文本数据,该备选文本数据可以存储在与目标应用通信的服务器(即目标应用的服务端)内,在播放目标视频开始前或播放过程中,终端设备通过访问服务器,针对目标视频进行文本数据搜索,可以得到目标视频对应的备选文本数据。之后,终端设备可以将备选文本数据对应的数据标识显示在应用程序的界面中,例如,显示在视频播放界面,之后,基于用户的选择操作,从多个备选文本数据中,选择一个作为第一目标文本数据。并基于该用户选择的第一目标文本数据,进行后续的目标文本显示。
图8为本公开实施例提供的一种第二语言组件的操作示意图,如图8所示,示例性地,在视频播放界面中,设置有第二语言组件,该第二语言组件用于在被触发后显示针对目标视频的备选文本数据的搜索结果。参考图8所示,目标视频为一段游戏视频,对应的备选文本数据是针对该游戏视频的文字解说。通过触发第二语言组件后,在对应的显示视图中,显示出目标视频对应的备选文本数据的数据标识,更具体地,数据标识为字符串,其中包括排序编号、目标视频编号和介绍信息。示例性地,例如排序编号为#1的数据标识,对应的目标视频标号为No.0001,对应的介绍信息为“A对战B-user_1解说”;例如排序编号为#2的数据标识,对应的目标视频标号为No.0001,对应的介绍信息为“A对战B-user_2解说”。之后响应于选取操作,选取目标数据标识(排序编号为#2的数据标识),并在第二语言组件中显示选取结果,图中示为显示目标数据标识对应的排序标号#2。之后,通过访问服务器,获得对应的第一目标文本数据并进行加载。参考图8所示,基于第二语言组件搜索并显示的备选文本数据,可以实现针对文本数据的选择,用户基于个人喜好,可以从中选出感兴趣的第一目标文本数据,并在后续步骤中,基于该第一目标文本数据,显示目标文本而进行视频内预览,从而提高视频内容预览的灵活性和多样性,满足用户的个性化需求。
步骤S204:获取目标视频对应的字幕文本类别,字幕文本类别表征文本数据中的字幕文本所使用的语言。
步骤S205:基于目标视频对应的字幕文本类别,从第一目标文本数据中获取字幕文本类别对应的第二目标文本数据。
进一步地,在确定第一目标文本数据后,针对第一目标文本数据内的字幕文本,目标应用可以实现基于不用语言的显示,即目标视频可以对应多种字幕文本类型。示例性地,第一 目标文本数据中,包括第一文本数据、第二文本数据和第三文本数据,其中,第一文本数据是基于中文的文本,第二文本数据是基于英文的文本,第三文本数据是基于俄文的文本。第一文本数据、第二文本数据和第三文本数据表征的语义是一致的,但语言不同。更具体地,例如,第二文本数据和第三文本数据可以是基于第一文本数据进行翻译后得到的。
示例性地,通过展示第一文本数据中对应的基于不同语言的子数据(例如上述实施例中的第一文本数据、第二文本数据和第三文本数据)的标识,来显示对应的字幕文本类别。之后,基于用户的设置操作,从多个字幕文本类别中,选取一个目标类别,并将该目标类别对应的文本数据,确定第二目标文本数据。
示例性地,视频播放界面内设置有第一语言组件,语言组件用于展示至少两种字幕文本类别。如图9所示,步骤S204的具体实现步骤包括:
步骤S2041:检测目标视频对应的字幕文本类别的数量;
步骤S2042:若字幕文本类型的数量大于1,则将第一语言组件设置为可用状态。
步骤S2043:响应于针对第一语言组件的设置操作,确定目标视频对应的目标字幕文本类别。
图10为本公开实施例提供的一种第一语言组件的操作示意图,结合图10对上述过程进行介绍,如图10所示,示例性地,在通过第二语言组件确定第一目标文本数据(对应排序编号#2)后,检测第一目标文本数据中,基于不同语言的子文本数据的数量,即检测目标视频对应的字幕文本类别的数量,若数量大于1,说明可以供用户选择其中感兴趣的字幕文本类别,此时,将第一语言组件设置为可用状态,更具体地,可用状态例如包括可见状态、可点击状态(图中示为第一语言组件内显示“可选”字样);相反的,若数量等于1,即第一目标文本数据中仅包括一种语言的文本数据。将第一语言组件设置为不可用状态,例如不可见,不可点击。
之后,参考如图10所示,在第一语言组件为可用状态的情况下,触发第一语言组件,在对应的视图页面内,展示可用于的字幕文本类别,例如图10中的“简体中文”和“英语”。包括之后响应于针对第一语言组件施加的设置操作,例如点选操作,选择第一语言组件中的多个字幕文本类别中的一个,作为目标字幕文本类别(即选取目标字幕文本类别),后续将该目标字幕文本类别对应的文本数据,作为第二目标文本数据,进行字幕显示。
本实施例中,通过设置第一语言组件,进一步地对字幕文本的语言进行选择,从而在后续显示目标文本,实现视频内容预览的过程中,能够使目标文本以特定的语言来显示,提高视频内容预览的灵活性和展示信息量,满足用户的多样化预览需求。
需要说明的是,本实施例中,步骤S202-S203是针对目标视频的备选文本数据进行选择的步骤,步骤S204-S205是针对目标视频的文本类别进行选择的步骤,上述两个步骤可以以本实施例中的方式,依次执行;在本公开所提供的其他实施例中,也可以单独执行,省略其一,例如,选择目标视频的备选文本数据,得到第一目标文本数据后,基于直接基于第一目标文本数据执行后续步骤(仅执行步骤S202-S203);或者,针对目标视频的备选文本数据仅有一组,因此,可以基于唯一的一组备选文本数据,针对文本类别进行选择。(仅执行步骤S204-S205)。上述方式中具体步骤的实现,与之前针对步骤S202-S205的介绍类似,此处不再赘述。
步骤S206:响应于针对进度条组件的移动操作,确定第一视频位置。
步骤S207:基于第一视频位置,确定目标文本属性,文本属性表征文本对应的文本样式和/或文本特效。
步骤S208:将目标文本数据中第一视频位置对应的字幕文本确定为目标文本,并基于目标文本属性对目标文本进行渲染和显示。
示例性地,文本属性包括以下至少一种:字体类型、字体尺寸、字体颜色。
示例性地,之后,终端设备检测用户输入的移动操作,并基于该移动操作,确定一个对应的第一视频位置,若移动操作为持续操作(例如拖动操作),则该第一视频位置为一个瞬态操作对应的视频位置,移动操作的具体实现方式以及相应的相应响应在图2所示实施例中已进行详细介绍,此处不再赘述。
进一步地,在不同的第一视频位置时,对应的目标文本具有对应的文本属性。也即,随着第一视频位置的改变,所显示的目标文本的样式、特效也随之改变。
图11为本公开实施例提供的一种文本属性的变化示意图,如图11所示,基于移动操作,当进度标识中的第一进度标识(可参考图6所示实施例中相关介绍)被移动至第一视频位置(时间戳t1)时,目标文本具有第一文本属性,如图所示,目标文本对应的字体为斜体;当进度标识中的第一进度标识被移动至第二视频位置(时间戳t2)时,目标文本具有第二文本属性,如图所示,目标文本对应的字体为加粗,且目标文本具有文本特效(可以基于贴图渲染实现)。其中,视频位置与文本属性直接的映射关系可以是预设的,可以通过存储在第一目标文本数据或第二目标文本数据中的配置数据确定,此处不再赘述。
本实施例中,通过基于视频位置确定对应的文本数据,并基于不同的文本数据对目标文本进行渲染和显示,实现了目标文本的字体和特效随移动操作的变化而变化,从而在通过目标文本对视频内容进行预览的过程中,对目标视频中的重要内容进行突出显示,提高视频预览的引导效果和信息展示的充分性。
本实施例中,步骤S201的实现方式与本公开图2所示实施例中的步骤S101的实现方式相同,在此不再一一赘述。
对应于上文实施例的视频内容预览交互方法,图12为本公开实施例提供的视频内容预览交互装置的结构框图。为了便于说明,仅示出了与本公开实施例相关的部分。参照图12,视频内容预览交互装置3,包括:
显示模块31,用于显示视频播放界面,视频播放界面内设置有进度条组件,进度条组件用于显示视频播放界面内播放的目标视频的播放进度;
处理模块32,用于响应于针对进度条组件的移动操作,显示对应的目标文本,其中,移动操作用于指示目标视频的第一视频位置,目标文本表征目标视频在第一视频位置的视频内容。
在本公开的一个实施例中,进度条组件包括第一进度标识和第二进度标识,其中,第一进度标识用于控制目标视频的预览位置,第二进度标识用于控制目标视频的播放进度;处理模块32,具体用于:响应于针对第一进度标识的移动操作,在视频播放界面的视频预览视图中,显示预览位置对应的目标文本。
在本公开的一个实施例中,目标文本具有文本属性,文本属性表征目标文本对应的文本 样式和/或文本特效;目标文本的文本属性由第一视频位置确定。
在本公开的一个实施例中,文本属性包括以下至少一种:字体类型、字体尺寸、字体颜色。
在本公开的一个实施例中,处理模块32在显示对应的目标文本时,具体用于:获取目标视频对应的目标文本数据,目标文本数据中包括目标视频在至少两个视频位置的字幕文本,字幕文本由目标视频在对应的视频位置的音频信息生成;将第一视频位置对应的字幕文本作为目标文本进行显示。
在本公开的一个实施例中,处理模块32在获取目标视频对应的目标文本数据时,具体用于:获取目标视频对应的字幕文本类别,字幕文本类别表征文本数据中的字幕文本所使用的语言;基于目标视频对应的字幕文本类别,获取目标视频对应的目标文本数据。
在本公开的一个实施例中,视频播放界面内设置有第一语言组件,语言组件用于展示至少两种字幕文本类别;处理模块32在获取目标视频对应的字幕文本类别时,具体用于:检测目标视频对应的字幕文本类别的数量;若字幕文本类型的数量大于1,则将第一语言组件设置为可用状态;响应于针对第一语言组件的设置操作,确定目标视频对应的目标字幕文本类别。
在本公开的一个实施例中,处理模块32在获取目标视频对应的目标文本数据时,具体用于:搜索目标视频对应的备选文本数据;显示至少两个备选文本数据对应的数据标识;响应于针对目标数据标识的选取操作,下载目标数据标识对应的目标文本数据。
其中,显示模块31和处理模块32连接。本实施例提供的视频内容预览交互装置3可以执行上述方法实施例的技术方案,其实现原理和技术效果类似,本实施例此处不再赘述。
图13为本公开实施例提供的一种电子设备的结构示意图,如图13所示,该电子设备4包括:
处理器41,以及与处理器41通信连接的存储器42;
存储器42存储计算机执行指令;
处理器41执行存储器42存储的计算机执行指令,以实现如图2-图11所示实施例中的视频内容预览交互方法。
其中,可选地,处理器41和存储器42通过总线43连接。
相关说明可以对应参见图2-图11所对应的实施例中的步骤所对应的相关描述和效果进行理解,此处不做过多赘述。
参考图14,其示出了适于用来实现本公开实施例的电子设备900的结构示意图,该电子设备900可以为终端设备或服务器。其中,终端设备可以包括但不限于诸如移动电话、笔记本电脑、数字广播接收器、个人数字助理(Personal Digital Assistant,PDA)、平板电脑(Portable Android Device,PAD)、便携式多媒体播放器(Portable Media Player,PMP)、车载终端(例如车载导航终端)等等的移动终端以及诸如数字电视(Television,TV)、台式计算机等等的固定终端。图14示出的电子设备仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
如图14所示,电子设备900可以包括处理装置(例如中央处理器、图形处理器等)901,其可以根据存储在只读存储器(Read Only Memory,ROM)902中的程序或者从存储装置908加载到随机访问存储器(Random Access Memory,RAM)903中的程序而执行各种适当的动 作和处理。在RAM 903中,还存储有电子设备900操作所需的各种程序和数据。处理装置901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(Input/Output,I/O)接口905也连接至总线904。
通常,以下装置可以连接至I/O接口905:包括例如触摸屏、触摸板、键盘、鼠标、摄像头、麦克风、加速度计、陀螺仪等的输入装置906;包括例如液晶显示器(Liquid Crystal Display,LCD)、扬声器、振动器等的输出装置907;包括例如磁带、硬盘等的存储装置908;以及通信装置909。通信装置909可以允许电子设备900与其他设备进行无线或有线通信以交换数据。虽然图14示出了具有各种装置的电子设备900,但是应理解的是,并不要求实施或具备所有示出的装置。可以替代地实施或具备更多或更少的装置。
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信装置909从网络上被下载和安装,或者从存储装置908被安装,或者从ROM 902被安装。在该计算机程序被处理装置901执行时,执行本公开实施例的方法中限定的上述功能。
需要说明的是,本公开上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)或闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本公开中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、射频(Radio Frequency,RF)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备执行上述实施例所示的方法。
可以以一种或多种程序设计语言或其组合来编写用于执行本公开的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用 户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(Local Area Network,LAN)或广域网(Wide Area Network,WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本公开各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。
本文中以上描述的功能可以至少部分地由一个或多个硬件逻辑部件来执行。例如,非限制性地,可以使用的示范类型的硬件逻辑部件包括:现场可编程门阵列(Field-Programmable Gate Array,FPGA)、专用集成电路(Application Specific Integrated Circuit,ASIC)、专用标准产品(Application Specific Standard Parts,ASSP)、片上系统(System On Chip,SOC)、复杂可编程逻辑设备(Complex Programmable Logic Device,CPLD)等等。
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例可以包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。
第一方面,根据本公开的一个或多个实施例,提供了一种视频内容预览交互方法,包括:
显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
根据本公开的一个或多个实施例,所述进度条组件包括第一进度标识和第二进度标识,其中,所述第一进度标识用于控制所述目标视频的预览位置,所述第二进度标识用于控制所述目标视频的播放进度;响应于针对所述进度条组件的移动操作,显示对应的目标文本,包括:响应于针对所述第一进度标识的移动操作,在所述视频播放界面的视频预览视图中,显 示所述预览位置对应的目标文本。
根据本公开的一个或多个实施例,所述目标文本具有文本属性,所述文本属性表征所述目标文本对应的文本样式和/或文本特效;所述目标文本的文本属性由所述第一视频位置确定。
根据本公开的一个或多个实施例,所述文本属性包括以下至少一种:字体类型、字体尺寸、字体颜色。
根据本公开的一个或多个实施例,所述显示对应的目标文本,包括:获取所述目标视频对应的目标文本数据,所述目标文本数据中包括所述目标视频在至少两个视频位置的字幕文本,所述字幕文本由所述目标视频在对应的视频位置的音频信息生成;将所述第一视频位置对应的字幕文本作为所述目标文本进行显示。
根据本公开的一个或多个实施例,所述获取所述目标视频对应的目标文本数据,包括:获取所述目标视频对应的字幕文本类别,所述字幕文本类别表征所述文本数据中的字幕文本所使用的语言;基于所述目标视频对应的字幕文本类别,获取所述目标视频对应的目标文本数据。
根据本公开的一个或多个实施例,所述视频播放界面内设置有第一语言组件,所述语言组件用于展示至少两种所述字幕文本类别;所述获取所述目标视频对应的字幕文本类别,包括:检测所述目标视频对应的字幕文本类别的数量;若字幕文本类型的数量大于1,则将所述第一语言组件设置为可用状态;响应于针对所述第一语言组件的设置操作,确定所述目标视频对应的目标字幕文本类别。
根据本公开的一个或多个实施例,所述获取所述目标视频对应的目标文本数据,包括:搜索所述目标视频对应的备选文本数据;显示至少两个所述备选文本数据对应的数据标识;响应于针对目标数据标识的选取操作,下载所述目标数据标识对应的目标文本数据。
第二方面,根据本公开的一个或多个实施例,提供了一种视频内容预览交互装置,包括:
显示模块,用于显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;
处理模块,用于响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
根据本公开的一个或多个实施例,所述进度条组件包括第一进度标识和第二进度标识,其中,所述第一进度标识用于控制所述目标视频的预览位置,所述第二进度标识用于控制所述目标视频的播放进度;所述处理模块,具体用于:响应于针对所述第一进度标识的移动操作,在所述视频播放界面的视频预览视图中,显示所述预览位置对应的目标文本。
根据本公开的一个或多个实施例,所述目标文本具有文本属性,所述文本属性表征所述目标文本对应的文本样式和/或文本特效;所述目标文本的文本属性由所述第一视频位置确定。
根据本公开的一个或多个实施例,所述文本属性包括以下至少一种:字体类型、字体尺寸、字体颜色。
根据本公开的一个或多个实施例,所述处理模块在显示对应的目标文本时,具体用于:获取所述目标视频对应的目标文本数据,所述目标文本数据中包括所述目标视频在至少两个视频位置的字幕文本,所述字幕文本由所述目标视频在对应的视频位置的音频信息生成;将 所述第一视频位置对应的字幕文本作为所述目标文本进行显示。
根据本公开的一个或多个实施例,所述处理模块在获取所述目标视频对应的目标文本数据时,具体用于:获取所述目标视频对应的字幕文本类别,所述字幕文本类别表征所述文本数据中的字幕文本所使用的语言;基于所述目标视频对应的字幕文本类别,获取所述目标视频对应的目标文本数据。
根据本公开的一个或多个实施例,所述视频播放界面内设置有第一语言组件,所述语言组件用于展示至少两种所述字幕文本类别;所述处理模块在获取所述目标视频对应的字幕文本类别时,具体用于:检测所述目标视频对应的字幕文本类别的数量;若字幕文本类型的数量大于1,则将所述第一语言组件设置为可用状态;响应于针对所述第一语言组件的设置操作,确定所述目标视频对应的目标字幕文本类别。
根据本公开的一个或多个实施例,所述处理模块在获取所述目标视频对应的目标文本数据时,具体用于:搜索所述目标视频对应的备选文本数据;显示至少两个所述备选文本数据对应的数据标识;响应于针对目标数据标识的选取操作,下载所述目标数据标识对应的目标文本数据。
第三方面,根据本公开的一个或多个实施例,提供了一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
所述存储器存储计算机执行指令;
所述处理器执行所述存储器存储的计算机执行指令,以实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
第四方面,根据本公开的一个或多个实施例,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
第五方面,本公开实施例提供一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
第六方面,本公开实施例提供一种计算机程序,该计算机程序被处理器执行时实现如上第一方面以及第一方面各种可能的设计所述的视频内容预览交互方法。
以上描述仅为本公开的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本公开中所涉及的公开范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述公开构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本公开中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。
此外,虽然采用特定次序描绘了各操作,但是这不应当理解为要求这些操作以所示出的特定次序或以顺序次序执行。在一定环境下,多任务和并行处理可能是有利的。同样地,虽然在上面论述中包含了若干具体实现细节,但是这些不应当被解释为对本公开的范围的限制。在单独的实施例的上下文中描述的某些特征还可以组合地实现在单个实施例中。相反地,在单个实施例的上下文中描述的各种特征也可以单独地或以任何合适的子组合的方式实现在多个实施例中。
尽管已经采用特定于结构特征和/或方法逻辑动作的语言描述了本主题,但是应当理解所附权利要求书中所限定的主题未必局限于上面描述的特定特征或动作。相反,上面所描述的特定特征和动作仅仅是实现权利要求书的示例形式。

Claims (13)

  1. 一种视频内容预览交互方法,包括:
    显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;
    响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
  2. 根据权利要求1所述的方法,其中,所述进度条组件包括第一进度标识和第二进度标识,其中,所述第一进度标识用于控制所述目标视频的预览位置,所述第二进度标识用于控制所述目标视频的播放进度;
    响应于针对所述进度条组件的移动操作,显示对应的目标文本,包括:
    响应于针对所述第一进度标识的移动操作,在所述视频播放界面的视频预览视图中,显示所述预览位置对应的目标文本。
  3. 根据权利要求1或2所述的方法,其中,所述目标文本具有文本属性,所述文本属性表征所述目标文本对应的文本样式和/或文本特效;
    所述目标文本的文本属性由所述第一视频位置确定。
  4. 根据权利要求3所述的方法,其中,所述文本属性包括以下至少一种:
    字体类型、字体尺寸、字体颜色。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述显示对应的目标文本,包括:
    获取所述目标视频对应的目标文本数据,所述目标文本数据中包括所述目标视频在至少两个视频位置的字幕文本,所述字幕文本由所述目标视频在对应的视频位置的音频信息生成;
    将所述第一视频位置对应的字幕文本作为所述目标文本进行显示。
  6. 根据权利要求5所述的方法,其中,所述获取所述目标视频对应的目标文本数据,包括:
    获取所述目标视频对应的字幕文本类别,所述字幕文本类别表征所述文本数据中的字幕文本所使用的语言;
    基于所述目标视频对应的字幕文本类别,获取所述目标视频对应的目标文本数据。
  7. 根据权利要求6所述的方法,其中,所述视频播放界面内设置有第一语言组件,所述语言组件用于展示至少两种所述字幕文本类别;
    所述获取所述目标视频对应的字幕文本类别,包括:
    检测所述目标视频对应的字幕文本类别的数量;
    若字幕文本类型的数量大于1,则将所述第一语言组件设置为可用状态;
    响应于针对所述第一语言组件的设置操作,确定所述目标视频对应的目标字幕文本类别。
  8. 根据权利要求5所述的方法,其中,所述获取所述目标视频对应的目标文本数据,包括:
    搜索所述目标视频对应的备选文本数据;
    显示至少两个所述备选文本数据对应的数据标识;
    响应于针对目标数据标识的选取操作,下载所述目标数据标识对应的目标文本数据。
  9. 一种视频内容预览交互装置,包括:
    显示模块,用于显示视频播放界面,所述视频播放界面内设置有进度条组件,所述进度条组件用于显示所述视频播放界面内播放的目标视频的播放进度;
    处理模块,用于响应于针对所述进度条组件的移动操作,显示对应的目标文本,其中,所述移动操作用于指示所述目标视频的第一视频位置,所述目标文本表征所述目标视频在所述第一视频位置的视频内容。
  10. 一种电子设备,包括:处理器,以及与所述处理器通信连接的存储器;
    所述存储器存储计算机执行指令;
    所述处理器执行所述存储器存储的计算机执行指令,以实现如权利要求1至8中任一项所述的方法。
  11. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如权利要求1至8任一项所述的视频内容预览交互方法。
  12. 一种计算机程序产品,包括计算机程序,该计算机程序被处理器执行时实现权利要求1至8中任一项所述的视频内容预览交互方法。
  13. 一种计算机程序,所述计算机程序用于实现如权利要求1至8中任一项所述的视频内容预览交互方法。
PCT/CN2023/116620 2022-09-09 2023-09-01 视频内容预览交互方法、装置、电子设备及存储介质 WO2024051612A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211105139.3 2022-09-09
CN202211105139.3A CN117714766A (zh) 2022-09-09 2022-09-09 视频内容预览交互方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2024051612A1 true WO2024051612A1 (zh) 2024-03-14

Family

ID=90140850

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/116620 WO2024051612A1 (zh) 2022-09-09 2023-09-01 视频内容预览交互方法、装置、电子设备及存储介质

Country Status (3)

Country Link
US (1) US20240089542A1 (zh)
CN (1) CN117714766A (zh)
WO (1) WO2024051612A1 (zh)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019236727A1 (en) * 2018-06-06 2019-12-12 Home Box Office, Inc. Editing timed-text elements
CN111212317A (zh) * 2020-01-15 2020-05-29 清华大学 一种视频播放的跳转导航方法
CN111541859A (zh) * 2020-04-02 2020-08-14 视联动力信息技术股份有限公司 视频会议处理方法、装置、电子设备及存储介质
CN111988663A (zh) * 2020-08-28 2020-11-24 北京百度网讯科技有限公司 视频播放节点的定位方法、装置、设备以及存储介质
CN112135181A (zh) * 2020-09-22 2020-12-25 维沃移动通信有限公司 视频预览方法、装置及电子设备
CN112231498A (zh) * 2020-09-29 2021-01-15 北京字跳网络技术有限公司 互动信息处理方法、装置、设备及介质
WO2021180155A1 (zh) * 2020-03-11 2021-09-16 阿里巴巴集团控股有限公司 对图片、视频进行语音标记的方法及装置
CN113613082A (zh) * 2021-06-30 2021-11-05 北京达佳互联信息技术有限公司 一种视频播放方法、装置、电子设备及存储介质

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019236727A1 (en) * 2018-06-06 2019-12-12 Home Box Office, Inc. Editing timed-text elements
CN111212317A (zh) * 2020-01-15 2020-05-29 清华大学 一种视频播放的跳转导航方法
WO2021180155A1 (zh) * 2020-03-11 2021-09-16 阿里巴巴集团控股有限公司 对图片、视频进行语音标记的方法及装置
CN111541859A (zh) * 2020-04-02 2020-08-14 视联动力信息技术股份有限公司 视频会议处理方法、装置、电子设备及存储介质
CN111988663A (zh) * 2020-08-28 2020-11-24 北京百度网讯科技有限公司 视频播放节点的定位方法、装置、设备以及存储介质
CN112135181A (zh) * 2020-09-22 2020-12-25 维沃移动通信有限公司 视频预览方法、装置及电子设备
CN112231498A (zh) * 2020-09-29 2021-01-15 北京字跳网络技术有限公司 互动信息处理方法、装置、设备及介质
CN113613082A (zh) * 2021-06-30 2021-11-05 北京达佳互联信息技术有限公司 一种视频播放方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
US20240089542A1 (en) 2024-03-14
CN117714766A (zh) 2024-03-15

Similar Documents

Publication Publication Date Title
US11206444B2 (en) Method and device for video previewing, electronic equipment, and computer-readable storage medium
US11693531B2 (en) Page display position jump method and apparatus, terminal device, and storage medium
WO2022042593A1 (zh) 字幕编辑方法、装置和电子设备
WO2020133373A1 (zh) 视频处理方法、装置、电子设备及计算机可读存储介质
KR101454950B1 (ko) 스트리밍 미디어에 연관된 딥 태그 클라우드
US20230300403A1 (en) Video processing method and apparatus, device, and storage medium
US20220310125A1 (en) Method and apparatus for video production, device and storage medium
CN112347273A (zh) 音频播放方法、装置、电子设备及存储介质
WO2022007722A1 (zh) 显示方法、装置、设备及存储介质
CN110784753B (zh) 互动视频播放方法及装置、存储介质、电子设备
WO2021114979A1 (zh) 视频页面显示方法、装置、电子设备和计算机可读介质
WO2023185640A1 (zh) 页面显示方法、装置、设备、计算机可读存储介质及产品
US20220261329A1 (en) Easter egg presentation method and apparatus, electronic device and computer-readable storage medium
US20220321936A1 (en) Information push method, apparatus, electronic device and storage medium
WO2023284437A1 (zh) 媒体文件处理方法、装置、设备、可读存储介质及产品
WO2022193867A1 (zh) 一种视频处理方法、装置、电子设备及存储介质
WO2022257797A1 (zh) 目标内容的显示方法、装置、设备、可读存储介质及产品
CN112165652B (zh) 视频处理方法、装置、设备及计算机可读存储介质
CN108491178B (zh) 信息浏览方法、浏览器和服务器
WO2022179033A1 (zh) 音乐播放方法及设备
WO2024082806A1 (zh) 媒体内容的推荐方法及设备
WO2024046360A1 (zh) 媒体内容处理方法、装置、设备、可读存储介质及产品
US20220215482A1 (en) User information processing method, apparatus, electronic device, and computer storage medium
WO2020207083A1 (zh) 信息分享的方法、装置、电子设备及计算机可读存储介质
WO2023151682A1 (zh) 应用启动方法、装置、电子设备、存储介质和程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23862306

Country of ref document: EP

Kind code of ref document: A1