Display device and video continuous playing method

By creating a second interface of a transparent area in the display device, the video playback window in the first interface continues to play through the transparent area, solving the problem of video continuous playback delay during interface switching, realizing continuous playback and user experience of video Improvement.

CN119420966AActive Publication Date: 2025-02-11JUHAOKAN TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410167058.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-06
Publication Date
2025-02-11
Estimated Expiration
2044-02-06

AI Technical Summary

Technical Problem

There is a delay in video replay during interface switching, and due to the characteristics of video format, codec or streaming protocol, it is impossible to accurately locate the expected playback progress, reducing the user experience.

Method used

By creating a second interface in the display device, its display level is higher than the display level of the video playback window, and a data interoperability relationship is established with the first interface. A transparent area is set in the second interface so that the video playback window in the first interface continues to play the target video through the transparent area, realizing continuous playback of the video.

Benefits of technology

By using the same video player to realize video resuming of two interfaces, the problem of delay in video resuming during interface switching is solved, and the continuous playback of video is realized and the user experience is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420966A_ABST
    Figure CN119420966A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a video continuous playing method, the method can respond to a video continuous playing instruction indicating playing of a target video when a display displays a first interface, a second interface is created, and the display level of the second interface is higher than the display level of a video playing window in the first interface. The second interface and the first interface establish a data intercommunication relationship, a display area of the second interface is the same as that of the first interface, the first interface is created based on the active component, and the second interface is created based on the window object. And setting a transparent area in the second interface, and controlling 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 area in the second interface. According to the method, video continuous playing of two interfaces is realized by using the same video player, and the problem of video continuous playing delay during interface switching is solved.
Need to check novelty before this filing date? Find Prior Art

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 resume playback method. Background Art

[0002] Display devices refer to terminal devices that can output specific display images, which can be terminal devices such as smart TVs, communication terminals, smart advertising screens, projectors, etc. Taking smart TVs as an example, smart TVs are based on Internet application technology, have open operating systems and chips, have open application platforms, can realize two-way human-computer interaction functions, and are TV products that integrate multiple functions such as audio and video, entertainment, and data to meet the diverse and personalized needs of users.

[0003] When playing a video on the first interface, the display device can record the playback progress of the current video. When switching to the second interface, the playback progress is passed to the video player of the second interface, so that the video player of the second interface starts playing from this progress, thereby realizing continuous playback of the video.

[0004] However, it takes a certain amount of time for the video player on the second interface to start playing, resulting in poor connection and delay in video playback when switching from the first interface to the second interface. In addition, due to the characteristics of different video formats, codecs or streaming protocols, it is impossible to accurately locate the expected playback progress and resume playback from the expected progress, which reduces the user experience. Summary of the invention

[0005] The present application provides a display device and a video resume playback method to solve the problem of delay in video resume playback when the interface is switched.

[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 comprises a video playback window, the video playback window is used to play a target video, and the first interface is created based on an activity component; the controller is configured to execute the following program steps:

[0007] In response to a video resume instruction indicating to play the target video, a second interface is created, 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, and the second interface is constructed based on the window object;

[0008] Setting a transparent area in the second interface;

[0009] The display 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.

[0010] In a second aspect, the present application further provides a video resume playback method, which is applied to the above-mentioned display device, and the method comprises:

[0011] In response to a video resume instruction indicating to play the target video, a second interface is created, 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, and the second interface is constructed based on the window object;

[0012] Setting a transparent area in the second interface;

[0013] The display 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.

[0014] It can be seen from the above technical solutions that the present application provides a display device and a video resume playback method. When the display displays the first interface, the method can respond to the video resume playback instruction indicating the playback of the target video, create a second interface in the first interface, the display level of the second interface is higher than the display level of the video playback window in the first interface, the second interface establishes a data intercommunication relationship with the first interface, and the display area of ​​the second interface is the same as the display area of ​​the first interface. A transparent area is set in the second interface, and the display 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. The method uses the same video player to achieve video resume playback of the two interfaces, thereby solving the problem of delay in video resume playback when the interface is switched. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0016] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0017] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;

[0018] Figure 3 A schematic diagram of the hardware configuration of a control device provided in some embodiments of the present application;

[0019] Figure 4 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;

[0020] Figure 5 A schematic diagram of a first interface provided in some embodiments of the present application;

[0021] Figure 6 A hierarchical schematic diagram of a first interface and a second interface provided in some embodiments of the present application;

[0022] Figure 7 A timing diagram for video playback provided in some embodiments of the present application;

[0023] Figure 8 Another hierarchical schematic diagram of a first interface and a second interface provided in some embodiments of the present application;

[0024] Fig. 9 Another timing diagram of video playback provided in some embodiments of the present application;

[0025] Fig.10 Another timing diagram of video playback provided in some embodiments of the present application;

[0026] Fig.11 A schematic diagram of a second interface provided in some embodiments of the present application;

[0027] Fig.12 Another schematic diagram of a second interface provided in some embodiments of the present application;

[0028] Fig.13 A timing diagram of full-screen playback of a target video provided in some embodiments of the present application;

[0029] Fig.14 A schematic diagram of an interface in which the focus of a display device provided in some embodiments of the present application is located on a transparent button control;

[0030] Fig.15 A schematic diagram of the interface effect of full-screen playback of a target video provided in some embodiments of the present application;

[0031] Fig.16 A timing diagram of switching video playback provided in some embodiments of the present application;

[0032] Fig.17 A schematic diagram of the interface effect of playing video B provided in some embodiments of the present application;

[0033] Fig.18A timing diagram for switching the focus of a display device in a second interface provided in some embodiments of the present application;

[0034] Fig.19 A timing diagram for exiting playback of a target video provided in some embodiments of the present application. DETAILED DESCRIPTION

[0035] In order to make the purpose, 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 clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, not all of the embodiments.

[0036] Based on the exemplary embodiments shown in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of these disclosures can also constitute a complete technical solution separately.

