Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail a video playing method provided by the embodiment of the present application through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
Referring to fig. 1, a flowchart illustrating steps of a video playing method provided in an embodiment of the present application, where the method may be applied to a second device, and as shown in fig. 1, the video playing method may include the following steps:
step 101: and receiving a target object in the target video sent by the first equipment.
The method and the device for displaying the target object in the target video can be applied to calibration of the target object in the target video by combining the first device, and when the video picture of the target video played by the second device contains the target object, namely the scene of the target object is displayed in a specific display mode.
The present embodiment may be applied to the second device, that is, the execution subject is the second device.
In this example, the first device and the second device may be of the same type as a mobile electronic device (e.g., a mobile phone, a tablet computer, etc.), and the first device and the second device may also be of different types as well, for example, the first device is a mobile electronic device (e.g., a mobile phone, etc.), and the second device is a desktop computer, etc. It is understood that the specific types of the first device and the second device may be determined according to actual situations, and the embodiment is not limited thereto.
The target video refers to a video currently played by the first device, and in this example, the target video may be a game video, such as a basketball game, a football game, or the like. It may also be an episode video, such as a tv show, and the specific type of the target video may be determined according to the actual situation, which is not limited in this embodiment.
The target object refers to an object marked in the target video played by the first device by the user for indicating that the target object is displayed in a specific display manner, and in this example, the target object may be a person, an animal, a flower, a building, and the like, and specifically, the type of the target object may be determined according to business requirements, which is not limited in this embodiment.
In the process of playing the target video by the first device, a target object required to be displayed in a specific manner may be marked by a user, specifically, in the process of playing the target video by the first device, when the user needs to mark the target object, the user may pause playing of the target video and mark the target object in a video screen of the displayed target video to indicate that the target object is displayed in the specific manner, as shown in fig. 2, two character roles are included in the displayed first video screen, and when the user wants to visually watch a student character role, the character role may be circled to serve as the target object (e.g. a student indicated by an arrow in fig. 2) and the like.
After the target object is marked in the first device, the target object in the target video may be sent to the second device by the first device, in this example, the first device may send an object identifier of the target object to the second device, as shown in fig. 2, when a certain character appears on the screen, the video is paused, the character to be split is selected by a gesture circle, after confirmation, the current video may intercept a picture with information such as a person identifier and a playing progress and generate a hovered ball with links, the hovered ball may be used as the object identifier of the target object, and the hovered ball may be dragged arbitrarily.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation to the embodiments.
In this example, the step 102 may include:
substep S1: and displaying the target object in a first display mode under the condition that the video picture of the target video played by the first device contains the target object.
In this embodiment, in the process of playing the target video by the first device, if the video frame of the played target video contains the target object, the video frame may be sent to the second device by the first device, and at this time, the target object in the video frame may be displayed in the first display manner by the second device.
After the second device receives the target object in the target video sent by the first device, step 102 is executed, or step 103 is executed.
Step 102: and displaying the target object in a first display mode under the condition that the target object is contained in the video picture of the played target video.
Step 103: and displaying the target object in a second display mode under the condition that the target object is not contained in the played video picture of the target video.
After the second device receives the target object in the target video sent by the first device, the first device may detect whether the target object is included in a video frame of the played target video in the process of playing the target video by the first device.
If the first device detects that the video picture of the played target video contains the target object, the first device can send the video picture to the second device, and the second device displays the target object in the first display mode. And if the video picture of the played target video does not contain the target object, displaying the target object in a second display mode. In this example, the first display mode is different from the second display mode,
when the first display mode is an enlarged display mode, the second display mode is a standard display mode (i.e., a normal display mode), for example, the user likes a certain character in the target video, the target object is the character, when the character is included in the video picture of the played target video, the character is enlarged and displayed, and when the character is not included in the video picture of the played target video, the video picture is displayed in a normal mode. As shown in fig. 3, when the object identifier is transmitted from the device a to the device B, the device B is effectively connected to the device a (edge contact or bluetooth connection), an information transmission channel is generated at this time, the previously generated link floating ball is dragged into the channel and transmitted to the device B, and the device B intelligently recognizes the picture in the link and opens the corresponding video in the commonly used video software. When the B device plays the target video, if the displayed picture includes the target object corresponding to the object identifier (the student character indicated by the arrow in fig. 3 a), the target object is displayed in full screen, as shown in fig. 3B.
When the first display mode is a reduced display mode, the second display mode is a standard display mode, for example, when the user dislikes a certain character of the target video, the target object is the character, when the character is included in the video screen of the played target video, the character is reduced and displayed, and when the character is not included in the video screen of the played target video, the video screen is displayed in a conventional mode, and the like.
In a specific implementation manner of the present application, when the second device displays the target object, the video picture including the target object may be displayed in the preview screen, as shown in fig. 4b, when the student character is displayed in a full screen, the original video picture may be displayed in the preview window. Alternatively, as shown in fig. 5a, the student character in the video screen may be displayed in full screen in the a device, and the target object may be updated during the playing of the video, as shown in fig. 5b, the target object may be updated from the student character to the teacher character, i.e., the character indicated by the arrow in fig. 5 b. After the target object is updated, when the updated object is included in the played video picture, the updated object is displayed in a specific display mode, as shown in fig. 5c, the teacher role in the video picture can be displayed in full screen in the B device, so as to meet the requirements of different users for visually watching preferred roles.
According to the method and the device, the target object is calibrated through the first device, in the process of playing the target video through the second device, if the target object is contained in the video picture, the target object is displayed in the first display mode, otherwise, the target object is displayed in the second display mode, so that the requirement that a user only watches a specific role in the video picture can be met, and the video watching experience of the user is improved.
In this embodiment, after the target object is displayed in the first display mode, the target object may be updated in the second device, and in particular, the detailed description may be made in conjunction with the following specific implementation mode.
In a specific implementation manner of the present application, after the step 102, the method may further include:
step A1: a first input is received for a first object within a video picture of the target video.
In the present embodiment, the first object is one object of a video picture referring to a target video.
The first input refers to an input performed by the user for instructing display in the first display manner on the first object of the video picture of the target video. In this example, the first input may be a circle selection input, or may also be a double-click input, and specifically, a specific form of the first input may be determined according to a business requirement, which is not limited in this embodiment.
When the user wants to replace the object displayed in the first display mode, the first input may be performed on the first object by the user when the first object is included in the video picture of the played target video.
In this embodiment, the first input may be an input performed by the first device on the first object in the video screen, for example, when the update target object is the first object, the first device may perform the first input on the first object on the first device side and transmit information of the update object to the second device so as to identify the second device.
For example, when the second device recognizes that the first object is included in the video screen of the played target video, the second device may transmit the video screen to the second device so that the second device displays the first object in the first display mode.
After receiving the first input for the first object within the video picture of the target video, step a2 is performed,
step A2: updating the target object to the first object in response to the first input.
After receiving a first input to a first object within a video picture of a target video, the target object may be updated to the first object in response to the first input.
After updating the target object to be the first object, step a3 is performed.
Step A3: and displaying the first object in the first display mode under the condition that the first object is contained in the video picture of the played target video.
After the target object is updated to be the first object, the first object may be displayed in a first display manner when the first object is included in a video picture of the target video played by the second device.
According to the method and the device, the object displayed in the specific display mode can be replaced through the input of the user to the first object of the video picture of the target video, the user operation is simple, and the user experience of watching the video is improved.
In this embodiment, when replacing the target object displayed in the first manner, an input may be performed by a user on an object to be replaced within a video screen of the target video played by the second device to implement object replacement, and in particular, detailed description may be made in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 102, the method may further include:
step B1: a second input is received for a second object within a video frame of the target video.
In the present embodiment, the second object refers to an object for replacing the target object within the video screen of the target video.
The second input refers to an input performed by the user on the second object for replacing the target object, in this example, the second input may be an input formed by the user selecting the second object of the video screen, or an input formed by the user double-clicking the second object in the video screen, and a specific form of the second input may be determined according to a business requirement, which is not limited in this embodiment.
When the user wants to replace the object displayed in the first display mode, a second input may be performed on the second object by the user when the second object is included in the video picture of the played target video.
After receiving the second input for the second object within the video picture of the target video, step B2 is performed.
Step B2: in response to the second input, updating the target object to be a second object.
After receiving a second input for a second object within the video picture of the target video, the target object displayed in the first display mode may be updated to the second object in response to the second input.
After updating the target object to be the second object, step B3 is performed.
Step B3: sending the second object to the first device.
After updating the target object to the second object, the second object may then be sent to the first device.
After the second object is sent to the first device, step B4 is performed.
Step B4: and under the condition of acquiring a second object display signal sent by the first equipment, displaying the second object in the first display mode.
The second object display signal may be used to indicate that the second object is contained within a video picture of the target video played by the first device.
After the second object is sent to the first device, in the process of playing the target video by the first device, if the second object is included in the video picture of the playing target video, the second object display signal may be generated by the first device.
After the second device receives the second object display signal sent by the first device, the second object can be displayed in the first display mode by the second device.
According to the method and the device, when the second object is contained in the video picture of the target video played by the first device, namely the first device sends the corresponding object display signal to the second device to indicate the second device to display the second object in the first display mode, so that when multiple users watch the same video, the users can watch the scene of a specific role in the specific display mode, and the video watching experience of the users is improved.
In this embodiment, when the first device adjusts the playing progress of the target video, the progress of the target video played by the second device may be adjusted synchronously, and specifically, the detailed description may be made in conjunction with the following specific implementation manner.
In another specific implementation manner of the present application, after the step 102, the method may further include:
step C1: receiving the playing progress adjusting information of the target video, which is sent by the first equipment; the playing progress adjustment information is determined by the first device according to the input of the playing progress bar of the target video.
In this embodiment, the playing progress adjustment information refers to that the first device determines according to an input to the playing progress bar of the target video, that is, an input performed by the user in the first device to adjust the playing progress of the target video. In this example, the input may be an input formed by a user dragging a playing progress bar of the target video in the first device, or an input formed by a user clicking a certain position on the playing progress bar, and specifically, a specific expression form of the input may be determined according to a service requirement, which is not limited in this embodiment.
In the process of synchronously playing the target video by the first device and the second device, the playing progress adjustment information of the playing progress of the target video, which is sent by the first device, can be received.
After receiving the play progress adjustment information for the target video transmitted by the first device, step C2 is performed.
Step C2: and adjusting the video playing progress of the target video according to the playing progress adjustment information.
After the playing progress adjustment information of the target video sent by the first device is received, the video playing progress of the target video can be adjusted according to the playing progress adjustment information.
In the embodiment, the synchronous control of the playing progress of the target video can be realized through linkage control.
In this embodiment, when the target object is displayed in the first display mode, the user may customize the display size of the target object, and specifically, the detailed description may be described in conjunction with the following specific implementation mode.
In another specific implementation manner of the present application, after the step 102, the method may further include:
step D1: and receiving size adjustment information of the target object, which is sent by the first device, wherein the size adjustment information is determined by the first device according to the input of the target object.
In the present embodiment, the resizing information means that the first device is determined in accordance with an input to the target object.
In the process of synchronously playing the target video by the first device and the second device, the size adjustment information of the target object sent by the first device can be received.
After receiving the resizing information for the target object sent by the first device, step D2 is performed.
Step D2: and adjusting the display size of the target object according to the size adjustment information.
After receiving the resizing information for the target object sent by the first device, the display size of the target object may be adjusted according to the resizing information.
According to the embodiment of the application, the display size of the target object can be adjusted in the above mode, so that different watching requirements of users are met.
According to the video playing method provided by the embodiment of the application, the target object in the target video sent by the first device is received, the target object is displayed in the first display mode under the condition that the target object is contained in the video picture of the played target video, the target object is displayed in the second display mode under the condition that the target object is not contained in the video picture of the played target video, and the first display mode is different from the second display mode. According to the method and the device, the target object is calibrated through the first device, in the process of playing the target video through the second device, if the target object is contained in the video picture, the target object is displayed in the first display mode, otherwise, the target object is displayed in the second display mode, so that the requirement that a user only watches a specific role in the video picture can be met, and the video watching experience of the user is improved.
It should be noted that, in the video playing method provided in the embodiment of the present application, the execution main body may be a video playing device, or a control module used for executing the video playing method in the video playing device. In the embodiment of the present application, a video playing device executing a video playing method is taken as an example to describe the video playing device provided in the embodiment of the present application.
Referring to fig. 6, a schematic structural diagram of a video playing apparatus provided in an embodiment of the present application is shown, where the video playing apparatus may be applied to a second electronic device, and as shown in fig. 6, the video playing apparatus 600 may include the following modules:
a target object receiving module 610, configured to receive a target object in a target video sent by a first device;
a first target object display module 620, configured to display the target object in a first display manner when the target object is included in a video frame of the played target video;
a second target object display module 630, configured to display the target object in a second display manner if the target object is not included in the video picture of the played target video;
wherein the first display mode is different from the second display mode.
Optionally, the apparatus further comprises:
a first input receiving module, configured to receive a first input to a first object within a video picture of the target video;
a first object update module to update the target object to the first object in response to the first input;
and the first object display module is used for displaying the first object in the first display mode under the condition that the video picture of the played target video contains the first object.
Optionally, the apparatus further comprises:
a second input receiving module, configured to receive a second input to a second object within a video picture of the target video;
a second object update module for updating the target object to a second object in response to the second input;
a second object sending module, configured to send the second object to the first device;
the second object display module is used for displaying the second object in the first display mode under the condition of acquiring a second object display signal sent by the first equipment;
the second object display signal is used for indicating that the video picture of the target video played by the first device contains the second object.
Optionally, the apparatus further comprises:
the progress adjustment information receiving module is used for receiving the playing progress adjustment information of the target video, which is sent by the first equipment; the playing progress adjusting information is determined by the first equipment according to the input of the playing progress bar of the target video;
and the video playing precision adjusting module is used for adjusting the video playing progress of the target video according to the playing progress adjusting information.
Optionally, the apparatus further comprises:
a size adjustment information receiving module, configured to receive size adjustment information of the target object sent by the first device, where the size adjustment information is determined by the first device according to an input to the target object;
and the display size adjusting module is used for adjusting the display size of the target object according to the size adjusting information.
Optionally, the first target object display module 620 includes:
and the target object display unit is used for displaying the target object in a first display mode under the condition that the target object is contained in the video picture of the target video played by the first device.
In the video playing apparatus provided in the embodiment of the present application, by receiving a target object in a target video sent by a first device, when a video screen of the played target video includes the target object, the target object is displayed in a first display manner, and when the video screen of the played target video does not include the target object, the target object is displayed in a second display manner, where the first display manner is different from the second display manner. According to the method and the device, the target object is calibrated through the first device, in the process of playing the target video through the second device, if the target object is contained in the video picture, the target object is displayed in the first display mode, otherwise, the target object is displayed in the second display mode, so that the requirement that a user only watches a specific role in the video picture can be met, and the video watching experience of the user is improved.
The video playing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The video playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The video playing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 810 is configured to receive a target object in a target video sent by a first device;
a display unit 806, configured to display the target object in a first display manner when the target object is included in a video screen of the played target video; displaying the target object in a second display mode under the condition that the target object is not contained in a video picture of the played target video;
wherein the first display mode is different from the second display mode.
According to the method and the device, the target object is calibrated through the first device, in the process of playing the target video through the second device, if the target object is contained in the video picture, the target object is displayed in the first display mode, otherwise, the target object is displayed in the second display mode, so that the requirement that a user only watches a specific role in the video picture can be met, and the video watching experience of the user is improved.
Optionally, a user input unit 807 for receiving a first input to a first object within a video frame of the target video;
a processor 810 for updating the target object to the first object in response to the first input;
the display unit 806 is further configured to display the first object in the first display manner when the first object is included in the video frame of the played target video.
Optionally, a user input unit 807 for receiving a second input to a second object within the video frame of the target video;
a processor 810, further configured to update the target object to be a second object in response to the second input; sending the second object to the first device;
a display unit 806, configured to, in a case that a second object display signal sent by the first device is obtained, display the second object in the first display manner;
the second object display signal is used for indicating that the video picture of the target video played by the first device contains the second object.
Optionally, the processor 810 is further configured to receive play progress adjustment information of the target video, which is sent by the first device; the playing progress adjusting information is determined by the first equipment according to the input of the playing progress bar of the target video; and adjusting the video playing progress of the target video according to the playing progress adjustment information.
Optionally, the processor 810 is further configured to receive size adjustment information of the target object sent by the first device, where the size adjustment information is determined by the first device according to an input to the target object; and adjusting the display size of the target object according to the size adjustment information.
Optionally, the display unit 806 is further configured to display the target object in a first display manner when the target object is included in the video picture of the target video obtained and played by the first device.
According to the video playing method and device, the video link and the object identification are sent to other electronic equipment, the other electronic equipment can play the video without networking, the requirement of a specific role for visual watching is met, and the video watching experience of a user is further improved.
It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the video playing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the above video playing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.