US20220007074A1 - Method and apparatus for playing videos, and electronic device and storage medium thereof - Google Patents

Method and apparatus for playing videos, and electronic device and storage medium thereof Download PDF

Info

Publication number
US20220007074A1
US20220007074A1 US17/482,218 US202117482218A US2022007074A1 US 20220007074 A1 US20220007074 A1 US 20220007074A1 US 202117482218 A US202117482218 A US 202117482218A US 2022007074 A1 US2022007074 A1 US 2022007074A1
Authority
US
United States
Prior art keywords
page
scaled
scaled page
playing
live video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Abandoned
Application number
US17/482,218
Inventor
Miao Liu
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to US17/482,218 priority Critical patent/US20220007074A1/en
Assigned to Beijing Dajia Internet Information Technology Co., Ltd. reassignment Beijing Dajia Internet Information Technology Co., Ltd. ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: LIU, MIAO
Publication of US20220007074A1 publication Critical patent/US20220007074A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/443OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
    • H04N21/4438Window management, e.g. event handling following interaction with the user interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/462Content or additional data management, e.g. creating a master electronic program guide from data received from the Internet and a Head-end, controlling the complexity of a video stream by scaling the resolution or bit-rate based on the client capabilities
    • H04N21/4621Controlling the complexity of the content stream or additional data, e.g. lowering the resolution or bit-rate of the video stream for a mobile client with a small screen
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application relates to a method and apparatus for playing a video, an electronic device, and a non-transitory computer-readable storage medium. The method includes: establishing a player adapter, playing a live video stream by a root controller of a first scaled page by using the player adapter; receiving a trigger operation for playing the live video frame on a second scaled page; switching a playing page of the live video stream from the first scaled page to the second scaled page; and transmitting the player adapter as a pull stream subject to the second scaled page, wherein a window controller of the second scaled page plays the live video stream by using the player adapter, such that the live video stream is switched from the first scaled page to the second scaled page. On the second scaled page, a user can browse content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.