[0037] It should be understood that the terms "first", "second", "third", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, for example, they can be implemented according to an order other than those given in the diagrams or descriptions of the embodiments of this application.

[0038] In addition, the terms "include" and "have" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to those components expressly listed but may include other components not expressly listed or inherent to such products or devices.

[0039] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may 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 This is a specific implementation of the display device of the present application.

[0040] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0041] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0042] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0043] In some embodiments, the display device 200 may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0044] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0045] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one 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 and demodulator 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, a RAM, a ROM, and first to nth interfaces for input / output.

[0048] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.

[0049] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0050] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, 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 may be used to receive a control signal from the control device 100 (eg, an infrared remote controller, etc.).

[0052] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; 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 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0054] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0055] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[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 to be displayed on the display 260, the controller 250 can perform operations 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), RAM (Random Access Memory, RAM), ROM (Read-Only Memory, ROM), a first interface to an nth interface for input / output, a communication bus (Bus), etc.

[0058] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0059] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an interface element such as an icon, window, control, etc. displayed on the display screen of an electronic device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc.

[0060] Figure 3 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 3 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, a memory, and a power supply. The control device 100 can receive input operation instructions from the user, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, playing the role of an interactive intermediary between the user and the display device 200.

[0061] like Figure 4 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (Applications) layer (referred to as "application layer"), the application framework layer (Application Framework) layer (referred to as "framework layer"), the Android runtime (Androidruntime) and system library layer (referred to as "system runtime library layer"), and the kernel layer.

[0062] In some embodiments, at least one application is running in the application layer, and these applications can be window programs, system settings programs, clock programs, etc. provided by the operating system, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the above examples.

[0063] The framework layer provides application programming interfaces (APIs) and programming frameworks for applications. The application framework layer includes some predefined functions. The application framework layer is equivalent to a processing center that determines the actions that applications in the application layer take. Through the API interface, applications can access system resources and obtain system services during execution.

[0064] like Figure 4 As shown, in the embodiment of the present application, the application framework layer includes managers, content providers, etc., wherein the manager includes at least one of the following modules: an activity manager (ActivityManager) is used to interact with all activities running in the system; a location manager (Location Manager) is used to provide system services or applications with access to system location services; a package manager (Package Manager) is used to retrieve various information related to the application package currently installed on the device; a notification manager (NotificationManager) is used to control the display and clearing of notification messages; a window manager (Window Manager) is used to manage 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 and the common navigation back function, such as controlling the exit, opening, and back of the application. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, capturing the screen, and controlling the display window changes (for example, reducing the display window, shaking the display, distorting the display, etc.).

[0066] In some embodiments, the system runtime layer provides support for the upper layer, namely the framework layer. When the framework layer is used, the Android operating system will run the C / C++ library contained in the system runtime layer to implement the functions to be implemented by the framework layer.

[0067] In some embodiments, the kernel layer is a layer between hardware and software. Figure 4As shown, the kernel layer includes 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 driver, etc.

[0068] Based on the above display device 200, a display screen can be presented. For example, a playback screen, a control interface, and other application interfaces. Depending on the developer or operator of the application, the application installed on the display device 200 may include various forms, such as system applications, third-party applications, etc. When the application list is displayed in the display 260, the user can select one of the applications and control the display device 200 to run the application to implement the function of the application.

[0069] In some embodiments, the display device 200 may be installed with a video-on-demand application, which may provide videos from different storage sources. For example, the video-on-demand application may be from a cloud storage server, or from a local hard disk storage containing stored video programs. When the display device 200 runs the video-on-demand application, video data or image data may be obtained from different storage sources and displayed on the display 260, thereby presenting a video of the video or image data. Figure 5 The first interface shown. 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. Activity is used for interface display, user interaction and business logic processing. Through Activity, a user interface can be constructed and displayed. Various view controls such as buttons, text boxes, lists, etc. are set in the layout file of Activity to present the corresponding interface.

[0071] For image data, you can add a control for displaying images, such as ImageView, to the layout file of the Activity, and set the image address such as the resource ID, Uniform Resource Locator (URL), file path, etc. of the image for the control to display the image in the corresponding interface. For video data, you can add a control for playing videos, such as MediaPlayer and VideoView, to the layout file of the Activity, and set the video address such as the video path and URL for the control to play the video in the corresponding interface.

[0072] In response to this, the display device 200 displays Figure 5When the first interface is 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, the first page data includes carousel data, the carousel data includes first instance data corresponding to video A, second instance data corresponding to video B, and other instance data of multiple videos. The first instance data includes a first video URL address corresponding to video A, and a first image URL address corresponding to picture A of video A; the second instance data includes a second video URL address corresponding to video B, and a second image URL address corresponding to picture B of video B, etc.

[0074] In some embodiments, the carousel component includes a list control and a video playback window, and the list control loads the control content corresponding to the list identification position from the received page data, for example, the first list control displays picture A, and the second list control displays picture B, etc. The video playback window loads the playback address of the video to be played from the received page data, and loads the 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 it.

[0075] In some embodiments, the carousel data corresponding to the carousel component includes a first video URL address corresponding to video A and a first picture URL address corresponding to picture A of video A, a second video URL address corresponding to video B and a second picture URL address corresponding to picture B of video B, a third video URL address corresponding to video C and a third picture URL address corresponding to picture C of video C, a fourth video URL address corresponding to video D and a fourth picture URL address corresponding to picture D of video D, etc. The first list control in the carousel component loads picture A from the server according to the first picture URL address and displays it; the second list control loads picture B from the server according to the second picture URL address and displays it; the third list control loads picture C from the server according to the third picture URL address and displays it; the fourth list control loads 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 will call the video player of the framework layer, and enable the video player to request the server to play the audio and video content corresponding to the video URL address corresponding to the video to be played.

