CN108174308B - Video playing method, video playing device, storage medium and electronic equipment - Google Patents

Video playing method, video playing device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108174308B
CN108174308B CN201711464308.1A CN201711464308A CN108174308B CN 108174308 B CN108174308 B CN 108174308B CN 201711464308 A CN201711464308 A CN 201711464308A CN 108174308 B CN108174308 B CN 108174308B
Authority
CN
China
Prior art keywords
playing
video
subtitle
rule
preset
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
CN201711464308.1A
Other languages
Chinese (zh)
Other versions
CN108174308A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711464308.1A priority Critical patent/CN108174308B/en
Publication of CN108174308A publication Critical patent/CN108174308A/en
Application granted granted Critical
Publication of CN108174308B publication Critical patent/CN108174308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles
    • 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/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • H04N21/44222Analytics of user selections, e.g. selection of programs or purchase activity
    • 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/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/466Learning process for intelligent management, e.g. learning user preferences for recommending movies
    • H04N21/4667Processing of monitored end-user data, e.g. trend analysis based on the log file of viewer selections
    • 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/485End-user interface for client configuration
    • 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/485End-user interface for client configuration
    • H04N21/4856End-user interface for client configuration for language selection, e.g. for the menu or subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The embodiment of the application discloses a video playing method, a video playing device, a storage medium and electronic equipment. The video playing method comprises the following steps: acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information; generating a subtitle playing rule according to the historical playing information; judging whether the caption playing rule is matched with a preset playing rule or not; if the caption playing rule is matched with the preset playing rule, controlling the video and the caption of the target user to be played simultaneously according to the caption playing rule matched with the preset playing rule; and if the caption playing rule is not matched with the preset playing rule, controlling the video of the target user to play without the caption according to the caption playing rule which is not matched with the preset playing rule. The embodiment of the application can improve the intellectualization of playing the subtitles.

Description

