Video playback method, device, equipment and storage medium
By receiving the video playback angle switching instruction and obtaining the current time point, and using the MPD file to determine the video sub-file, multi-angle adaptive playback of the video playback device is realized, which solves the problem of limited user viewing experience and improves the viewing experience.
Patent Information
- Application Number
- CN201910778958.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-08-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-08-22
AI Technical Summary
In the existing video playback solution, the user's viewing experience is limited by the shooting angle set by the video producer, and the angle cannot be switched according to personal needs, resulting in a poor viewing experience.
By receiving the video playback angle switching instruction, the current time point of the main video playback device is obtained, and the corresponding video sub-file is determined based on the multimedia presentation description (MPD) file to achieve adaptive switching of angles and multi-angle playback.
It improves the user's viewing experience, allowing users to switch viewing angles according to their own needs and achieve the same multi-angle playback as the main video playback device.
Smart Images

Figure CN112423071B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of video playback technology, and in particular to a video playback method, device, equipment and storage medium. Background Art
[0002] In the prior art, when playing a video, it can only be played according to the shooting angle set by the video producer, who decides the angle from which the video is presented. For example, in a TV series, the plot is that an assassin approaches the protagonist quietly. If the director plays the video of the protagonist's performance to highlight the protagonist, the audience can only see the protagonist's expression, but if they want to watch the scene of the assassin slowly approaching the protagonist from behind, they will not be able to see it. If the director wants to highlight the assassin's expression, the audience will not be able to see the protagonist's performance.
[0003] Therefore, in the existing video playback solutions, the viewing experience of users is limited by the shooting angles set by the video producers, and the viewing experience is poor. Summary of the invention
[0004] The embodiments of the present invention provide a video playback method, apparatus, device and storage medium, which are used to solve the problem that in the existing video playback solution, the viewing experience of users is limited by the shooting angle set by the video producer, resulting in a poor viewing experience.
[0005] An embodiment of the present invention provides a video playback method, the method comprising:
[0006] The video playback slave device receives a video playback angle switching instruction and obtains the first time point of the video currently being played by the video playback master device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched;
[0007] According to the information of the playback angle, the first time point and the multimedia presentation description MPD file corresponding to the file of the currently playing video saved by itself, the first video sub-file corresponding to the playback angle and containing the first time point is determined, and the first video sub-file is played according to the first time point.
[0008] Furthermore, before receiving the video playback angle switching instruction, the method further includes:
[0009] Receiving a TV HBBTV application start command sent by the video playback main device;
[0010] Start its own HBBTV application and establish a connection with the video playback host device through the HBBTV application.
[0011] Furthermore, before receiving the video playback angle switching instruction, the method further includes:
[0012] According to the set time interval, the second time point of the video currently being played by the video playback main device is obtained, the download address of each second video sub-file corresponding to each playback angle including the second time point is determined according to the MPD file of each playback angle, and each second video sub-file is downloaded according to the download address.
[0013] Furthermore, the method further comprises:
[0014] According to the number and names of the playback angles corresponding to the currently downloaded second video sub-file, the angle switching instruction button displayed on its own display interface is updated.
[0015] Further, obtaining the time point at which the video playing main device is currently playing the video includes:
[0016] According to the time point recorded in the multimedia synchronizer in the video playback master device, the time point at which the video playback master device is currently playing the video is determined; wherein the time point recorded in the multimedia synchronizer is the time point at which the video playback master device sends its own video playing time point to the multimedia synchronizer in real time.
[0017] On the other hand, an embodiment of the present invention provides a video playback device, the device comprising:
[0018] An acquisition module, used to receive a video playback angle switching instruction and acquire a first time point of a video currently being played by a video playback host device connected to the module; wherein the video playback angle switching instruction carries information of a playback angle to be switched;
[0019] The playback module is used to search for a first video sub-file corresponding to the playback angle and containing the first time point in the MPD file corresponding to the file of the currently playing video saved by itself according to the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently playing video, and play the first video sub-file according to the first time point.
[0020] Furthermore, the device also includes:
[0021] The connection module is used to receive a TV HBBTV application start command sent by the video playback main device; start its own HBBTV application, and establish a connection with the video playback main device through the HBBTV application.
[0022] Furthermore, the acquisition module is also used to obtain the second time point of the video currently being played by the video playback main device at a set time interval, determine the download address of each second video sub-file corresponding to each playback angle including the second time point according to the MPD file of each playback angle, and download each second video sub-file according to the download address.
[0023] Furthermore, the device also includes:
[0024] The updating module is used to update the angle switching instruction buttons displayed on its own display interface according to the number and names of the playback angles corresponding to the second video sub-file currently downloaded.
[0025] Furthermore, the acquisition module is specifically used to determine the time point at which the video playback master device is currently playing the video based on the time point recorded in the multimedia synchronizer in the video playback master device; wherein, the time point recorded in the multimedia synchronizer is the time point at which the video playback master device plays its own video and sends it to the multimedia synchronizer in real time.
[0026] On the other hand, an embodiment of the present invention provides a video playback slave device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0027] Memory, used to store computer programs;
[0028] The processor is used to implement any of the method steps described above when executing the program stored in the memory.
[0029] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the method steps described above is implemented.
[0030] An embodiment of the present invention provides a video playback method, apparatus, device and storage medium, the method comprising: a video playback slave device receives a video playback angle switching instruction, and obtains the first time point of the video currently being played by a video playback master device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched; based on the playback angle information, the first time point and an MPD file corresponding to the file of the currently playing video saved by itself, a first video sub-file corresponding to the playback angle and containing the first time point is determined, and the first video sub-file is played according to the first time point.
[0031] Since in the embodiment of the present invention, the user sends a video playback angle switching instruction to the video playback slave device according to the viewing angle requirement, the video playback slave device obtains the information of the playback angle to be switched carried in the video playback angle switching instruction, and obtains the first time point of the video currently being played by the video playback master device connected to itself, and determines the first video sub-file corresponding to the playback angle and including the first time point according to the playback angle information, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, and plays the first video sub-file according to the first time point. Therefore, this solution can realize that the video playback slave device can adaptively play the same video as the video playback master device at multiple angles according to the viewing angle requirement of the user, thereby improving the viewing experience of the user. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A schematic diagram of a video playback process provided by Embodiment 1 of the present invention;
[0034] Figure 2 A schematic diagram of starting a video playback slave device application provided in Embodiment 2 of the present invention;
[0035] Figure 3 A schematic diagram of time synchronization between a master and a slave device provided in Example 2 of the present invention;
[0036] Figure 4 This is an example diagram of a database provided in Example 4 of the present invention;
[0037] Figure 5 This is a movie viewing effect diagram provided by Embodiment 4 of the present invention;
[0038] Figure 6 A diagram of the video playback system architecture provided by Embodiment 4 of the present invention;
[0039] Figure 7 A schematic diagram of a detailed video playback process provided by Embodiment 4 of the present invention;
[0040] Figure 8 A schematic diagram of the structure of a video playback device provided in Embodiment 5 of the present invention;
[0041] Fig. 9 This is a schematic diagram of the structure of a video playback slave device provided in Example 6 of the present invention. DETAILED DESCRIPTION
[0042] The present invention will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] Embodiment 1:
[0044] Figure 1 A schematic diagram of a video playback process provided by an embodiment of the present invention, the process includes the following steps:
[0045] S101: A video playback slave device receives a video playback angle switching instruction and obtains a first time point of a video currently being played by a video playback master device connected to itself; wherein the video playback angle switching instruction carries information of a playback angle to be switched.
[0046] The video playing method provided in the embodiment of the present invention is applied to a video playing slave device, which may be a smart phone, a tablet computer, etc. The video playing master device in the embodiment of the present invention may be a television.
[0047] In a video shooting scene, a camera is installed at each shooting angle. Different cameras capture videos from different angles. The videos captured by the cameras are sent to the server, and the server stores the received videos at each angle. The server can store the videos in a segmented MP4 format and store the received videos as multiple MP4 format video files. Specifically, each video shooting plot is generally divided into a main shooting angle and a sub-shooting angle. When storing video files, the server can store the MP4 format video files of the main shooting angle in the main directory and store the video files of the sub-shooting angle in the sub directory. In addition, the server will generate a corresponding multimedia presentation description file (MPD) for each segmented video file. The MPD file is used to describe various information of each video sub-file, including the playback time, download address and other information of each video sub-file. For example, the video sub-file described in the MPD file from 01:02:20 to 01:02:50 is main\seg1.fmp4; the video sub-file described from 01:05:25 to 01:05:55 is sub\seg2.fmp4. When saving an MPD file, different shooting angles may be used as the file name of the MPD file, so that the shooting angle information is included in the file name of the MPD file.
[0048] The video playback slave device and the video playback master device both obtain video files from the server, and the video playback master device plays each video file according to a pre-set playback order.
[0049] The user can send a video playback angle switching instruction to the video playback slave device as needed, and the video playback angle switching instruction carries the information of the playback angle to be switched. After receiving the video playback angle switching instruction, the video playback slave device obtains the first time point of the video currently being played by the video playback master device connected to itself. Among them, the first time point can be that the user sends the first time point of the video currently being played by the video playback master device to the video playback slave device while sending the video playback angle switching instruction to the video playback slave device. Preferably, since a connection relationship is established between the video playback slave device and the video playback master device, the video playback master device can send the time point of its currently playing video to the video playback slave device in real time. The time point sent by the video playback master device when the video playback slave device receives the video playback angle switching instruction is the first time point.
[0050] S102: Determine a first video sub-file corresponding to the playback angle and including the first time point according to the playback angle information, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, and play the first video sub-file according to the first time point.
[0051] The video playback slave device pre-stores the MPD file corresponding to the video currently being played by the video playback master device. When the server stores the video file, it stores the video file as multiple video sub-files. The MPD file records the playback time, download address and other information corresponding to each video sub-file. In addition, the file name of the MPD file can include shooting angle information.
[0052] After the video playback slave device obtains the playback angle information and the first time point of the video currently being played by the video playback master device, it searches the MPD file corresponding to the file of the currently playing video for the download address of the first video sub-file corresponding to the playback angle and containing the first time point based on the playback angle information and the first time point, and then downloads the first video sub-file from the server based on the download address.
[0053] For example, the information of the play angle is the rear view angle, and the first time point is 01:05:45. The video playback slave device determines the information of the play angle as the rear view angle according to the file name of the MPD file, determines the video subfile containing the first time point 01:05:45 as the video subfile with a time range of 01:05:25 to 01:05:55 according to the play time corresponding to each video subfile recorded in the MPD file, and downloads the video subfile from the server according to the download address of the video subfile with a time range of 01:05:25 to 01:05:55 recorded in the MPD file.
[0054] After the video playback slave device determines the first video sub-file, it plays the first video sub-file according to the first time point. Specifically, the first video sub-file is played from the first time point. Using the above example, the video playback slave device determines that the time range of the first video sub-file is 01:05:25 to 01:05:55. Since the first time point is 01:05:45, when playing the first video sub-file, a jump command will be executed to jump to the position of 01:05:45 to start playing.
[0055] Since in the embodiment of the present invention, the video playback slave device and the video playback master device exchange time synchronization information, the user sends a video playback angle switching instruction to the video playback slave device according to the viewing angle requirements, the video playback slave device obtains the information of the playback angle to be switched carried in the video playback angle switching instruction, and obtains the first time point of the video currently being played by the video playback master device connected to itself, and determines the first video sub-file corresponding to the playback angle and including the first time point according to the playback angle information, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, and plays the first video sub-file according to the first time point. Therefore, this solution can realize that the video playback slave device can adaptively play the same video as the video playback master device at multiple angles according to the viewing angle requirements of the user, thereby improving the user's viewing experience.
[0056] Embodiment 2:
[0057] In order to ensure that the same video as the video playback host device can be played at multiple angles, based on the above embodiment, in an embodiment of the present invention, before receiving the video playback angle switching instruction, the method further includes:
[0058] Receiving a TV HBBTV application start command sent by the video playback main device;
[0059] Start its own HBBTV application and establish a connection with the video playback host device through the HBBTV application.
[0060] The video playback master device and the video playback slave device establish a connection and synchronize the playback time through the HBBTV application.
[0061] Specifically, Figure 2 As shown, when the video playback master device starts its own HBBTV application APP and starts playing videos, the video playback master device searches for and starts the slave device manager (Companion Screen Manager, CSManager) in its own HBBTV application through the web browser Web Browser in the HBBTV APP. The video playback master device initiates a command to search for the CS Launcher to the video playback slave device Companion Screen through the CSManager. When the CS Launcher exists in the video playback slave device, the video playback slave device starts its own HBBTV application and establishes a connection with the video playback master device through the HBBTV application.
[0062] After the video playback slave device starts its own HBBTV application, the application performs initialization work, including drawing a display interface, wherein the display interface includes an angle switching instruction button and a video playback area. The user can send a video playback angle switching instruction to the video playback slave device through the angle switching instruction button. After the video playback slave device draws the display interface, before determining the first video sub-file, the video playback area does not play any video. After determining the first video sub-file, the first video sub-file is played in the video playback area.
[0063] After the video playback slave device establishes a connection with the video playback master device through the HBBTV application, the video playback time of the video playback slave device and the video playback master device can be synchronized further through the HBBTV application.
[0064] In the embodiment of the present invention, obtaining the time point at which the video playing main device is currently playing the video includes:
[0065] According to the time point recorded in the multimedia synchronizer in the video playback master device, the time point at which the video playback master device is currently playing the video is determined; wherein the time point recorded in the multimedia synchronizer is the time point at which the video playback master device sends its own video playing time point to the multimedia synchronizer in real time.
[0066] Specifically, Figure 3As shown, the video playback master device has a multimedia synchronizer (Media Synchroniser). The video files played in the video playback master device all have timeline information. The video files will be converted into a series of multimedia objects (Media Objects) in the video playback master device for playback, and will be synchronized with the Media Synchroniser continuously. The video playback slave device will download the streaming media timeline relationship table (Relationship between stream timelines) from the server, and will continuously interact with the Media Synchroniser in the video playback master device. After obtaining the time in the video playback master device, it will be converted into the streaming media time information in the video playback slave device through the relationship table, thereby realizing time synchronization between the master and slave devices.
[0067] Embodiment 3:
[0068] Although the server stores the video file in pieces as multiple video sub-files, the data volume of the video sub-files is small. After the download address of the first video sub-file is determined, the first video sub-file can be downloaded quickly. However, it still takes time to download the first video sub-file, which inevitably causes a certain delay in the video playback of the first video sub-file by the device. In order to solve the problem of a certain delay in playing the first video sub-file, based on the above embodiments, in an embodiment of the present invention, before receiving the video playback angle switching instruction, the method further includes:
[0069] According to the set time interval, the second time point of the video currently being played by the video playback main device is obtained, the download address of each second video sub-file corresponding to each playback angle including the second time point is determined according to the MPD file of each playback angle, and each second video sub-file is downloaded according to the download address.
[0070] The video playback slave device can pre-set a time interval, which can be a time interval of 3 seconds, 5 seconds, 10 seconds, etc., and obtain the second time point of the video currently being played by the video playback master device according to the set time interval, wherein the process of obtaining the second time point of the video currently being played by the video playback master device is the same as the process of obtaining the first time point of the video currently being played by the video playback master device described in the above embodiment. After the video playback slave device obtains the second time point, the download address of each second video sub-file corresponding to each playback angle containing the second time point is determined according to the name of the MPD file, and the playback time, download address, and other information of the video sub-file recorded in the MPD file, and then each second video sub-file is downloaded according to the download address.
[0071] For example, the video playback slave device obtains the second time point of the video currently being played by the video playback master device as 00:00:05, and then downloads the second video sub-file of each playback angle within the time range of 00:00:00 to 00:00:55. Within the time range of 00:00:00 to 00:00:55, when a video playback angle switching instruction is received, in each second video sub-file within the time range of 00:00:00 to 00:00:55, the first video sub-file is determined and played according to the information of the playback angle. In this way, since the second video sub-file containing each playback angle of the second time point is downloaded in advance, when a video playback angle switching instruction is received within the playback time range corresponding to the second video sub-file, the first video sub-file to be played can be directly determined from the downloaded second video sub-file for playback, without the need for further downloading, thereby avoiding the problem of a certain delay in the video playback slave device playing the first video sub-file.
[0072] In addition, when the time point at which the video playback main device is currently playing the video exceeds the time range of the downloaded second video sub-file, it means that the video playback time of the second video sub-file has been played, and the video playback slave device receives a video playback angle switching instruction and will no longer play the second video sub-file. Therefore, the second video sub-file can be deleted, thereby reducing the memory occupancy of the video playback slave device.
[0073] Embodiment 4:
[0074] In order to enable the user to send the video playback angle switching instruction more flexibly, based on the above embodiments, in an embodiment of the present invention, the method further includes:
[0075] According to the number and names of the playback angles corresponding to the currently downloaded second video sub-file, the angle switching instruction button displayed on its own display interface is updated.
[0076] During the entire video playback process, sometimes the rear-view angle may not provide a better viewing effect. For example, if the protagonist is besieged by enemies in a room, then you can simultaneously display the scene of the enemies at the front door, the enemies on the tree at the door, and the enemies on the roof. For example, when the protagonist is diving, you can also display the scene on the shore and the crocodile behind the protagonist. As the plot progresses, the angles are constantly changing, and sometimes there are more angles, and sometimes there are fewer angles.
[0077] Therefore, in an embodiment of the present invention, a database is saved in the HBBTV application. The database uses time as a keyword to record the number of angles at each time point, the name of each angle, and the MPD file corresponding to each angle. At the same time, the video playback slave device obtains the data of the current time point from the video playback master device in real time, and updates the display interface in the slave device in real time. For example, the buttons displayed at 30 seconds are "Inside the House", "At the Door", and "On the Tree", while the buttons displayed at 50 seconds are "On the Shore" and "Behind".
[0078] The database format can be as follows Figure 4 As shown, the time point (in seconds), the number of angles, the name of angle 1, the MPD file corresponding to angle 1, the name of angle 2, the MPD file corresponding to angle 2, the name of angle n, and the MPD file corresponding to angle n. A maximum number of angles can be specified. If the number of angles is less than the maximum number, the following data will be empty. Assume that the maximum number of angles is 3.
[0079] Since in the embodiment of the present invention, different numbers and names of playback angles can be set at different times, users can more flexibly send video playback angle switching instructions at different times, further improving the user's viewing experience.
[0080] Figure 5 This is a viewing effect diagram provided by an embodiment of the present invention. The main video playback device is a TV, and a video is being played. At this time, the user selects a front perspective, a rear perspective, or a top view, and can simultaneously watch videos from different angles.
[0081] Figure 6 The video playback system architecture diagram provided by the embodiment of the present invention is as follows: Figure 6 As shown in the figure, the system architecture is divided into three layers, namely data collection end, server end, and client end. The data collection end is a number of cameras that collect video data from different angles. The collected data will be stored on the server end in the fragmented mp4 format, and an MPD file will be generated at the same time. The client has two devices, the video playback master device and the video playback slave device. The video playback master device can be a TV. They both obtain video files from the server end, and exchange time synchronization information between them, so as to automatically play videos from different angles in the video playback slave device in real time.
[0082] Figure 7 A schematic diagram of a detailed video playback process provided by an embodiment of the present invention, the process includes the following steps:
[0083] S201: The video playback host device starts its own HBBTV application and plays the video.
[0084] S202: The video playback master device starts the HBBTV application in the video playback slave device through the CS protocol.
[0085] S203: According to the set time interval, obtain the second time point of the video currently being played by the video playback main device, determine the download address of each second video sub-file corresponding to each playback angle including the second time point according to the MPD file of each playback angle, and download each second video sub-file according to the download address.
[0086] S204: The video playback slave device receives a video playback angle switching instruction, and obtains the first time point of the video currently being played by the video playback master device connected to itself.
[0087] S205: According to the information of the playing angle and the first time point, searching the second video sub-file downloaded by itself for the first video sub-file corresponding to the playing angle and containing the first time point, and playing the first video sub-file according to the first time point.
[0088] Embodiment 5:
[0089] Figure 8 A schematic diagram of the structure of a video playback device provided by an embodiment of the present invention, the device comprises:
[0090] The acquisition module 81 is used to receive a video playback angle switching instruction and obtain the first time point of the video currently being played by the video playback host device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched;
[0091] The playback module 82 is used to determine the first video sub-file corresponding to the playback angle and containing the first time point based on the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, and play the first video sub-file according to the first time point.
[0092] The device also includes:
[0093] The connection module 83 is used to receive a TV HBBTV application start command sent by the video playback main device; start its own HBBTV application, and establish a connection with the video playback main device through the HBBTV application.
[0094] The acquisition module 81 is also used to obtain the second time point of the video currently being played by the video playback main device at a set time interval, determine the download address of each second video sub-file corresponding to each playback angle including the second time point according to the MPD file of each playback angle, and download each second video sub-file according to the download address.
[0095] The device also includes:
[0096] The updating module 84 is used to update the angle switching instruction buttons displayed on its own display interface according to the number and names of the playback angles corresponding to the second video sub-file currently downloaded.
[0097] The acquisition module 81 is specifically used to determine the time point at which the video playback main device is currently playing the video based on the time point recorded in the multimedia synchronizer in the video playback main device; wherein the time point recorded in the multimedia synchronizer is the time point at which the video playback main device sends its own video playback time point to the multimedia synchronizer in real time.
[0098] Embodiment 6:
[0099] On the basis of the above embodiments, the present invention also provides a video playback slave device, such as Fig. 9 As shown, it includes: a processor 301, a communication interface 302, a memory 303 and a communication bus 304, wherein the processor 301, the communication interface 302, and the memory 303 communicate with each other through the communication bus 304;
[0100] The memory 303 stores a computer program. When the program is executed by the processor 301, the processor 301 performs the following steps:
[0101] The video playback slave device receives a video playback angle switching instruction and obtains the first time point of the video currently being played by the video playback master device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched;
[0102] According to the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, the first video sub-file corresponding to the playback angle and containing the first time point is determined, and the first video sub-file is played according to the first time point.
[0103] Based on the same inventive concept, a video playback slave device is also provided in an embodiment of the present invention. Since the principle of solving the problem by the above-mentioned video playback slave device is similar to that of the video playback method, the implementation of the above-mentioned video playback slave device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0104] The video playback slave device provided in the embodiment of the present invention may specifically be a desktop computer, a portable computer, a smart phone, a tablet computer, a personal digital assistant (PDA), a network side device, etc.
[0105] The communication bus mentioned in the video playback slave device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0106] The communication interface 302 is used for communication between the above-mentioned video playback slave device and other devices.
[0107] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0108] The above-mentioned processor can be a general-purpose processor, including a central processing unit, a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc.
[0109] In the embodiment of the present invention, when the processor executes the program stored in the memory, the video playback slave device receives the video playback angle switching instruction and obtains the first time point of the video currently played by the video playback master device connected to itself; wherein the video playback angle switching instruction carries the information of the playback angle to be switched; according to the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently played video stored by itself, the first video sub-file corresponding to the playback angle and including the first time point is determined, and the first video sub-file is played according to the first time point. In the embodiment of the present invention, the user sends the video playback angle switching instruction to the video playback slave device according to the need of the viewing angle, the video playback slave device obtains the information of the playback angle to be switched carried in the video playback angle switching instruction, and obtains the first time point of the video currently played by the video playback master device connected to itself, and according to the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently played video stored by itself, the first video sub-file corresponding to the playback angle and including the first time point is determined, and the first video sub-file is played according to the first time point. Therefore, this solution can realize that according to the user's viewing angle requirements, the video playback slave device can adaptively play the same video as the video playback master device at multiple angles, thereby improving the user's viewing experience.
[0110] Embodiment 7:
[0111] On the basis of the above embodiments, an embodiment of the present invention further provides a computer storage readable storage medium, wherein the computer readable storage medium stores a computer program executable by a video playback slave device, and when the program is executed on the video playback slave device, the video playback slave device implements the following steps when executing:
[0112] The video playback slave device receives a video playback angle switching instruction and obtains the first time point of the video currently being played by the video playback master device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched;
[0113] According to the information of the playback angle, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, the first video sub-file corresponding to the playback angle and containing the first time point is determined, and the first video sub-file is played according to the first time point.
[0114] Based on the same inventive concept, a computer-readable storage medium is also provided in an embodiment of the present invention. Since the principle of solving the problem when the processor executes the computer program stored on the above-mentioned computer-readable storage medium is similar to that of the video playback method, the implementation of the processor when executing the computer program stored on the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0115] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the video playback slave device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD), etc.
[0116] A computer program is stored in a computer-readable storage medium provided in an embodiment of the present invention. When the computer program is executed by a processor, a video playback slave device receives a video playback angle switching instruction and obtains a first time point of a video currently being played by a video playback master device connected to itself; wherein the video playback angle switching instruction carries information of a playback angle to be switched; a first video sub-file corresponding to the playback angle and including the first time point is determined based on the playback angle information, the first time point and an MPD file corresponding to the file of the currently playing video saved by itself, and the first video sub-file is played based on the first time point.
[0117] Since in the embodiment of the present invention, the user sends a video playback angle switching instruction to the video playback slave device according to the viewing angle requirement, the video playback slave device obtains the information of the playback angle to be switched carried in the video playback angle switching instruction, and obtains the first time point of the video currently being played by the video playback master device connected to itself, and determines the first video sub-file corresponding to the playback angle and including the first time point according to the playback angle information, the first time point and the MPD file corresponding to the file of the currently playing video saved by itself, and plays the first video sub-file according to the first time point. Therefore, this solution can realize that the video playback slave device can adaptively play the same video as the video playback master device at multiple angles according to the viewing angle requirement of the user, thereby improving the viewing experience of the user.
[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0121] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0122] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A video playback method, characterized in that: The method comprises: The video playback slave device receives a video playback angle switching instruction and obtains the first time point of the video currently being played by the video playback master device connected to itself; wherein the video playback angle switching instruction carries information of the playback angle to be switched; Determine a first video subfile corresponding to the playback angle and including the first time point according to the playback angle information, the first time point, and a multimedia presentation description MPD file corresponding to the file of the currently playing video stored in the system, and play the first video subfile according to the first time point; Before receiving the video playback angle switching instruction, the method further includes: Receiving a TV HBBTV application start command sent by the video playback main device; Start its own HBBTV application and establish a connection with the video playback host device through the HBBTV application; Before receiving the video playback angle switching instruction, the method further includes: According to the set time interval, the second time point of the video currently being played by the video playback host device is obtained, the download address of each second video sub-file corresponding to each playback angle including the second time point is determined according to the MPD file of each playback angle, and each second video sub-file is downloaded according to the download address; when the time point of the video currently being played by the video playback host device exceeds the time range of the downloaded second video sub-file, the second video sub-file is deleted; The method further comprises: According to the number and name of the playback angles corresponding to the currently downloaded second video sub-file, the angle switching instruction button displayed on its own display interface is updated; wherein, a database is saved in the HBBTV application, which uses time as the keyword to record the number of angles at each time point, the name of each angle, and the MPD file corresponding to each angle.
2. The method according to claim 1, characterized in that Obtaining the time point at which the video playback host device is currently playing the video includes: According to the time point recorded in the multimedia synchronizer in the video playback master device, the time point at which the video playback master device is currently playing the video is determined; wherein the time point recorded in the multimedia synchronizer is the time point at which the video playback master device sends its own video playing time point to the multimedia synchronizer in real time.
3. A video playback device, characterized in that: The device comprises: An acquisition module, used to receive a video playback angle switching instruction and acquire a first time point of a video currently being played by a video playback host device connected to the module; wherein the video playback angle switching instruction carries information of a playback angle to be switched; a playing module, configured to determine a first video subfile corresponding to the playing angle and including the first time point according to the information of the playing angle, the first time point and an MPD file corresponding to the file of the currently playing video stored in the module, and play the first video subfile according to the first time point; The device also includes: A connection module is used to receive a TV HBBTV application start command sent by the video playback main device; start its own HBBTV application, and establish a connection with the video playback main device through the HBBTV application; wherein, according to a set time interval, the second time point of the video currently being played by the video playback host device is obtained, the download address of each second video sub-file corresponding to each playback angle including the second time point is determined according to the MPD file of each playback angle, and each second video sub-file is downloaded according to the download address; when the time point of the video currently being played by the video playback host device exceeds the time range of the downloaded second video sub-file, the second video sub-file is deleted; The device also includes: The update module is used to update the angle switching instruction button displayed on its own display interface according to the number and name of the playback angles corresponding to the second video sub-file currently downloaded; wherein a database is saved in the HBBTV application, which uses time as a keyword to record the number of angles at each time point, the name of each angle, and the MPD file corresponding to each angle.
4. A video playback slave device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor is used to implement the method steps described in claim 1 or 2 when executing a program stored in a memory.
5. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of claim 1 or 2 are implemented.
Citation Information
Patent Citations
Method and device for adjusting panorama video play visual angle of intelligent TV
CN105898460A
Panoramic video playing device and method
CN106454450A
Video playing method and apparatus
CN106921864A
Play control method and device for virtual reality video and equipment
CN106937143A
Video playing processing method, equipment and computer readable storage medium
CN107547940A