[0076] In some embodiments, for example, the video to be played is video A, and the video playback window in the carousel component will call the video player of the framework layer, and make the video player request the server to play the audio and video content of video A corresponding to the first video URL address according to the first video URL address. After the video A is played, the video player will request the server to play the audio and video content of video B according to the second video URL address, so that the video player plays video A, video B, video C, video D and other videos in sequence 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, and the video player will exit the currently playing video according to a specific interaction strategy, and search for the video URL address associated with the image URL address in the carousel data according to the image URL address corresponding to the target list control newly selected by the user, request the audio and video data corresponding to the video URL address from the server and play it, so as to switch the video played in 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 videos corresponding to video A, video B, video C, video D, etc., and also includes picture A corresponding to video A, picture corresponding to video B, picture C of video C, picture D corresponding to video D, etc., so as to display picture A in the first list control of the carousel component and configure the first video URL address corresponding to video A for the first list control; display picture B in the second list control of the carousel component and configure the second video URL address corresponding to video B for the second list control, display picture C in the third list control of the carousel component and configure the third video URL address corresponding to video C for the third list control, display picture D in the fourth list control of the carousel component and configure the fourth video URL address corresponding to video D for the fourth list control.

[0079] For example, the list control to be played is the first list control, and the video playback window in the carousel component will call the video player of the framework layer, and make 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 first list control for playback. After video A is played, the video playback window will request the audio and video content of video B according to the video URL address corresponding to the second list control and play it.

[0080] In some embodiments, the first interface template also includes a history record control and / or a recommendation column, the first page data includes history record data and / or recommendation data, the history record control will be rendered and displayed based on the history record data in the first page data, and / or the recommendation column will be rendered and displayed based on the recommendation data in the first page data.

[0081] In some embodiments, Figure 5 When the video playback window of the first interface shown plays video A, the user switches the focus of the display device 200 to the video playback window through the control device 100. When the focus is on the video playback window, the confirmation key of the control device 100 is pressed to input the confirmation 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 value.