Video playing method, video playing device, storage medium and electronic equipment
Technical Field
The present application belongs to the field of communication technologies, and in particular, to a video playing method, a video playing apparatus, a storage medium, and an electronic device.
Background
With the development of electronic technology, electronic devices such as smart phones are becoming more and more popular. During use of the electronic device, the player may be used to view the video. Often, in the process of playing video, subtitles are played together, and the subtitles often block an effective display area of a player.
Disclosure of Invention
The application provides a video playing method, a video playing device, a storage medium and an electronic device, which can improve the intellectualization of playing subtitles.
In a first aspect, an embodiment of the present application provides a video playing method, which is applied to an electronic device, and includes:
acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information;
generating a subtitle playing rule according to the historical playing information;
judging whether the caption playing rule is matched with a preset playing rule or not;
if the subtitle playing rule is matched with a preset playing rule, controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule;
and if the subtitle playing rule is not matched with the preset playing rule, controlling the video of the target user to play without subtitles according to the subtitle playing rule which is not matched with the preset playing rule.
In a second aspect, an embodiment of the present application provides a video playing apparatus, which is applied to an electronic device, and includes:
the acquisition module is used for acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information;
the generating module is used for generating a subtitle playing rule according to the historical playing information;
the judging module is used for judging whether the subtitle playing rule is matched with a preset playing rule or not;
the control module is used for controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule if the subtitle playing rule is matched with the preset playing rule;
the control module is further configured to control the video of the target user to perform subtitle-free playing according to the subtitle playing rule that is not matched with the preset playing rule if the subtitle playing rule is not matched with the preset playing rule.
In a third aspect, an embodiment of the present application provides a storage medium, where the storage medium includes a computer program, and when the computer program runs on a computer, the computer is caused to execute the video playing method described above.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, which are electrically connected to each other, where the memory stores a computer program, and the processor is configured to execute the video playing method described above by calling the computer program.
According to the video playing method, the video playing device, the storage medium and the electronic equipment, the video of the target user is controlled to be played with the subtitles or played without the subtitles according to the subtitle playing rules, whether the subtitles are played or not can be controlled according to the habit of the user, the subtitles are played intelligently, and the shielding of the subtitles on the effective display area of the player is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments will be briefly introduced below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
Fig. 1 is a schematic view of an application scenario of a video playing method according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a video playing method according to an embodiment of the present application.
Fig. 3 is a schematic view of another scene of a video playing method according to an embodiment of the present application.
Fig. 4 is another schematic flow chart of a video playing method according to an embodiment of the present application.
Fig. 5 is another schematic flow chart of a video playing method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a video playing device according to an embodiment of the present application.
Fig. 7 is another schematic structural diagram of a video playing apparatus according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Fig. 9 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the application provides a video playing method, a video playing device, a storage medium and an electronic device.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a video playing method according to an embodiment of the present application. The scene may include an electronic device 1, where the electronic device may be a smart phone, a tablet computer, a desktop computer, a notebook computer, or a palm computer, and the electronic device 1 has a storage unit and is equipped with a microprocessor to have an operation capability. The electronic device 1 is exemplified by a mobile phone, and the mobile phone 1 may have a player 10, and the player 10 may play video. It is understood that the player 10 can play pictures, audio and subtitles corresponding to the audio during the playing of the video. The subtitles are often displayed in the display area of the mobile phone 1 in a line-by-line arrangement manner, and the subtitles may block the display area, thereby affecting the picture viewing of the display area.
For some users, in the process of watching a video, the user is familiar with the audio played in the process of playing the video, and can know the audio content under the condition of playing the video without subtitles. Such as: some users watch some videos repeatedly, the users know about the subtitles and the audio content, the subtitles are displayed in a display area of the mobile phone, the display area is occupied, the video content is blocked, and the user experience is poor. For another example: for some national language videos, the user can learn the audio content without watching subtitles. The national language is the voice of the country, such as chinese, english, french, and the like. Also for example: for different types of videos, the requirements of users on subtitles are different, for example, for action type videos, users often pursue actions themselves, the requirements on the subtitles are not high, and the subtitles can shield a display area to reduce the experience of the users.
Therefore, in the process of playing the video, the player 10 of the mobile phone 1 in the embodiment of the present application may determine whether the player 10 plays the subtitle according to different habits, different video types, and different voices of the user, so as to reduce the occlusion of the subtitle on the video display area and improve the user experience.
In some embodiments, the player 10 matches the subtitle playing rule with a preset rule, and if the subtitle playing rule matches the preset rule, the player 10 performs subtitle-free playing; if the caption playing rule does not match the preset rule, the player 10 plays the caption. The caption playing rules can comprise caption playing frequency, voice type and video type. The preset rules may also include on-screen frequency, voice type, video type.
The subtitle playing frequency is the playing frequency of the subtitles in the preset playing frequency of the video of the target user, for example, if the player of the target user plays 100 times, and if the subtitles play 30 times, the subtitle playing frequency is 30. The preset rule is, for example, 50, and when the subtitle playing frequency is less than the preset playing frequency, the subtitle-free playing is performed in the next video playing process. And conversely, when the caption playing frequency is greater than the preset playing times, carrying out caption playing in the next video playing process, namely simultaneously playing the caption and the video.
The voice type is the language of the audio in the video playing process, such as chinese, english, french, japanese, and the like. For some users, the requirement for subtitles is not high when viewing national language videos, and for videos of languages such as english, french, japanese and the like, the users often learn foreign languages according to the videos, audio and subtitles to improve the foreign language level, and at this time, subtitles are required to be played. And when the voice type is the same as the preset voice type, performing caption playing. Such as: a Chinese college student often watches English videos in order to improve English levels, and only has subtitle requirements on the English videos in the process of watching the videos, and non-English videos can not play subtitles. Therefore, the preset voice type is English, and when the video is English, subtitle playing is directly carried out; and when the video is the national language video, the subtitle-free playing is directly carried out.
The video type is a type of video playing, such as: action-like video, comedy-like video, love-like video, etc. For some users, when watching motion video, attention is usually paid to motion, and the requirement on subtitles is not high. The preset video type can be a love video, and when the video is the love video, subtitle playing is directly carried out; and when the video is the action video, directly playing without the subtitle.
The details will be described below.
In the embodiment of the present application, the description will be made from the perspective of a video playback device, which may be specifically integrated in an electronic device having an arithmetic capability, such as a tablet, a PC, a mobile phone, and the like, which has a storage unit and is equipped with a microprocessor.
A video playing method is applied to electronic equipment and comprises the following steps: acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information; generating a subtitle playing rule according to the historical playing information; judging whether the caption playing rule is matched with a preset playing rule or not; if the subtitle playing rule is matched with a preset playing rule, controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule; and if the subtitle playing rule is not matched with the preset playing rule, controlling the video of the target user to play without subtitles according to the subtitle playing rule which is not matched with the preset playing rule.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a video playing method according to an embodiment of the present application. The video playing method can comprise the following steps:
in step 101, historical playing information of a target user video is acquired, wherein the historical playing information comprises subtitle playing information.
The target user video may be a video in which one user uses a designated player, or may be a video in which a plurality of users use the designated player respectively. Such as a video of user a using an arcade player. The historical playing information may include video playing information, subtitle playing information, voice playing information, subtitle playing frequency, and the like. Such as historical play information for the user a using the arcade player. It should be noted that the historical playing information may be information of the player in a past period of time, such as a year, six months, and so on. The history play information may be information that is owned by the player.
After obtaining the historical playing information of the target user video, the server of the player may obtain the historical playing information through the big data, and may feed back the obtained historical playing information to the electronic device 1. It should be noted that, the electronic device 1 may also be used to separately count the historical playing information of a target user in a specified player.
In step 102, a subtitle playing rule is generated according to the history playing information.
The caption playing rules can include caption playing frequency, voice type and video type. The caption playing frequency, the voice type and the video type can refer to the above contents, and are not described herein again.
In step 103, it is determined whether the subtitle playing rule matches a preset playing rule.
The preset rule may also include a preset playing frequency, a preset voice type, and a preset video type. The preset playing frequency, the preset voice type and the preset video type can refer to the above contents, and are not described herein again. It should be noted that, in determining whether the subtitle playing rule is matched with the preset playing rule, the following determination method is specifically adopted: judging whether the caption playing frequency is greater than the preset playing frequency, judging whether the voice type is the same as the preset voice type, and judging whether the video type is the same as the preset video type.
In step 104, if the caption playing rule matches the preset playing rule, the video and the caption of the target user are controlled to be played simultaneously according to the caption playing rule matching the preset playing rule.
In some embodiments, the subtitle playing rule is matched with the preset playing rule, and the video of the target user is controlled to be played with the subtitle, that is, the video and the subtitle are played simultaneously, for example, when the subtitle playing frequency is greater than the preset playing frequency, the video is played with the subtitle.
In step 105, if the caption playing rule does not match the preset playing rule, controlling the video of the target user to be played without the caption according to the caption playing rule that does not match the preset playing rule.
In some embodiments, the subtitle playing rule is not matched with the preset playing rule, and the video of the target user is controlled to be played without subtitles, for example, when the subtitle playing frequency is less than the preset playing frequency, the video is played without subtitles.
Therefore, according to the embodiment of the application, whether the player plays the subtitles in the next video playing process can be controlled according to the playing rules of the player in the previous video playing process, the intelligent control on the player can be realized according to the use habits of the user, and the requirements of the user can be further met.
The following description will take the caption playing rule as the caption playing frequency and the preset playing rule as the preset playing frequency as an example.
Referring to fig. 3, fig. 3 is another schematic flow chart of a video playing method according to an embodiment of the present application. The video playing method comprises the following steps:
in step 201, historical playing information of a target user video is obtained, wherein the historical playing information comprises a subtitle playing frequency. For details, reference may be made to the above contents, which are not described herein again.
In step 202, a subtitle playing rule is generated according to the subtitle playing frequency.
The subtitle playing frequency can refer to the above, and the subtitle playing rule can be a preset playing frequency or a preset playing frequency.
In step 203, it is determined whether the subtitle playing frequency is greater than the preset playing frequency. That is, the number of times the subtitle is played in the video playing process is determined, for example, in one hundred times of video playing, the subtitle is played 40 times, and here, the preset playing frequency is set to 60 times.
In step 204, if the subtitle playing frequency is greater than the preset playing frequency, the video and the subtitle of the target user are controlled to be played simultaneously. Specifically, for example, in 100 times of video playing, the subtitle playing frequency is 70 times of playing, and there are 30 times of video playing without subtitle playing. If the preset playing frequency is 60 times, the subtitle playing frequency is greater than the preset playing frequency, so that the player controls the video and the subtitle to be played simultaneously.
In step 205, if the subtitle playing frequency is not greater than the preset playing frequency, the video of the target user is controlled to perform subtitle-less playing. Specifically, for example, in 100 times of video playing, the subtitle playing frequency is 20 times of playing, and there are 80 times of video playing without subtitle playing. If the preset playing frequency is 60 times, the subtitle playing frequency is not greater than the preset playing frequency, so that the player controls the video to play without subtitles. I.e. the subtitles are not played during the playing of the video.
Therefore, the embodiment of the application can control whether the player plays the subtitles in the next video playing process according to the frequency or the number of times the player plays the subtitles in the previous video playing process, can realize intelligent control over the player according to the use habits of the user, and can better meet the requirements of the user.
The following description will take the caption playing rule as the audio type and the preset playing rule as the preset audio type as an example.
Referring to fig. 4, fig. 4 is another schematic flow chart of a video playing method according to an embodiment of the present disclosure. The video playing method comprises the following steps:
in step 301, historical playing information of a target user video is obtained, wherein the historical playing information comprises a voice type. For details, reference may be made to the above contents, which are not described herein again.
In step 302, a caption playing rule is generated according to the voice type.
The voice type may refer to the above contents, and the subtitle playing rule may be a preset voice type, which may be referred to specifically.
In step 303, it is determined whether the voice type is the same as the preset voice type. For example, the voice type is Chinese, and the preset voice type is English; for another example, the voice type is english, and the preset voice type is russian.
In step 304, if the voice type is the same as the preset voice type, the video and the subtitle of the target user are controlled to be played simultaneously. Specifically, for example, if the voice type is english, and the preset voice type is english, the voice type is the same as the preset voice type, and the subtitle is played in the playing process of the player, that is, the player plays the subtitle. Further, for the national language video, even if the voice genre and the preset genre are the same, there may be a small demand for subtitles, and thus the preset voice genre may be limited to a foreign language herein.
In step 305, if the voice type is different from the preset voice type, controlling the video of the target user to play without subtitles. Specifically, for example, the voice type is national language, the preset voice type is english, the voice type is different from the preset voice type, and the player does not play subtitles during the video playing process, that is, the player performs subtitle-free playing.
Therefore, the next video playing can be intelligently controlled according to the voice type of the player in the previous video playing process, and the requirements of users can be further met.
The following description will take the caption playing rule as the video type and the preset playing rule as the preset video type as an example.
Referring to fig. 5, fig. 5 is another schematic flow chart of a video playing method according to an embodiment of the present disclosure. The video playing method comprises the following steps:
in step 401, historical playing information of a target user video is obtained, wherein the historical playing information includes subtitle playing information. For details, reference may be made to the above contents, which are not described herein again.
In step 402, a caption playing rule is generated according to the video type.
The subtitle playing rule may be a preset video type, such as an action type and a love type. For details, reference may be made to the above contents, which are not described herein again. The player may determine the preset video type according to the past habits of the user in watching the video.
In step 403, it is determined whether the video type is the same as the preset video type. For example, the video type is an action type, and the preset video type is a love type.
In step 404, if the video type is the same as the preset video type, the video and the subtitle of the target user are controlled to be played simultaneously. Specifically, for example, if the video type is a love type, the preset video is a love type, and the preset video type is the same as the video type, the player controls subtitle playing in the process of playing the video, that is, the player plays subtitles.
In step 405, if the video type is different from the preset video type, controlling the video of the target user to perform subtitle-less playing. Specifically, for example, the video type is an action type, the preset video is a love type, and the preset video type is different from the video type, the subtitle is controlled not to be played by the player in the process of playing the video, that is, the player performs subtitle-free playing.
Therefore, the next video playing can be intelligently controlled according to the video type of the player in the previous video playing process, and the requirements of users can be further met.
The player can control the subtitles to carry out different types according to different subtitle types in the subtitle playing process.
In some embodiments, the video playing method may further include the steps of:
receiving a caption type instruction for playing a caption, wherein the caption type comprises a national language, a foreign language or a bilingual language;
and controlling the subtitle to play according to the subtitle type instruction.
Such as: the method comprises the steps that a user A watches a video, the voice type in the video is a foreign language, subtitles are foreign language subtitles, the user cannot see the subtitles or listen to the foreign language in the process of watching the video, the user can select a bilingual type, and a player controls the subtitles to play bilingual according to a subtitle type instruction selected by the user.
In order to better implement the video playing method provided by the embodiment of the present application, an embodiment of the present application further provides a video playing device. The meaning of the noun is the same as the video playing method, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a video playing device according to an embodiment of the present application. The video playing apparatus 10 is applied to an electronic device, and the video playing apparatus 10 may include an obtaining module 110, a generating module 120, an obtaining module 130, and a control module 140.
The video playing module 10 may be a player.
The obtaining module 110 is configured to obtain historical playing information of a target user video, where the historical playing information includes subtitle playing information. For details, reference may be made to the above contents, which are not described herein again.
The generating module 120 is configured to generate a subtitle playing rule according to the history playing information. For details, reference may be made to the above contents, which are not described herein again.
In some embodiments, the generating module 120 is configured to generate the subtitle playing rule according to the subtitle playing frequency. In some embodiments, the generating module 120 is configured to generate the subtitle playing rule according to the voice genre. In some embodiments, the generating module 120 is configured to generate the subtitle playback rule according to the video type.
The determining module 130 is configured to determine whether the subtitle playing rule matches the preset playing rule. For details, reference may be made to the above contents, which are not described herein again.
In some embodiments, the determining module 130 is configured to determine whether the subtitle playing frequency is greater than a preset playing frequency. In some embodiments, the determining module 130 is configured to determine whether the voice type is the same as the preset voice type. In some embodiments, the determining module 130 is configured to determine whether the video type is the same as the preset video type.
The control module 140 is used to control video playing. If the caption playing rule matches with the preset playing rule, the control module 140 controls the video and the caption of the target user to be played simultaneously according to the caption playing rule matching with the preset playing rule. If the caption playing rule does not match the preset playing rule, the control module 140 controls the video of the target user to perform caption-free playing according to the caption playing rule that does not match the preset playing rule. For details, reference may be made to the above contents, which are not described herein again.
In some embodiments, the control module 140 controls whether to play the subtitles during the playing process of the video according to the subtitle playing frequency, which may specifically refer to the above contents and will not be described herein again. In some embodiments, the control module 140 controls whether to play the subtitles during the playing process of the video according to the voice type, which may specifically refer to the above contents and will not be described herein again. In some embodiments, the control module 140 controls whether the video plays the subtitles in the playing process according to the video type, which may specifically refer to the above contents, and is not described herein again.
As can be seen from the above, the video playing apparatus 10 in the embodiment of the present application can control whether to play subtitles in the next video playing process according to the playing rules in the previous video playing process, can realize intelligent control over the player according to the use habits of the user, and can further meet the requirements of the user.
In some embodiments, please refer to fig. 7, and fig. 7 is a schematic structural diagram of a video playback device according to an embodiment of the present application. The video playback device 10 may further include a receiving module 150.
The receiving module 150 is configured to receive a caption type instruction for playing a caption, where the caption type includes a national language, a foreign language, or a bilingual language.
In some embodiments, the control module 140 is further configured to control the subtitle playing according to the subtitle type instruction. For details, reference may be made to the above contents, which are not described herein again.
The embodiment of the application also provides the electronic equipment. Referring to fig. 8, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, connects various parts of the whole electronic device by using various interfaces and lines, and executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby performing overall monitoring of the electronic device 500.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer 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 created according to use of the electronic device, and the like. Further, the memory 502 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. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In some embodiments, the processor 501 in the electronic device 500 may load instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 executes the computer program stored in the memory 502, so as to implement the following steps:
acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information;
generating a subtitle playing rule according to the historical playing information;
judging whether the caption playing rule is matched with a preset playing rule or not;
if the subtitle playing rule is matched with a preset playing rule, controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule;
and if the subtitle playing rule is not matched with the preset playing rule, controlling the video of the target user to play without subtitles according to the subtitle playing rule which is not matched with the preset playing rule.
In some embodiments, processor 501 is further configured to perform the following steps:
generating a subtitle playing rule according to the subtitle playing frequency;
judging whether the subtitle playing frequency is greater than a preset playing frequency or not;
if the subtitle playing frequency is greater than the preset playing frequency, controlling the video and the subtitle of the target user to be played simultaneously;
and if the subtitle playing frequency is not greater than the preset playing frequency, controlling the video of the target user to play without subtitles.
In some embodiments, processor 501 is further configured to perform the following steps:
generating a caption playing rule according to the voice type;
judging whether the voice type is the same as a preset voice type or not;
if the voice type is the same as the preset voice type, controlling the video and the subtitle of the target user to be played simultaneously;
and if the voice type is different from the preset voice type, controlling the video of the target user to play without subtitles.
In some embodiments, processor 501 is further configured to perform the following steps:
generating a subtitle playing rule according to the video type;
judging whether the video type is the same as a preset video type;
if the video type is the same as the preset video type, controlling the video and the subtitle of the target user to be played simultaneously;
and if the video type is different from the preset video type, controlling the video of the target user to play without subtitles.
In some embodiments, processor 501 is further configured to perform the following steps:
receiving a caption type instruction for playing a caption, wherein the caption type comprises a national language, a foreign language or a bilingual language;
and controlling the subtitle to be played according to the subtitle type instruction.
Therefore, according to the embodiment of the application, whether the player plays the subtitles in the next video playing process can be controlled according to the playing rules of the player in the previous video playing process, the intelligent control on the player can be realized according to the use habits of the user, and the requirements of the user can be further met.
Referring to fig. 9, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information input by or provided to the user, as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The display 503 may include a display panel, and in some embodiments, the display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be configured to transmit and receive rf signals, so as to establish wireless communication with a network device or other electronic devices through wireless communication, and transmit and receive signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker or microphone, among other things.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, the power source 506 may be regularly coupled to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 9, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the video playing method in any one of the above embodiments, for example: acquiring historical playing information of a target user video, wherein the historical playing information comprises subtitle playing information; generating a subtitle playing rule according to the historical playing information; judging whether the caption playing rule is matched with a preset playing rule or not; if the subtitle playing rule is matched with a preset playing rule, controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule; and if the subtitle playing rule is not matched with the preset playing rule, controlling the video of the target user to play without subtitles according to the subtitle playing rule which is not matched with the preset playing rule.
In some embodiments, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the video playing method of the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process for implementing the video playing method of the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and the process of executing the process may include the process of the embodiment of the video playing method.
For the video playing device in the embodiment of the present application, each functional module may be integrated into one processing chip, or each module may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The foregoing detailed description is directed to a video playing method, a video playing apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and specific examples are applied in this text to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the methods and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A video playing method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring historical playing information of a target user video, wherein the historical playing information comprises at least one of video playing information, voice playing information and subtitle playing frequency;
generating a caption playing rule according to at least one of video playing information, voice playing information and caption playing frequency in the historical playing information;
judging whether the caption playing rule is matched with a preset playing rule or not;
if the subtitle playing rule is matched with a preset playing rule, controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule;
and if the subtitle playing rule is not matched with the preset playing rule, controlling the video of the target user to play without subtitles according to the subtitle playing rule which is not matched with the preset playing rule.
2. The video playing method according to claim 1, wherein the historical playing information includes a subtitle playing frequency, wherein the subtitle playing frequency is a playing frequency of subtitles in a preset playing frequency of a video of a target user;
the generating a subtitle playing rule according to the historical playing information specifically includes:
generating a subtitle playing rule according to the subtitle playing frequency;
the determining whether the subtitle playing rule is matched with a preset playing rule specifically includes:
judging whether the subtitle playing frequency is greater than a preset playing frequency or not;
if the caption playing rule is matched with a preset playing rule, controlling the video and the caption of the target user to be played simultaneously according to the caption playing rule matched with the preset playing rule, which specifically comprises:
if the subtitle playing frequency is greater than the preset playing frequency, controlling the video and the subtitle of the target user to be played simultaneously;
if the caption playing rule is not matched with the preset playing rule, controlling the video of the target user to play without the caption according to the caption playing rule which is not matched with the preset playing rule, specifically comprising:
and if the subtitle playing frequency is not greater than the preset playing frequency, controlling the video of the target user to play without subtitles.
3. The video playback method according to claim 1, wherein the historical playback information includes a voice genre;
the generating a subtitle playing rule according to the historical playing information specifically includes:
generating a caption playing rule according to the voice type;
the determining whether the subtitle playing rule is matched with a preset playing rule specifically includes:
judging whether the voice type is the same as a foreign language or not;
if the caption playing rule is matched with a preset playing rule, controlling the video and the caption of the target user to be played simultaneously according to the caption playing rule matched with the preset playing rule, which specifically comprises:
if the voice type is the same as the foreign language, controlling the video and the subtitle of the target user to be played simultaneously;
if the caption playing rule is not matched with the preset playing rule, controlling the video of the target user to play without the caption according to the caption playing rule which is not matched with the preset playing rule, specifically comprising:
and if the voice type is different from the foreign language, controlling the video of the target user to play without a caption.
4. The video playback method according to claim 1, wherein the historical playback information includes a video type;
the generating a subtitle playing rule according to the historical playing information specifically includes:
generating a subtitle playing rule according to the video type;
the determining whether the subtitle playing rule is matched with a preset playing rule specifically includes:
judging whether the video type is the same as a preset video type;
if the caption playing rule is matched with a preset playing rule, controlling the video and the caption of the target user to be played simultaneously according to the caption playing rule matched with the preset playing rule, which specifically comprises:
if the video type is the same as the preset video type, controlling the video and the subtitle of the target user to be played simultaneously;
if the caption playing rule is not matched with the preset playing rule, controlling the video of the target user to play without the caption according to the caption playing rule which is not matched with the preset playing rule, specifically comprising:
and if the video type is different from the preset video type, controlling the video of the target user to play without subtitles.
5. The video playing method according to any one of claims 1 to 4, wherein if the subtitle playing rule matches a preset playing rule, after controlling the video and the subtitle of the target user to be played simultaneously according to the subtitle playing rule matching the preset playing rule, the method further comprises:
receiving a caption type instruction for playing a caption, wherein the caption type comprises a national language, a foreign language or a bilingual language;
and controlling the subtitle to be played according to the subtitle type instruction.
6. A video playing device applied to electronic equipment is characterized by comprising:
the acquisition module is used for acquiring historical playing information of a target user video, wherein the historical playing information comprises at least one of video playing information, voice playing information and subtitle playing frequency;
the generating module is used for generating a caption playing rule according to at least one of video playing information, voice playing information and caption playing frequency in the historical playing information;
the judging module is used for judging whether the subtitle playing rule is matched with a preset playing rule or not;
the control module is used for controlling the video and the subtitles of the target user to be played simultaneously according to the subtitle playing rule matched with the preset playing rule if the subtitle playing rule is matched with the preset playing rule;
the control module is further configured to control the video of the target user to perform subtitle-free playing according to the subtitle playing rule that is not matched with the preset playing rule if the subtitle playing rule is not matched with the preset playing rule.
7. The video playback device of claim 6, wherein the historical playback information includes a subtitle playback frequency, wherein the subtitle playback frequency is a playback frequency of subtitles of a video of a target user within a preset playback frequency;
the generation module is used for generating a caption playing rule according to the caption playing frequency;
the judging module is used for judging whether the caption playing frequency is greater than a preset playing frequency;
the control module is used for controlling the video and the subtitle of the target user to be played simultaneously if the subtitle playing frequency is greater than the preset playing frequency;
the control module is further configured to control the video of the target user to perform subtitle-free playing if the subtitle playing frequency is not greater than the preset playing frequency.
8. The video playback device according to claim 6, wherein the historical playback information includes a voice genre;
the generating module is used for generating a caption playing rule according to the voice type;
the judging module is used for judging whether the voice type is the same as a preset voice type;
the control module is used for controlling the video and the subtitle of the target user to be played simultaneously if the voice type is the same as the preset voice type;
and the control module is also used for controlling the video of the target user to play without subtitles if the voice type is different from the preset voice type.
9. The video playback device according to claim 6, wherein the historical playback information includes a video type;
the generating module is used for generating a subtitle playing rule according to the video type;
the judging module is used for judging whether the video type is the same as a foreign language or not;
the control module is used for controlling the video and the subtitle of the target user to be played simultaneously if the video type is the same as the foreign language;
the control module is further configured to control the video of the target user to play without subtitles if the video type is different from the foreign language.
10. The video playback device according to any one of claims 6 to 9, further comprising a receiving module,
the receiving module is used for receiving a caption type instruction for playing a caption, wherein the caption type comprises a national language, a foreign language or a bilingual language;
the control module is further configured to control the subtitle to be played according to the subtitle type instruction.
11. A storage medium characterized in that it comprises a computer program which, when run on a computer, causes the computer to execute the video playback method according to any one of claims 1 to 5.
12. An electronic device, comprising a processor and a memory electrically connected to each other, wherein the memory stores a computer program, and the processor is configured to execute the video playing method according to any one of claims 1 to 5 by calling the computer program.
CN201711464308.1A 2017-12-28 2017-12-28 Video playing method, video playing device, storage medium and electronic equipment Active CN108174308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711464308.1A CN108174308B (en) 2017-12-28 2017-12-28 Video playing method, video playing device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711464308.1A CN108174308B (en) 2017-12-28 2017-12-28 Video playing method, video playing device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108174308A CN108174308A (en) 2018-06-15
CN108174308B true CN108174308B (en) 2020-06-16

