CN117812413A - Terminal equipment, video playing method and medium - Google Patents

Terminal equipment, video playing method and medium Download PDF

Info

Publication number
CN117812413A
CN117812413A CN202310776840.6A CN202310776840A CN117812413A CN 117812413 A CN117812413 A CN 117812413A CN 202310776840 A CN202310776840 A CN 202310776840A CN 117812413 A CN117812413 A CN 117812413A
Authority
CN
China
Prior art keywords
video
played
preset
playing
browser application
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.)
Pending
Application number
CN202310776840.6A
Other languages
Chinese (zh)
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.)
Hisense Electronic Technology Shenzhen Co ltd
Original Assignee
Hisense Electronic Technology Shenzhen Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Electronic Technology Shenzhen Co ltd filed Critical Hisense Electronic Technology Shenzhen Co ltd
Priority to CN202310776840.6A priority Critical patent/CN117812413A/en
Publication of CN117812413A publication Critical patent/CN117812413A/en
Pending legal-status Critical Current

Links

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a terminal device, a video playing method and a medium, wherein a browser application is installed on the terminal device, a preset player is set on the browser application, and the preset player is used for playing a video to be played, which belongs to a preset type of video, and the method comprises the following steps: receiving a play instruction input by a user on a browser application, wherein the play instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling a preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. Therefore, the video to be played belonging to the preset type of video can be played through the preset player on the browser application, so that the situation that the video to be played fails when a user plays the video to be played through the browser application due to the fact that video playing under a partial streaming media protocol cannot be supported in the prior art is avoided, and the user experience is improved.

Description

Terminal equipment, video playing method and medium
Technical Field
The disclosure relates to the field of computer technologies, and in particular, to a terminal device, a video playing method and a medium.
Background
Browser applications are applications that are used to retrieve, display, and deliver web page information resources, which can be rich through web pages, pictures, and videos to users.
However, for different videos played on the browser application, the playing may be performed based on different streaming media protocols, but the current browser application is not perfect in supporting multiple streaming media protocols, that is, cannot support video playing under a partial streaming media protocol, so that when a user plays a video through the browser application, there is often a situation that the playing of the video fails, and user experience is reduced.
Disclosure of Invention
In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a terminal device, a video playing method, and a medium, where when a playing instruction for a video to be played input by a user is received, when it is determined that the video to be played belongs to a preset type of video according to a target link of the video to be played, the video to be played belonging to the preset type of video can be played by a preset player disposed on a browser application, so that the situation that in the prior art, the browser application is imperfect in supporting multiple streaming media protocols and cannot support video playing under a partial streaming media protocol is avoided, so that when the video to be played is played by the browser application, the failure of playing the video to be played is reduced, and user experience is improved.
In a first aspect, the present disclosure provides a terminal device, on which a browser application is installed, where a preset player is set on the browser application, where the preset player is used to play a video to be played that belongs to a preset type of video, including:
a controller configured to:
receiving a play instruction input by a user on the browser application, wherein the play instruction is used for indicating to play the video to be played;
responding to the playing instruction, and acquiring a target link corresponding to the video to be played;
and controlling the preset player to play the video to be played when the video to be played is determined to belong to the preset type video according to the target link corresponding to the video to be played.
As an alternative implementation of the embodiments of the present disclosure, the controller is specifically configured to:
when the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link;
controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream;
And rendering and playing the video to be played according to the target data stream.
As an alternative implementation of the disclosed embodiments, the initial data stream includes initial video data and initial audio data; the controller is specifically configured to:
the preset decoding component is controlled to decode the initial video data, so that target video data corresponding to the initial video data are obtained;
and controlling the preset decoding component to decode the initial audio data to obtain target audio data corresponding to the initial audio data.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
and controlling an audio and video synchronization component corresponding to the preset player to synchronously play the target video data and the target audio data.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
controlling a preset acquisition component corresponding to the preset player to acquire playing window information for playing the video to be played;
and creating a target window for playing the video to be played on a display interface on the browser application according to the playing window information.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
receiving preset operation for the video to be played, which is input by a user on the browser application, in the process of playing the video to be played, wherein the preset operation is a play pause operation, a play start operation and a cache operation;
and controlling the preset player to execute the preset operation aiming at the video to be played.
As an alternative implementation of the disclosed embodiments, the controller is further configured to:
and stopping playing the video to be played when the preset acquisition component monitors that the video to be played is abnormal in the video to be played playing process.
In a second aspect, the present disclosure provides a video playing method, applied to a terminal device, where a browser application is installed on the terminal device, and a preset player is set on the browser application, where the preset player is used for playing a video to be played, which belongs to a preset type of video, and includes:
receiving a play instruction input by a user on the browser application, wherein the play instruction is used for indicating to play the video to be played;
Responding to the playing instruction, and acquiring a target link corresponding to the video to be played;
and controlling the preset player to play the video to be played when the video to be played is determined to belong to the preset type video according to the target link corresponding to the video to be played.
As an optional implementation manner of the embodiment of the present disclosure, when it is determined that the video to be played belongs to the preset type of video, controlling the preset player to play the video to be played specifically includes:
when the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link;
controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream;
and rendering and playing the video to be played according to the target data stream.
In a third aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the video playback method as described in the second aspect.
Compared with the prior art, the technical scheme provided by the embodiment of the disclosure has the following advantages:
The controller of the terminal equipment is provided with a browser application through the terminal equipment, a preset player is arranged on the browser application, and the preset player is used for playing videos to be played, which belong to preset types of videos, and comprises: a controller of the terminal equipment receives a playing instruction input by a user on a browser application, wherein the playing instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling the preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure.
In order to more clearly illustrate the embodiments of the present disclosure or the solutions in the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic view of a scenario architecture supporting a video playing method according to an embodiment of the present disclosure;
fig. 2 is a hardware configuration block diagram of a terminal device 200 according to one or more embodiments of the present disclosure;
fig. 3 is a schematic diagram of a software configuration in a terminal device 200 according to one or more embodiments of the present disclosure;
FIG. 4 is a schematic diagram of an icon control interface display of an application in a terminal device 200 according to one or more embodiments of the present disclosure;
FIG. 5 is a diagram of a video playback system framework in accordance with one or more embodiments of the present disclosure;
fig. 6 is a flowchart of a video playing method according to an embodiment of the present disclosure;
Fig. 7 is a schematic view of a scene of a display interface on a browser application according to an embodiment of the disclosure;
fig. 8 is a flowchart of another video playing method according to an embodiment of the present disclosure;
fig. 9 is a flowchart of still another video playing method according to an embodiment of the disclosure;
fig. 10 is a flowchart of yet another video playing method according to an embodiment of the disclosure;
fig. 11 is a flowchart of another video playing method according to an embodiment of the disclosure;
fig. 12 is a schematic view of a target window for playing a video to be played according to an embodiment of the disclosure.
Detailed Description
In order that the above objects, features and advantages of the present disclosure may be more clearly understood, a further description of aspects of the present disclosure will be provided below. It should be noted that, without conflict, the embodiments of the present disclosure and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present disclosure, but the present disclosure may be practiced otherwise than as described herein; it will be apparent that the embodiments in the specification are only some, but not all, embodiments of the disclosure.
The terms "first" and "second" and the like in this disclosure are used to distinguish between different objects and are not used to describe a particular order of objects. For example, the first processing result and the second processing result, etc., are used to distinguish between different processing results, not to describe a particular order of processing results.
Fig. 1 is a schematic view of a scene architecture supporting a video playing method according to an embodiment of the present disclosure, where the scene architecture provided by the embodiment of the present disclosure includes: the server 100 and the terminal device 200, and the terminal device 200 may have various implementation forms, for example, may be a smart television, a smart phone, a personal computer, a display, and the like. The embodiment of the disclosure does not limit the specific type of the terminal equipment. In the prior art, a user can obtain rich information resources through a browser application, for example, the information resources required by the user are obtained by means of inquiring web pages, pictures, videos and the like through the browser application.
However, when the user plays different videos on the browser application, since each video is played based on different streaming media protocols, the current browser application cannot support video playing under all streaming media protocols, that is, the current browser application can only support video playing under a certain streaming media protocols and audio formats, for example, the browser application cannot play video under dynamic adaptive streaming over HTTP (Dynamic Adaptive Streaming over HTTP, DASH) streaming media protocol and microsoft streaming smooth streaming (Microsoft Smooth Streaming, MSS) streaming media protocol, so that when the user plays video through the browser application, there is often a situation that video playing fails, and user experience is reduced. At present, in order to enable a user to play videos under a plurality of different streaming media protocols on a browser application, a DASH. JS mode is introduced to solve the problem of video playing under the DASH streaming media protocol, however, the problem of downloading performance exists when the JS is downloaded, so that the phenomenon of blocking and delaying of the video under the DASH streaming media protocol is caused, and the experience of the user is influenced.
In order to solve the above-mentioned problems, an embodiment of the present disclosure provides a video playing method, in which a browser application is installed on a terminal device, and a preset player is set on the browser application, where the preset player is used for playing a video to be played, which belongs to a preset type of video, and the method includes: a controller of the terminal equipment receives a playing instruction input by a user on a browser application, wherein the playing instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling the preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
In some embodiments, the terminal device 200 may receive a user instruction input by a user through the control device, and may perform data communication with the server 100 after receiving the user instruction. The terminal device 200 may be allowed to make a communication connection with the server 100 through a Local Area Network (LAN), a Wireless Local Area Network (WLAN).
The server 100 may be a server providing various services, such as a server providing support for media data collected by the terminal device 200. The server may perform analysis or the like on the received media data, and feed back a processing result (e.g., endpoint information) to the terminal device. The server 100 may be a server cluster, or may be a plurality of server clusters, and may include one or more types of servers.
In some embodiments, the terminal device 200 may also be controlled by a control device. The control device may be a remote controller, and the communication between the remote controller and the terminal device 200 may include infrared protocol communication, bluetooth protocol communication, wireless or other wired mode, etc., by which the terminal device 200 can be controlled. The user can control the terminal device 200 by inputting user instructions through keys on a remote controller, voice input, control panel input, and the like. Such as: the user can input corresponding control instructions through volume up-down keys, menu keys, on-off keys and the like on the remote controller to realize the function of controlling the terminal device 200.
Fig. 2 is a hardware configuration block diagram of a terminal device 200 according to one or more embodiments of the present disclosure. The terminal apparatus 200 as shown in fig. 2 includes at least one of a modem 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface (i.e., user input interface) 280. The controller 250 includes a central processor, a video processor, an audio processor, a graphic processor, a RAM, a ROM, and first to nth interfaces for input/output. The display 260 may be at least one of a liquid crystal display, an OLED display, a touch display, and a projection display, and may also be a projection device and a projection screen. The modem 210 receives broadcast television signals through a wired or wireless reception manner, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals. The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or a near field communication protocol chip, and an infrared receiver. The terminal device 200 may establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220. The detector 230 is used to collect signals of the external environment or interaction with the outside. The controller 250 and the modem 210 may be located in separate devices, i.e., the modem 210 may also be located in an external device to the main device in which the controller 250 is located, such as an external set-top box. The user interface 280 may be used to receive control signals for a control device, such as an infrared remote control or the like.
In some embodiments, the controller 250 controls the operation of the terminal device and responds to the user's operations by various software control programs stored on the memory. The controller 250 controls the overall operation of the terminal device 200. The user may input a user command through a Graphical User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface recognizes the sound or gesture through the sensor to receive the user input command.
In some embodiments, a "user interface" is a media interface for interaction and exchange of information between an application or operating system and a user that enables conversion between an internal form of information and a form acceptable to the user. A commonly used presentation form of the user interface is a graphical user interface (Graphic User Interface, GUI for short), which refers to a user interface related to computer operations that is displayed in a graphical manner. It may be an interface element such as an icon, a window, and a control displayed in a display screen of the electronic device, where the control may include at least one of a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, and the like.
Fig. 3 is a schematic view of software configuration in a terminal device 200 according to one or more embodiments of the present disclosure, as shown in fig. 3, the system is divided into four layers, namely, an application layer (application layer), an application framework layer (Application Framework layer), an Android run layer and a system library layer (system runtime layer), and a kernel layer from top to bottom.
In some embodiments, at least one application program is running in the application program layer, and these application programs may be a Window (Window) program of an operating system, a system setting program, a clock program, or the like; or may be an application developed by a third party developer. In particular implementations, applications in the application layer include, but are not limited to, the examples above.
In some embodiments, the system runtime layer provides support for the upper layer, the framework layer, and when the framework layer is in use, the android operating system runs the C/C++ libraries contained in the system runtime layer to implement the functions to be implemented by the framework layer.
In some embodiments, the kernel layer is a layer between hardware and software, containing at least one of the following drivers: audio drive, display drive, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (e.g., fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply drive, etc.
Fig. 4 is a schematic diagram of an icon control interface display of an application in a terminal device 200 according to one or more embodiments of the present disclosure, where, as shown in fig. 4, an application layer includes at least one application that may display a corresponding icon control in a display, for example: a live television application icon control, a video on demand application icon control, a media center application icon control, an application center icon control, a game application icon control, and the like. Live television applications can provide live television through different signal sources. Video on demand applications may provide video from different storage sources. Unlike live television applications, video-on-demand provides video displays from some storage sources. The media center application may provide various applications for playing multimedia content. An application center may be provided to store various applications.
In some embodiments, the terminal device is a terminal device with a display function, such as a television, a mobile phone, a computer, a learning machine, and the like. The controller of the terminal equipment is provided with a browser application through the terminal equipment, wherein a preset player is arranged on the browser application and used for playing videos to be played, which belong to preset types of videos, and the controller comprises: a controller of the terminal equipment receives a playing instruction input by a user on a browser application, wherein the playing instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling the preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
In some embodiments, the terminal device is a device with a display function, such as a smart computer, a mobile phone, a tablet, a learning machine, etc. The terminal equipment is provided with a browser application, a preset player is arranged on the browser application, and the preset player is used for playing videos to be played, which belong to preset types of videos, and comprises the following steps:
a controller 250 configured to:
receiving a play instruction input by a user on the browser application, wherein the play instruction is used for indicating to play the video to be played;
responding to the playing instruction, and acquiring a target link corresponding to the video to be played;
and controlling the preset player to play the video to be played when the video to be played is determined to belong to the preset type video according to the target link corresponding to the video to be played.
In some embodiments, the controller 250 is specifically configured to: specifically configured to:
when the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link;
controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream;
And rendering and playing the video to be played according to the target data stream.
In some embodiments, the initial data stream includes initial video data and initial audio data; the controller 250 is specifically configured to:
the preset decoding component is controlled to decode the initial video data, so that target video data corresponding to the initial video data are obtained;
and controlling the preset decoding component to decode the initial audio data to obtain target audio data corresponding to the initial audio data.
In some embodiments, the controller 250 is further configured to:
and controlling an audio and video synchronization component corresponding to the preset player to synchronously play the target video data and the target audio data.
In some embodiments, the controller 250 is further configured to:
controlling a preset acquisition component corresponding to the preset player to acquire playing window information for playing the video to be played;
and creating a target window for playing the video to be played on a display interface on the browser application according to the playing window information.
In some embodiments, the controller 250 is further configured to:
receiving preset operation for the video to be played, which is input by a user on the browser application, in the process of playing the video to be played, wherein the preset operation is a play pause operation, a play start operation and a cache operation;
and controlling the preset player to execute the preset operation aiming at the video to be played.
In some embodiments, the controller 250 is further configured to:
and stopping playing the video to be played when the preset acquisition component monitors that the video to be played is abnormal in the video to be played playing process.
In summary, the present disclosure provides a method for playing video to be played by executing the video playing method on a terminal device, and installing, by a controller of the terminal device, a browser application on the terminal device, where the browser application is provided with a preset player, where the preset player is used to play video to be played, which belongs to a preset type of video, and the method includes: a controller of the terminal equipment receives a playing instruction input by a user on a browser application, wherein the playing instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling the preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
Fig. 5 is a frame diagram of a video playback system according to one or more embodiments of the present disclosure, where the system may include a playback instruction receiving module 51, an obtaining module 52, and a playback module 53, as shown in fig. 5. The system can be implemented on terminal equipment, wherein a browser application is installed on the terminal equipment, a preset player is arranged on the browser application, the preset player is used for playing videos to be played, which belong to preset types of videos, a play instruction receiving module 51 is used for receiving play instructions input by a user on the browser application, and the play instructions are used for indicating to play the videos to be played; the obtaining module 52 is configured to obtain a target link corresponding to the video to be played in response to the play instruction; the playing module 53 is configured to control the preset player to play the video to be played when determining that the video to be played belongs to the preset type video according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
For more detailed description of the present solution, the following description will be given by way of example with reference to fig. 6, and it will be understood that the steps involved in fig. 6 may include more steps or fewer steps when actually implemented, and the order of these steps may also be different, so long as the video playing method provided in the embodiments of the present disclosure can be implemented, and the embodiments of the present disclosure are not limited.
Fig. 6 is a flowchart of a video playing method according to an embodiment of the present disclosure. The embodiment is applied to a terminal device side, a browser application is installed on the terminal device, a user can play videos to be played and browse webpages through the browser application according to own requirements to obtain rich information resources, further, in order to enable the user to play the videos to be played under various protocols by using the browser application, a preset player is arranged on the browser application and is used for playing the videos to be played, which belong to preset types of videos, and the preset player can be, for example, an open-source ExoPlayer, and can support various streaming media protocols such as a DASH streaming media protocol and an MSS streaming media protocol, and support videos to be played in various video formats such as MP4 and M4A, FMP4, but the invention is not limited thereto, and a person skilled in the art can set according to practical situations.
The preset type video refers to various videos played based on different streaming media protocols, for example, a video played based on a DASH streaming media protocol, that is, a DASH type video, a video played based on an MSS streaming media protocol, that is, an MSS type video, but the present disclosure is not limited thereto, and a person skilled in the art may set according to actual situations.
As shown in fig. 6, the video playing method specifically includes the following steps:
s61, receiving a play instruction input by a user on the browser application.
The playing instruction is used for indicating to play the video to be played. The play command may be input by a user through pressing a control device such as a remote control or a mobile phone, or input by a user voice, or input by clicking a video to be played on a display interface of a browser application through a keyboard or a mouse, but is not limited thereto, and the disclosure is not particularly limited thereto.
Specifically, a user inputs a playing instruction aiming at a certain video to be played on a browser application according to own requirements, a controller of the terminal equipment receives the playing instruction aiming at the video to be played of the user, and the video to be played is determined and played through the playing instruction.
As shown in fig. 7, for example, there are a plurality of videos to be played on the browser application, such as a video to be played 1, a video to be played 2, a video to be played 3, and a video to be played 4.
S62, responding to the playing instruction, and acquiring a target link corresponding to the video to be played.
The target link refers to a uniform network address on the browser application, that is, the target link is a uniform resource locator (Uniform Resource Locator, URL), and the target link can be used to identify the video to be played, so as to determine whether the video to be played belongs to a preset type of video, and of course, the initial data stream of the video to be played can also be obtained through the target link, which is not limited thereto, and the present disclosure is not particularly limited, and a person skilled in the art can set according to actual situations.
Specifically, after receiving a play instruction input by a user on a browser application, a controller of the terminal device responds to the play instruction to obtain a target link of a video to be played indicated by the play instruction, and judges whether the video to be played belongs to a preset type of video according to the target link.
And S63, controlling a preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played.
Specifically, the controller of the terminal device judges the video type of the video to be played according to the obtained target link corresponding to the video to be played, judges whether the video to be played belongs to the preset type video, and controls the preset player to play the video to be played when the video to be played is determined to belong to the preset type video.
For example, with the above embodiment, for the video 2 to be played, when receiving click play of the video 2 to be played by the user, the target link corresponding to the video 2 to be played is obtained as "http: xxxxx. Js", and it can be determined that the video 2 to be played belongs to a DASH type video according to the key field "js" in the target link, and then the default player ExoPlayer set on the browser application is controlled to play the video 2, but the disclosure is not limited thereto, and the present disclosure is not particularly limited thereto, and a person skilled in the art can set according to actual situations.
It should be noted that, when it is determined that the video to be played does not belong to the preset type of video according to the target link corresponding to the video to be played, the video to be played may be played by an original playing method of the browser application.
In the technical scheme provided by the embodiment of the disclosure, by installing a browser application on a terminal device, a preset player is set on the browser application, and the preset player is used for playing a video to be played, which belongs to a preset type of video, and includes: a controller of the terminal equipment receives a playing instruction input by a user on a browser application, wherein the playing instruction is used for indicating to play a video to be played; responding to a playing instruction, and acquiring a target link corresponding to a video to be played; and controlling the preset player to play the video to be played when the video to be played is determined to belong to the video of the preset type according to the target link corresponding to the video to be played. According to the technical scheme, when the playing instruction for the video to be played, which is input by the user, is received, when the video to be played belongs to the preset type of video according to the target link of the video to be played, the video to be played belonging to the preset type of video can be played through the preset player arranged on the browser application, so that the situation that the browser application in the prior art is imperfect in supporting various streaming media protocols and cannot support video playing under partial streaming media protocols is avoided, and when the video to be played is played through the browser application, the situation that the video to be played fails to be played is reduced, and the user experience is improved.
Optionally, fig. 8 is a flowchart of another video playing method according to an embodiment of the disclosure. Fig. 8 is a further optimization based on fig. 6, and as shown in fig. 8, one possible implementation manner of controlling the preset player to play the video to be played when it is determined that the video to be played belongs to the preset type of video is shown in fig. 8:
s81, according to the target link corresponding to the video to be played, when the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link.
Specifically, when the controller of the terminal device determines that the video to be played belongs to the preset type of video according to the obtained target link corresponding to the video to be played, the controller further obtains an initial data stream corresponding to the video to be played according to the target link corresponding to the video to be played.
It should be noted that, for the initial data stream corresponding to the video to be played, the initial data stream may be obtained from the local database of the terminal device according to the target link corresponding to the video to be played, or the obtaining instruction may be sent to the server, so that the server responds to the obtaining instruction to send the initial data stream corresponding to the video to be played to the terminal device, which is not limited to this, the disclosure is not particularly limited, and those skilled in the art may set according to the actual situation.
S82, controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream.
The preset decoding component is a component corresponding to a preset player, that is, when the preset player is integrated on a browser application, a plurality of preset components related to the preset player and used for playing the video to be played are correspondingly integrated on the browser application, and the preset decoding component can be, for example, a Media Codec decoding component corresponding to an ExoPlayer of the preset player, but not limited thereto.
Specifically, for an initial data stream corresponding to a video to be played, a controller of the terminal device controls a preset decoding component corresponding to a preset player integrated on a browser application to decode the initial data stream so as to obtain a target data stream corresponding to the video to be played.
Optionally, fig. 9 is a flowchart of still another video playing method according to an embodiment of the disclosure. Fig. 9 is a further optimization on the basis of fig. 8, including initial video data and initial audio data for the initial data stream, as shown in fig. 9, one possible implementation of S82:
S91, controlling a preset decoding component to decode the initial video data to obtain target video data corresponding to the initial video data.
S92, controlling a preset decoding component to decode the initial audio data to obtain target audio data corresponding to the initial audio data.
Specifically, for initial video data and initial audio data included in an initial data stream corresponding to a video to be played, a preset decoding component corresponding to a preset player integrated on a browser application is controlled to decode the initial video data to obtain target video data corresponding to the initial video data, and the preset decoding component is controlled to decode the initial audio data to obtain target audio data corresponding to the initial audio data.
In this embodiment, when the preset player is an ExoPlayer, the preset decoding component is a Media Codec decoding component, and the preset decoding components that perform decoding processing on the initial video data and the initial audio data are all decoded by the Media Codec decoding component.
And S83, rendering and playing the video to be played according to the target data stream.
Specifically, after obtaining the decoded target data stream, the controller of the terminal device performs rendering processing on the target data stream to obtain each frame of video frame corresponding to the video to be played, and displays the video to be played to the user, so that the video to be played is played to the user.
In the technical scheme provided by the embodiment of the disclosure, in the process, decoding processing is performed on the initial data stream of the video to be played through the preset decoding component corresponding to the preset player, and the decoded target data stream is rendered, so that the video to be played belonging to the preset type of video is played, the failure of playing the video to be played is avoided, and the user experience is improved.
Fig. 10 is a flowchart of another video playing method according to an embodiment of the disclosure. Fig. 10 is a further optimization based on fig. 9, and it should be noted that, since the video to be played includes video data and audio data, in order to ensure that the video to be played and the audio data are played synchronously when the video to be played is played, as shown in fig. 10, after S92 is executed, the method further includes:
s101, controlling an audio and video synchronization component corresponding to a preset player, and performing synchronous play processing on target video data and target audio data.
The audio/video synchronization component is used for performing synchronization processing on target video data and target audio data after decoding processing on a video to be played, and the audio/video synchronization component can be, for example, a Tunnel model corresponding to a preset player ExoPlayer, but is not limited thereto, the disclosure is not particularly limited, and a person skilled in the art can set according to practical situations.
Specifically, after obtaining target video data and target audio data after decoding a video to be played, a controller of the terminal equipment controls and controls an audio/video synchronization component corresponding to a preset player to synchronously play the target video data and the target audio data.
Alternatively, the synchronous playing process may be performed on the target video data and the target audio data according to a time stamp, but is not limited thereto, and the present disclosure is not particularly limited thereto, and may be set by those skilled in the art according to actual situations.
According to the technical scheme provided by the embodiment of the disclosure, in the process, the target video data and the target audio data after the video to be played are decoded can be synchronously processed, so that when the video to be played is played, the target video data and the target audio data are synchronously played, the problems of delay and blocking of the target video data and the target audio data are avoided, and good experience feeling is brought to a user.
Fig. 11 is a flowchart of another video playing method according to an embodiment of the disclosure. Fig. 11 is a further optimization based on fig. 10, and as shown in fig. 11, further includes, before executing S83:
S111, controlling a preset acquisition component corresponding to the preset player to acquire playing window information for playing the video to be played.
The preset acquiring component is used for acquiring related playing information of the video to be played, such as playing window information, the playing window information may be, for example, a size of a target window used for playing the video to be played on a display interface of a browser application, and the preset acquiring component may be, for example, exoPlayer Listener corresponding to an ExoPlayer of a preset player, but is not limited thereto, and the present disclosure is not particularly limited thereto, and a person skilled in the art may set according to practical situations.
And S112, creating a target window for playing the video to be played on a display interface on the browser application according to the playing window information.
Specifically, a controller of the terminal device controls a preset acquisition component corresponding to a preset player to acquire playing window information of a display interface on a browser application for playing a video to be played, and creates a target window for playing the video to be played on the display interface on the browser application according to the playing window information.
As illustrated in fig. 12, the target window 202 for playing the video to be played is created on the display interface 201 on the browser application according to the play window information, but not limited thereto, and the present disclosure is not particularly limited and may be set by those skilled in the art according to actual circumstances.
In the technical scheme provided by the embodiment of the disclosure, in the process, the target window for playing the video to be played is created on the display interface of the browser application through the play window information of the video to be played, so that the user is ensured to play the video to be played on the display interface of the browser application according with the page position and the play window size required by the user, and the user experience is improved.
Optionally, on the basis of the foregoing embodiments, in some embodiments of the present disclosure, when playing the video to be played, in order to meet the needs of the user at different moments, based on this, the method further includes:
and in the process of playing the video to be played, receiving preset operation aiming at the video to be played, which is input by a user on the browser application.
The preset operation is a play pause operation, a play start operation and a buffer operation.
And controlling the preset player to execute preset operation aiming at the video to be played.
Specifically, in the process of playing the video to be played, the controller of the terminal device receives a preset operation for the video to be played, which is input by a user on the browser application, for example, an operation of suspending playing the video to be played, or an operation of restarting playing the video to be played after suspending playing the video to be played, and controls the preset player to execute the preset operation for the video to be played.
In the technical scheme provided by the embodiment of the disclosure, in the process, the preset player can be controlled to respond to the preset operation for the video to be played, which is input by the user on the browser application, so that the requirement of the user is met, and the user experience is improved.
Optionally, on the basis of the foregoing embodiments, in some embodiments of the disclosure, the method further includes:
and stopping playing the video to be played when the preset acquisition component monitors that the video to be played is abnormal in the video to be played playing process.
Specifically, in the process of playing the video to be played, the controller of the terminal equipment stops playing the video to be played when monitoring that the video to be played is abnormal through the preset acquisition component, namely, the video to be played cannot be played.
The foregoing abnormality in playing the video to be played may be an abnormality caused by failure in decoding the initial data stream, or may be an abnormality caused by failure in creating the target window for playing the video to be played, but is not limited thereto, and the present disclosure is not particularly limited thereto, and may be set by those skilled in the art according to actual situations.
Optionally, based on the foregoing embodiments, in some embodiments of the present disclosure, when an abnormality is detected in the video to be played, a prompt message may also be sent to the user to prompt the user to play the video to be played to have the abnormality.
The embodiments of the present disclosure provide a computer readable storage medium, on which a computer program is stored, where the computer program when executed by a processor implements each process executed by the video playing method described above, and the same technical effects can be achieved, and for avoiding repetition, a detailed description is omitted herein.
The computer readable storage medium may be a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, an optical disk, or the like.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the above discussion in some examples is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. The terminal device is characterized in that a browser application is installed on the terminal device, a preset player is arranged on the browser application, and the preset player is used for playing videos to be played, which belong to preset types of videos, and comprises:
A controller configured to:
receiving a play instruction input by a user on the browser application, wherein the play instruction is used for indicating to play the video to be played;
responding to the playing instruction, and acquiring a target link corresponding to the video to be played;
and controlling the preset player to play the video to be played when the video to be played is determined to belong to the preset type video according to the target link corresponding to the video to be played.
2. The terminal device of claim 1, wherein the controller is specifically configured to:
when the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link;
controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream;
and rendering and playing the video to be played according to the target data stream.
3. The terminal device of claim 2, wherein the initial data stream comprises initial video data and initial audio data; the controller is specifically configured to:
The preset decoding component is controlled to decode the initial video data, so that target video data corresponding to the initial video data are obtained;
and controlling the preset decoding component to decode the initial audio data to obtain target audio data corresponding to the initial audio data.
4. A terminal device according to claim 3, wherein the controller is further configured to:
and controlling an audio and video synchronization component corresponding to the preset player to synchronously play the target video data and the target audio data.
5. The terminal device of claim 1, wherein the controller is further configured to:
controlling a preset acquisition component corresponding to the preset player to acquire playing window information for playing the video to be played;
and creating a target window for playing the video to be played on a display interface on the browser application according to the playing window information.
6. The terminal device of claim 5, wherein the controller is further configured to:
receiving preset operation for the video to be played, which is input by a user on the browser application, in the process of playing the video to be played, wherein the preset operation is a play pause operation, a play start operation and a cache operation;
And controlling the preset player to execute the preset operation aiming at the video to be played.
7. The terminal device of claim 5, wherein the controller is further configured to:
and stopping playing the video to be played when the preset acquisition component monitors that the video to be played is abnormal in the video to be played playing process.
8. The video playing method is characterized by being applied to terminal equipment, wherein a browser application is installed on the terminal equipment, a preset player is arranged on the browser application, and the preset player is used for playing videos to be played, which belong to preset types of videos, and comprises the following steps:
receiving a play instruction input by a user on the browser application, wherein the play instruction is used for indicating to play the video to be played;
responding to the playing instruction, and acquiring a target link corresponding to the video to be played;
and controlling the preset player to play the video to be played when the video to be played is determined to belong to the preset type video according to the target link corresponding to the video to be played.
9. The method for playing video according to claim 8, wherein when it is determined that the video to be played belongs to the preset type of video, controlling the preset player to play the video to be played specifically includes:
When the video to be played is determined to belong to the preset type of video, acquiring an initial data stream corresponding to the video to be played according to the target link;
controlling a preset decoding component corresponding to the preset player, and decoding the initial data stream to obtain a target data stream;
and rendering and playing the video to be played according to the target data stream.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor performs the steps of the video playback method as claimed in any one of claims 8 to 9.
CN202310776840.6A 2023-06-27 2023-06-27 Terminal equipment, video playing method and medium Pending CN117812413A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310776840.6A CN117812413A (en) 2023-06-27 2023-06-27 Terminal equipment, video playing method and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310776840.6A CN117812413A (en) 2023-06-27 2023-06-27 Terminal equipment, video playing method and medium

Publications (1)

Publication Number Publication Date
CN117812413A true CN117812413A (en) 2024-04-02

Family

ID=90434084

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310776840.6A Pending CN117812413A (en) 2023-06-27 2023-06-27 Terminal equipment, video playing method and medium

Country Status (1)

Country Link
CN (1) CN117812413A (en)

Similar Documents

Publication Publication Date Title
US11463649B2 (en) Display device and display image rotation adapting method
US11288033B2 (en) Method for outputting audio data of applications and display device
CN111277884A (en) Video playing method and device
CN112653906B (en) Video hot spot playing method on display equipment and display equipment
US11960674B2 (en) Display method and display apparatus for operation prompt information of input control
CN111954059A (en) Screen saver display method and display device
CN113630654B (en) Display equipment and media resource pushing method
CN111935510B (en) Double-browser application loading method and display equipment
CN112954462A (en) Display device and control method of application running time
CN112272331A (en) Method for rapidly displaying program channel list and display equipment
CN111182339A (en) Method for playing media item and display equipment
CN113490060B (en) Display equipment and method for determining common contact person
CN114915810B (en) Media resource pushing method and intelligent terminal
CN117812413A (en) Terminal equipment, video playing method and medium
CN115291829A (en) Display device and subscription message reminding method
CN113542901A (en) Display device and fast switching display method of network channels
CN113490041B (en) Voice function switching method and display device
CN115150667B (en) Display device and advertisement playing method
US11501411B2 (en) Animation configuration method and display device
CN114915818B (en) Media resource pushing method and intelligent terminal
CN115514998B (en) Display equipment and network media resource switching method
CN115086722B (en) Display method and display device for secondary screen content
CN113766164B (en) Display equipment and signal source interface display method
US20230412890A1 (en) Refreshing method and display apparatus
CN116248941A (en) Video playing method in display device and display device

Legal Events

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