[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 playback window, and the second page data includes the first video URL address corresponding to video A. The video playback window will call the video player of the framework layer, and make the video player request the server to play the audio and video content of the video A corresponding to the first video URL address according to the first video URL address. At this time, the video player in the Acticity corresponding to the first interface will stop playing video A. The video player in the Acticity corresponding to the second interface will continue to play video A. Among them, continuing to play video A means that the video player in the Acticity corresponding to the second interface will continue to play video A based on the progress of the video A played by the video player in the Acticity corresponding to the first interface, so as to achieve video continuation.

[0083] In some embodiments, in order to resume video playback, the Activity corresponding to the first interface can pass the playback progress of the video player in the Activity corresponding to the first interface to the Acticity corresponding to the second interface to resume video playback. Specifically, the Activity corresponding to the first interface passes the playback progress of the video player in the Activity corresponding to the first interface to the Acticity corresponding to the second interface. The video player in the Acticity corresponding to the second interface requests the audio and video data of video A corresponding to the first video URL address from the server according to the first video URL address of video A, and performs a seek operation according to the playback progress passed in by the Activity corresponding to the first interface, jumps to the playback position of video A corresponding to the playback progress, and starts playback from the playback progress, thereby achieving continuous playback of the video and improving user experience.

[0084] However, in the above implementation, it takes a certain amount of time to start the video player in the Activity corresponding to the second interface, resulting in poor connection and delay in video playback when switching from the first interface to the second interface. In addition, due to the characteristics of different video formats, codecs or streaming protocols, the seek operation may have errors, resulting in the video player in the Activity corresponding to the second interface being unable to accurately jump to the expected playback progress, and thus being unable to resume playback from the expected progress, reducing the user experience.

[0085] In some embodiments, some embodiments of the present application provide a video resume method, which is applied to a display device 200. The display device 200 to which the video resume 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 execute the above-mentioned video resume method, which specifically includes the following contents:

[0086] When the display device 200 is running, different user interfaces can be presented to interact with the user through the user interfaces. In the scenario of video continuation, the display device 200 can realize video continuation of two interfaces by using the same player. For ease of understanding, the interface including playing the target video based on the video playback window is called the first interface, and the interface for continuing to play the target video is called the second interface.

[0087] In some embodiments, when the display device 200 displays the first interface, it can create the first interface, that is, create an Activity corresponding to the first interface. Through the Activity corresponding to the first interface, the target playback address can be obtained from the server, and a video playback window can be created in the first interface, so that the video playback window requests the server to play the audio and video content corresponding to the target playback address according to the target playback address, and finally the display 260 is controlled to display the first interface constructed based on the Activity, that is, the first interface for playing the target video can be presented to the user.

[0088] When receiving a video resume instruction instructing to play the target video, in response to the video resume instruction, the display device 200 can create a second interface, that is, create a Window corresponding to the second interface. The display level of the second interface is higher than the display level of the first interface, and the display area of ​​the second interface is the same as the display area of ​​the first interface.

[0089] Through the Window corresponding to the second interface, a transparent area is set in the second interface, and the transparent area is an area with a 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 playback window in the first interface continues to play the target video through the transparent area in the second interface.

[0090] Among them, the first interface is created based on Activity, and the second interface is created based on Window. Activity is the basic component unit of an application in the display device 200 system, and can represent a single screen of a user interface. Each Activity has an associated Window to display the interface of the Activity. Activity is used to manage the process of user interaction with the application, including processing user input, displaying the interface, and managing the life cycle of the application. By creating an Activity, the interface content and layout can be set to achieve the generation and display of the first interface. Window is a window mechanism in the display device 200 system, which can represent a window in an application and represent an area of ​​the application interface. Window contains a Surface for displaying the UI and related logic for processing UI events. It can be understood as a container that can hold various interface elements, such as buttons, text boxes, images, etc. By directly operating the Window object, a second interface for operation and information display is provided to the user, such as a pop-up window, a floating window, etc.

[0091] like Figure 6 As shown, a hierarchical schematic diagram of the second interface and the second interface provided in an embodiment of the present application is shown. The first interface is implemented using Activity, and the second interface is implemented using Window. The first interface includes a video playback window. The display level of the second interface is higher than the display level of the first interface. The video playback window in the first interface can be displayed through the transparent area in the second interface, so that the same player can be used to realize the video playback of the two interfaces.

[0092] It is understandable that the embodiment of the present application realizes the video resume by creating a Window as the display interface for the video resume. The display interface is displayed using a Window instead of an Activity, because the use of an Activity will cause the video player of the first interface to perceive the switching of the operating system life cycle of the display device 200, causing the video player of the first interface to stop playing.

[0093] In this embodiment, when the display device 200 displays the display interface of video continuation, a transparent area is set in the second interface, so that the video playback window in the first interface can continue to play the target video through the transparent area in the second interface. Compared with the method of starting the video player in the new interface, the start time is saved, thereby achieving the effect of zero-delay continuation. And because the first interface and the second interface share a video player, there is no problem of video connection, and continuous video playback is achieved.

[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 messages can be transmitted between the first interface and the second interface to perform interactive operations related to the video player, such as video pause, video fast forward, etc.

[0095] The data intercommunication relationship between the first interface and the second interface can be realized based on the broadcast mechanism. The Activity corresponding to the first interface and the Window corresponding to the second interface respectively register their respective broadcast receivers and specify the action (a string used to identify the purpose and type of the broadcast) of the broadcast to be monitored to monitor a specific broadcast, so as to perform corresponding operations when the broadcast is received.

[0096] When the Window corresponding to the second interface passes 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 passed in the Intent object, specify the broadcast action, 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 will be triggered, and the Intent object in the broadcast sent by the Window can be obtained, and the transmitted data information can be read from it. Similarly, when the Activity corresponding to the first interface transmits information to the Window corresponding to the second interface, it can also be achieved through the above broadcast mechanism.

[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 will request 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 playback control instruction for the video playback window input by the user through the second interface, and the Window corresponding to the second interface can send the playback control instruction to the Activity corresponding to the first interface. The video playback window is controlled by the Activity corresponding to the first interface to perform the playback control operation indicated by the playback control instruction.

[0099] In some embodiments, when a transparent area 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 the target image area in the background image. The target image area is the display area of ​​the video playback window when the background image is displayed in the second interface. The cropped background image is set on the second interface to form a transparent area. The transparent area is the display area on the second interface corresponding to the cropped target image area. In other words, the background of the second interface is set to be transparent, and then a background image is set on the second interface for display, and the position area where the video playback window is to be displayed is cropped in the background image, thereby obtaining the following. Figure 7 The second interface shown includes a transparent area. The transparent area in the second interface can display the video playback window in the underlying first interface, while the non-transparent area will not display the underlying content.

[0100] In some embodiments, the Window corresponding to the second interface can characterize various logics and display processing of 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 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 characterize the background of the second interface as transparent, so that the background of the second interface presents a transparent effect.

[0101] In some embodiments, in order to improve the playback effect of video continuation, the video playback window in the first interface needs to match the transparent area so that the target video can be played completely through the transparent area. The Activity corresponding to the first interface can detect the display area coordinates of the video playback window in the first interface. Compare the display area coordinates with the transparent area coordinates. If the display area coordinates are the same as the transparent area coordinates, it means that the size and position of the video playback window and the transparent area are the same, and the video playback window is not processed.

[0102] If the display area coordinates are different from the transparent area coordinates, the display position and window size of the video playback window need to be adjusted according to the transparent area. The Activity corresponding to the first interface can obtain the area coordinates and area size of the transparent area, set the window size of the video playback window according to the area size, and set the display position of the video playback window according to the area coordinates, thereby moving the video playback window to the transparent area, so that the video playback window in the first interface can play the target video through the transparent area.

[0103] like Figure 7As shown in FIG. 1 , a timing diagram of video playback provided in an embodiment of the present application is provided. When the user inputs a display instruction of the first interface, the operating system of the display device 200 will create and start the Activity corresponding to the first interface, that is, Figure 7 ActivityA shown. ActivityA can obtain the media asset identifier of the first interface, and obtain the first interface data of the first interface from the server based on the media asset identifier of the first interface. The media asset identifier is an identifier (ID) representing the interface. Through the media asset identifier, interface data of different interfaces can be obtained from the server. The first interface data includes the target playback address of the target video, information of the video playback window (such as location information), etc. ActivityA creates and starts a video playback window according to the information of the video playback window, so that the video playback window requests the server to play the target video corresponding to the target playback address according to the target playback address.

[0104] When the user inputs a video resume instruction to play the target video, in response to the video resume instruction, ActivityA can obtain the media asset identifier of the second interface, and obtain the second interface data of the second interface from the server based on the media asset identifier of the second interface. The second interface data includes the background image, background attribute values, and cropping information of the transparent area, etc. And send an instruction to the operating system of the display device 200 to instruct the creation of the second interface. The instruction carries the page type identifier representing the Window and the second interface data. In response to the instruction, the operating system of the display device 200 will create a Window corresponding to the second interface according to the page type identifier representing the Window, that is, Figure 7 Window B shown. And the second interface data is transmitted to Window B.

[0105] Alternatively, ActivityA sends an instruction to the operating system of the display device 200 to instruct the creation of a second interface, and the instruction carries a page type identifier representing the Window. In response to the instruction, 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. After Window B is successfully created, a notification indicating successful creation can be sent to ActivityA. After receiving the notification, ActivityA can send the media asset identifier of the second interface to Window B. Window B can obtain the second interface data of the second interface 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, so as to set the background of the second interface to be transparent. Then, the background image is cropped according to the cropping information of the transparent area, and the position where the video playback window is to be displayed in the background image is cropped out, and the cropped background image is set on the second interface to form a transparent area. Finally, the position coordinates of the transparent area are sent to ActivityA. ActivityA scales and / or moves the video playback window in Activity according to the position coordinates transmitted by Window B, so as to adjust the display position of the video playback window in ActivityA, so that the video playback window can be displayed through the transparent area in Window B.

[0107] Based on the focus management mechanism of the operating system of the display device 200, when Window B corresponding to the second interface is started, Window B corresponding to the second interface will request the operating system to obtain the focus, so that the operating system sets the focus to Window B corresponding to the second interface. Therefore, when the user inputs a playback control instruction for the video playback window through the second interface, Window B that obtains the focus can obtain the playback control instruction and send the playback control instruction to Activity A, so that Activity A controls the video player to perform related operations according to the playback control instruction.

[0108] In some embodiments, in the case where the view controls in the first interface and the second interface both display the same picture, 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, a first interface can be created, that is, an Activity corresponding to the first interface can be created. Through the Activity corresponding to the first interface, the target picture address can be obtained from the server, and a first picture view can be created in the first interface, so that the first picture view requests the server to display the target picture corresponding to the target picture address according to the target picture address. Finally, the display 260 is controlled to display the first interface created based on the Activity, that is, the first interface that displays the target picture through the first picture view can be presented 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. Through the Window corresponding to the second interface, the background attribute value of the second interface is set to a transparency value, and the preset transparency value is used to characterize that the background of the second interface is transparent, thereby setting the background of the second interface to be transparent. Then obtain the preset background image, crop the background image, crop the image area corresponding to the display area of ​​the first picture view when the background image is displayed in the second interface, and set the cropped background image to the second interface to set the picture transparent area in the second interface. The picture transparent area is the area 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 first picture view in the first interface displays the target picture through the picture transparent area.

[0110] like Figure 8 As shown, another hierarchical schematic diagram of the first interface and the second interface provided in an embodiment of the present application is shown. The display level of the second interface is higher than the display level of the first interface, the video playback window in the first interface can be displayed through the transparent area in the second interface, and the multiple first picture views in the first interface can be displayed through the multiple picture transparent areas in the second interface, so that the same view can be used to display the same picture in the two interfaces.

[0111] For the setting of the transparent area of ​​the picture and the position adjustment of the first picture view, reference may be made to the setting of the transparent area corresponding to the video playback window and the position adjustment of the video playback window. Fig. 9 As shown, another timing diagram of video playback provided by an embodiment of the present application is shown. Taking the above-mentioned ActivityA and Window B 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 also includes the target image address and information of the view control (such as location information). ActivityA creates a first image view according to the information of the view control, so that the first image view requests the server to display the target image corresponding to the target image address according to the target image address.

[0112] When receiving the video resume instruction, the second interface data of the second interface obtained by ActivityA from the server based on the media resource identifier of the second interface also includes cropping information of the transparent area of ​​the picture.

[0113] After Window B obtains the second interface data, it sets the background attribute value of the second interface to the background attribute value indicated in the second interface data to set the background of the second interface to be transparent. Then, the background image is cropped according to the cropping information of the transparent area and the cropping information of the transparent area of ​​the picture, and the positions where the video playback window and the first picture view are to be displayed in the background image are cropped off, and the cropped background image is set on the second interface to form a transparent area and a picture transparent area. Finally, the position coordinates of the picture transparent area are sent to ActivityA. ActivityA scales and / or moves the video playback window in Activity according to the position coordinates transmitted by Window B to adjust the display position of the video playback window in ActivityA so that the video playback window can be displayed through the transparent area in Window B. And the first picture view in Activity is scaled and / or moved to adjust the display position of the first picture view of ActivityA so that the first picture view can be displayed through the picture transparent area in Window B.

[0114] Of course, the display device 200 can also use different views to realize the display of the same picture in 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 requests the server to display the target picture corresponding to the target picture address according to the target picture address, and finally controls the display 260 to display the second interface created based on the Window. In other words, 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] like Fig.10 As shown, it is another timing diagram of video replay provided by the embodiment of the present application. Taking the above-mentioned ActivityA and Window B as an example, in response to the video replay instruction input by the user, ActivityA obtains the second interface data of the second interface from the server side based on the media asset identifier of the second interface, including the background image, background attribute value, cropping information of the transparent area and information of the view control. Window B sets the transparent area on the second interface according to the background image, background attribute value and cropping information of the transparent area, and also creates a second picture view according to the information of the view control, and makes the second picture view request the server to display the target picture corresponding to the target picture address according to the target picture address.

[0116] Combine the following Figure 5 , Fig.11 , Fig.12 Taking the interface shown as an example, the video resume playback method of the present application is explained.

[0117] When the user controls the display device 200 to run the video-on-demand application, the display device 200 can create an ActivityA corresponding to the first interface. ActivityA can obtain the first interface data from the server corresponding to the video-on-demand application. The first interface data includes carousel data and information about carousel components. The carousel data includes a first video URL address corresponding to video A and a first picture URL address corresponding to picture A of video A, a second video URL address corresponding to video B and a second picture URL address corresponding to picture B of video B, a third video URL address corresponding to video C and a third picture URL address corresponding to picture C of video C, a fourth video URL address corresponding to video D and a fourth picture URL address corresponding to picture D of video D, etc. ActivityA creates a carousel component according to the obtained first interface data. The carousel component includes multiple list controls and a video playback window. Multiple picture URL addresses in the carousel data are respectively configured to multiple list controls, so that the list controls request the server to display pictures corresponding to the picture URL addresses according to the picture URL addresses, so that the first list control of the carousel component displays picture A, the second list control displays picture B, the third list control displays picture C, and the fourth list control displays picture D. The video URL address of the video to be played in the first interface data is configured to the video playback window, and the video playback window will call the video player of the framework layer, and make the video player request the server to play the audio and video content corresponding to the video URL address according to the video URL address. Figure 5 The interface shown shows the effect.

[0118] When playing video A in the video play window, the user switches the focus of the display device 200 to the video play window through the control device 100, and when the focus is on the video play window, presses the confirmation key of the control device 100 to input the confirmation key value to the display device 200. According to the preset interaction strategy, Activity A can generate an interface switching instruction according to the current focus position and the received confirmation key value, and the interface switching instruction is used to instruct to play video A in a new display interface, thereby triggering the generation of a video resume instruction instructing to continue playing video A in the new display interface.

[0119] In response to the video resume instruction, Activity A can obtain the second interface data from the server corresponding to the video on demand application, and send a command to the operating system of the display device 200 to instruct the creation of the second interface, the command carrying the page type identifier representing the Window and the second interface data, the second interface data including the background image, background attribute values, and the clipping information of the transparent area, etc. The operating system of the display device 200 will create a Window B corresponding to the second interface according to the page type identifier representing the Window, and transmit the second interface data to Window B.

[0120] 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, so as to set the background of the second interface to be transparent. Then, the background image is cropped according to the cropping information of the transparent area, so as to crop the position where the video playback window is to be displayed in the background image, and then the cropped background image is set to the second interface, so as to form the following image. Figure 7 Window B can Figure 7 The position coordinates corresponding to the four vertices of the transparent area shown in FIG. 1 are sent to Activity A. Activity A scales and / or moves the video playback window in Activity A according to the position coordinates transmitted by Window B to adjust the display position of the video playback window in Activity A so that the video playback window can be displayed through the transparent area in Window B, thereby presenting the following: Fig.11 The interface shown shows the effect.

[0121] In some embodiments, Window B may also be configured with a list control. In response to the video resume instruction, the second interface data carried in the instruction to create the second interface sent by Activity A to the operating system of the display device 200 also includes view control information and carousel data. After creating Window B corresponding to the second interface, the operating system of the display device 200 transmits the second interface data to Window B. Window B may create multiple list controls based on the view control information, and configure multiple image URL addresses in the carousel data to multiple list controls respectively, so that the list control requests the server to display the image corresponding to the image URL address according to the image URL address, so as to Fig.12 The fifth list control in the second interface shown displays picture A, the sixth list control displays picture B, the seventh list control displays picture C, and the eighth list control displays picture D.

[0122] Alternatively, in response to the video resume instruction, the second interface data carried in the instruction for instructing the creation of the second interface sent by ActivityA to the operating system of the display device 200 also includes cropping information of transparent areas of the image. After creating Window B corresponding to the second interface, the operating system of the display device 200 transmits the second interface data to Window B. Based on the second interface data, WindowB sets the background attribute value of the second interface to the background attribute value indicated in the second interface data to set the background of the second interface to be transparent. The background image is then cropped based on the cropping information of the transparent area of ​​the image to crop out the positions in the background image where the first list control, the second list control, the third list control, and the fourth list control are to be displayed, and the cropped background image is set to the second interface to form a background image such as the following. Fig. 9 Window B can Fig. 9 The position coordinates corresponding to the four vertices of the four transparent areas of the four images shown are sent to ActivityA. ActivityA scales and / or moves the first list control, the second list control, the third list control, and the fourth list control in ActivityA according to the position coordinates transmitted by Window B, so as to adjust the display positions of the first list control, the second list control, the third list control, and the fourth list control, so that the first list control, the second list control, the third list control, and the fourth list control can be displayed through the four transparent areas of the images in Window B, respectively. Thus, the following is presented: Fig.12 The interface shown shows the effect.

[0123] In some embodiments, the interface switching can also be achieved through the list control in the carousel component. Figure 5 In the first interface of ActivityA, when playing video A in the video playing window, the user switches the focus of the display device 200 to the second list control showing picture B in the first interface through the control device 100, and when the focus is on the second list control, presses the confirmation key of the control device 100 to input the confirmation key value to the display device 200. According to the preset interaction strategy, ActivityA can generate an interface switching instruction according to the current focus position and the received confirmation key value, and the interface switching instruction is used to instruct to play video B in the new display interface.

[0124] In response to the interface switching instruction, Activity A can search the second video URL address corresponding to video B from the carousel data, and make the video playback window request the server to play the audio and video content of video B corresponding to the second video URL address according to the second video URL address. Then, according to the above steps of creating window B, setting the transparent area, moving the video playback window, etc., video B is played in the second interface.

[0125] In some embodiments, when the user inputs a full-screen play instruction in the second interface for indicating full-screen play of the target video, in response to the full-screen play instruction, the display device 200 can cancel the second interface and control the video playback window in the first interface to be displayed in full screen. When the user inputs a full-screen exit instruction for indicating exiting full-screen play of the target video, the display device 200 can perform the display processing steps of the second interface in the above embodiment. That is, a second interface is created, and a transparent area is set in the second interface, the video playback window displayed in full screen is reduced according to the size of the transparent area, and the display position of the reduced video playback window is set according to the transparent area, thereby restoring the display interface before the video playback window is displayed in full screen.

[0126] In order to realize the function of playing the target video in full screen, the display device 200 can set a transparent button control on the transparent area of ​​the second interface, and receive the full screen play instruction input by the user to play the target video in full screen through the transparent button control. That is, when the operating system of the display device 200 creates Window B corresponding to the second interface, the second interface data transmitted to Window B also includes the information of the button control (such as the position information of the button, the attribute value representing the transparency of the button, etc.), so that Window B can set a transparent button control on the transparent area according to the information of the button control. When the user controls the focus to move to the button control, when the focus is on the transparent button control, press the confirmation key of the control device 100 to input the confirmation key value, Window B can perform the cancellation operation according to the current focus position and the received confirmation key value to cancel the second interface, and at the same time trigger the generation of the full screen play instruction to instruct Activity A to display the video playback window in full screen. Window B can send the full screen play instruction to Activity A, so that Activity A controls the video playback window to display in full screen according to the full screen play instruction.

[0127] For example, using Fig.12 For example, Fig.13 As shown in FIG. 1 , it is a timing diagram of full-screen playback of a target video provided in an embodiment of the application. When the user switches the focus of the display device 200 to the transparent button control set on the transparent area in the second interface through the control device 100, the following is presented: Fig.14 The focus of the display device 200 shown is located on the video playing window playing video A, and the confirmation key of the control device 100 is pressed to input the confirmation key value. Window B can perform an undo operation according to the current focus position and the received confirmation key value to undo the video A. Fig.12Window B sends the full-screen play instruction to Activity A, so that Activity A adjusts the layout parameters (such as width, height, margin, etc.) of the video play window according to the full-screen play instruction to control the full-screen display of the video play window, and presents the following image: Fig.15 The interface effect of playing the target video in full screen is shown.

[0128] When the target video is played in full screen, the user presses the return key of the control device 100 to input the return key value. Activity A sends an instruction to the operating system of the display device 200 to instruct the creation of a second interface according to the return key value. The instruction carries the page type identifier representing the Window and the second interface data of the second interface. The second interface data includes a background image, a background attribute value, cropping information of a transparent area, carousel data, information of a view control, etc. In response to the instruction, the operating system of the display device 200 creates a new Window corresponding to the second interface according to the page type identifier representing the Window, that is, Window C, and transmits the second interface data to Window C. According to the second interface data, Window C sets the background attribute value of the second interface to the background attribute value indicated in the second interface data to set the background of the second interface to be transparent. Then, the background image is cropped according to the cropping information of the transparent area to crop the position where the video playback window is to be displayed in the background image, and the cropped background image is set on the second interface to form a transparent area. The position coordinates of the transparent area are sent to ActivityA, so that ActivityA can scale and / or move the full-screen video playback window according to the position coordinates transmitted by Window C, and adjust it to the transparent area so that it can be displayed through the transparent area in Window C. At the same time, multiple list controls are created according to the information of the view control, and multiple image URL addresses in the carousel data are respectively configured to multiple list controls, so that the list controls request the server to display the image corresponding to the image URL address according to the image URL address, thereby restoring to the state as follows: Fig.12 The interface display effect of the second interface is shown.

[0129] Of course, the display device 200 can also interact with the user through other interaction methods. For example, the display 260 can be a touch screen, which receives user control through touch or gestures. It can also receive external sounds through a sound collector to achieve voice control. Taking voice control as an example, according to the voice interaction strategy preset by the display device 200, Window B corresponding to the second interface that obtains the focus can receive voice commands. The display device 200 displays Fig.12In the second interface shown, the user speaks "full screen video" near the display device 200 to input a full screen play instruction to the display device 200 to play the video A in full screen. Window B can capture the full screen play instruction and perform the undo operation according to the full screen play instruction. At the same time, 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, Fig.16 As shown in FIG. 1 , it is a timing diagram of switching and playing videos provided in an embodiment of the application. Figure 5 and Fig.12 After the display device 200 creates Window B, the focus of the display device 200 is by default on Fig.12 On the fifth list control corresponding to the picture A in the second interface shown. When the user switches the focus of the display device 200 to the sixth list control corresponding to the picture B in the second interface through the control device 100, and when the focus is on the sixth list control, the confirmation key of the control device 100 is pressed to input the confirmation key value, and Window B obtains the picture URL address of the picture B configured in the sixth list control according to the current focus position and the received confirmation key value, and based on the picture URL address of the picture B, searches the carousel data for the video URL address of the corresponding video B associated with the picture URL address, and generates a video switching instruction for instructing the video playback window of Activity A to play video B. Window B can send the video switching instruction to Activity A, and Activity A configures the video URL address of the corresponding video B to the video playback window according to the video switching instruction, so that the video playback window requests the server to play the audio and video content of the video B corresponding to the video URL address according to the video URL address of the corresponding video B, so as to present the following. Fig.17 The interface shown shows the effect.

[0131] The video switching instruction for instructing the video playback window of Activity A to play video B includes information representing video B, such as the video URL address of video B, the sequence identification bit corresponding to video B in the carousel data, etc. Activity A can configure the video URL address corresponding to video B for the video playback window according to the information representing video B indicated in the video switching instruction.

[0132] Since ActivityA controls the video playback window to play the corresponding videos 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 in the video playback window, so that the focus position of the display device 200 in the second interface matches the video played in the video playback window. Fig.18 As shown in FIG. 1 , it is a timing diagram of switching the focus of the display device 200 in the second interface provided by the embodiment of the application. When Activity A controls the video playback window to switch the played video, a focus switching instruction can be generated to instruct Window B to switch the focus of the display device 200 to the list control showing the pictures of the corresponding video, and sent to Window B, so that Window B switches the focus of the display device 200 to the list control of the pictures of the corresponding video. For example, using Figure 5 and Fig.12 In the example, the video playback window in Activity A plays video A. When video A is finished playing, the next video will be switched according to the order of the videos in the carousel data. Activity A configures the video URL address corresponding to video B to the video playback window to play video B through the video playback 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 on the display image B. Activity A sends the focus switching instruction to Window B. Window B switches the focus of the display device 200 to the sixth list control corresponding to the display image B according to the focus switching instruction.

[0133] The focus switching instruction for instructing Window B to switch the focus of the display device 200 to the sixth list control displaying the picture B includes information representing the picture B, such as the picture URL address of the picture B, the sequence identification bit corresponding to the picture B in the carousel data, etc. Window B can switch the focus of the display device 200 to the sixth list control corresponding to the display picture B according to the information representing the picture B indicated in the focus switching instruction.

[0134] In order to achieve fast switching of the played video, when the user switches the focus of the display device 200 to the list control in the second interface through the control device 100, the switching instruction for switching the played video can be input to the display device 200. Due to this method, the user frequently switches the focus of the display device 200 in a short time, which will cause the system to need to constantly readjust the video played in the video playback window, thereby causing excessive consumption of system resources and reducing system performance. In this regard, a time threshold can be set to assist in the implementation of switching the played video. That is, when Window B receives a video switching instruction input by the user to indicate switching the played video, the timer is started, and the receiving time point of the current video switching instruction is used 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 Activity A, so that Activity A controls the video playback window to switch the played video 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 not sent to Activity A. At the same time, the time point of receiving the next video switching instruction is used as the starting point to continue to detect whether the video switching instruction is received within the preset time threshold.

[0135] For example, using Fig.12 In the example of, the current focus of the display device 200 is located on the fifth list control displaying picture A. At this time, the user controls the focus of the display device 200 to move to the sixth list control displaying picture B, the seventh list control displaying picture C, and the eighth list control displaying picture D in sequence within a short period of time through the control device 100. As a result, a first video switching instruction indicating switching to play video B, a second video switching instruction indicating switching to play video C, and a third video switching instruction indicating switching to play video D are generated. 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 both less than the preset time threshold, Window B deletes the first video switching instruction and the second video switching instruction and will not send them to Activity A. Only the third video switching instruction indicating switching to play video D is sent to Activity A, so that Activity A controls the video playback window to play 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 cancel the second interface in response to the exit instruction, and obtain historical layout information, which includes the pre-recorded display area of ​​the video playback window in the first interface when the second interface is created, and set the display position of the video playback window according to the historical layout information, so as to restore the display position of the video playback window to the display position when the second interface is not created.

[0137] For example, using Figure 5 and Fig.12 For example, Fig.19 As shown in FIG. 1 , a timing diagram of exiting the target video playback provided in the embodiment of the application is shown. Fig.12 When the second interface shown in FIG. 1 is displayed, the user presses the return key of the control device 100 to input an exit instruction to the display device 200 to exit the second interface. In response to the exit instruction, Window B can perform an undo operation to cancel the second interface. At the same time, the exit instruction is sent to Activity A. In response to the exit instruction, Activity A obtains the pre-recorded historical layout information of the video playback window, sets the display position of the video playback window according to the historical layout information, and restores the video playback window from the current position to the display position before the second interface is created, thereby restoring the video playback window to the display position before the second interface is created. Figure 5 The interface display effect of the first interface is shown.

[0138] Based on the above video playback method. In some embodiments of the present application, a display device 200 is also provided, including: a display 260 and a controller 250. Among them, the display 260 is configured to display a first interface, the first interface includes a video playback window, and the video playback window is used to play the target video. The controller 250 is configured to perform the following program steps:

[0139] In response to a video resume instruction instructing to play the target video, a second interface is created.

[0140] Among them, 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 the active component, and the second interface is created based on the window object.

[0141] Set a transparent area in the second interface.

[0142] The display 260 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.

[0143] The same and similar parts between the various embodiments in this specification can be referenced to each other and will not be described again here.

[0144] It can be seen from the above technical solutions that the display device and video resume playback method provided in the above embodiments can create a second interface in response to a video resume playback instruction indicating the playback of a target video when the display displays the first interface. The display level of the second interface is higher than the display level of the video playback window in the first interface. The second interface establishes a data intercommunication relationship with the first interface, and the display area of ​​the second interface is the same as the display area of ​​the first interface. A transparent area is set in the second interface, and the display 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. The method uses the same video player to achieve video resume playback of two interfaces, thereby solving the problem of delay in video resume playback when the interface is switched.

[0145] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., and includes a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of various embodiments of the present invention or certain parts of the embodiments.

[0146] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0147] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. 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 variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, characterized in that: include: A display, configured to display a first interface, wherein the first interface includes a video playback window, wherein the video playback window is used to play a target video, and the first interface is created based on an activity component; The controller is configured as: In response to a video resume instruction indicating to play a target video, a second interface is created, the display level of the second interface is higher than the display level of the first interface, 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, and the second interface is created based on a window object; Setting a transparent area in the second interface; The display 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.

2. The display device according to claim 1, characterized in that The controller is also configured to: Create the first interface; Creating a video playback window and a first picture view in the first interface, where the first picture view is used to display a target picture; Obtain a target playback address and a target picture address, wherein the target playback address is an address where the target video is stored, and the target picture address is an address where the target picture is stored; configuring the target playback address to the video playback window, and configuring the target picture address to the first picture view; Control the display to display the first interface.

3. The display device according to claim 2, characterized in that The controller is also configured to: Creating a second picture view in the second interface; Assigning the target picture address to the second picture view; Control the display to display the second interface.

4. The display device according to claim 1, characterized in that The controller executes setting a transparent area in the second interface, and is further configured to: Setting the background attribute value of the second interface to a preset transparency value, where the preset transparency value is used to indicate that the background of the second interface is transparent; Get the preset background image; Crop out the target image area in the background image; The cropped background image is set on the second interface to obtain a transparent area, where the transparent area 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: Detecting the display area coordinates of the video playback window in the first interface; If the display area coordinates are the same as the transparent area coordinates, executing the step of controlling the display to display the second interface; If the display area coordinates are different from the transparent area coordinates, the video play window is moved to the transparent area.

6. The display device according to claim 5, characterized in that The controller executes moving the video playback window to the transparent area, and is further configured to: Obtaining the area coordinates and area size of the transparent area; Setting 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 area coordinates.

7. The display device according to claim 6, characterized in that The controller is also configured to: In response to an exit instruction for exiting the second interface, canceling the second interface; Acquire historical layout information, where the historical layout information includes a pre-recorded display area of ​​a video playback window in the first interface when the second interface is created; 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: Setting a transparent button control on the transparent area; Receiving, through the transparent button control, a full-screen play instruction input by a user to instruct full-screen play of a target video; In response to the full-screen play instruction, canceling the second interface; 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 instruction for the video playback window input by a user through a second interface, sending the playback control instruction to the first interface through the second interface; Through the first interface, the video playback window is controlled to execute the playback control operation indicated by the playback control instruction.

10. A video replay method, characterized in that: Applied to a display device, the display device includes a display and a controller, the display is used to display a first interface, the first interface includes a video playback window, the video playback window is used to play a target video, and the first interface is constructed based on an active component; the method includes: In response to a video resume instruction indicating to play a target video, a second interface is created, the display level of the second interface is higher than the display level of the first interface, 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, and the second interface is created based on a window object; Setting a transparent area in the second interface; The display 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.

Citation Information

Patent Citations

  • Data playing method and display equipment

    CN113347482A

  • Display device and advertisement playing method

    CN115150667A

  • Digital video production system and method

    CN115225947A

  • Video playing method and device, equipment, storage medium and program product

    CN116980546A

  • Display device and file presentation method

    WO2023093108A1