Family

ID=62519716

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711464308.1A Active CN108174308B (en) 2017-12-28 2017-12-28 Video playing method, video playing device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108174308B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924619A (en) * 2018-06-29 2018-11-30 北京优酷科技有限公司 The display methods and device of subtitle

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044573A (en) * 2004-08-19 2007-09-26 索尼株式会社 Reproduction device, reproduction method, reproduction program, recording medium, and data structure
CN102196209A (en) * 2010-03-05 2011-09-21 深圳Tcl新技术有限公司 Caption concealment method for television program
CN104244065A (en) * 2014-09-04 2014-12-24 无锡天脉聚源传媒科技有限公司 Method and device for processing subtitles
WO2015038337A1 (en) * 2013-09-16 2015-03-19 Thomson Licensing Method and apparatus for caption parallax over image while scrolling

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8754984B2 (en) * 2011-05-02 2014-06-17 Futurewei Technologies, Inc. System and method for video caption re-overlaying for video adaptation and retargeting

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101044573A (en) * 2004-08-19 2007-09-26 索尼株式会社 Reproduction device, reproduction method, reproduction program, recording medium, and data structure
CN102196209A (en) * 2010-03-05 2011-09-21 深圳Tcl新技术有限公司 Caption concealment method for television program
WO2015038337A1 (en) * 2013-09-16 2015-03-19 Thomson Licensing Method and apparatus for caption parallax over image while scrolling
CN104244065A (en) * 2014-09-04 2014-12-24 无锡天脉聚源传媒科技有限公司 Method and device for processing subtitles

