WO2020088059A1 - 视频播放方法、视频播放装置、电子设备及存储介质 - Google Patents

视频播放方法、视频播放装置、电子设备及存储介质 Download PDF

Info

Publication number
WO2020088059A1
WO2020088059A1 PCT/CN2019/102281 CN2019102281W WO2020088059A1 WO 2020088059 A1 WO2020088059 A1 WO 2020088059A1 CN 2019102281 W CN2019102281 W CN 2019102281W WO 2020088059 A1 WO2020088059 A1 WO 2020088059A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
scale
scale page
video stream
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.)
Ceased
Application number
PCT/CN2019/102281
Other languages
English (en)
French (fr)
Inventor
刘淼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to US17/257,126 priority Critical patent/US11146854B2/en
Publication of WO2020088059A1 publication Critical patent/WO2020088059A1/zh
Anticipated expiration legal-status Critical
Priority to US17/482,218 priority patent/US20220007074A1/en
Ceased legal-status Critical Current

Links

Images

Classifications

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

Definitions

  • This application belongs to the field of computer software applications, especially video playback methods, video playback devices, electronic equipment, and storage media.
  • Video live broadcasting is an entertainment method that enriches the lives of mobile users on the Internet. Users can watch the talent show of the anchor in real time, or have a voice chat with the anchor. Today's live video is given more entertainment and social attributes, gradually covering all aspects of user life and entertainment.
  • the live video streaming method is such that a video viewing page occupies the entire mobile phone screen, and the live video content is displayed in a partial area or the entire area of the video viewing page. It is not possible to leave a free area on the video viewing page for users to browse other content. Users cannot browse and interact with the content of other pages while watching live video content and listening to voice information, reducing the video content that users can watch on the same interface, thereby reducing the user experience.
  • the present application discloses a video playback method, the player adapter as a streaming object to switch the live video stream between the first scale page and the second scale page; and when When receiving a trigger operation for performing a second-scale page playback on the live video stream, the playback page of the live-stream video stream is switched from the first scale page to the second scale page.
  • the user can browse and interact with the content of other pages while watching the live video content, which improves the user experience.
  • a video playback method including:
  • a video playback device including:
  • Player adapter establishment unit used to establish the player adapter
  • a receiving unit configured to receive a trigger operation for performing a second-scale page playback on the live video stream
  • a page switching unit configured to switch the play page of the live video stream from the first scale page to the second scale page
  • the root controller for the first scale page uses the player adapter to play the live video stream; transmits the player adapter as a pull stream object to the second scale page, the second scale page
  • the small window controller uses the player adapter to play the live video stream, thereby switching the live video stream from the first scale page to the second scale page.
  • an electronic device including:
  • Memory for storing processor executable instructions
  • the processor is configured to execute the above video playback method.
  • a non-transitory computer-readable storage medium stores computer instructions, and when the computer instructions are executed, the video playback method described above is implemented.
  • a computer program product including a computer program product, the computer program includes program instructions, and when the program instructions are executed by an electronic device, the electronic device is caused to execute the above-mentioned video playback method.
  • the player adapter is used as a pull stream object to switch the current live video stream between the first scale page and the second scale page; and when receiving the trigger operation of performing the second scale page playback on the current live video stream, the current live video stream
  • the playback page is switched from the first scale page to the second scale page.
  • the user can browse and interact with the content of other pages while watching the live video content, which improves the user experience.
  • Fig. 1 is a flowchart of a video playback method according to an exemplary embodiment
  • Fig. 2 is a flowchart of a video playback method according to an exemplary embodiment
  • Fig. 3 is a flowchart of a video playback method according to an exemplary embodiment
  • Fig. 4 is a block diagram of a video playback device according to an exemplary embodiment
  • Fig. 5 is a logic block diagram of an electronic device according to an exemplary embodiment
  • Fig. 6 is a logic block diagram of another electronic device according to an exemplary embodiment.
  • Fig. 1 is a flow chart of a video playback method according to an exemplary embodiment. Specific steps include:
  • step S110 a player adapter is established, and the root controller of the first scale page uses the player adapter to play a live video stream.
  • step S120 a trigger operation of performing a second-scale page playback on the live video stream is received.
  • step S130 the play page of the live video stream is switched from the first scale page to the second scale page.
  • step S140 the player adapter is transmitted to the second scale page as a pull stream object, and the small window controller of the second scale page uses the player adapter to play the live video stream, so that The live video stream is switched from the first scale page to the second scale page.
  • the user can watch the live video in two ways.
  • the user enters the first scale page for playing the live video by default by clicking on the live room of the live video and other trigger operations.
  • a player adapter is established.
  • the root controller of the first scale page uses the player adapter to play the current live video stream.
  • the playback page of the current live video stream is switched from the first-scale page to the second-scale page.
  • the player adapter is transferred to the second scale page as a pull stream object, and the small window controller of the second scale page uses the player adapter to play the current live video stream, thereby removing the current live video stream from the first scale
  • the page switches to the second scale page.
  • the player adapter as a pull stream object switches the current live video stream between the first scale page and the second scale page; and when receiving the trigger operation of performing the second scale page playback on the current live video stream , The playback page of the current live video stream is switched from the first-scale page to the second-scale page.
  • the player adapter is on the second scale page, and the user can browse and interact with the content of other pages while watching the live video content, which improves the user experience.
  • Fig. 2 is a flow chart showing a video playing method according to an exemplary embodiment. Specific steps include:
  • step S210 when the first scale page is entered for the first time, the player adapter responsible for pulling the stream is established; the root controller of the first scale page proxies the player adapter;
  • the player adapter passes the live video stream to the root controller of the first scale page; and the root controller of the first scale page is responsible for rendering the live video stream.
  • step S220 when the trigger operation of playing the second-scale page is performed on the live video stream, the play page of the live-stream video stream is switched from the first scale page to the second scale Page and establish the small window controller of the second scale page.
  • step S230 the root controller of the first scale page passes the player adapter to the small window controller of the second scale page; the small window of the second scale page The controller proxy the player adapter; the player adapter passes the live video stream to the small window controller of the second scale page; and the small window controller of the second scale page It is responsible for rendering the live video stream.
  • the user enters the first scale page for playing the live video by default by triggering operations such as clicking on the live room of the live video.
  • a player adapter responsible for pulling streams is established; the root controller of the first scale page acts as a proxy for this player adapter; the player adapter passes the current live video stream to the first The root controller of the first-scale page; and the root controller of the first-scale page are responsible for rendering the current live video stream.
  • the trigger operation of playing the second scale page of the current live video stream switch the current live video stream's playback page from the first scale page to the second scale page and establish a small window control of the second scale page Device.
  • the root controller of the first scale page passes the player adapter to the small window controller of the second scale page; the small window controller of the second scale page acts as a proxy for this player adapter; the player adapter will broadcast the current live video The stream is passed to the small window controller of the second scale page; and the small window controller of the second scale page is responsible for rendering the current live video stream.
  • the player adapter as a pull stream object switches the current live video stream from the first scale page to the second scale page.
  • the root controller on the first scale page acts as a proxy for the player adapter, and the root controller on the first scale page is responsible for rendering the current live video stream.
  • the small window controller on the second scale page acts as a proxy for the player adapter, and the small window controller on the second scale page is responsible for rendering the current live video stream.
  • the player adapter switches the current live video stream between the first-scale page and the second-scale page to realize the automatic resume of the live broadcast content, maintain the fluency of the live broadcast content, and further improve the user experience.
  • there is no need to reload the live video stream content saving user traffic.
  • the method for switching the playback page of the current live video stream from the first-scale page to the second-scale page is: for the second-scale page to be displayed on other pages, and to ensure that it is not correct The user interaction of other pages has an impact.
  • the root controller of the first proportional page directly controls the life cycle of the second proportional page and the live broadcast control logic; according to the received trigger operation of the second proportional page playback of the current live video stream, the first The root controller of the one-scale page switches the playback page of the current live video stream from the first-scale page to the second-scale page.
  • the small window controller of the second scale page directly calls the root controller of the first scale page to realize the second scale Page life cycle replacement or live broadcast logic control.
  • the root controller and the small window controller are defined in advance after the relevant protocols such as the life cycle replacement of the creation, display and closing of the second scale page and the control logic of the playback, pause and close of the live video stream are defined
  • the relevant protocols such as the life cycle replacement of the creation, display and closing of the second scale page and the control logic of the playback, pause and close of the live video stream are defined
  • a communication protocol is used to communicate instructions for creating, displaying, and closing life cycles of the second scale page and control logic instructions for playing, pausing, and closing the live video stream through the communication protocol between the first scale page and the second scale page.
  • the live broadcast control logic of the second scale page provides the corresponding interface by the second scale page itself.
  • the small window controller of the second scale page replaces the life cycle of the second scale page or the trigger operation instruction of the live broadcast control logic It is transmitted to the root controller of the first proportional page to realize the replacement of the life cycle of the second proportional page or live broadcast logic control.
  • the user slides the first-scale page to the right to return to other pages, and when the first-scale page disappears, call the showFloatingView of the root controller through the communication protocol to display the second-scale page.
  • the close scale call of the root controller is called through the communication protocol to close the second scale page. Calling startPlay, pausePlay and closePlay of the root controller based on the communication protocol to realize the live broadcast control logic of the second proportional page.
  • the small window controller of the second proportional page transmits the life cycle replacement of the second proportional page or the triggering operation instruction of the live broadcast control logic to the root controller of the first proportional page to implement the first
  • the replacement of the life cycle of the second-ratio page or the logic control of the live broadcast for subsequent function expansion improves the performance of the live video software.
  • the method for switching the current live video stream playback page from the first scale page to the second scale page is: by creating a new page window singleton object, this page window single The instance object carries and displays the content of the second scale page; add the single window object of this page window to the first scale page, so that the root controller of the first scale page directly controls the life cycle replacement and live broadcast control of the single window object of this page window Logic; according to the received trigger operation of performing the second scale page playback on the current live video stream, the root controller of the first scale page switches the current live video stream playback page from the first scale page to the second scale page.
  • the life cycle of the second scale page includes: creation of the second scale page, display of the second scale page, and closing of the second scale page.
  • the live broadcast control logic of the second scale page includes: live video stream playback, live video stream pause and live video stream closing.
  • Fig. 3 is a flow chart showing a video playing method according to an exemplary embodiment. Specific steps include:
  • step S310 a player adapter is established, and the root controller of the first scale page uses the player adapter to play a live video stream.
  • step S320 receive a trigger operation for performing a second-scale page playback on the live video stream.
  • step S330 the play page of the live video stream is switched from the first scale page to the second scale page.
  • step S340 the player adapter is transmitted to the second scale page as a pull stream object, and the small window controller of the second scale page uses the player adapter to play the live video stream, so that The live video stream is switched from the first scale page to the second scale page.
  • step S350 a trigger operation of switching the live video stream back to the first-scale page playback is received.
  • step S360 the play page of the live video stream is switched from the second scale page to the first scale page.
  • step S370 the player adapter is transmitted to the first scale page as a pull stream object, and the root controller of the first scale page uses the player adapter to play the live video stream, thereby Switching the live video stream from the second scale page to the first scale page.
  • the user enters the first scale page for playing the live video by default by clicking on the live room of the live video to trigger the operation.
  • the player adapter is established, and the root controller of the first scale page uses the playback Adapter to play the current live video stream.
  • receive a trigger operation of performing a second-scale page playback on the current live video stream receives a trigger operation of performing a second-scale page playback on the current live video stream.
  • the playback page of the current live video stream is switched from the first-scale page to the second-scale page.
  • the player adapter is transferred to the second scale page as a pull stream object, and the small window controller of the second scale page uses the player adapter to play the current live video stream, thereby switching the current live video stream from the first scale page Go to the second scale page.
  • a trigger operation of switching the current live video stream back to the first-scale page playback is received.
  • the playback page of the current live video stream is switched from the second-scale page to the first-scale page.
  • the player adapter is transferred to the first scale page as a pull stream object.
  • the root controller of the first scale page uses the player adapter to play the current live video stream, thereby switching the current live video stream from the second scale page to the first Scale page.
  • the player adapter as a pull stream object switches the current live video stream between the first scale page and the second scale page.
  • the root controller on the first scale page acts as a player adapter, and the root controller on the first scale page is responsible for rendering the current live video stream.
  • the small window controller on the second scale page acts as a proxy for the player adapter, and the small window controller on the second scale page is responsible for rendering the current live video stream.
  • the player adapter switches the current live video stream between the first-scale page and the second-scale page to realize the automatic resume of the live broadcast content, maintain the fluency of the live broadcast content, and further improve the user experience.
  • the video playback aspect further includes: when a trigger operation of closing the first scale page or the second scale page is received by the user, recycling the player adapter.
  • the video playback aspect further includes: receiving a trigger operation for performing a first-scale page playback on the current live video stream; and establishing a root controller for the first-scale page.
  • Fig. 4 is a block diagram of a video playback device according to an exemplary embodiment.
  • the video playback device specifically includes: a player adapter establishment unit 410, a receiving unit 420, a page switching unit 430, and a stream switching unit 440.
  • the player adapter establishment unit 410 is used to establish a player adapter.
  • the receiving unit 420 is configured to receive a trigger operation for performing a second-scale page playback on the live video stream.
  • the page switching unit 430 is configured to switch the play page of the live video stream from the first scale page to the second scale page. as well as
  • Stream switching unit 440 the root controller for the first scale page uses the player adapter to play the live video stream; transmits the player adapter as a pull stream object to the second scale page, the second scale
  • the small window controller of the page uses the player adapter to play the live video stream, thereby switching the live video stream from the first scale page to the second scale page.
  • the player adapter establishment unit 410 is used to establish a player adapter; the receiving unit 420 is used to receive a trigger operation for performing a second-scale page playback on the current live video stream; the page switching unit 430, Used to switch the playback page of the current live video stream from the first-scale page to the second-scale page; and the stream switching unit 440, the root controller for the first-scale page uses the player adapter to play the current live video stream; will play The adapter is transferred to the second scale page as a pull stream object.
  • the small window controller of the second scale page uses the player adapter to play the current live video stream, thereby switching the current live video stream from the first scale page to the second scale page.
  • the receiving unit 420 is further configured to receive a trigger operation of switching the current live video stream back to the first scale page playback;
  • the page switching unit 430 is also used to switch the playing page of the current live video stream from the second scale page to the first scale page;
  • the stream switching unit 440 is also used to transfer the player adapter as a pull stream object to the first scale page.
  • the root controller of the first scale page uses the player adapter to play the current live video stream, thereby changing the current live video stream from the second
  • the scale page switches to the first scale page.
  • the player adapter establishment unit 410 is further configured to recycle the player adapter when receiving the trigger operation of closing the first scale page or the second scale page.
  • the receiving unit 420 is further configured to receive a trigger operation for performing a first-page playback of the current live video stream.
  • Fig. 5 is a block diagram of an electronic device 500 for video playback according to the foregoing video playback method according to an exemplary embodiment.
  • the electronic device 500 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, or the like.
  • the electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, and a sensor component 514 , ⁇ ⁇ ⁇ 516.
  • the processing component 502 generally controls the overall operations of the electronic device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method.
  • the processing component 502 may include one or more modules to facilitate interaction between the processing component 502 and other components.
  • the processing component 502 may include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
  • the memory 504 is configured to store various types of data to support operation at the electronic device 500. Examples of these data include instructions for any application or method for operating on the electronic device 500, contact data, phone book data, messages, pictures, videos, etc.
  • the memory 504 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random-Access Memory, SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (Read-Only Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.
  • SRAM static random access memory
  • EEPROM Electrically erasable programmable read-only memory
  • EPROM Erasable Programmable Read-Only Memory
  • PROM Programmable Read-Only Memory
  • Read-Only Only Memory ROM
  • magnetic memory flash
  • the power supply component 506 provides power to various components of the electronic device 500.
  • the power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 500.
  • the multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user.
  • the screen may include a liquid crystal display (Liquid Crystal Display, LCD) and a touch panel (Touch Panel, TP). If the screen includes a 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 touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation.
  • the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 510 is configured to output and / or input audio signals.
  • the audio component 510 includes a microphone (Microphone, MIC).
  • the microphone is configured to receive an external audio signal.
  • 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 for outputting audio signals.
  • the I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module.
  • the peripheral interface module may be a keyboard, a click wheel, or a button. These buttons may include, but are not limited to: home button, volume button, enable button, and lock button.
  • the sensor component 514 includes one or more sensors for providing the electronic device 500 with various aspects of status assessment.
  • the sensor component 514 can detect the on / off state of the electronic device 500, and the relative positioning of the components, for example, the component is the display and keypad of the electronic device 500, and the sensor component 514 can also detect the electronic device 500 or the electronic device 500.
  • the position of the component changes, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and the temperature of the electronic device 500 change.
  • the sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • the sensor component 514 may also include a light sensor, such as a complementary metal oxide semiconductor (Complementary Metal Oxide Semiconductor (CMOS) or charge coupled device (Charge Coupled Device, CCD) image sensor, for use in imaging applications.
  • CMOS Complementary Metal Oxide Semiconductor
  • CCD Charge Coupled Device
  • the sensor component 514 may further include an acceleration sensor, a gyro 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, an operator network (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 communication.
  • the NFC module can be based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology and other technologies to fulfill.
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wideband
  • Bluetooth Bluetooth
  • the electronic device 500 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit (ASIC)), digital signal processor (Digital Signal Processing, DSP), digital signal processing device (Digital Signal Processing) device , DSPD), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), controller, microcontroller, microprocessor or other electronic components for implementation The above method.
  • ASIC Application Specific Integrated Circuit
  • DSP digital signal processor
  • DSP digital signal processing device
  • DSPD Digital Signal Processing device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • controller microcontroller, microprocessor or other electronic components for implementation The above method.
  • a non-transitory computer-readable storage medium including instructions is also provided, for example, a memory 504 including instructions, which can be executed by the processor 520 of the electronic device 500 to complete the above method.
  • the non-transitory computer-readable storage medium may be ROM, Random Access Memory (RAM), Compact Disk Read-Only Memory (CD-ROM), magnetic tape, floppy disk, and optical data Storage devices, etc.
  • Fig. 6 is a block diagram of an electronic device 600 for video playback according to an exemplary video playback method 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 the memory 632, for storing instructions executable by the processing component 622, such as application programs.
  • the application programs 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 above-mentioned information list display method.
  • the electronic device 600 may also include a power component 626 configured to perform power 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 based on 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