Description

    CROSS-REFERENCE TO RELATED APPLICATIONS
  • The present application is a continuation of U.S. application Ser. No.: 17/257,126, filed on Dec. 30, 2020, which is a continuation of International Application No. PCT/CN2019/102281, filed on Aug. 23, 2019, which claims the priority to Chinese Patent Application No. 201811279510.1, filed with the China National Intellectual Property Administration on Oct. 30, 2018, all of which are hereby incorporated by reference in their entireties for all purposes.
  • TECHNICAL FIELD
  • The present application relates to the field of application of computer software, in particular to a video playback method, a video playback apparatus, an electronic device and a storage medium.
  • BACKGROUND
  • With the rapid development of the Internet technology and the popularity of smart phones, the ways of entertainment for Internet mobile users are gradually enriched. Live video streaming is a way of entertainment that enriches the life of the Internet mobile users who may watch the excellent shows of the anchor in real time, or have voice chats with the anchor. Nowadays, live video streaming is given more entertainment and social attributes and gradually covers all aspects of life and entertainment of the users.
  • The inventors have that, in related arts, live video streaming is still in a fashion that one video viewing page occupies the entire screen of the mobile phone, and the live video streaming content is displayed in a partial or the entire area of the video viewing page. There is no spare area on the video viewing page for users to browse other content. Users may not browse and interact with the content of other pages while viewing the live video streaming content and listening to voice messages, reducing the video content that users may view in the same interface, and thereby degrading the user experience.
  • SUMMARY
  • In order to overcome the problems in the related art, the present disclosure discloses a video playback method in which a player adapter serves as a pull stream subject to switch a live video stream between a first scaled page and a second scaled page; and a playing page of the live video stream is switched from the first scaled page to the second scaled page in response to a trigger operation for playing the live video stream on the second scaled page. On the second scaled page, a user can browse the content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.
  • According to a first aspect of the embodiments of the present disclosure, a method for playing a video is provided. The method includes:
  • establishing a player adapter, and playing a live video stream by a root controller of a first scaled page by using the player adapter;
  • receiving a trigger operation for playing the live video stream on a second scaled page;
  • switching a playing page of the live video stream from the first scaled page to the second scaled page; and
  • transmitting the player adapter as a pull stream subject to the second scaled page, wherein a window controller of the second scaled page plays the live video stream by using the player adapter, such that the live video stream is switched from the first scaled page to the second scaled page.
  • According to a second aspect of the embodiments of the present disclosure, an apparatus for playing a video is provided. The apparatus includes:
  • a player adapter establishing unit, configured to establish a player adapter;
  • a receiving unit, configured to receive a trigger operation for playing a live video stream on a second scaled page;
  • a page switching unit, configured to switch a playing page of the live video stream from a first scaled page to the second scaled page; and
  • a stream switching unit, configured to play the live video stream by using the player adapter by a root controller of the first scaled page, and transmit the player adapter as a pull stream subject to the second scaled page, wherein a window controller of the second scaled page plays the live video stream by using the player adapter, such that the live video stream is switched from the first scaled page to the second scaled page.
  • According to a third aspect of the embodiments of the present disclosure, an electronic device is provided. The electronic device includes:
  • a processor; and
  • a memory, configured to store an instruction executable by the processor,
  • wherein the processor is configured to perform the method for playing the video.
  • According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium storing a computer instruction therein. The computer instruction, when being executed by a computer, enables the computer to perform the method for playing the video.
  • According to a fifth aspect of the embodiments of the present disclosure, a computer program product including a computer program therein is provided. The computer program includes a program instruction, which, when being executed by an electronic device, enables the electronic device to perform the method for playing the video.
  • The technical solutions according to the embodiments of the present disclosure may achieve the following beneficial effects:
  • The player adapter serves as a pull stream subject to switch the current live video stream between the first scaled page and the second scaled page; and the playing page of the current live video stream is switched from the first scaled page to the second scaled page in response to the trigger operation for playing the current live video stream on the second scaled page. On the second scaled page, a user can browse the content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.
  • It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and cannot limit the present disclosure.
  • BRIEF DESCRIPTION OF DRAWINGS
  • The drawings herein are incorporated into the description and constitute a part of the description, show embodiments that are consistent with the present disclosure, and are used together with the description to explain the principles of the present disclosure.
  • FIG. 1 is a flowchart of a method for playing a video according to an exemplary embodiment;
  • FIG. 2 is a flowchart of a method for playing a video according to an exemplary embodiment;
  • FIG. 3 is a flowchart of a method for playing a video according to an exemplary embodiment;
  • FIG. 4 is a block diagram of an apparatus for playing a video according to an exemplary embodiment;
  • FIG. 5 is a logical block diagram of an electronic device according to an exemplary embodiment; and
  • FIG. 6 is a logical block diagram of another electronic device according to an exemplary embodiment.
  • DESCRIPTION OF EMBODIMENTS
  • The exemplary embodiments will be described in detail herein, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The embodiments described therein are not all the embodiments of the present disclosure. On the contrary, these embodiments are simply examples of devices and methods consistent with some aspects of the present disclosure, as detailed in the appended claims.
  • FIG. 1 is a flowchart of a method for playing a video according to an exemplary embodiment. The method includes the following steps:
  • In step S110, a player adapter is established, and a root controller of the first scaled page plays a live video stream by using the player adapter.
  • In step S120, a trigger operation for playing the live video stream on a second scaled page is received.
  • In step S130, a playing page of the live video stream is switched from the first scaled page to the second scaled page.
  • In step S140, the player adapter is transmitted as a pull stream subject to the second scaled page, and a window controller of the second scaled page playing the live video stream by using the player adapter, such that the live video stream is switched from the first scaled page to the second scaled page.
  • In an embodiment of the present disclosure, the live video can be viewed in two ways after a user selects the live video to be viewed. After the user enters the first scaled page for playing the live video by default by trigger operations such as clicking the live-streaming room of the live video, a player adapter is established at first, and the root controller of the first scaled page uses the player adapter to play the current live video stream. Then, a trigger operation for playing the current live video stream on the second scaled page. Next, the playing page of the current live video stream is switched from the first scaled page to the second scaled page. Finally, the player adapter is transmitted as a pull stream subject to the second scaled page, and a window controller of the second scaled page plays the current live video stream by using the player adapter, such that the current live video stream is switched from the first scaled page to the second scaled page.
  • According to the embodiments of the present application, the player adapter serves as a pull stream subject to switch the current live video stream between the first scaled page and the second scaled page; and the playing page of the current live video stream is switched from the first scaled page to the second scaled page in response to the trigger operation for playing the current live video stream on the second scaled page. When the player adapter is on the second scaled page, the user can browse the content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.
  • FIG. 2 is a flowchart of a method for playing a video according to an exemplary embodiment. The method includes the following steps:
  • In step S210, a player adapter for pulling streams is established when a first scaled page is initially opened; and a root controller of the first scaled page acts as an agent of the player adapter.
  • The player adapter transmits a live video stream to the root controller of the first scaled page; and the root controller of the first scaled page renders the live video stream.
  • In step S220, in response to a trigger operation for playing the live video stream on a second scaled page, a playing page of the live video stream is switched from the first scaled page to the second scaled page, and a window controller of the second scaled page is established.
  • In step S230, the root controller of the first scaled page transmits the player adapter to the window controller of the second scaled page; the window controller of the second scaled page acts as the agent of the player adapter; the player adapter transmits the live video stream to the window controller of the second scaled page; and the window controller of the second scaled page renders the live video stream.
  • In an embodiment of the present disclosure, a user enters the first scaled page for playing the live video by default by trigger operations such as clicking the live-streaming room of the live video. Firstly, the player adapter for pulling stream is established when the first scaled page is initially opened by default; the root controller of the first scaled page acts as the agent of the player adapter; the player adapter transmits the current live video stream to the root controller of the first scaled page; and the root controller of the first scaled page renders the current live video stream. Then, the playing page of the current live video stream is switched from the first scaled page to the second scaled page and the window controller of the second scaled page is established, in response to the trigger operation for playing the current live video stream on the second scaled page. Next, the root controller of the first scaled page transmits the player adapter to the window controller of the second scaled page; the window controller of the second scaled page acts as the agent of the player adapter; the player adapter transmits the current live video stream to the window controller of the second scaled page; and the window controller of the second scaled page renders the current live video stream.
  • According to the embodiments of the present disclosure, the player adapter serves as a pull stream subject to switch the current live video stream from the first scaled page to the second scaled page. The root controller of the first scaled page acts as the agent of the player adapter, and the root controller of the first scaled page renders the current live video stream. The window controller of the second scaled page acts as the agent of the player adapter, and the window controller of the second scaled page renders the current live video stream. The player adapter switches the current live video stream between the first scaled page and the second scaled page to realize automatic continuation of the live-streaming content, maintain the fluency of the live-streaming content and further enhance the user experience. At the same time, it is not necessary to reload the content of the live video stream when the current live video stream is switched between the first scaled page and the second scaled page, which saves data traffic for users.
  • In an optional embodiment of the present disclosure, the method for switching the playing page of the current live video stream from the first scaled page to the second scaled page is as follows: directly controlling a life cycle and a live-streaming control logic of the second scaled page by the root controller of the first scaled page in order to display the second scaled page upon other pages and ensure that user interactions on other pages are not affected; switching the playing page of the current live video stream from the first scaled page to the second scaled page by the root controller of the first scaled page according to the received trigger operation for playing the current live video stream on the second scaled page.
  • In an embodiment, the window controller of the second scaled page directly calls the root controller of the first scaled page to perform a life cycle replacement or a live-streaming logic control of the second scaled page, in response to a trigger operation for performing the life cycle replacement or live-streaming control logic of the second scaled page.
  • In another embodiment, the root controller and the window controller follow the protocols to communicate, after relevant protocols, such as the life cycle replacement of the creating, displaying and closing the second scaled page and the control logic of the playing, pausing and closing the live video stream, are defined in advance. The communication protocols are used between the first scaled page and the second scaled page to transmit the life cycle replacement instructions for the creating, displaying and closing the second scaled page and the control logic instructions for playing, pausing and closing the live video stream. The live-streaming control logic of the second scaled page is provided with the corresponding interface by the second scaled page itself. Based on the communication protocols, the window controller of the second scaled page transmits the trigger operation instructions for the life cycle replacement or live-streaming control logic of the second scaled page to the root controller of the first scaled page to perform the life cycle replacement or the live-streaming logic control of the second scaled page, in response to the trigger operation for performing the life cycle replacement or live-streaming control logic of the second scaled page. In an embodiment, a user slides the first scaled page to the right to return to other pages, and when the first scaled page disappears, the showFloatingView of the root controller is called through a communication protocol to display the second scaled page. When the user enters a new live-streaming page and closes the current second scaled page, the closeFloatingView of the root controller is called by using a communication protocol to close the second scaled page. Based on the communication protocols, the startPlay, pausePlay and closePlay of the root controller are called to perform the live-streaming control logic of the second scaled page.
  • According to the embodiments of the present disclosure, the window controller of the second scaled page transmits the trigger operation instruction for the life cycle replacement or live-streaming control logic of the second scaled page to the root controller of the first scaled page based on the communication protocol in order to perform the life cycle replacement or live-streaming logic control of the second scaled page, for facilitating subsequent function expansion, thus improving the performance of the video live-streaming software.
  • In an optional embodiment of the present disclosure, switching the playing page of the current live video stream from the first scaled page to the second scaled page includes: creating a new page window singleton object which carries and displays the content of the second scaled page; adding the page window singleton object to the first scaled page, such that the root controller of the first scaled page directly controls the life cycle replacement and live-streaming control logic of the page window singleton object; switching the playing page of the current live video stream from the first scaled page to the second scaled page by the root controller of the first scaled page according to the received trigger operation for playing the current live video stream on the second scaled page.
  • In an optional embodiment of the present disclosure, the life cycle of the second scaled page includes: creating the second scaled page, displaying the second scaled page, and closing the second scaled page.
  • In an optional embodiment of the present disclosure, the live-streaming control logic of the second scaled page includes: playing the live video stream, pausing the live video stream, and closing the live video stream.
  • FIG. 3 is a flowchart of a method for playing a video according to an exemplary embodiment. The method includes the following steps:
  • In step S310, a player adapter is established, and a root controller of a first scaled page plays a live video stream by using the player adapter.
  • In step S320, a trigger operation for playing the live video stream on a second scaled page is received.
  • In step S330, a playing page of the live video stream is switched from the first scaled page to the second scaled page.
  • In step S340, the player adapter is transmitted as a pull stream subject to the second scaled page, and a window controller of the second scaled page plays the live video stream by using the player adapter to play the live video stream, such that the live video stream is switched from the first scaled page to the second scaled page.
  • In step S350, a trigger operation for switching the live video stream back to the first scaled page is received.
  • In step S360, the playing page of the live video stream is switched from the second scaled page to the first scaled page.
  • In step S370, the player adapter is transmitted as a pull stream subject to the first scaled page, and the root controller of the first scaled page plays the live video by using the player adapter, such that the live video stream is switched from the second scaled page to the first scaled page.
  • In an embodiment of the present disclosure, a player adapter is established at first, and a root controller of a first scaled page plays the current live video stream by using the player adapter, after a user enters the first scaled page for playing the live video by default by a trigger operation such as tapping a live-streaming room of the live video. Then, a trigger operation for playing the current live video stream on a second scaled page is received. Next, a playing page of the current live video stream is switched from the first scaled page to the second scaled page. Then, the player adapter is transmitted as a pull stream subject to the second scaled page, and a window controller of the second scaled page plays the current live video stream by using the player adapter to play the current live video stream, such that the current live video stream is switched from the first scaled page to the second scaled page. Then, a trigger operation for switching the current live video stream back to the first scaled page playback is received, and the playing page of the current live video stream is switched from the second scaled page to the first scaled page. Finally, the player adapter is transmitted as a pull stream subject to the first scaled page, and the root controller of the first scaled page plays the current live video stream by using the player adapter, such that the current live video stream is switched from the second scaled page to the first scaled page.
  • According to the embodiment of the present disclosure, the player adapter serves as a pull stream subject to switch the current live video stream between the first scaled page and the second scaled page. The root controller of the first scaled page acts as the agent of the player adapter, and the root controller of the first scaled page renders the current live video stream. The window controller of the second scaled page acts as the agent of the player adapter, and the window controller of the second scaled page renders the current live video stream. The player adapter switches the current live video stream between the first scaled page and the second scaled page to realize automatic continuation of the live-streaming content, maintain the fluency of the live-streaming content and further enhance the user experience.
  • In an optional embodiment of the present disclosure, the method for playing the video further includes: disabling the player adapter in response to a trigger operation for closing the first scaled page or the second scaled page by the user.
  • In an optional embodiment of the present disclosure, the method for playing the video further includes: receiving a trigger operation for playing the current live video stream by using the first scaled page; and establishing a root controller of the first scaled page.
  • FIG. 4 is a block diagram of an apparatus for playing a video according to an exemplary embodiment. The apparatus includes: a player adapter establishing unit 410, a receiving unit 420, a page switching unit 430, and a stream switching unit 440.
  • The player adapter establishing unit 410 is configured to establish a player adapter.
  • The receiving unit 420 is configured to receive a trigger operation for playing a live video stream on a second scaled page.
  • The page switching unit 430 is configured to switch a playing page of the live video stream from a first scaled page to the second scaled page.
  • The stream switching unit 440 is configured to play the live video stream by a root controller of the first scaled page by using the player adapter; and the player adapter is transmitted as a pull stream subject to the second scaled page, and a window controller of the second scaled page plays the current live video stream by using the player adapter, such that the live video stream is switched from the first scaled page to the second scaled page.
  • In an embodiment of the present disclosure, the player adapter establishing unit 410 is configured to establish the player adapter; the receiving unit 420 is configured to receive a trigger operation for playing the current live video stream on the second scaled page; the page switching unit 430 is configured to switch the playing page of the current live video stream from the first scaled page to the second scaled page; and the stream switching unit 440 is configured to play the current live video stream by the root controller of the first scaled page by using the player adapter; and the player adapter is transmitted as a pull stream subject to the second scaled page, and the window controller of the second scaled page plays the current live video stream by using the player adapter, such that the current live video stream is switched from the first scaled page to the second scaled page.
  • In an optional embodiment of the present disclosure, the receiving unit 420 is further configured to receive the trigger operation for switching the current live video stream back to the first scaled page playback; the page switching unit 430 is further configured to switch the playing page of the current live video stream from the second scaled page to the first scaled page; and the stream switching unit 440 is further configured to transmit the player adapter as a pull stream subject to the first scaled page, and the root controller of the first scaled page plays the current live video stream by using the player adapter, such that the current live video stream is switched from the second scaled page to the first scaled page.
  • In an optional embodiment of the present disclosure, the player adapter establishing unit 410 is further configured to disable the player adapter in response to a trigger operation for closing the first scaled page or the second scaled page.
  • In an optional embodiment of the present disclosure, the receiving unit 420 is further configured to receive the trigger operation for playing the current live video stream on the first scaled page.
  • FIG. 5 is a block diagram showing an electronic device 500 for playing a video using the method for playing the video according to an exemplary embodiment. For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a message transceiver device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • Referring to FIG. 5, the electronic device 500 may include one or more following components: a processing component 502, a memory 504, a power source component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514 and a communication component 516.
  • The processing component 502 typically controls overall operations of the electronic device 500, such as the operations associated with display, telephone calls, data communication, camera operation and recording operation. The processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps in the aforementioned methods. Moreover, the processing component 502 may include one or more modules which facilitate the interaction between the processing component 502 and other components. For instance, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
  • The memory 504 is configured to store various types of data to support the operation of the electronic device 500. Examples of such data include instructions for any applications or methods operated on the electronic device 500, contact data, phonebook data, messages, pictures, video, and the like. The memory 504 may be implemented by any type of volatile or non-volatile memory devices, or a combination thereof, such as a static random-access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or a compact disc.
  • The power source component 506 provides power for various components of the electronic device 500. The power source component 506 may include a power management system, one or more power sources, and any other components associated with the generation, management, and distribution of power in the electronic device 500.
  • The multimedia component 508 includes a screen providing an output interface between the electronic device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensors may not only sense the boundary of the touch or slide action, but also detect the duration and pressure associated with the touch or slide action. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. The front camera and the rear camera may receive the external multimedia data while the electronic device 500 is in operation mode, such as photographing mode or video mode. Each of the front camera and the rear camera may be a fixed optical lens system or may have the capabilities of focal length and optical zoom.
  • The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 500 is in operation mode, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker to output audio signals.
  • The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, such as a keyboard, a click wheel, buttons, and the like. The buttons may include, but are not limited to, a home button, a volume button, a starting button, and a locking button.
  • The sensor component 514 includes one or more sensors to provide status assessments of various aspects of the electronic device 500. For instance, the sensor component 514 may detect the on/off status of the electronic device 500, the relative positioning of components, such as the display and the keypad of the electronic device 500. The sensor component 514 may further detect the change in position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the position or the acceleration/deceleration of the electronic device 500, and the change in temperature of the electronic device 500. The sensor component 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 514 may further include a light sensor, such as a complementary metal oxide semiconductor (CMOS) or a charge coupled device (CCD) image sensor, for the use of imaging applications. In some embodiments, the sensor component 514 may further include an accelerometer sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • The communication component 516 is configured to facilitate wired or wireless communication between the electronic device 500 and other devices. The electronic device 500 can access a wireless network based on a communication standard, such as WiFi, operator networks (such as 2G, 3G, 4G or 5G) or a combination thereof. In one exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 516 further includes a near field communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on the radio frequency identification (RFID) technology, the infrared data association (IrDA) technology, the ultrawideband (UWB) technology, the Bluetooth (BT) technology, and other technologies.
  • In an exemplary embodiment, the electronic device 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate array (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the aforementioned methods.
  • In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including the instructions executable by a processor 520 in the electronic device 500 to perform the above methods. For example, the non-transitory computer-readable storage medium may be an ROM, a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, and the like.
  • FIG. 6 is a block diagram showing an electronic device 600 for playing a video using the method for playing the video according to an exemplary embodiment. For example, the electronic device 600 may be provided as a server. Referring to FIG. 6, the electronic device 600 includes a processing component 622 which further includes one or more processors, and memory resources represented by a memory 632 for storing instructions executable by the processing component 622, for example an application program. The application program stored in the memory 632 may include one or more modules each corresponding to a set of instructions. Furthermore, the processing component 622 is configured to execute instructions to perform the information list display method.
  • The electronic device 600 may further include a power source component 626 configured to perform power source management of the electronic device 600, a wired or wireless network interface 650 configured to connect the electronic device 600 to the network, and an input/output (I/O) interface 658. The electronic device 600 can operate an operating system stored in the memory 632, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.
  • Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice the present disclosure herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, following the general principles thereof and including common knowledge or commonly used technical measures which are not disclosed herein. The specification and embodiments are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
  • It will be appreciated that the present disclosure is not limited to the exact construction that has been described above and illustrated in the accompanying drawings, and that various modifications and changes can be made without departing from the scope thereof
  • It is intended that the scope of the present disclosure is only limited by the appended claims.

Claims (20)

What is claimed is:
1. A method for playing a video, comprising:
playing a live video stream in a first scaled page, wherein the first scaled page is a playing page that occupies a first scale of a display screen; and
switching the playing page from the first scaled page to a second scaled page in response to detecting a first trigger operation, wherein the first trigger operation is configured to request a second scaled page playing on the live video stream, the second scaled page is a playing page that occupies a second scale of the display screen, the second scale is smaller than the first scale, other page area except the second scaled page in the display screen is configured to display other page content from other application which is different from a live streaming application, and the other page content is a page content except the live video stream.
2. The method according to claim 1, further comprising:
displaying the other page content in the other page area in response to detecting a second trigger operation, wherein the second trigger operation is configured to request to display the other page content in the other page area.
3. The method according to claim 1, further comprising:
switching the playing page from the second scaled page to the first scaled page in response to detecting a third trigger operation, wherein the third trigger operation is configured to request the first scaled page playing on the live video stream.
4. The method according to claim 1, wherein said playing the live video stream in the first scaled page comprises:
establishing a player adapter, and playing the live video stream in the first scaled page by a root controller of the first scaled page by using the player adapter.
5. The method according to claim 4, further comprising:
establishing the root controller of the first scaled page in response to the first trigger operation.
6. The method according to claim 4, wherein said establishing a player adapter, and playing the live video stream in the first scaled page by a root controller of the first scaled page by using the player adapter comprises:
establishing the player adapter for pulling streams in response to initially opening the first scaled page;
acting, by the root controller of the first scaled page, as the player adapter;
transmitting, by the player adapter, the live video stream to the root controller of the first scaled page; and
rendering, by the root controller of the first scaled page, the live video stream in the first scaled page.
7. The method according to claim 4, further comprising:
transmitting the player adapter as a pull stream subject to the first scaled page and playing the live video stream by the root controller of the first scaled page by using the player adapter, such that the playing page is switched from the second scaled page to the first scaled page, in response to a third trigger operation, wherein the third trigger operation is configured to request the first scaled page playing on the live video stream.
8. The method according to claim 4, further comprising:
disabling the player adapter in response to a fourth trigger operation, wherein the fourth trigger operation is configured to close the first scaled page or the second scaled page.
9. The method according to claim 4, wherein switching the playing page from the first scaled page to the second scaled page comprises:
transmitting the player adapter as a pull stream subject to the second scaled page, and playing the live video stream in the second scaled page by a window controller of the second scaled page by using the player adapter, such that the playing page is switched from the first scaled page to a second scaled page.
10. The method according to claim 9, further comprising:
establishing the window controller of the second scaled page in response to detecting the first trigger operation.
11. The method according to claim 9, wherein said transmitting the player adapter as the pull stream subject to the second scaled page, and displaying the live video stream in the second scaled page by the window controller of the second scaled page by the player adapter comprises:
transmitting, by the root controller of the first scaled page, the player adapter to the window controller of the second scaled page;
acting, by the window controller of the second scaled page, as the player adapter;
transmitting, by the player adapter, the live video stream to the window controller of the second scaled page; and
rendering, by the window controller of the second scaled page, the live video stream in the second scaled page.
12. The method according to claim 4, further comprising:
directly controlling a life cycle and a live-streaming control logic of the second scaled page by the root controller of the first scaled page, wherein the life cycle of the second scaled page comprises:
creating the second scaled page, displaying the second scaled page, and closing the second scaled page; and
the live-streaming control logic of the second scaled page comprises:
playing the live video stream, pausing the live video stream, and closing the live video stream.
13. The method according to claim 12, wherein said directly controlling the life cycle and the live-streaming control logic of the second scaled page by the root controller of the first scaled page comprises:
creating a new page window singleton object, wherein the page window singleton object is configured to carry and display the second scaled page;
adding the page window singleton object to the first scaled page, such that the root controller of the first scaled page directly controls a life cycle and a live-streaming control logic of the page window singleton object.
14. The method according to claim 12, further comprising:
performing, by a window controller of the second scaled page, a life cycle replacement or a control of the live-streaming control logic of the second scaled page by directly calling the window controller of the first scaled page, in response to detecting a fifth trigger operation, wherein the fifth trigger operation is configured to request to realize the life cycle replacement or the control of the live-streaming control logic of the second scaled page, and the window controller of the second scaled page is established in response to the detected first trigger operation.
15. The method according to claim 14, wherein said performing, by the window controller of the second scaled page, the life cycle replacement or the control of the live-streaming control logic of the second scaled page by directly calling the window controller of the first scaled page comprises:
transmitting, by the window controller of the second scaled page, an instruction of an operation corresponding to the fifth trigger operation to the root controller of the first scaled page based on a communication protocol, to perform the life cycle replacement or the control of the live-streaming control logic of the second scaled page.
16. The method according to claim 15, wherein the communication protocol is a communication protocol between the first scaled page and the second scaled page.
17. An electronic device, comprising:
a processor; and
a memory configured to store at least one instruction executable by the processor,
wherein the at least one instruction, when executed by the processor, causes the processor to perform:
playing a live video stream in a first scaled page, wherein the first scaled page is a playing page that occupies a first scale of a display screen; and
switching the playing page from the first scaled page to a second scaled page in response to detecting a first trigger operation, wherein the first trigger operation is configured to request a second scaled page playing on the live video stream, the second scaled page is a playing page that occupies a second scale of the display screen, the second scale is smaller than the first scale, other page area except the second scaled page in the display screen is configure to display other page content from other application which is different from a live streaming application, and the other page content is a page content except the live video stream.
18. The electronic device according to claim 17, wherein the at least one instruction, when executed by the processor, causes the processor to perform:
displaying the other page content in the other page area in response to detecting a second trigger operation, wherein the second trigger operation is configured to request to display the other page content in the other page area.
19. The electronic device according to claim 17, wherein the at least one instruction, when executed by the processor, causes the processor to perform:
switching the playing page from the second scaled page to the first scaled page in response to detecting a third trigger operation, wherein the third trigger operation is configured to request the first scaled page playing on the live video stream.
20. A non-transitory computer-readable storage medium storing at least one instruction therein, wherein the at least one instruction, when executed by a processor of an electronic device, causes the electronic device to perform:
playing a live video stream in a first scaled page, wherein the first scaled page is a playing page that occupies a first scale of a display screen; and
switching the playing page from the first scaled page to a second scaled page in response to detecting a first trigger operation, wherein the first trigger operation is configured to request a second scaled page playing on the live video stream, the second scaled page is a playing page that occupies a second scale of the display screen, the second scale is smaller than the first scale, other page area except the second scaled page in the display screen is configure to display other page content from other application which is different from a live streaming application, and the other page content is a page content except the live video stream.
US17/482,218 2018-10-30 2021-09-22 Method and apparatus for playing videos, and electronic device and storage medium thereof Abandoned US20220007074A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/482,218 US20220007074A1 (en) 2018-10-30 2021-09-22 Method and apparatus for playing videos, and electronic device and storage medium thereof

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
CN201811279510.1 2018-10-30
CN201811279510.1A CN109451341B (en) 2018-10-30 2018-10-30 Video playing method, video playing device, electronic equipment and storage medium
PCT/CN2019/102281 WO2020088059A1 (en) 2018-10-30 2019-08-23 Video playback method, video playback apparatus, electronic device, and storage medium
US202017257126A 2020-12-30 2020-12-30
US17/482,218 US20220007074A1 (en) 2018-10-30 2021-09-22 Method and apparatus for playing videos, and electronic device and storage medium thereof

Related Parent Applications (2)

Application Number Title Priority Date Filing Date
US17/257,126 Continuation US11146854B2 (en) 2018-10-30 2019-08-23 Method for playing videos and electronic device
PCT/CN2019/102281 Continuation WO2020088059A1 (en) 2018-10-30 2019-08-23 Video playback method, video playback apparatus, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
US20220007074A1 true US20220007074A1 (en) 2022-01-06

Family

ID=65548879

Family Applications (2)

Application Number Title Priority Date Filing Date
US17/257,126 Active US11146854B2 (en) 2018-10-30 2019-08-23 Method for playing videos and electronic device
US17/482,218 Abandoned US20220007074A1 (en) 2018-10-30 2021-09-22 Method and apparatus for playing videos, and electronic device and storage medium thereof

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US17/257,126 Active US11146854B2 (en) 2018-10-30 2019-08-23 Method for playing videos and electronic device

Country Status (3)

Country Link
US (2) US11146854B2 (en)
CN (1) CN109451341B (en)
WO (1) WO2020088059A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11875556B2 (en) * 2020-06-12 2024-01-16 Beijing Bytedance Network Technology Co., Ltd. Video co-shooting method, apparatus, electronic device and computer-readable medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451341B (en) * 2018-10-30 2020-09-11 北京达佳互联信息技术有限公司 Video playing method, video playing device, electronic equipment and storage medium
CN111367622A (en) * 2020-03-09 2020-07-03 联通沃音乐文化有限公司 System and method for playing audio without blocking mobile terminal website
CN113873316B (en) * 2021-11-04 2024-02-27 上海哔哩哔哩科技有限公司 Live broadcasting room video playing method and device
CN114040243B (en) * 2021-11-04 2023-08-04 上海哔哩哔哩科技有限公司 Live broadcasting room video playing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180032997A1 (en) * 2012-10-09 2018-02-01 George A. Gordon System, method, and computer program product for determining whether to prompt an action by a platform in connection with a mobile device
US20180316945A1 (en) * 2012-04-24 2018-11-01 Skreens Entertainment Technologies, Inc. Video processing systems and methods for display, selection and navigation of a combination of heterogeneous sources

Family Cites Families (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8387099B2 (en) * 2002-12-10 2013-02-26 Ol2, Inc. System for acceleration of web page delivery
US9756349B2 (en) * 2002-12-10 2017-09-05 Sony Interactive Entertainment America Llc User interface, system and method for controlling a video stream
US9032465B2 (en) * 2002-12-10 2015-05-12 Ol2, Inc. Method for multicasting views of real-time streaming interactive video
US7877687B2 (en) * 2007-08-16 2011-01-25 Yahoo! Inc. Persistent visual media player
CN101702764A (en) * 2009-10-26 2010-05-05 深圳市同洲电子股份有限公司 Method and system for playing video and corresponding set top box
US8789126B1 (en) * 2011-08-30 2014-07-22 Cox Communications, Inc. System, method and device for swapping display configurations between viewing devices
US20130318429A1 (en) * 2012-05-22 2013-11-28 Movile Dynamic floating web video player
KR101990035B1 (en) * 2012-10-31 2019-06-18 엘지전자 주식회사 Mobile terminal and control method for the mobile terminal
US20140337147A1 (en) * 2013-05-13 2014-11-13 Exponential Interactive, Inc Presentation of Engagment Based Video Advertisement
US20150046812A1 (en) * 2013-08-12 2015-02-12 Google Inc. Dynamic resizable media item player
CN103546821B (en) * 2013-10-30 2017-01-11 乐视致新电子科技(天津)有限公司 Method and device for regulating video playing interface
CN103561307A (en) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 Indication mode switching method and device based on browser
US10224027B2 (en) * 2015-06-01 2019-03-05 Sinclair Broadcast Group, Inc. Rights management and syndication of content
CN106686446B (en) * 2015-11-05 2020-07-14 腾讯科技(北京)有限公司 Content projection method and mobile terminal
CN106028143A (en) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 Video live broadcasting method and device
US10681391B2 (en) * 2016-07-13 2020-06-09 Oath Inc. Computerized system and method for automatic highlight detection from live streaming media and rendering within a specialized media player
CN106878810A (en) * 2017-03-13 2017-06-20 福建中金在线信息科技有限公司 A kind of video broadcasting method and device
CN106993214A (en) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 Live network broadcast method and device
CN107092417A (en) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 Live network broadcast method and device
CN108235104B (en) 2018-01-19 2020-08-28 深圳市富途网络科技有限公司 Live video floating window playing method for mobile terminal
CN108419117B (en) * 2018-04-28 2020-09-08 中广热点云科技有限公司 Device and method for playing video small window
CN109451341B (en) 2018-10-30 2020-09-11 北京达佳互联信息技术有限公司 Video playing method, video playing device, electronic equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316945A1 (en) * 2012-04-24 2018-11-01 Skreens Entertainment Technologies, Inc. Video processing systems and methods for display, selection and navigation of a combination of heterogeneous sources
US20180032997A1 (en) * 2012-10-09 2018-02-01 George A. Gordon System, method, and computer program product for determining whether to prompt an action by a platform in connection with a mobile device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11875556B2 (en) * 2020-06-12 2024-01-16 Beijing Bytedance Network Technology Co., Ltd. Video co-shooting method, apparatus, electronic device and computer-readable medium

Also Published As

Publication number Publication date
US11146854B2 (en) 2021-10-12
CN109451341A (en) 2019-03-08
US20210250647A1 (en) 2021-08-12
WO2020088059A1 (en) 2020-05-07
CN109451341B (en) 2020-09-11

Similar Documents

Publication Publication Date Title
US20220007074A1 (en) Method and apparatus for playing videos, and electronic device and storage medium thereof
US9961393B2 (en) Method and device for playing multimedia file
CN111314768A (en) Screen projection method, screen projection device, electronic equipment and computer readable storage medium
US9591256B2 (en) Methods and devices for video communication
US20170344192A1 (en) Method and device for playing live videos
US20170322709A1 (en) Split-screen display method, apparatus and medium
EP3182716A1 (en) Method and device for video display
US20210405952A1 (en) Screen projection method, screen projection device, and storage medium
EP3136793A1 (en) Method and apparatus for awakening electronic device
CN112019893B (en) Screen projection method of terminal and screen projection device of terminal
CN105786507B (en) Display interface switching method and device
CN112114765A (en) Screen projection method and device and storage medium
US11366569B2 (en) Interactive interface display method, apparatus and storage medium
US20180035170A1 (en) Method and device for controlling playing state
CN111212306A (en) Wheat connecting method and device, electronic equipment and storage medium
CN106792024B (en) Multimedia information sharing method and device
US11635933B2 (en) Cross-device information display method and device, and storage medium
US20220159336A1 (en) Method and system for displaying screen
WO2020186929A1 (en) Interactive method and device in live broadcast, electronic device and storage medium
CN112261453A (en) Method, device and storage medium for transmitting subtitle splicing map
CN111246012B (en) Application interface display method and device and storage medium
CN110213531B (en) Monitoring video processing method and device
CN111610899A (en) Interface display method, interface display device and storage medium
CN111538447A (en) Information display method, device, equipment and storage medium
WO2023240501A1 (en) Multimedia data playback method and apparatus, electronic device, and storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: BEIJING DAJIA INTERNET INFORMATION TECHNOLOGY CO., LTD., CHINA

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LIU, MIAO;REEL/FRAME:057583/0498

Effective date: 20201029

STPP Information on status: patent application and granting procedure in general

Free format text: DOCKETED NEW CASE - READY FOR EXAMINATION

STPP Information on status: patent application and granting procedure in general

Free format text: NON FINAL ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION