US2022007074A1PendingUtilityA1

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

Assignee: BEIJING DAJIA INTERNET INFORMATION TECH CO LTDPriority: Oct 30, 2018Filed: Sep 22, 2021Published: Jan 6, 2022
Est. expiryOct 30, 2038(~12.3 yrs left)· nominal 20-yr term from priority
Inventors:Miao Liu
H04N 21/4621H04N 21/4312H04N 21/4438H04N 21/41407H04N 21/2187H04N 21/4858H04N 21/4314
56
PatentIndex Score
0
Cited by
0
References
0
Claims

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.

Claims

exact text as granted — not AI-modified
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.

Join the waitlist — get patent alerts

Track US2022007074A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.