Display device and video resume method
By creating a second interface with a transparent area in the display device, and using the same video player, video playback can be resumed when the display device interface is switched. This solves the problems of latency and inaccurate playback progress when the interface is switched, and achieves continuous video playback and efficient connection.
Patent Information
- Application Number
- CN202410167058.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2044-02-06
AI Technical Summary
When switching between display device interfaces, there are issues with video playback continuation delays and inaccurate playback progress positioning, leading to a decline in user experience.
By creating a second interface with a higher display hierarchy than the video playback window within the first interface, and setting a transparent area in the second interface, the video playback window of the first interface can continue playing the target video through the transparent area, thus achieving video continuation playback between the two interfaces using the same video player.
It achieves zero-latency video playback, ensuring continuous video playback and accurate positioning, thus improving the user experience.
Smart Images

Figure CN119420966B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of display devices, and in particular to a display device and a video continuation playing method. BACKGROUND
[0002] A display device refers to a terminal device capable of outputting a specific display screen, which can be a smart television, a communication terminal, a smart advertising screen, a projector, or the like. Taking a smart television as an example, a smart television is a television product based on Internet application technology, having an open operating system and a chip, and possessing an open application platform, and capable of realizing bidirectional man-machine interaction, and integrating audio, video, entertainment, data, and the like, to meet the diversified and personalized needs of users.
[0003] The display device can record the playing progress of a current video when playing the video in a first interface, and pass the playing progress to a video player in a second interface when switching to the second interface, so that the video player in the second interface starts playing from the progress, thereby realizing continuous playing of the video.
[0004] However, starting playing of the video player in the second interface requires a certain amount of time, resulting in poor connection of video playing when the first interface switches to the second interface, and causing delay. In addition, due to the characteristics of different video formats, codecs, or streaming media protocols, it is not possible to accurately locate the expected playing progress, and the video cannot be continued playing from the expected progress, thereby reducing user experience. SUMMARY
[0005] The present application provides a display device and a video continuation playing method to solve the problem of delay in video continuation playing when switching interfaces.
[0006] In a first aspect, the present application provides a display device, comprising a display and a controller. The display is configured to display a first interface, the first interface comprising a video playing window for playing a target video, and the first interface being created based on an activity component. The controller is configured to perform the following program steps:
[0007] In response to a video continuation playing instruction indicating playing of the target video, a second interface is created, the display level of the second interface being higher than that of the video playing window, the second interface establishing a data intercommunication relationship with the first interface, the display area of the second interface being the same as that of the first interface, and the second interface being constructed based on a window object;
[0008] A transparent area is set in the second interface;
[0009] control the display to display the second interface, so that the video playing window in the first interface continues to play the target video through the transparent region in the second interface.
[0010] In a second aspect, the present application also provides a video continuation playing method, which is applied to the display device, and the method comprises the following steps:
[0011] In response to a video continuation playing instruction indicating playing a target video, a second interface is created, the display level of the second interface is higher than that of the video playing window, the second interface establishes a data intercommunication relationship with the first interface, the display region of the second interface is the same as that of the first interface, and the second interface is constructed based on a window object.
[0012] A transparent region is arranged in the second interface.
[0013] The display is controlled to display the second interface, so that the video playing window in the first interface continues to play the target video through the transparent region in the second interface.
[0014] According to the above technical solution, the present application provides a display device and a video continuation playing method. When the display displays a first interface, the method can create a second interface in the first interface in response to a video continuation playing instruction indicating playing a target video. The display level of the second interface is higher than that of a video playing window in the first interface. The second interface establishes a data intercommunication relationship with the first interface. The display region of the second interface is the same as that of the first interface. A transparent region is arranged in the second interface. The display is controlled to display the second interface, so that the video playing window in the first interface continues to play the target video through the transparent region in the second interface. The method uses the same video player to realize video continuation playing of two interfaces, and solves the problem of delay in video continuation playing when the interface is switched. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or prior art description. Obviously, the drawings in the following description only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0016] Figure 1 The display device and the control device provided by some embodiments of the present application provide a schematic diagram of the operation scene between the display device and the control device.
[0017] Figure 2 The hardware configuration schematic diagram of the display device provided by some embodiments of the present application;
[0018] Figure 3 Hardware configuration schematic diagram of the control device provided for some embodiments of the present application;
[0019] Figure 4 Software configuration schematic diagram of the display device provided for some embodiments of the present application;
[0020] Figure 5 Schematic diagram of the first interface provided for some embodiments of the present application;
[0021] Figure 6 A hierarchical schematic diagram of the first interface and the second interface provided for some embodiments of the present application;
[0022] Figure 7 A timing diagram of the video resuming provided for some embodiments of the present application;
[0023] Figure 8 Another hierarchical schematic diagram of the first interface and the second interface provided for some embodiments of the present application;
[0024] Figure 9 Another timing diagram of the video resuming provided for some embodiments of the present application;
[0025] Figure 10 Still another timing diagram of the video resuming provided for some embodiments of the present application;
[0026] Figure 11 A schematic diagram of the second interface provided for some embodiments of the present application;
[0027] Figure 12 Another schematic diagram of the second interface provided for some embodiments of the present application;
[0028] Figure 13 A timing diagram of playing the target video in full screen provided for some embodiments of the present application;
[0029] Figure 14 Interface schematic diagram of the display device provided for some embodiments of the present application, in which the focus of the display device is on the transparent button control;
[0030] Figure 15 Interface effect schematic diagram of playing the target video in full screen provided for some embodiments of the present application;
[0031] Figure 16 A timing diagram of switching the playing video provided for some embodiments of the present application;
[0032] Figure 17 Interface effect schematic diagram of playing the video B provided for some embodiments of the present application;
[0033] Figure 18A timing diagram for switching the focus of the display device in the second interface is provided for some embodiments of the present application.
[0034] Figure 19 A timing diagram for exiting the playing of the target video is provided for some embodiments of the present application. DETAILED DESCRIPTION
[0035] In order to make the purposes, technical solutions and advantages of the exemplary embodiments of the present application clearer, the technical solutions in the exemplary embodiments of the present application will be described below in connection with the accompanying drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only some of the embodiments of the present application, but not all of the embodiments of the present application.
[0036] Based on the exemplary embodiments shown in the present application, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the scope of protection of the present application. In addition, although the disclosure in the present application is introduced according to one or several examples, it should be understood that each aspect of the disclosure can also constitute a complete technical solution independently.
[0037] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, for example, those orders other than given in the embodiment illustrations or descriptions of the present application can be implemented.
[0038] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not have to be limited to those components clearly listed, but can include other components not clearly listed or inherent to the product or device.
[0039] The display device provided by the embodiments of the present application can have various implementation forms, for example, can be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 And Figure 2 A specific embodiment of the display device of the present application is provided.
[0040] Figure 1 A schematic diagram of the operation scenario between the display device and the control device according to the embodiments is provided. As shown in Figure 1 The user can operate the display device 200 through the smart device 300 or the control device 100.
[0041] In some embodiments, the control device 100 may be a remote control. Communication between the remote control and the display device includes infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via wired means. Users can input user commands through buttons on the remote control, voice input, control panel input, etc., to control the display device 200.
[0042] In some embodiments, a smart device 300 (such as a mobile terminal, tablet computer, computer, laptop computer, etc.) may also be used to control the display device 200. For example, an application running on the smart device may be used to control the display device 200.
[0043] In some embodiments, the display device 200 may receive instructions not through the aforementioned smart device or control device, but through touch or gestures.
[0044] In some embodiments, the display device 200 can also be controlled in ways other than the control device 100 and the smart device 300. For example, it can be controlled by directly receiving the user's voice commands through a module configured inside the display device 200 for acquiring voice commands, or it can be controlled by receiving the user's voice commands through a voice control device set outside the display device 200.
[0045] In some embodiments, the display device 200 also communicates with the server 400. The display device 200 may communicate via a local area network (LAN), wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactive features to the display device 200. The server 400 may be a cluster or multiple clusters, and may include one or more types of servers.
[0046] like Figure 2 As shown, the display device 200 includes at least one of a tuner 210, a communicator 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a communication device interface 280.
[0047] In some embodiments, the controller 250 includes a central processing unit, a video processor, an audio processor, a graphics processor, RAM, ROM, and a first to an nth interface for input / output.
[0048] The display 260 includes a display screen assembly for presenting images, a driving assembly for driving image display, a component for receiving image signals from the controller output, and a user control UI interface for displaying video content, image content, menu control interface, and user control UI interface.
[0049] The display 260 can be a liquid crystal display, an OLED display, and a projection display, and can also be a projection device and a projection screen.
[0050] The communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example, the communicator can include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the control device 100 or the server 400 through the communicator 220.
[0051] The communication device interface 280 can be used to receive control signals of the control device 100 (such as an infrared remote controller, etc.).
[0052] The detector 230 is used to collect signals of the external environment or interaction with the outside. For example, the detector 230 includes a light receiver for collecting ambient light intensity, or the detector 230 includes an image collector such as a camera, which can be used to collect external environment scenes, user attributes, or user interaction gestures, or the detector 230 includes a sound collector such as a microphone, etc., for receiving external sounds.
[0053] The device interface 240 can include but is not limited to any one or more of the following: a high-definition multimedia interface (HDMI), an analog or data high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It can also be a composite input / output interface formed by the above multiple interfaces.
[0054] The tuner demodulator 210 receives broadcast television signals through wired or wireless reception, and demodulates audio and video signals and EPG data signals from multiple wireless or wired broadcast television signals.
[0055] In some embodiments, the controller 250 and the tuner demodulator 210 can be located in different split devices, that is, the tuner demodulator 210 can also be in an external device of the main device where the controller 250 is located, such as an external set-top box, etc.
[0056] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory. The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 can perform an operation related to the object selected by the user command.
[0057] In some embodiments, the controller 250 includes at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a Random Access Memory (RAM), a Read-Only Memory (ROM), a first interface to an n-th interface for input / output, a communication bus, and the like.
[0058] The user can input a user command through a Graphic User Interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the Graphic User Interface (GUI). Alternatively, the user can input a user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through a sensor.
[0059] A "user interface" is a medium interface for interaction and information exchange between an application program or an operating system and a user, which realizes conversion between an internal form of information and a form acceptable by the user. A common form of expression of the user interface is a Graphic User Interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be an icon, a window, a control, and the like interface elements displayed in a display screen of an electronic device, wherein the control can include 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 visible interface elements.
[0060] Figure 3 An exemplary configuration block diagram of the control device 100 according to an exemplary embodiment is shown. As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, a power supply. The control device 100 can receive an input operation command of a user, and convert the operation command into a command recognizable and responsive by the display device 200, to play a role of an intermediary in interaction between the user and the display device 200. Figure 3
[0061] As shown, in some embodiments, the system is divided into four layers, from top to bottom, an Applications layer (referred to as "application layer" for short), an Application Framework layer (referred to as "framework layer" for short), an Android runtime and system library layer (referred to as "system runtime library layer" for short), and a kernel layer. Figure 4
[0062] In some embodiments, at least one application program runs in the application layer, which can be a Window program, a system setting program, a clock program, etc. provided by the operating system, or an application program developed by a third party developer. In a specific implementation, the application programs in the application layer are not limited to the above examples.
[0063] The framework layer provides an application programming interface (API) and a programming framework for the application programs. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center that decides which application program in the application layer to act. The application program can access the resources in the system and obtain the services of the system through the API interface in the execution.
[0064] As shown in Figure 4 In the embodiment of the present application, the application framework layer includes managers (Managers) and a content provider (Content Provider), wherein the managers include at least one of the following modules: an activity manager (ActivityManager) for interacting with all activities running in the system; a location manager (Location Manager) for providing access to the system location service for the system service or the application; a package manager (Package Manager) for retrieving various information related to the application package currently installed on the device; a notification manager (NotificationManager) for controlling the display and clearing of the notification message; and a window manager (Window Manager) for managing the icons, windows, toolbars, wallpapers and desktop components on the user interface.
[0065] In some embodiments, the activity manager is used to manage the life cycle of each application program and the general navigation back function, such as controlling the exit, opening, back, etc. of the application program. The window manager is used to manage all window programs, such as obtaining the size of the display screen, judging whether there is a status bar, locking the screen, intercepting the screen, controlling the display window change (such as reducing the display window, shaking the display, twisting the display, etc.), etc.
[0066] In some embodiments, the system runtime library layer provides support for the upper layer, i.e. the framework layer. When the framework layer is used, the Android operating system runs the C / C++ library included in the system runtime library layer to realize the functions of the framework layer.
[0067] In some embodiments, the kernel layer is the layer between hardware and software. As Figure 4As shown, the kernel layer at least contains at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, pressure sensor, etc.), and power supply driver, etc.
[0068] Based on the above display device 200 can present display screen. For example, playing screen, control interface and other application interface, etc. According to the application developer or operator, the application installed on the display device 200 can include a variety of forms, such as system application, third-party application, etc. When the display 260 displays the application list, the user can select one of the applications and control the display device 200 to run the application to realize the function of the application.
[0069] In some embodiments, the display device 200 can install a video on demand application, which can provide videos from different storage sources. For example, the video on demand can come from a server side of cloud storage, or from a local hard disk storage containing stored video programs, etc. When the display device 200 runs the video on demand application, video data or picture data can be obtained from different storage sources and displayed through the display 260, thereby presenting a first interface as shown. Figure 5 The user can select a video of interest through the first interface and control the display device 200 to play the video.
[0070] In the display device 200, when an interface needs to be created, a corresponding Activity component needs to be created, which is used for interface display, user interaction and business logic processing, and through which a user interface can be built and displayed. By setting various view controls such as buttons, text boxes, lists, etc. in the layout file of the Activity, the corresponding interface can be presented.
[0071] For picture data, a control for displaying pictures such as ImageView can be added to the layout file of the Activity, and the picture address such as resource ID, uniform resource locator (URL), file path, etc. of the control can be set to display the picture in the corresponding interface. For video data, a control for playing video such as MediaPlayer, VideoView can be added to the layout file of the Activity, and the video address such as video path, URL, etc. of the control can be set to play the video in the corresponding interface.
[0072] For this, the display device 200 displays Figure 5In the first interface shown, the display device 200 can create an Activity to call the first page template to load the corresponding first page data to complete the display of the first interface.
[0073] In some embodiments, the first page template includes a carousel component, and the first page data includes carousel data, the carousel data including first instance data of a corresponding video A, second instance data of a corresponding video B, and instance data of a plurality of videos, the first instance data including a first video URL address of the corresponding video A and a first picture URL address of a picture A corresponding to the video A; the second instance data including a second video URL address of the corresponding video B and a second picture URL address of a picture B corresponding to the video B, and so on.
[0074] In some embodiments, the carousel component includes a list control and a video playback window, the list control loading control content corresponding to a list identifier from the received page data, for example, the first list control displaying the picture A, the second list control displaying the picture B, and so on. The video playback window loads a playback address of a video to be played from the received page data, and loads audio and video content corresponding to the video to be played from the server according to the playback address corresponding to the video to be played and plays the video.
[0075] In some embodiments, the carousel data corresponding to the carousel component includes a first video URL address of a corresponding video A and a first picture URL address of a picture A corresponding to the video A, a second video URL address of a corresponding video B and a second picture URL address of a picture B corresponding to the video B, a third video URL address of a corresponding video C and a third picture URL address of a picture C corresponding to the video C, a fourth video URL address of a corresponding video D and a fourth picture URL address of a picture D corresponding to the video D, and so on. The first list control in the carousel component loads the picture A from the server according to the first picture URL address and displays it; the second list control loads the picture B from the server according to the second picture URL address and displays it; the third list control loads the picture C from the server according to the third picture URL address and displays it; the fourth list control loads the picture D from the server according to the fourth picture URL address and displays it. At the same time, the video playback window in the carousel component calls the video player of the framework layer, and makes the video player request the audio and video content corresponding to the video URL address from the server according to the video URL address corresponding to the video to be played, and plays the video
[0076] In some embodiments, the video to be played is video A, the video playback window in the carousel component calls the video player in the framework layer, and causes the video player to request the audio and video content of video A corresponding to the first video URL address from the server according to the first video URL address for playing. After video A is played, the video player requests the audio and video content of video B from the server according to the second video URL address for playing, so that the video player sequentially plays video A, video B, video C, video D, and the like based on the video URL addresses of the videos in the carousel data.
[0077] In some embodiments, the user can control the focus of the display device 200 to move on the list control, the video player exits the currently played video according to a specific interaction strategy, and finds the video URL address associated with the picture URL address corresponding to the target list control newly selected by the user in the carousel data, requests the audio and video data corresponding to the video URL address from the server, and plays the audio and video data to switch the video played by the video playback window.
[0078] In some embodiments, the carousel data corresponding to the carousel component can also be configured to the list control. For example, the carousel data corresponding to the carousel component includes the URL addresses of video A, video B, video C, video D, and the like, and also includes picture A corresponding to video A, picture B corresponding to video B, picture C corresponding to video C, and picture D corresponding to video D, so as to display picture A in the first list control of the carousel component and configure the first video URL address of video A to the first list control, display picture B in the second list control of the carousel component and configure the second video URL address of video B to the second list control, display picture C in the third list control of the carousel component and configure the third video URL address of video C to the third list control, and display picture D in the fourth list control of the carousel component and configure the fourth video URL address of video D to the fourth list control.
[0079] For example, the list control to be played is the first list control, the video playback window in the carousel component calls the video player in the framework layer, and causes the video player to request the audio and video content corresponding to the video URL address of the first list control from the server according to the video URL address for playing. After video A is played, the video playback window requests the audio and video content of video B from the server according to the video URL address of the second list control and plays the audio and video content.
[0080] In some embodiments, the first interface template further includes a history control and / or a recommendation column, the first page data includes history data and / or recommendation data, the history control is rendered and displayed according to the history data in the first page data, and / or the recommendation column is rendered and displayed according to the recommendation data in the first page data.
[0081] In some embodiments, when the video A is played in the video playing window of the first interface as shown in FIG. 1A, the user switches the focus of the display device 200 to the video playing window by the control device 100, and presses the confirmation key of the control device 100 when the focus is on the video playing window to input a confirmation key key value to the display device 200. The display device 200 generates an interface switching instruction according to the current focus position and the received confirmation key key value. Figure 5
[0082] In some related technologies, in response to the generated interface switching instruction, the operating system of the display device 200 can create a new Activity to call the second page template to load the corresponding second page data to complete the display of the second interface. The second page template includes a video playing window, and the second page data includes a first video URL address corresponding to the video A. The video playing window calls the video player of the framework layer, and makes the video player request the audio and video content of the video A corresponding to the first video URL address from the server according to the first video URL address to play. At this time, the video player in the Activity corresponding to the first interface stops playing the video A. The video player in the Activity corresponding to the second interface continues to play the video A. Wherein, the continued playing of the video A refers to that the video player in the Activity corresponding to the second interface continues to play the video A on the basis of the progress of the video A played by the video player in the Activity corresponding to the first interface, to realize video continuous playing.
[0083] In some embodiments, in order to realize the video continuous playing, the Activity corresponding to the first interface can pass the playing progress of the video player in the Activity corresponding to the first interface to the Activity corresponding to the second interface to realize the video continuous playing. Specifically, the Activity corresponding to the first interface passes the playing progress of the video player in the Activity corresponding to the first interface to the Activity corresponding to the second interface. The video player in the Activity corresponding to the second interface requests the audio and video data of the video A corresponding to the first video URL address from the server according to the first video URL address corresponding to the video A, and performs a seek operation according to the playing progress passed in by the Activity corresponding to the first interface to jump to the playing position of the video A corresponding to the playing progress, to start playing from the playing progress, thereby realizing the continuous playing of the video and improving the user experience.
[0084] However, in the above-mentioned embodiments, the starting of the video player in the Activity corresponding to the second interface needs to consume a certain amount of time, which leads to poor connection of the video playing when the first interface switches to the second interface, and there is a delay. Moreover, due to the characteristics of different video formats, codecs or streaming protocols, the seek operation may have errors, which leads to the fact that the video player in the Activity corresponding to the second interface cannot accurately jump to the expected playing progress, so that the video cannot be played continuously from the expected progress, and the user experience is reduced.
[0085] In some embodiments, a video continuous playing method is provided in some embodiments of the present application, which is applied to a display device 200. The display device 200 to which the video continuous playing method can be applied includes a display 260 and a controller 250. The display 260 is configured to display a user interface. The controller 250 is configured to perform the above-mentioned video continuous playing method, specifically including the following contents:
[0086] When the display device 200 is running, different user interfaces can be presented, and the user interfaces are used to interact with the user. In the scenario of video continuous playing, the display device 200 can use the same player to realize the video continuous playing of two interfaces. In order to facilitate understanding, the interface including playing a target video based on a video playing window is referred to as a first interface, and the interface for continuous playing of the target video is referred to as a second interface.
[0087] In some embodiments, when the display device 200 displays the first interface, the first interface can be created, that is, an Activity corresponding to the first interface is created. Through the Activity corresponding to the first interface, the target playing address can be obtained from the server, and a video playing window is created in the first interface, so that the video playing window requests the audio and video content corresponding to the target playing address from the server for playing according to the target playing address, and finally the display 260 is controlled to display the first interface constructed based on the Activity, that is, the first interface playing the target video can be presented to the user.
[0088] When the video continuous playing instruction indicating playing the target video is received, the display device 200 can create the second interface, that is, a Window corresponding to the second interface is created. The display level of the second interface is higher than that of the first interface, and the display area of the second interface is the same as that of the first interface.
[0089] Through the Window corresponding to the second interface, a transparent region is set in the second interface, and the transparent region is a region of transparent background in the second interface. Finally, the display 260 is controlled to display the second interface constructed based on the Window, so that the video playing window in the first interface continues to play the target video through the transparent region in the second interface.
[0090] The first interface is created based on an Activity, and the second interface is created based on a Window. An Activity is the basic building block of an application in the display device 200 system, representing a single screen of a user interface. Each Activity has an associated Window used to display the Activity's interface. An Activity manages the user's interaction with the application, including handling user input, displaying the interface, and managing the application's lifecycle. By creating an Activity, the interface content and layout can be set, thus generating and displaying the first interface. A Window is the window mechanism in the display device 200 system, representing a window within an application and indicating a region of the application's interface. A Window contains the Surface used to display the UI and the related logic for handling UI events. It can be understood as a container that can hold various interface elements, such as buttons, text boxes, and images. By directly manipulating the Window object, a second interface is provided to the user for operation and information display, such as pop-up windows and floating windows.
[0091] like Figure 6 The diagram shown is a hierarchical representation of the second interface and the second interface provided in an embodiment of this application. The first interface is implemented using Activity, and the second interface is implemented using Window. The first interface includes a video playback window, and the display layer of the second interface is higher than that of the first interface. The video playback window in the first interface can be displayed through the transparent area of the second interface, enabling the use of the same player to resume video playback between the two interfaces.
[0092] It is understood that in this embodiment of the application, video playback continuation is achieved by creating a Window as the display interface for video playback continuation. This display interface is displayed using a Window, rather than using an Activity, because using an Activity would cause the video player on the first interface to detect the change in the lifecycle of the operating system of the display device 200, causing the video player on the first interface to stop playing.
[0093] In this embodiment, when the display device 200 displays the video continuation display interface, a transparent area is set in the second interface, allowing the video playback window in the first interface to continue playing the target video through the transparent area in the second interface. Compared to starting the video player in a new interface, this saves startup time, thus achieving zero-latency continuation playback. Furthermore, since the first and second interfaces share a single video player, there is no video transition issue, enabling continuous video playback.
[0094] Since the first interface and the second interface use the same video player, in order to facilitate the interaction between the first interface and the second interface, a data intercommunication relationship between the first interface and the second interface can be established, so that the first interface and the second interface can perform message passing and execute video player related interactive operations, such as video pause, video fast forward, and the like.
[0095] The data intercommunication relationship between the first interface and the second interface can be implemented based on a broadcast mechanism. The Activity corresponding to the first interface and the Window corresponding to the second interface respectively register their own broadcast receivers and specify the action (a string used to identify the purpose and type of a broadcast) of the broadcast to be listened to, so as to listen to a specific broadcast and execute corresponding operations when the broadcast is received.
[0096] When the Window corresponding to the second interface transmits information to the Activity corresponding to the first interface, the Window corresponding to the second interface can create an Intent object, add the data information to be transmitted in the Intent object, and specify the action of the broadcast, and call the sendBroadcast() method to send the broadcast containing the Intent object.
[0097] After the Window sends the broadcast, the broadcast receiver of the Activity corresponding to the first interface is triggered, and the Intent object in the broadcast sent by the Window can be obtained, and the data information transmitted can be read therefrom. Similarly, when the Activity corresponding to the first interface transmits information to the Window corresponding to the second interface, the above broadcast mechanism can also be used.
[0098] In some embodiments, based on the focus management mechanism of the operating system of the display device 200, when the Window corresponding to the second interface is started, the Window corresponding to the second interface requests the operating system to obtain the focus, so that the operating system sets the focus to the Window corresponding to the second interface. The Window corresponding to the second interface that obtains the focus can obtain the play control instruction of the video play window input by the user through the second interface, and the Window corresponding to the second interface can send the play control instruction to the Activity corresponding to the first interface. The video play window is controlled by the Activity corresponding to the first interface to execute the play control operation indicated by the play control instruction.
[0099] In some embodiments, when the transparent region is set in the second interface, the Window corresponding to the second interface can set the background of the second interface to be transparent, and obtain a preset background image. The background image is cropped to crop a target image region in the background image, and the target image region is a display region of the video playing window when the background image is displayed in the second interface. The cropped background image is set on the second interface to form the transparent region, and the transparent region is a display region corresponding to the cropped target image region in the second interface. That is, the background of the second interface is set to be transparent, and a background image is set on the second interface, and the position region of the video playing window to be displayed is cropped in the background image, so that the second interface containing the transparent region as shown in Figure 7 is obtained. The transparent region in the second interface can display the video playing window in the underlying first interface, and the non-transparent region does not display the underlying content.
[0100] In some embodiments, the Window corresponding to the second interface can perform various logical and display processing on the background transparency of the second interface based on a background attribute value. Therefore, the Window corresponding to the second interface can adjust the background transparency of the second interface by setting the background attribute value of the second interface. In the video resume playing scenario, the background attribute value of the second interface can be set to a preset transparency value, and the preset transparency value is used to represent that the background of the second interface is transparent, so that the background of the second interface presents a transparent effect.
[0101] In some embodiments, in order to improve the playing effect of the video resume playing, the video playing window in the first interface needs to be matched with the transparent region, so that the target video can be completely played through the transparent region. The Activity corresponding to the first interface can detect the display region coordinates of the video playing window in the first interface. If the display region coordinates are compared with the transparent region coordinates, and the display region coordinates are the same as the transparent region coordinates, it is indicated that the size and position of the video playing window are the same as those of the transparent region, and the video playing window is not processed.
[0102] If the display region coordinates are different from the transparent region coordinates, the display position and the window size of the video playing window need to be adjusted according to the transparent region. The Activity corresponding to the first interface can obtain the region coordinates and the region size of the transparent region, set the window size of the video playing window according to the region size, and set the display position of the video playing window according to the region coordinates, so as to move the video playing window to the transparent region, so that the video playing window in the first interface can play the target video through the transparent region.
[0103] As shown in Figure 7The diagram shown is a timing diagram of a video playback continuation method provided in an embodiment of this application. When the user inputs a display command for the first interface, the operating system of the display device 200 creates and starts the Activity corresponding to the first interface, as shown below. Figure 7 The example shown is Activity A. Activity A can obtain the media asset identifier of the first screen. Based on this identifier, it retrieves the first screen data from the server. The media asset identifier is an identifier (ID) representing the screen. Through the media asset identifier, it can obtain screen data for different screens from the server. The first screen data includes the target playback address of the target video and information about the video playback window (such as its position). Activity A creates and starts the video playback window based on the video playback window information, causing the video playback window to request the target video corresponding to the target playback address from the server for playback.
[0104] When a user inputs a video playback continuation command to resume playback of the target video, in response to this command, Activity A can obtain the media asset identifier of the second interface. Based on the media asset identifier, it retrieves the second interface data from the server. The second interface data includes the background image, background attribute values, and cropping information for transparent areas, etc. It then sends a command to the operating system of display device 200 to create a second interface. This command carries a page type identifier representing the Window and the second interface data. In response to this command, the operating system of display device 200 creates a Window corresponding to the second interface based on the page type identifier representing the Window, i.e., as shown below. Figure 7 The second interface data is passed to Window B as shown.
[0105] Alternatively, Activity A sends an instruction to the operating system of display device 200 to create a second interface, carrying a page type identifier representing the Window. In response to this instruction, the operating system of display device 200 creates a Window B corresponding to the second interface based on the page type identifier. After successful creation, Window B can send a notification to Activity A indicating successful creation. Upon receiving this notification, Activity A can send the media asset identifier of the second interface to Window B. Window B can then retrieve the second interface data from the server based on the media asset identifier of the second interface.
[0106] Window B sets the background attribute value of the second interface to the background attribute value indicated in the second interface data according to the second interface data, to set the background of the second interface to transparent. Then Window B crops the background picture according to the cropping information of the transparent region, crops the position of the video playing window to be displayed in the background picture, and sets the cropped background picture to the second interface to form the transparent region. Finally, Window B sends the position coordinates of the transparent region to Activity A. Activity A scales and / or moves the video playing window in the Activity according to the position coordinates sent by Window B, to adjust the display position of the video playing window in Activity A, so that the video playing window can be displayed through the transparent region in Window B.
[0107] Based on the focus management mechanism of the operating system of the display device 200, when the Window B corresponding to the second interface is started, the Window B corresponding to the second interface requests the operating system to obtain the focus, so that the operating system sets the focus to the Window B corresponding to the second interface. Therefore, when the user inputs a playing control instruction of the video playing window through the second interface, the Window B obtaining the focus can obtain the playing control instruction, and send the playing control instruction to Activity A, so that Activity A controls the video player to perform a related operation according to the playing control instruction.
[0108] In some embodiments, for the case that the same picture is displayed in the view controls in the first interface and the second interface, the display device 200 can also use the same view control to display the same picture in the two interfaces. When the display device 200 displays the first interface, the display device 200 can create the first interface, that is, create an Activity corresponding to the first interface. Through the Activity corresponding to the first interface, the display device 200 can obtain a target picture address from a server, and create a first picture view in the first interface, so that the first picture view requests a target picture corresponding to the target picture address from the server to be displayed according to the target picture address. Finally, the display device 200 controls the display 260 to display the first interface created based on the Activity, that is, the display device 200 can present the first interface displaying the target picture through the first picture view to the user.
[0109] When the display device 200 displays the second interface, the display device 200 can create the second interface, that is, create a Window corresponding to the second interface. By the Window corresponding to the second interface, the background attribute value of the second interface is set to a transparency value, and a preset transparency value is used to represent that the background of the second interface is transparent, so that the background of the second interface is set to be transparent. Then, a preset background picture is acquired, the background picture is cropped, and the image region corresponding to the display region of the first picture view when the background picture is displayed in the second interface is cropped. The cropped background picture is set to the second interface to set a picture transparent region in the second interface, and the picture transparent region is a region of the transparent background in the second interface. Finally, the display 260 is controlled to display the second interface created based on the Window, so that the target picture is displayed through the picture transparent region in the first picture view in the first interface.
[0110] As shown in Figure 8 , another hierarchical diagram of the first interface and the second interface provided by the embodiment of the application is shown. The display level of the second interface is higher than that of the first interface, the video playback window in the first interface can be displayed through the transparent region in the second interface, and the plurality of first picture views in the first interface can be displayed through the plurality of picture transparent regions in the second interface, so as to realize the display of the same pictures of two interfaces using the same view.
[0111] For the setting of the picture transparent region and the position adjustment of the first picture view, reference can be made to the above-mentioned setting of the transparent region corresponding to the video playback window and the position adjustment of the video playback window. As shown in Figure 9 , another timing diagram of video continuation provided by the embodiment of the application is shown, and the above-mentioned ActivityA and Window B are taken as an example. The first interface data of the first interface obtained by ActivityA from the server based on the media asset identifier of the first interface further includes a target picture address and information of a view control (such as position information). ActivityA creates a first picture view according to the information of the view control, so that the first picture view displays the target picture corresponding to the target picture address according to the target picture address.
[0112] When the video continuation instruction is received, the second interface data of the second interface obtained by ActivityA from the server based on the media asset identifier of the second interface further includes cropping information of the picture transparent region.
[0113] After Window B obtains the second interface data, the background attribute value of the second interface is set to the background attribute value indicated in the second interface data, so as to set the background of the second interface to be transparent. Then, the background picture is cropped according to the cropping information of the transparent region and the cropping information of the picture transparent region, and the position of the video playing window and the first picture view to be displayed in the background picture is cropped, and the cropped background picture is set to the second interface to form the transparent region and the picture transparent region. Finally, the position coordinates of the picture transparent region are sent to Activity A. Activity A scales and / or moves the video playing window in the Activity according to the position coordinates sent by Window B, so as to adjust the display position of the video playing window in Activity A, so that the video playing window can be displayed through the transparent region in Window B. And the first picture view in the Activity is scaled and / or moved, so as to adjust the display position of the first picture view in Activity A, so that the first picture view can be displayed through the picture transparent region in Window B.
[0114] Of course, the display device 200 can also use different views to display the same picture in the two interfaces. When the display device 200 displays the second interface, the display device 200 can create a Window corresponding to the second interface. Through the Window corresponding to the second interface, the target picture address is obtained, and a second picture view is created in the second interface, so that the second picture view displays the target picture corresponding to the target picture address according to the target picture address. Finally, the display 260 is controlled to display the second interface created based on the Window. That is, the picture is displayed through one picture view in the first interface, and the picture is displayed through another picture view in the second interface.
[0115] As shown in Figure 10 , another timing diagram of video resume provided by an embodiment of the present application is provided, and the above Activity A and Window B are taken as an example. In response to the video resume instruction input by the user, the second interface data of the second interface obtained by Activity A from the server side based on the media asset identifier of the second interface includes a background picture, a background attribute value, cropping information of a transparent region, and information of a view control. Window B sets a transparent region in the second interface according to the background picture, the background attribute value, and the cropping information of the transparent region, and also creates a second picture view according to the information of the view control, and makes the second picture view display the target picture corresponding to the target picture address according to the target picture address.
[0116] The video resume method of the present application will be described below with reference to the interfaces shown in Figure 5 , Figure 11 , Figure 12 .
[0117] When the user controls the display device 200 to run the video on demand application, the display device 200 can create an Activity A corresponding to the first interface, the Activity A can obtain first interface data from a server side corresponding to the video on demand application, the first interface data includes carousel data and information of a carousel component, the carousel data includes a first video URL address corresponding to a video A and a first picture URL address corresponding to a picture A corresponding to the video A, a second video URL address corresponding to a video B and a second picture URL address corresponding to a picture B corresponding to the video B, a third video URL address corresponding to a video C and a third picture URL address corresponding to a picture C corresponding to the video C, a fourth video URL address corresponding to a video D and a fourth picture URL address corresponding to a picture D corresponding to the video D, etc. The Activity A creates a carousel component according to the obtained first interface data, the carousel component includes a plurality of list controls and a video playing window, configures a plurality of picture URL addresses in the carousel data to the plurality of list controls respectively, so that the list controls display pictures corresponding to the picture URL addresses according to the picture URL addresses to display the picture A in the first list control of the carousel component, the picture B in the second list control, the picture C in the third list control, and the picture D in the fourth list control. Configures the video URL address of the video to be played in the first interface data to the video playing window, the video playing window will call a video player of a framework layer, and make the video player play audio and video content corresponding to the video URL address according to the video URL address. Thus, the interface display effect as shown in Figure 5 is presented.
[0118] When the video A is played in the video playing window, the user switches the focus of the display device 200 to the video playing window through the control device 100, and presses the confirmation key of the control device 100 when the focus is located in the video playing window to input the confirmation key key value to the display device 200. According to the preset interaction strategy, the Activity A can generate an interface switching instruction according to the current focus position and the received confirmation key key value, the interface switching instruction is used to instruct to play the video A in a new display interface, thereby triggering a video continuous playing instruction instructing to continue playing the video A in the new display interface.
[0119] In response to the video continuation instruction, Activity A can obtain second interface data from a server corresponding to the video on-demand application, and send an instruction indicating creation of a second interface to an operating system of the display device 200, the instruction carrying a page type identifier representing the Window and the second interface data, the second interface data including a background image, background attribute values, and cropping information of a transparent region, etc. The operating system of the display device 200 creates a Window B corresponding to the second interface according to the page type identifier representing the Window, and transmits the second interface data to the Window B.
[0120] The Window B sets the background attribute values of the second interface to the background attribute values indicated in the second interface data, so as to set the background of the second interface to be transparent. Then, the Window B crops the background image according to the cropping information of the transparent region, so as to crop the position to be displayed by the video playing window in the background image, and sets the cropped background image to the second interface, so as to form a transparent region as shown in Figure 7 The Window B can send the position coordinates corresponding to the four vertices of the transparent region as shown in Figure 7 to Activity A, and Activity A scales and / or moves the video playing window in Activity A according to the position coordinates transmitted by the Window B, so as to adjust the display position of the video playing window in Activity A, so that the video playing window can be displayed through the transparent region in the Window B, thereby presenting an interface display effect as shown in Figure 11
[0121] In some embodiments, the Window B can also configure list controls. In response to the video continuation instruction, the second interface data carried in the instruction indicating creation of the second interface sent by Activity A to the operating system of the display device 200 further includes view control information and carousel data. After the operating system of the display device 200 creates the Window B corresponding to the second interface, the operating system transmits the second interface data to the Window B, and the Window B can create a plurality of list controls according to the view control information, and configure the plurality of picture URL addresses in the carousel data to the plurality of list controls respectively, so that the list controls display pictures corresponding to the picture URL addresses by requesting the pictures from servers according to the picture URL addresses, so as to display picture A in the fifth list control, picture B in the sixth list control, picture C in the seventh list control, and picture D in the eighth list control in the second interface as shown in Figure 12
[0122] Alternatively, in response to a video playback continuation command, the instruction sent by Activity A to the operating system of display device 200 to create a second interface may include second interface data such as cropping information for transparent areas of an image. After creating Window B corresponding to the second interface, the operating system of display device 200 sends the second interface data to Window B. Window B, based on the second interface data, sets the background attribute value of the second interface to the background attribute value indicated in the second interface data, thereby making the background of the second interface transparent. Then, based on the cropping information for the transparent areas of the image, the background image is cropped to remove the positions where the first, second, third, and fourth list controls in the background image are to be displayed. The cropped background image is then set onto the second interface to form a structure like... Figure 9 The image shown has a transparent area. Window B can display such transparent areas. Figure 9 The coordinates of the four vertices corresponding to the four transparent areas of the images shown are sent to Activity A. Based on the coordinates passed from Window B, Activity A scales and / or moves the first, second, third, and fourth list controls to adjust their display positions, allowing them to be displayed through the four transparent areas of the images in Window B. This results in the following presentation: Figure 12 The interface shown is as follows.
[0123] In some embodiments, interface switching can also be achieved through a list control in a carousel component. Following the above... Figure 5 In the first interface, while video A is playing in the video playback window, the user uses the control device 100 to switch the focus of the display device 200 to the second list control displaying image B in the first interface. When the focus is on the second list control, the user presses the confirmation button on the control device 100 to input a confirmation key value to the display device 200. According to a preset interaction strategy, Activity A can generate an interface switching command based on the current focus position and the received confirmation key value. This interface switching command is used to instruct the user to play video B in the new display interface.
[0124] In response to this interface switching command, ActivityA can find the second video URL address corresponding to video B from the carousel data. This allows the video playback window to request the audio and video content of video B from the server based on the second video URL address. Then, following the steps described above—creating window B, setting a transparent area, and moving the video playback window—video B can be played on the second interface.
[0125] In some embodiments, when the user inputs a full screen play instruction for instructing full screen playing of the target video in the second interface, the display device 200 can cancel the second interface in response to the full screen play instruction, and control the video playing window in the first interface to display in full screen. When the user inputs a full screen exit instruction for instructing exiting full screen playing of the target video, the display device 200 can perform the display processing steps of the second interface in the above embodiments. That is, the second interface is created, the transparent region is set in the second interface, the video playing window displayed in full screen is reduced according to the size of the transparent region, and the display position of the reduced video playing window is set according to the transparent region, so as to restore the display interface before the video playing window is displayed in full screen.
[0126] In order to realize the above-mentioned function of full screen playing of the target video, the display device 200 can set a transparent button control on the transparent region of the second interface, and receive the full screen play instruction for instructing full screen playing of the target video input by the user through the transparent button control. That is, when the operating system of the display device 200 creates the Window B corresponding to the second interface, the second interface data transmitted to the Window B further includes information of the button (Button) control (such as position information of the button, attribute value representing transparency of the button, etc.), so that the Window B can set a transparent button control on the transparent region according to the information of the button control. When the user moves the focus to the button control, and presses the confirmation key of the control device 100 to input the confirmation key key value while the focus is on the transparent button control, the Window B can execute the cancel operation according to the current focus position and the received confirmation key key value, to cancel the second interface, and trigger generation of the full screen play instruction for instructing Activity A to display the video playing window in full screen. The Window B can send the full screen play instruction to Activity A, so that Activity A controls the video playing window to display in full screen according to the full screen play instruction.
[0127] For example, the examples of Figure 12 are used. As shown in Figure 13 , a timing diagram for full screen playing of the target video provided by the application embodiments is shown. When the user switches the focus of the display device 200 to the transparent button control set on the transparent region in the second interface through the control device 100, the focus of the display device 200 is on the video playing window playing the video A, and the confirmation key of the control device 100 is pressed to input the confirmation key key value, as shown in Figure 14 . The Window B can execute the cancel operation according to the current focus position and the received confirmation key key value, to cancel the second interface as shown in Figure 12The second interface shown in the figure triggers the generation of a full-screen playing instruction indicating that Activity A displays the video playing window full screen at the same time. Window B sends the full-screen playing instruction to Activity A, so that Activity A adjusts the layout parameters (such as width, height, margin, etc.) of the video playing window according to the full-screen playing instruction, to control the video playing window to be displayed full screen, presenting an interface effect as shown in Figure 15 The interface effect of playing the target video full screen.
[0128] When playing the target video full screen, the user presses the back key of the control device 100 to input a back key key value. Activity A sends an instruction indicating the creation of a second interface to the operating system of the display device 200 according to the back key key value. The instruction carries a page type identifier representing Window and second interface data of the second interface, which includes a background picture, background attribute values, cropping information of a transparent region, carousel data, and information of view controls. In response to the instruction, the operating system of the display device 200 creates a Window corresponding to the second interface, namely Window C, according to the page type identifier representing Window, and transmits the second interface data to Window C. Window C sets the background attribute values of the second interface to the background attribute values indicated in the second interface data, to set the background of the second interface to be transparent. Then, Window C crops the background picture according to the cropping information of the transparent region, to crop the position where the video playing window is to be displayed in the background picture, and sets the cropped background picture to the second interface, to form a transparent region. Window C sends the position coordinates of the transparent region to Activity A, so that Activity A scales and / or moves the video playing window displayed full screen according to the position coordinates transmitted by Window C, to adjust the video playing window to the transparent region, so that it can be displayed through the transparent region in Window C. At the same time, Window C creates multiple list controls according to the information of view controls, and configures multiple picture URL addresses in the carousel data to the multiple list controls respectively, so that the list controls request pictures corresponding to the picture URL addresses from the server according to the picture URL addresses, to display the pictures, thereby restoring the interface display effect of the second interface as shown in Figure 12 The interface display effect of the second interface.
[0129] Of course, the display device 200 can also interact with the user through other interaction modes. For example, the display 260 can be a touch screen, which receives the user's control through touch or gestures, etc. The display device 200 can also receive external sound through a sound collector, to realize voice control. Taking voice control as an example, according to the voice interaction strategy pre-stored by the display device 200, the Window B corresponding to the second interface that has the focus can receive voice instructions. The display device 200 displays Figure 12When the second interface is displayed, the user speaks "play video in full screen" near the display device 200 to input a full screen play instruction indicating playing video A in full screen to the display device 200. Window B can capture the full screen play instruction, and perform the undo operation according to the full screen play instruction. Meanwhile, the full screen play instruction is sent to Activity A, so that Activity A controls the video play window to display in full screen according to the full screen play instruction.
[0130] In some embodiments, as shown in Figure 16 a timing diagram for switching playing video is provided. The examples of Figure 5 and Figure 12 are used. After Window B is created, the focus of the display device 200 is on the fifth list control corresponding to picture A in the second interface by default, as shown in Figure 12 When the user switches the focus of the display device 200 to the sixth list control corresponding to picture B in the second interface through the control device 100, and presses the confirmation key of the control device 100 to input a confirmation key key value when the focus is on the sixth list control, Window B obtains the picture URL address of picture B configured by the sixth list control according to the current focus position and the received confirmation key key value, finds the video URL address of corresponding video B associated with the picture URL address in the carousel data based on the picture URL address of picture B, and generates a video switching instruction for instructing Activity A to play video B in the video play window. Window B can send the video switching instruction to Activity A, and Activity A configures the video URL address of corresponding video B to the video play window according to the video switching instruction, so that the video play window requests the audio and video content of video B corresponding to the video URL address from the server according to the video URL address of corresponding video B to play, so as to present the interface display effect as shown in Figure 17 .
[0131] The video switching instruction for instructing Activity A to play video B in the video play window includes information representing video B, such as the video URL address of video B, the order identification bit of video B in the carousel data, etc. So that Activity A can configure the video URL address of corresponding video B to the video play window according to the information representing video B in the video switching instruction.
[0132] Since Activity A controls the video playing window to play the corresponding video in the order of the videos in the carousel data, in order to improve the user experience, the focus position of the display device 200 in the second interface can be controlled according to the video currently played by the video playing window, so that the focus position of the display device 200 in the second interface matches the video played by the video playing window. As shown in Figure 18 FIG. 3 is a timing diagram for switching the focus of the display device 200 in the second interface according to an application embodiment. When Activity A controls the video playing window to switch the video played, a focus switching instruction indicating that Window B switches the focus of the display device 200 to the list control showing the picture corresponding to the video can be generated and sent to Window B, so that Window B switches the focus of the display device 200 to the list control showing the picture corresponding to the video. For example, continuing the example of Figure 5 and Figure 12 , when the video playing window in Activity A plays video A, the next video will be switched according to the order of the videos in the carousel data, and Activity A configures the video URL address corresponding to video B to the video playing window to play video B through the video playing window. At the same time, Activity A generates a focus switching instruction for instructing Window B to switch the focus of the display device 200 to the sixth list control showing picture B, and Activity A sends the focus switching instruction to Window B. According to the focus switching instruction, Window B switches the focus of the display device 200 to the sixth list control showing picture B.
[0133] The focus switching instruction for instructing Window B to switch the focus of the display device 200 to the sixth list control showing picture B includes information representing picture B, such as the picture URL address of picture B, the order identifier corresponding to picture B in the carousel data, etc. so that Window B can switch the focus of the display device 200 to the sixth list control showing picture B according to the information representing picture B in the focus switching instruction.
[0134] In order to realize the quick switching of the playing video, when the user switches the focus of the display device 200 to the list control in the second interface by the control device 100, the switching instruction of switching the playing video can be input to the display device 200. Due to this kind of way, the user frequently switches the focus of the display device 200 in a short time, which can make the system need to constantly adjust the video played by the video playing window, thereby causing the excessive consumption of system resources and reducing the system performance. In this regard, the time threshold can be set to assist the implementation of switching the playing video. That is, when the Window B receives the video switching instruction input by the user to indicate the switching of the playing video, the timer is started, and the receiving time point of the current video switching instruction is taken as the starting point. If the next video switching instruction is not received within the preset time threshold, the current video switching instruction is sent to the Activity A, so that the Activity A controls the video played by the video playing window according to the current video switching instruction. If the next video switching instruction is received within the preset time threshold, the current video switching instruction is deleted and is not sent to the Activity A, and the receiving time point of the next video switching instruction is taken as the starting point for timing, and whether the video switching instruction is received within the preset time threshold is continued to be detected.
[0135] For example, along with the example of Figure 12 the display device 200 is located on the fifth list control of the display picture A, at this time, the user controls the focus of the display device 200 to move in sequence to the sixth list control of the display picture B, the seventh list control of the display picture C and the eighth list control of the display picture D in a short time by the control device 100, thereby generating the first video switching instruction indicating the switching of the playing video B, the second video switching instruction indicating the switching of the playing video C and the third video switching instruction indicating the switching of the playing video D. Since the receiving time interval between the first video switching instruction and the second video switching instruction and the receiving time interval between the second video switching instruction and the third video switching instruction are less than the preset time threshold, the Window B deletes the first video switching instruction and the second video switching instruction and does not send them to the Activity A, and only sends the third video switching instruction indicating the switching of the playing video D to the Activity A, so that the Activity A controls the video playing window to play the video D according to the third video switching instruction.
[0136] In some embodiments, when the user inputs an exit instruction for exiting the second interface in the second interface, the display device 200 can undo the second interface in response to the exit instruction. The historical layout information is obtained, and the historical layout information includes the display area of the video playback window in the first interface when the second interface is created in advance. The display position of the video playback window is set according to the historical layout information, so as to restore the display position of the video playback window to the display position before the second interface is created.
[0137] For example, along with Figure 5 and Figure 12 examples. As Figure 19 shown, a timing diagram for exiting the target video provided by the application embodiment is shown. When the display device 200 displays the second interface as shown in Figure 12 , the user presses the back key of the control device 100 to input an exit instruction for exiting the second interface to the display device 200. In response to the exit instruction, Window B can perform an undo operation to undo the second interface. At the same time, the exit instruction is sent to ActivityA, and ActivityA obtains the historical layout information of the video playback window in response to the exit instruction. The display position of the video playback window is set according to the historical layout information, and the video playback window is restored from the current position to the display position before the second interface is created, so as to restore the interface display effect of the first interface as shown in Figure 5 .
[0138] Based on the above-mentioned video continuation playing method. In some embodiments of the present application, a display device 200 is also provided, comprising a display 260 and a controller 250. Wherein, the display 260 is configured to display a first interface, and the first interface includes a video playback window for playing a target video. The controller 250 is configured to perform the following program steps:
[0139] In response to a video continuation playing instruction indicating playing a target video, a second interface is created.
[0140] Wherein, the display level of the second interface is higher than the display level of the video playback window, the second interface establishes a data intercommunication relationship with the first interface, the display area of the second interface is the same as the display area of the first interface, the first interface is created based on an activity component, and the second interface is created based on a window object.
[0141] A transparent area is set in the second interface.
[0142] The display 260 is controlled to display the second interface, so that the video playback window in the first interface continues to play the target video through the transparent area in the second interface.
[0143] The same parts of the various embodiments in the specification are referred to each other and will not be described here.
[0144] From the above technical solutions, the display device and the video continuation playing method provided by the above embodiments can create a second interface in response to a video continuation playing instruction indicating playing a target video when a display displays a first interface, the display level of the second interface is higher than that of a video playing window in the first interface, the second interface and the first interface establish a data intercommunication relationship, and the display area of the second interface is the same as that of the first interface. A transparent area is arranged in the second interface, and the display is controlled to display the second interface so that the video playing window in the first interface continues to play the target video through the transparent area in the second interface. The method uses the same video player to realize video continuation playing of two interfaces, and solves the problem of delay in video continuation playing when the interface is switched.
[0145] Those skilled in the art can clearly understand that the technologies in the embodiments of the present application can be realized by means of software and necessary general hardware platforms. Based on such understanding, the technical solutions in the embodiments of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions to make a computer device (which can be a personal computer, a server, or a network device, etc.) execute the method of the various embodiments or some parts of the embodiments of the present application.
[0146] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some or all of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0147] In order to facilitate explanation, the above description has been made in combination with specific embodiments. However, the above exemplary discussion is not intended to exhaust or limit the embodiments to the specific forms disclosed above. Various modifications and variations can be derived according to the above teachings. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different modified embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: A display is configured to show a first interface, the first interface including a video playback window for playing a target video, the first interface being created based on an active component; The controller is configured as follows: In response to a video playback continuation command indicating the playback of the target video, a second interface is created. The display level of the second interface is higher than that of the first interface. The second interface establishes a data communication relationship with the first interface. The display area of the second interface is the same as that of the first interface. The second interface is created based on a window object. Set a transparent area in the second interface; The display is controlled to show the second interface, so that the video playback window in the first interface continues to play the target video through the transparent area in the second interface.
2. The display device according to claim 1, characterized in that, The controller is also configured to: Create the first interface; In the first interface, a video playback window and a first image view are created, the first image view being used to display the target image; Obtain the target playback address and the target image address, wherein the target playback address is the address where the target video is stored, and the target image address is the address where the target image is stored; Configure the target playback address to the video playback window, and configure the target image address to the first image view; Control the display to show the first interface.
3. The display device according to claim 2, characterized in that, The controller is also configured to: Create a second image view in the second interface; Configure the target image address to the second image view; Control the display to show the second interface.
4. The display device according to claim 1, characterized in that, The controller is configured to set a transparent area in the second interface and is also configured to: Set the background attribute value of the second interface to a preset transparency value, wherein the preset transparency value is used to indicate that the background of the second interface is transparent; Get the preset background image; Crop the target image region from the background image; The cropped background image is set onto the second interface to obtain a transparent area, which is the display area of the target image area on the second interface.
5. The display device according to claim 1, characterized in that, The controller is also configured to: Detect the coordinates of the display area of the video playback window in the first interface; If the coordinates of the display area are the same as the coordinates of the transparent area, then the step of controlling the display to show the second interface is executed; If the coordinates of the display area are different from the coordinates of the transparent area, the video playback window is moved to the transparent area.
6. The display device according to claim 5, characterized in that, The controller is configured to move the video playback window to the transparent area and also to: Obtain the region coordinates and region size of the transparent region; Set the window size of the video playback window according to the area size; The display position of the video playback window is set according to the region coordinates.
7. The display device according to claim 6, characterized in that, The controller is also configured to: In response to an exit command for exiting the second interface, the second interface is canceled; Obtain historical layout information, which includes the display area of the video playback window in the first interface when the second interface was created, as recorded in advance; The display position of the video playback window is set according to the historical layout information.
8. The display device according to claim 1, characterized in that, The controller is also configured to: A transparent button control is provided on the transparent area; The transparent button control receives a user-input instruction to play the target video in full screen. In response to the full-screen playback command, the second interface is canceled; Control the video playback window in the first interface to display in full screen.
9. The display device according to claim 1, characterized in that, The controller is also configured to: In response to a playback control command input by the user through the second interface for the video playback window, the playback control command is sent from the second interface to the first interface. The first interface controls the video playback window to execute the playback control operation indicated by the playback control command.
10. A method for resuming video playback, characterized in that, Applied to a display device, the display device including a monitor and a controller, the monitor for displaying a first interface, the first interface including a video playback window for playing a target video, the first interface being constructed based on an active component; the method includes: In response to a video playback continuation command instructing the playback of the target video, a second interface is created. The display level of the second interface is higher than that of the first interface. The second interface establishes a data communication relationship with the first interface. The display area of the second interface is the same as that of the first interface. The second interface is created based on a window object. Set a transparent area in the second interface; The display is controlled to show the second interface, so that the video playback window in the first interface continues to play the target video through the transparent area in the second interface.
Citation Information
Patent Citations
Digital video production system and method
CN115225947A
Video playing method and device, equipment, storage medium and program product
CN116980546A