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 PDFInfo
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/21—Server components or server architectures
- H04N21/218—Source of audio or video content, e.g. local disk arrays
- H04N21/2187—Live feed
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation 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/4314—Generation 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/443—OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- H04N21/4438—Window management, e.g. event handling following interaction with the user interface
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/45—Management 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/462—Content 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/4621—Controlling 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/485—End-user interface for client configuration
- H04N21/4858—End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
Definitions
- 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.
- 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.
- live video streaming is given more entertainment and social attributes and gradually covers all aspects of life and entertainment of the users.
- 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.
- 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.
- 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
- 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.
- a user can browse the content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.
- a method for playing a video includes:
- 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.
- an apparatus for playing a video 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
- 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.
- an electronic device includes:
- a memory configured to store an instruction executable by the processor
- processor is configured to perform the method for playing the video.
- 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.
- a computer program product including a computer program therein.
- 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 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.
- a user can browse the content of other pages and make interactions while viewing the live video content, thereby enhancing user experience.
- 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.
- FIG. 6 is a logical block diagram of another electronic device according to an exemplary embodiment.
- FIG. 1 is a flowchart of a method for playing a video according to an exemplary embodiment. The method includes the following steps:
- step S 110 a player adapter is established, and a root controller of the first scaled page plays a live video stream by using the player adapter.
- step S 120 a trigger operation for playing the live video stream on a second scaled page is received.
- step S 130 a playing page of the live video stream is switched from the first scaled page to the second scaled page.
- step S 140 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.
- the live video can be viewed in two ways after a user selects the live video to be viewed.
- 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.
- a trigger operation for playing the current live video stream on the second scaled page is switched from the first scaled page to the second scaled page.
- 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.
- 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.
- 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:
- step S 210 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.
- step S 220 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.
- step S 230 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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:
- step S 310 a player adapter is established, and a root controller of a first scaled page plays a live video stream by using the player adapter.
- step S 320 a trigger operation for playing the live video stream on a second scaled page is received.
- step S 330 a playing page of the live video stream is switched from the first scaled page to the second scaled page.
- step S 340 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.
- step S 350 a trigger operation for switching the live video stream back to the first scaled page is received.
- step S 360 the playing page of the live video stream is switched from the second scaled page to the first scaled page.
- step S 370 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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;
- 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.
- 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.
- 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.
- 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.
- 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 .
- 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.
- the processing component 502 may include one or more modules which facilitate the interaction between the processing component 502 and other components.
- 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.
- SRAM static random-access memory
- EEPROM electrically erasable programmable read-only memory
- EPROM erasable programmable read-only memory
- PROM programmable read-only memory
- ROM read-only memory
- magnetic memory a magnetic memory
- flash memory a magnetic disk
- 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.
- 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.
- 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.
- 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 .
- 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 .
- 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.
- CMOS complementary metal oxide semiconductor
- CCD charge coupled device
- 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.
- the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel.
- the communication component 516 further includes a near field communication (NFC) module to facilitate short-range communications.
- 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.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultrawideband
- BT Bluetooth
- 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.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field-programmable gate array
- controllers microcontrollers, microprocessors or other electronic components to execute the aforementioned methods.
- 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.
- 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.
- the electronic device 600 may be provided as a server.
- 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.
- 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 ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or the like.
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
- 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.
- 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.
- 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.
- 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.
- 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. - 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 playeradapter establishing unit 410, a receivingunit 420, apage switching unit 430, and astream 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 receivingunit 420 is configured to receive a trigger operation for playing the current live video stream on the second scaled page; thepage 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 thestream 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; thepage 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 thestream 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 anelectronic device 500 for playing a video using the method for playing the video according to an exemplary embodiment. For example, theelectronic 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 , theelectronic device 500 may include one or more following components: aprocessing component 502, amemory 504, apower source component 506, a multimedia component 508, anaudio component 510, an input/output (I/O)interface 512, asensor component 514 and acommunication component 516. - The
processing component 502 typically controls overall operations of theelectronic device 500, such as the operations associated with display, telephone calls, data communication, camera operation and recording operation. Theprocessing component 502 may include one ormore processors 520 to execute instructions to perform all or part of the steps in the aforementioned methods. Moreover, theprocessing component 502 may include one or more modules which facilitate the interaction between theprocessing component 502 and other components. For instance, theprocessing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and theprocessing component 502. - The
memory 504 is configured to store various types of data to support the operation of theelectronic device 500. Examples of such data include instructions for any applications or methods operated on theelectronic device 500, contact data, phonebook data, messages, pictures, video, and the like. Thememory 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 theelectronic device 500. Thepower 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 theelectronic 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 theelectronic 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, theaudio component 510 includes a microphone (MIC) configured to receive an external audio signal when theelectronic 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 thememory 504 or transmitted via thecommunication component 516. In some embodiments, theaudio component 510 further includes a speaker to output audio signals. - The I/
O interface 512 provides an interface between theprocessing 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 theelectronic device 500. For instance, thesensor component 514 may detect the on/off status of theelectronic device 500, the relative positioning of components, such as the display and the keypad of theelectronic device 500. Thesensor component 514 may further detect the change in position of theelectronic device 500 or a component of theelectronic device 500, the presence or absence of user contact with theelectronic device 500, the position or the acceleration/deceleration of theelectronic device 500, and the change in temperature of theelectronic device 500. Thesensor component 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Thesensor 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, thesensor 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 theelectronic device 500 and other devices. Theelectronic 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, thecommunication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, thecommunication 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 aprocessor 520 in theelectronic 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 anelectronic device 600 for playing a video using the method for playing the video according to an exemplary embodiment. For example, theelectronic device 600 may be provided as a server. Referring toFIG. 6 , theelectronic device 600 includes aprocessing component 622 which further includes one or more processors, and memory resources represented by amemory 632 for storing instructions executable by theprocessing component 622, for example an application program. The application program stored in thememory 632 may include one or more modules each corresponding to a set of instructions. Furthermore, theprocessing component 622 is configured to execute instructions to perform the information list display method. - The
electronic device 600 may further include apower source component 626 configured to perform power source management of theelectronic device 600, a wired orwireless network interface 650 configured to connect theelectronic device 600 to the network, and an input/output (I/O)interface 658. Theelectronic device 600 can operate an operating system stored in thememory 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)
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.
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.1A CN109451341B (en) | 2018-10-30 | 2018-10-30 | Video playing method, video playing device, electronic equipment and storage medium |
CN201811279510.1 | 2018-10-30 | ||
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 |
---|---|---|---|
PCT/CN2019/102281 Continuation WO2020088059A1 (en) | 2018-10-30 | 2019-08-23 | Video playback method, video playback apparatus, electronic device, and storage medium |
US17/257,126 Continuation US11146854B2 (en) | 2018-10-30 | 2019-08-23 | Method for playing videos and electronic device |
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)
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 (5)
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 |
CN111367622B (en) * | 2020-03-09 | 2024-08-06 | 联通沃音乐文化有限公司 | System and method for non-blocking playing audio of mobile terminal website |
CN113542839B (en) * | 2021-06-09 | 2022-10-18 | 荣耀终端有限公司 | Screen projection method of electronic equipment and electronic equipment |
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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9032465B2 (en) * | 2002-12-10 | 2015-05-12 | Ol2, Inc. | Method for multicasting views of real-time streaming interactive video |
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 |
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 |
US10224028B2 (en) * | 2015-06-01 | 2019-03-05 | Sinclair Broadcast Group, Inc. | Break state detection for reduced capability devices |
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 |
-
2018
- 2018-10-30 CN CN201811279510.1A patent/CN109451341B/en active Active
-
2019
- 2019-08-23 US US17/257,126 patent/US11146854B2/en active Active
- 2019-08-23 WO PCT/CN2019/102281 patent/WO2020088059A1/en active Application Filing
-
2021
- 2021-09-22 US US17/482,218 patent/US20220007074A1/en not_active Abandoned
Patent Citations (2)
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)
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 |
---|---|
WO2020088059A1 (en) | 2020-05-07 |
CN109451341A (en) | 2019-03-08 |
US11146854B2 (en) | 2021-10-12 |
US20210250647A1 (en) | 2021-08-12 |
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 | |
CN111314768A (en) | Screen projection method, screen projection device, electronic equipment and computer readable storage medium | |
US9591256B2 (en) | Methods and devices for video communication | |
US9961393B2 (en) | Method and device for playing multimedia file | |
CN105204846B (en) | Display methods, device and the terminal device of video pictures in more people's videos | |
US20210405952A1 (en) | Screen projection method, screen projection device, and storage medium | |
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 | |
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 | |
CN103986821A (en) | Method, equipment and system for carrying out parameter adjustment | |
US20220159336A1 (en) | Method and system for displaying screen | |
US20180035170A1 (en) | Method and device for controlling playing state | |
CN106792024B (en) | Multimedia information sharing method and device | |
CN105049763A (en) | Method and device for triggering projection | |
CN112261453A (en) | Method, device and storage medium for transmitting subtitle splicing map | |
US11635933B2 (en) | Cross-device information display method and device, and storage medium | |
WO2020186929A1 (en) | Interactive method and device in live broadcast, electronic device and storage medium | |
CN111610899A (en) | Interface display method, interface display device and storage medium | |
CN106375744B (en) | Information projecting method and device | |
CN111246012B (en) | Application interface display method and 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 |