Also Published As

Publication number Publication date
CN108174308A (en) 2018-06-15

Similar Documents

Publication Publication Date Title
US10200763B2 (en) Video-based interaction method, terminal, server and system
JP6165846B2 (en) Selective enhancement of parts of the display based on eye tracking
CN114003326B (en) Message processing method, device, equipment and storage medium
US11233895B2 (en) Automatic wallpaper setting method, terminal device, and graphical user interface
CN107885823B (en) Audio information playing method and device, storage medium and electronic equipment
CN108965981B (en) Video playing method and device, storage medium and electronic equipment
CN110572716B (en) Multimedia data playing method, device and storage medium
EP3859521A1 (en) Theme color adjusting method and apparatus, storage medium, and electronic device
CN113596555B (en) Video playing method and device and electronic equipment
US20230244363A1 (en) Screen capture method and apparatus, and electronic device
CN113065021A (en) Video preview method, video preview device, electronic equipment, storage medium and program product
CN112040324A (en) Playing progress adjusting method and device, storage medium and terminal
CN114095793A (en) Video playing method and device, computer equipment and storage medium
CN108174308B (en) Video playing method, video playing device, storage medium and electronic equipment
CN112954484A (en) Bullet screen information display method and device
US10613622B2 (en) Method and device for controlling virtual reality helmets
CN114786030B (en) Method and device for displaying anchor picture, electronic equipment and storage medium
CN115718581A (en) Information display method and device, electronic equipment and storage medium
CN115550741A (en) Video management method and device, electronic equipment and readable storage medium
CN115379113A (en) Shooting processing method, device, equipment and storage medium
CN115225971A (en) Video progress adjusting method and device, computer equipment and storage medium
CN113873082A (en) Media file playing method and device
CN114125149A (en) Video playing method, device, system, electronic equipment and storage medium
CN113721816A (en) Video processing method and device
CN104423871A (en) Information processing method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant