Method for playing videos and electronic device
AssigneeBeijing Dajia Internet Information Technology Co., Ltd.
InventorMiao Liu
Life of this patent
Estimating the term…
Abstract
A method for playing a video and an electronic device. 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; transmitting the player adapter as a pull stream subject to the second scaled page; and playing the live video stream by a window controller of the second scaled page by using the player adapter for switching the live video stream from the first scaled page to the second scaled page.
Claims18
A method for playing a video, comprising:
- establishing a player adapter, configured to play a live video stream by a root controller of a first scaled page;
- 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 by the root controller of the first scaled page based on the received trigger operation for playing the live video stream on the second scaled page;
- transmitting the player adapter as a pull stream subject to the second scaled page;
- and
- playing the live video stream by a window controller of the second scaled page by using the player adapter for switching the live video stream from the first scaled page to the second scaled page,
- wherein the root controller is configured to:
- directly control a life cycle and a live-streaming control logic of the second 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.
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 a method comprising:
- establishing a player adapter, configured to play a live video stream by a root controller of a first scaled page;
- 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 by the root controller of the first scaled page based on the received trigger operation for playing the live video stream on the second scaled page;
- transmitting the player adapter as a pull stream subject to the second scaled page;
- and
- playing the live video stream by a window controller of the second scaled page by using the player adapter for switching the live video stream from the first scaled page to the second scaled page,
- wherein the root controller is configured to:
- directly control a life cycle and a live-streaming control logic of the second 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.
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 a method comprising:
- establishing a player adapter, configured to play a live video stream by a root controller of a first scaled page;
- 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 by the root controller of the first scaled page based on the received trigger operation for playing the live video stream on the second scaled page;
- transmitting the player adapter as a pull stream subject to the second scaled page;
- and
- playing the live video stream by a window controller of the second scaled page by using the player adapter for switching the live video stream from the first scaled page to the second scaled page,
- wherein the root controller is configured to:
- directly control a life cycle and a live-streaming control logic of the second 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.
Dependencies are inferred from the claim text.