本申请是关于一种视频播放方法、视频播放装置、电子设备及存储介质。所述视频播放方法包括:建立播放器适配器,第一比例页面的根控制器采用所述播放器适配器播放直播视频流;接收对所述直播视频流进行第二比例页面播放的触发操作;将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面;以及将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。在第二比例页面,用户可以在观看视频直播内容的同时浏览其他页面内容并进行交互,提高了用户体验。

Description

视频播放方法、视频播放装置、电子设备及存储介质
本申请要求在2018年10月30日提交中国专利局、申请号为201811279510.1、发明名称为“视频播放方法、视频播放装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于计算机软件应用领域,尤其是视频播放方法、视频播放装置、电子设备及存储介质。
背景技术
随着互联网技术的高速发展和智能手机的普及,互联网移动用户的娱乐方式逐渐丰富起来。视频直播是一种丰富互联网移动用户生活的娱乐方式,用户可以实时的观看主播的才艺展示,或者和主播语音聊天。如今的视频直播被赋予更多娱乐和社交的属性,逐渐涵盖用户生活和娱乐的方方面面。
发明人发现,相关技术中,视频直播方式均是一个视频观看页面占据整个手机屏幕,直播视频内容显示在视频观看页面的局部区域或整个区域。无法在视频观看页面上留出空余的区域来供用户去浏览其他内容。用户无法在观看直播视频内容和收听语音信息的同时对其他页面的内容进行浏览和交互,减少了用户在同一界面中可观看的视频内容,从而降低了用户体验。
发明内容
为克服相关技术中存在的问题,本申请公开一种视频播放方法,播放器适配器作为拉流对象在所述第一比例页面和所述第二比例页面之间切换所述直播视频流;以及当接收对所述直播视频流进行第二比例页面播放的触发操作时,将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。在所述第二比例页面,用户可以在观看视频直播内容的同时浏览其他页面内容并进行交互,提高了用户体验。
根据本申请实施例的第一方面,提供一种视频播放方法,包括:
建立播放器适配器,第一比例页面的根控制器采用所述播放器适配器播放直播视频流;
接收对所述直播视频流进行第二比例页面播放的触发操作;
将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面;以及
将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一 比例页面切换到所述第二比例页面。
根据本申请实施例的第二方面,提供一种视频播放装置,包括:
播放器适配器建立单元,用于建立播放器适配器;
接收单元,用于接收对所述直播视频流进行第二比例页面播放的触发操作;
页面切换单元,用于将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面;以及
流切换单元,用于第一比例页面的根控制器采用所述播放器适配器播放直播视频流;将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
根据本申请实施例的第三方面,提供一种电子设备,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为执行上述的视频播放方法。
根据本申请实施例的第四方面,提供一种非临时性计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令被执行时实现如上所述的视频播放方法。
根据本申请实施例的第五方面,提供计算机程序产品,包括计算机程序产品,所述计算机程序包括程序指令,当所述程序指令被电子设备执行时,使所述电子设备执行上述视频播放方法。
本申请的实施例提供的技术方案可以包括以下有益效果:
播放器适配器作为拉流对象在第一比例页面和第二比例页面之间切换当前直播视频流;以及当接收对当前直播视频流进行第二比例页面播放的触发操作时,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。在第二比例页面,用户可以在观看视频直播内容的同时浏览其他页面内容并进行交互,提高了用户体验。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。
图1是根据一示例性实施例示出的视频播放方法的流程图;
图2是根据一示例性实施例示出的视频播放方法的流程图;
图3是根据一示例性实施例示出的视频播放方法的流程图;
图4是根据一示例性实施例示出的视频播放装置框图;
图5是根据一示例性实施例示出的一种电子设备的逻辑框图;
图6是根据一示例性实施例示出的另一种电子设备的逻辑框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的视频播放方法的流程图。具体步骤包括:
在步骤S110中,建立播放器适配器,第一比例页面的根控制器采用所述播放器适配器播放直播视频流。
在步骤S120中,接收对所述直播视频流进行第二比例页面播放的触发操作。
在步骤S130中,将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。
在步骤S140中,将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
在本申请的一个实施例中,用户选择所要观看的直播视频后,可以通过两种方式来观看直播视频。用户通过点击此直播视频的直播间等触发操作默认进入播放此直播视频的第一比例页面后,首先,建立播放器适配器,第一比例页面的根控制器采用播放器适配器播放当前直播视频流。然后,接收对当前直播视频流进行第二比例页面播放的触发操作。其次,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。最后,将播放器适配器作为拉流对象传送给第二比例页面,所述第二比例页面的小窗控制器采用播放器适配器播放当前直播视频流,从而将当前直播视频流从所述第一比例页面切换到第二比例页面。
根据本申请的实施例,播放器适配器作为拉流对象在第一比例页面和第二比例页面之间切换当前直播视频流;以及当接收对当前直播视频流进行第二比例页面播放的触发操作时,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。播放器适配器在第二比例页面,用户可以在观看视频直播内容的同时浏览其他页面内容并进行交互,提高了用户体验。
图2是根据一示例性实施例示出的视频播放方法的流程图。具体步骤包括:
在步骤S210中,当第一次进入所述第一比例页面时,建立负责拉流的所述播放器适配器;所述第一比例页面的所述根控制器代理所述播放器适配器;
所述播放器适配器将所述直播视频流传递给所述第一比例页面的所述根控制器;以及所述第一比例页面的所述根控制器负责对所述直播视频流进行渲染。
在步骤S220中,当接收到对所述直播视频流进行所述第二比例页面播放的触发操作时,将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面并且建立所述第二比例页面的所述小窗控制器。
在步骤S230中,所述第一比例页面的所述根控制器将所述播放器适配器传递给所述第二比例页面的所述小窗控制器;所述第二比例页面的所述小窗控制器代理所述播放器适配器;所述播放器适配器将所述直播视频流传递给所述第二比例页面的所述小窗控制器;以及所述第二比例页面的所述小窗控制器负责对所述直播视频流进行渲染。
在本申请的一个实施例中,用户通过点击直播视频的直播间等触发操作默认进入播放此直播视频的第一比例页面。首先,当第一次默认进入第一比例页面时,建立负责拉流的播放器适配器;第一比例页面的根控制器作为此播放器适配器的代理;播放器适配器将当前直播视频流传递给第一比例页面的根控制器;以及第一比例页面的根控制器负责对当前直播视频流进行渲染。然后,当接收到对当前直播视频流进行第二比例页面播放的触发操作时,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面并且建立第二比例页面的小窗控制器。其次,第一比例页面的根控制器将播放器适配器传递给第二比例页面的小窗控制器;第二比例页面的小窗控制器作为此播放器适配器的代理;播放器适配器将当前直播视频流传递给第二比例页面的小窗控制器;以及第二比例页面的小窗控制器负责对当前直播视频流进行渲染。
根据本申请的实施例,播放器适配器作为拉流对象将当前直播视频流从第一比例页面切换到第二比例页面。在第一比例页面根控制器作为播放器适配器的代理,第一比例页面的根控制器负责对当前直播视频流进行渲染。在第二比例页面小窗控制器作为播放器适配器的代理,第二比例页面的小窗控制器负责对当前直播视频流进行渲染。播放器适配器在第一比例页面和第二比例页面之间切换当前直播视频流,实现直播内容的自动续播,保持直播内容的流畅度,进一步提高用户体验。同时,在第一比例页面和第二比例页面之间切换当前直播视频流时无需重新加载直播视频流内容,节省了用户的流量。
在本申请的一个可选的实施例中,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面的方法为:为了第二比例页面显示于其他页面之上,并保证不对其他页面的用户交互造成影响,第一比例页面的根控制器直接控制第二比例页面的生命周期和直播控制逻辑;根据接收到的对当前直播视频流进行第二比例页面播放的触发操作,第一比例页面的根控制器将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。
在一个实施例中,当接收到第二比例页面的生命周期更替或者直播控制逻辑的触发操作时,第二比例页面的小窗控制器直接调用第一比例页面的根控制器来实现第二比例页面的生命周期的更替或者直播逻辑控制。
在另一个实施例中,提前定义好第二比例页面的创建、显示和关闭的生命周期更替和直播视频流的播放、暂停和关闭的控制逻辑等相关协议后,根控制器和小窗控制器遵循协议来进行通信。第一比例页面和第二比例页面之间通过通信协议来传递第二比例页面的创建、显示和关闭的生命周期更替的指令和直播视频流的播放、暂停和关闭的控制逻辑指令。第二比例页面的直播控制逻辑由第二比例页面自身提供对应的接口。当接收到第二比例页面的生命周期更替或者直播控制逻辑的触发操作时,基于通信协议,第二比例页面的小窗控制器将第二比例页面的生命周期更替或者直播控制逻辑的触发操作指令传输给第一比例页面的根控制器来实现第二比例页面的生命周期的更替或者直播逻辑控制。在一个实施例中,用户右滑第一比例页面返回其他页面,在第一比例页面消失的时候通过通信协议调用根控制器的showFloatingView来显示第二比例页面。当用户进入一个新的其他直播页面而关闭当前的第二比例页面时,通过通信协议调用根控制器的closeFloatingView来关闭第二比例页面。基于通信协议调用所述根控制器的startPlay、pausePlay和closePlay来实现第二比例页面的直播控制逻辑。
根据本申请的实施例,基于通信协议,第二比例页面的小窗控制器将第二比例页面的生命周期更替或者直播控制逻辑的触发操作指令传输给第一比例页面的根控制器来实现第二比例页面的生命周期的更替或者直播逻辑控制以便后续功能拓展,提高了视频直播软件的性能。
在本申请的一个可选的实施例中,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面的方法为:通过创建一个新的页面窗口单例对象,此页面窗口单例对象承载和展示第二比例页面的内容;将此页面窗口单例对象添加到第一比例页面,使得第一比例页面的根控制器直接控制此页面窗口单例对象的生命周期更替和直播控制逻辑;根据接收到的对当前直播视频流进行第二比例页面播放的触发操作,第一比例页面的根控制器将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。
在本申请的一个可选的实施例中,第二比例页面的生命周期,包括:第二比例页面的创建、第二比例页面的显示和第二比例页面的关闭。
在本申请的一个可选的实施例中,第二比例页面的直播控制逻辑,包括:直播视频流的播放、直播视频流的暂停和直播视频流的关闭。
图3是根据一示例性实施例示出的视频播放方法的流程图。具体步骤包括:
在步骤S310中,建立播放器适配器,第一比例页面的根控制器采用所述播放器适配器播放直播视频流。
在步骤S320中,接收对所述直播视频流进行第二比例页面播放的触发操作。
在步骤S330中,将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。
在步骤S340中,将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
在步骤S350中,接收将所述直播视频流切回所述第一比例页面播放的触发操作。
在步骤S360中,将所述直播视频流的播放页面由所述第二比例页面切换为所述第一比例页面。
在步骤S370中,将所述播放器适配器作为拉流对象传送给所述第一比例页面,所述第一比例页面的所述根控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第二比例页面切换到所述第一比例页面。
在本申请的一个实施例中,用户通过点击直播视频的直播间等触发操作默认进入播放此直播视频的第一比例页面后,首先,建立播放器适配器,第一比例页面的根控制器采用播放器适配器播放当前直播视频流。然后,接收对当前直播视频流进行第二比例页面播放的触发操作。其次,将当前直播视频流的播放页面由第一比例页面切换为第二比例页面。再次,将播放器适配器作为拉流对象传送给第二比例页面,第二比例页面的小窗控制器采用所述播放器适配器播放当前直播视频流,从而将当前直播视频流从第一比例页面切换到第二比例页面。再次,接收将当前直播视频流切回所述第一比例页面播放的触发操作。再次,将当前直播视频流的播放页面由第二比例页面切换为第一比例页面。最后,将播放器适配器作为拉流对象传送给第一比例页面,第一比例页面的根控制器采用播放器适配器播放当前直播视频流,从而将当前直播视频流从第二比例页面切换到第一比例页面。
根据本申请实施例,播放器适配器作为拉流对象在第一比例页面和第二比例页面之间切换当前直播视频流。在第一比例页面根控制器代理播放器适配器,第一比例页面的根控制器负责对当前直播视频流进行渲染。在第二比例页面小窗控制器作为播放器适配器的代理,第二比例页面的小窗控制器负责对当前直播视频流进行渲染。播放器适配器在第一比例页面和第二比例页面之间切换当前直播视频流,实现直播内容的自动续播,保持直播内容的流畅度,进一步提高用户体验。
在本申请的一个可选的实施例中,所述视频播放方面,还包括:当接收到用户关闭第一比例页面或者第二比例页面的触发操作时,将播放器适配器回收。
在本申请的一个可选的实施例中,所述视频播放方面,还包括:接收对当前直播视频流进行第一比例页面播放的触发操作;建立第一比例页面的根控制器。
图4是根据一示例性实施例示出的视频播放装置框图。所述视频播放装置具体包括: 播放器适配器建立单元410、接收单元420、页面切换单元430和流切换单元440。
播放器适配器建立单元410,用于建立播放器适配器。
接收单元420,用于接收对所述直播视频流进行第二比例页面播放的触发操作。
页面切换单元430,用于将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。以及
流切换单元440,用于第一比例页面的根控制器采用所述播放器适配器播放直播视频流;将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
在本申请的一个实施例中,播放器适配器建立单元410,用于建立播放器适配器;接收单元420,用于接收对当前直播视频流进行第二比例页面播放的触发操作;页面切换单元430,用于将当前直播视频流的播放页面由第一比例页面切换为第二比例页面;以及流切换单元440,用于第一比例页面的根控制器采用播放器适配器播放当前直播视频流;将播放器适配器作为拉流对象传送给第二比例页面,第二比例页面的小窗控制器采用播放器适配器播放当前直播视频流,从而将当前直播视频流从第一比例页面切换到第二比例页面。
在本申请的一个可选的实施例中,接收单元420,还用于接收将当前直播视频流切回第一比例页面播放的触发操作;
页面切换单元430,还用于将当前直播视频流的播放页面由第二比例页面切换为第一比例页面;以及
流切换单元440,还用于将播放器适配器作为拉流对象传送给第一比例页面,第一比例页面的根控制器采用播放器适配器播放当前直播视频流,从而将当前直播视频流从第二比例页面切换到第一比例页面。
在本申请的一个可选的实施例中,播放器适配器建立单元410,还用于当接收到关闭第一比例页面或者第二比例页面的触发操作时,将播放器适配器回收。
在本申请的一个可选的实施例中,接收单元420,还用于接收对当前直播视频流进行第一比例页面播放的触发操作。
图5是根据一示例性实施例示出的一种用于上述视频播放方法的视频播放的电子设备500的框图。例如,电子设备500可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图5,电子设备500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。
处理组件502通常控制电子设备500的整体操作,诸如与显示,电话呼叫,数据通信, 相机操作和记录操作相关联的操作。处理组件502可以包括一个或多个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理组件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。
存储器504被配置为存储各种类型的数据以支持在电子设备500的操作。这些数据的示例包括用于在电子设备500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(Static Random-Access Memory,SRAM),电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM),可擦除可编程只读存储器(Erasable Programmable Read-Only Memory,EPROM),可编程只读存储器(Programmable Read-Only Memory,PROM),只读存储器(Read-Only Memory,ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件506为电子设备500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为电子设备500生成、管理和分配电力相关联的组件。
多媒体组件508包括在所述电子设备500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(Liquid Crystal Display,LCD)和触摸面板(Touch Panel,TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当电子设备500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(Microphone,MIC),当电子设备500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启用按钮和锁定按钮。
传感器组件514包括一个或多个传感器,用于为电子设备500提供各个方面的状态评估。例如,传感器组件514可以检测到电子设备500的打开/关闭状态,组件的相对定位,例如所 述组件为电子设备500的显示器和小键盘,传感器组件514还可以检测电子设备500或电子设备500一个组件的位置改变,用户与电子设备500接触的存在或不存在,电子设备500方位或加速/减速和电子设备500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)或电荷耦合器件(Charge Coupled Device,CCD)图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件516被配置为便于电子设备500和其他设备之间有线或无线方式的通信。电子设备500可以接入基于通信标准的无线网络,如WiFi,运营商网络(如2G、3G、4G或5G),或它们的组合。在一个示例性实施例中,通信组件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件516还包括近场通信(Near Field Communication,NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(Radio Frequency Identification,RFID)技术,红外数据协会(Infrared Data Association,IrDA)技术,超宽带(Ultra Wideband,UWB)技术,蓝牙(Bluetooth,BT)技术和其他技术来实现。
在示例性实施例中,电子设备500可以被一个或多个应用专用集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital Signal Processing,DSP)、数字信号处理设备(Digital Signal Processing Device,DSPD)、可编程逻辑器件(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由电子设备500的处理器520执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(Random Access Memory,RAM)、光盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、磁带、软盘和光数据存储设备等。
图6是根据一示例性实施例示出的一种用于上述视频播放方法的视频播放的电子设备600的框图。例如,电子设备600可以被提供为一服务器。参照图6,电子设备600包括处理组件622,其进一步包括一个或多个处理器,以及由存储器632所代表的存储器资源,用于存储可由处理组件622的执行的指令,例如应用程序。存储器632中存储的应用程序可以包括一个或一个以上的每一个对应于一组指令的模块。此外,处理组件622被配置为执行指令,以执行上述信息列表显示方法。
电子设备600还可以包括一个电源组件626被配置为执行电子设备600的电源管理,一 个有线或无线网络接口650被配置为将电子设备600连接到网络,和一个输入输出(I/O)接口658。电子设备600可以操作基于存储在存储器632的操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM或类似。
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本申请的真正范围和精神由下面的权利要求指出。
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。

Claims (20)

  1. 一种视频播放方法,包括:
    建立播放器适配器,第一比例页面的根控制器采用所述播放器适配器播放直播视频流;
    接收对所述直播视频流进行第二比例页面播放的触发操作;
    将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面;以及
    将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
  2. 根据权利要求1所述的视频播放方法,当第一次进入所述第一比例页面时,建立负责拉流的所述播放器适配器;
    所述第一比例页面的所述根控制器代理所述播放器适配器;
    所述播放器适配器将所述直播视频流传递给所述第一比例页面的所述根控制器;以及
    所述第一比例页面的所述根控制器负责对所述直播视频流进行渲染。
  3. 根据权利要求2所述的视频播放方法,当接收到对所述直播视频流进行所述第二比例页面播放的触发操作时,将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面并且建立所述第二比例页面的所述小窗控制器。
  4. 根据权利要求3所述的视频播放方法,所述第一比例页面的所述根控制器将所述播放器适配器传递给所述第二比例页面的所述小窗控制器;
    所述第二比例页面的所述小窗控制器代理所述播放器适配器;
    所述播放器适配器将所述直播视频流传递给所述第二比例页面的所述小窗控制器;以及
    所述第二比例页面的所述小窗控制器负责对所述直播视频流进行渲染。
  5. 根据权利要求4所述的视频播放方法,所述将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面,包括:
    所述第一比例页面的所述根控制器直接控制所述第二比例页面的生命周期和直播控制逻辑;
    根据接收到的对所述直播视频流进行所述第二比例页面播放的触发操作,所述第一比例页面的所述根控制器将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。
  6. 根据权利要求5所述的视频播放方法,当接收到所述第二比例页面的生命周期更替或者直播控制逻辑的触发操作时,所述第二比例页面的所述小窗控制器直接调用所述第 一比例页面的所述根控制器来实现所述第二比例页面的生命周期的更替或者直播逻辑控制。
  7. 根据权利要求5所述的视频播放方法,当接收到所述第二比例页面的生命周期更替或者直播控制逻辑的触发操作时,基于通信协议,所述第二比例页面的所述小窗控制器将所述第二比例页面的生命周期更替或者直播控制逻辑的触发操作指令传输给所述第一比例页面的所述根控制器来实现所述第二比例页面的生命周期的更替或者直播逻辑控制。
  8. 根据权利要求7所述的视频播放方法,所述通信协议是所述第一比例页面和所述第二比例页面之间的通信协议。
  9. 根据权利要求4所述的视频播放方法,所述将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面,包括:
    创建一个新的页面窗口单例对象,所述页面窗口单例对象承载和展示所述第二比例页面;
    将所述页面窗口单例对象添加到所述第一比例页面,使得所述第一比例页面的所述根控制器直接控制所述页面窗口单例对象的生命周期和直播控制逻辑;
    根据接收到的对所述直播视频流进行所述第二比例页面播放的触发操作,所述第一比例页面的所述根控制器将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面。
  10. 根据权利要求6或8或9所述的视频播放方法,所述第二比例页面的所述生命周期,包括:
    第二比例页面的创建、第二比例页面的显示和第二比例页面的关闭。
  11. 根据权利要求10所述的视频播放方法,所述第二比例页面的所述直播控制逻辑,包括:
    直播视频流的播放、直播视频流的暂停和直播视频流的关闭。
  12. 根据权利要求11所述的视频播放方法,还包括:
    接收将所述直播视频流切回所述第一比例页面播放的触发操作;
    将所述直播视频流的播放页面由所述第二比例页面切换为所述第一比例页面;以及
    将所述播放器适配器作为拉流对象传送给所述第一比例页面,所述第一比例页面的所述根控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第二比例页面切换到所述第一比例页面。
  13. 根据权利要求12所述的视频播放方法,还包括:
    当接收到关闭所述第一比例页面或者所述第二比例页面的触发操作时,将所述播放器 适配器回收。
  14. 根据权利要求13所述的视频播放方法,还包括:
    接收对所述直播视频流进行所述第一比例页面播放的触发操作;
    建立所述第一比例页面的所述根控制器。
  15. 一种视频播放装置,包括:
    播放器适配器建立单元,用于建立播放器适配器;
    接收单元,用于接收对所述直播视频流进行第二比例页面播放的触发操作;
    页面切换单元,用于将所述直播视频流的播放页面由所述第一比例页面切换为所述第二比例页面;以及
    流切换单元,用于第一比例页面的根控制器采用所述播放器适配器播放直播视频流;将所述播放器适配器作为拉流对象传送给所述第二比例页面,所述第二比例页面的小窗控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第一比例页面切换到所述第二比例页面。
  16. 根据权利要求15所述的视频播放装置,所述接收单元,还用于接收将所述直播视频流切回所述第一比例页面播放的触发操作;
    所述页面切换单元,还用于将所述直播视频流的播放页面由所述第二比例页面切换为所述第一比例页面;以及
    所述流切换单元,还用于将所述播放器适配器作为拉流对象传送给所述第一比例页面,所述第一比例页面的所述根控制器采用所述播放器适配器播放所述直播视频流,从而将所述直播视频流从所述第二比例页面切换到所述第一比例页面。
  17. 根据权利要求16所述的视频播放装置,所述播放器适配器建立单元,还用于当接收到关闭所述第一比例页面或者所述第二比例页面的触发操作时,将所述播放器适配器回收。
  18. 根据权利要求17所述的视频播放装置,所述接收单元,还用于接收对所述直播视频流进行所述第一比例页面播放的触发操作。
  19. 一种电子设备,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为执行上述权利要求1至14任意一项所述的视频播放方法。
  20. 一种非临时性计算机可读存储介质,所述计算机可读存储介质存储有计算机指令,所述计算机指令被执行时实现如权利要求1至14任意一项所述的视频播放方法。
PCT/CN2019/102281 2018-10-30 2019-08-23 视频播放方法、视频播放装置、电子设备及存储介质 Ceased WO2020088059A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/257,126 US11146854B2 (en) 2018-10-30 2019-08-23 Method for playing videos and electronic device
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 (2)

Application Number Priority Date Filing Date Title
CN201811279510.1 2018-10-30
CN201811279510.1A CN109451341B (zh) 2018-10-30 2018-10-30 视频播放方法、视频播放装置、电子设备及存储介质

Related Child Applications (2)

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

Publications (1)

Publication Number Publication Date
WO2020088059A1 true WO2020088059A1 (zh) 2020-05-07

Family

ID=65548879

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/102281 Ceased WO2020088059A1 (zh) 2018-10-30 2019-08-23 视频播放方法、视频播放装置、电子设备及存储介质

Country Status (3)

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

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109451341B (zh) 2018-10-30 2020-09-11 北京达佳互联信息技术有限公司 视频播放方法、视频播放装置、电子设备及存储介质
CN111367622B (zh) * 2020-03-09 2024-08-06 联通沃音乐文化有限公司 一种移动端网站无阻断播放音频系统和方法
CN111629151B (zh) * 2020-06-12 2023-01-24 北京字节跳动网络技术有限公司 视频合拍方法、装置、电子设备及计算机可读介质
CN113542839B (zh) * 2021-06-09 2022-10-18 荣耀终端有限公司 电子设备的投屏方法和电子设备
CN113873316B (zh) 2021-11-04 2024-02-27 上海哔哩哔哩科技有限公司 直播间视频播放方法及装置
CN114040243B (zh) * 2021-11-04 2023-08-04 上海哔哩哔哩科技有限公司 直播间视频播放方法及装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318429A1 (en) * 2012-05-22 2013-11-28 Movile Dynamic floating web video player
CN106028143A (zh) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 视频直播方法及装置
CN106993214A (zh) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 网络直播方法及装置
CN107092417A (zh) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 网络直播方法及装置
CN108235104A (zh) * 2018-01-19 2018-06-29 深圳市富途网络科技有限公司 一种用于移动终端的直播视频浮窗播放方法
CN109451341A (zh) * 2018-10-30 2019-03-08 北京达佳互联信息技术有限公司 视频播放方法、视频播放装置、电子设备及存储介质

Family Cites Families (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8387099B2 (en) * 2002-12-10 2013-02-26 Ol2, Inc. System for acceleration of web page delivery
US9032465B2 (en) * 2002-12-10 2015-05-12 Ol2, Inc. Method for multicasting views of real-time streaming interactive video
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 (zh) * 2009-10-26 2010-05-05 深圳市同洲电子股份有限公司 一种播放视频的方法、系统及对应的机顶盒
US8789126B1 (en) * 2011-08-30 2014-07-22 Cox Communications, Inc. System, method and device for swapping display configurations between viewing devices
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
US11284137B2 (en) * 2012-04-24 2022-03-22 Skreens Entertainment Technologies, Inc. Video processing systems and methods for display, selection and navigation of a combination of heterogeneous sources
KR101990035B1 (ko) * 2012-10-31 2019-06-18 엘지전자 주식회사 이동 단말기 및 그것의 제어방법
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
CN103561307A (zh) * 2013-10-30 2014-02-05 乐视致新电子科技(天津)有限公司 一种基于浏览器的指示模式切换方法和装置
CN103546821B (zh) * 2013-10-30 2017-01-11 乐视致新电子科技(天津)有限公司 一种视频播放界面调整的方法和装置
US10224027B2 (en) * 2015-06-01 2019-03-05 Sinclair Broadcast Group, Inc. Rights management and syndication of content
CN106686446B (zh) * 2015-11-05 2020-07-14 腾讯科技(北京)有限公司 内容投射方法及移动终端
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 (zh) * 2017-03-13 2017-06-20 福建中金在线信息科技有限公司 一种视频播放方法及装置
CN108419117B (zh) * 2018-04-28 2020-09-08 中广热点云科技有限公司 一种实现视频小窗口播放的装置及方法

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130318429A1 (en) * 2012-05-22 2013-11-28 Movile Dynamic floating web video player
CN106028143A (zh) * 2016-05-27 2016-10-12 北京小米移动软件有限公司 视频直播方法及装置
CN106993214A (zh) * 2017-03-20 2017-07-28 北京潘达互娱科技有限公司 网络直播方法及装置
CN107092417A (zh) * 2017-03-30 2017-08-25 北京潘达互娱科技有限公司 网络直播方法及装置
CN108235104A (zh) * 2018-01-19 2018-06-29 深圳市富途网络科技有限公司 一种用于移动终端的直播视频浮窗播放方法
CN109451341A (zh) * 2018-10-30 2019-03-08 北京达佳互联信息技术有限公司 视频播放方法、视频播放装置、电子设备及存储介质

Also Published As

Publication number Publication date
US20210250647A1 (en) 2021-08-12
US20220007074A1 (en) 2022-01-06
US11146854B2 (en) 2021-10-12
CN109451341A (zh) 2019-03-08
CN109451341B (zh) 2020-09-11

Similar Documents

Publication Publication Date Title
CN106028166B (zh) 直播过程中直播间切换方法及装置
CN105204846B (zh) 多人视频中视频画面的显示方法、装置及终端设备
US11146854B2 (en) Method for playing videos and electronic device
CN111314768A (zh) 投屏方法、投屏装置、电子设备以及计算机可读存储介质
CN106131583A (zh) 一种直播处理方法、装置、终端设备及系统
CN106791893A (zh) 视频直播方法及装置
CN106028143A (zh) 视频直播方法及装置
CN106506448A (zh) 直播显示方法、装置及终端
CN106231432B (zh) 分享视频的方法及装置
CN111866571A (zh) 在智能电视上编辑内容的方法、装置及存储介质
CN106331830A (zh) 直播处理方法、装置、设备及系统
CN112468873A (zh) 画面显示方法、装置、系统、电子设备、服务器及介质
CN106453032B (zh) 信息推送方法及装置、系统
CN106528632A (zh) 直播界面调整方法、直播界面调整装置和电子设备
CN106101773A (zh) 内容同屏方法、装置和显示设备
WO2018018508A1 (zh) 控制播放的方法及装置
CN106572397B (zh) 视频直播应用中的互动方法及装置
CN106792041A (zh) 内容分享方法及装置
CN106454540B (zh) 基于直播的交互信息的处理方法及装置
CN106658136A (zh) 智能电视控制方法及装置
CN112261453A (zh) 一种传输字幕拼接图的方法、装置及存储介质
CN107124658A (zh) 视频直播方法及装置
CN106358064A (zh) 控制电视机的方法及设备
CN106534750A (zh) 显示控制方法及装置
WO2020186929A1 (zh) 直播中的交互方法、装置、电子设备及存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19878695

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19878695

Country of ref document: EP

Kind code of ref document: A1