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

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

Info

Publication number
WO2019179264A1
WO2019179264A1 PCT/CN2019/075261 CN2019075261W WO2019179264A1 WO 2019179264 A1 WO2019179264 A1 WO 2019179264A1 CN 2019075261 W CN2019075261 W CN 2019075261W WO 2019179264 A1 WO2019179264 A1 WO 2019179264A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
video
browser
current
display area
Prior art date
Application number
PCT/CN2019/075261
Other languages
English (en)
French (fr)
Inventor
冯中坚
陈相镇
吕刚
Original Assignee
杭州海康威视数字技术股份有限公司
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 杭州海康威视数字技术股份有限公司 filed Critical 杭州海康威视数字技术股份有限公司
Priority to EP19771426.4A priority Critical patent/EP3771218A4/en
Priority to US16/981,100 priority patent/US11204688B2/en
Publication of WO2019179264A1 publication Critical patent/WO2019179264A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • 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/4316Generation 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 displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
    • 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/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47202End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting content on demand, e.g. video on demand
    • 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/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/47217End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for controlling playback functions for recorded or on-demand content, e.g. using progress bars, mode or play-point indicators or bookmarks
    • 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/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4782Web browsing, e.g. WebTV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols

Definitions

  • the present application relates to the field of video playback technologies, and in particular, to a video playback method, apparatus, electronic device, and storage medium.
  • the application of the plugin in the browser is very common. After the plugin is embedded in the browser, the browser can directly call the plugin for video playback, such as NPAPI plugin or ActiveX plugin.
  • the plug-in Since the plug-in was invented in the 1990s when the network environment was relatively simple, the developers at that time basically ignored the security issue, so the permissions of the plug-in were higher than those of other programs.
  • the plugin In the process of calling the plugin, the plugin has the right to modify or call the files in the system, which will lead to serious security problems. Therefore, more and more browsers are beginning to disable the plugin.
  • An object of the embodiments of the present application is to provide a video playing method, apparatus, electronic device, and storage medium for playing a page video of a browser.
  • the specific technical solutions are as follows:
  • an embodiment of the present application provides a video playing method, which is applied to a web service program, where the method includes:
  • the web service program is a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the step of displaying the video window on the interface where the current window of the browser is located includes:
  • the video window is displayed as a child window of the current window of the browser.
  • the step of displaying the video window on the interface where the current window of the browser is located includes:
  • the video window is displayed at the top of the browser's current window.
  • the step of displaying the video window as a child window of a current window of the browser includes:
  • the step of displaying the video window in a current window of the browser including:
  • the video window is top displayed on the second display area.
  • the method further includes:
  • the video window is displayed on the target display area.
  • the method further includes:
  • a corresponding operation is performed on the video corresponding to the video playback instruction.
  • an embodiment of the present application provides a video playback apparatus, which is applied to a web service program, where the apparatus includes:
  • a display module configured to display the video window on an interface where a current window of the browser is located
  • a video playback instruction receiving module configured to receive a video playback instruction
  • a playing module configured to play a video corresponding to the video playing instruction in the video window.
  • the web service program is a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the display module is specifically configured to:
  • the video window is displayed as a child window of the current window of the browser.
  • the display module is specifically configured to:
  • the video window is displayed at the top of the browser's current window.
  • the display module includes:
  • a window handle obtaining unit configured to obtain a window handle of a browser current window
  • a setting unit configured to set a window corresponding to the window handle as a parent window of the video window
  • a first initial coordinate information determining unit configured to determine first initial coordinate information of the video window
  • a first display area determining unit configured to determine a first display area corresponding to the first initial coordinate information in the parent window
  • a first display unit configured to display the video window in the first display area.
  • the display module includes:
  • a second initial coordinate information determining unit configured to determine second initial coordinate information of the video window
  • a second display area determining unit configured to determine a second display area corresponding to the second initial coordinate information in a current window of the browser
  • a second display unit configured to display the video window on the second display area.
  • the device further includes:
  • a target coordinate information receiving module configured to receive target coordinate information after the video window changes when the current window changes position or size
  • a target display area determining module configured to determine a target display area corresponding to the target coordinate information in an interface where the current window of the browser is located;
  • a target display module configured to display the video window on the target display area.
  • the device further includes:
  • a video playback control instruction receiving module configured to receive a video playback control instruction after the video window plays the video corresponding to the video playback request
  • An operation mode determining module configured to determine an operation mode corresponding to the video playback control instruction
  • an execution module configured to perform a corresponding operation on the video corresponding to the video play instruction according to the operation mode.
  • an embodiment of the present application provides an electronic device, including a processor and a memory.
  • a memory for storing a computer program
  • the processor when executing the program stored on the memory, implements the following steps:
  • the web service program is a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the step of displaying the video window on the interface where the current window of the browser is located includes:
  • the video window is displayed as a child window of the current window of the browser.
  • the step of displaying the video window on the interface where the current window of the browser is located includes:
  • the video window is displayed at the top of the browser's current window.
  • the step of displaying the video window as a child window of a current window of the browser includes:
  • the step of displaying the video window in a current window of the browser including:
  • the video window is top displayed on the second display area.
  • the processor is further configured to:
  • the video window is displayed on the target display area.
  • the processor is further configured to:
  • a corresponding operation is performed on the video corresponding to the video playback instruction.
  • the embodiment of the present application provides a computer readable storage medium, where the computer readable storage medium stores a computer program, and when the computer program is executed by a processor, implementing any one of the foregoing first aspects. Method steps.
  • the web service program calls the preset interface to create a video window, displays a video window on the interface of the current window of the browser, receives a video playback instruction, and plays a video corresponding to the video playback instruction in the video window.
  • a video window is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the purpose of the page video is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • FIG. 1 is a schematic diagram of a first process of a video playing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of displaying a video window as a sub-window of a current window of a browser according to an embodiment of the present disclosure
  • FIG. 3 is a schematic flowchart of displaying a video window in a current window of a browser according to an embodiment of the present application
  • FIG. 4 is a schematic diagram of a second process of a video playing method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of a third process of a video playing method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a video playing device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • a video playing method provided by an embodiment of the present application can be applied to a web (World Wide Web) service program.
  • the web service program runs in the background after being started, and can communicate with a browser for receiving a browser.
  • FIG. 1 illustrates a video playing method provided by an embodiment of the present application, which is applied to a web service program, and the method may include:
  • S101 Call a preset interface to create a video window.
  • the web service program can be started at boot time, or it can be set to start when the browser is launched. There is no limit here.
  • the web server When the user launches the browser, if the web service program has been started before starting the browser, the web server does not need to be launched again when starting the browser. If the web service program is closed for various reasons before starting the browser, the web service program needs to be started again when the browser is launched.
  • the web service program may be a full-duplex communication protocol websocket service program or an http (Hyper Text Transfer Protocol) service program.
  • the websocket protocol is a new network protocol based on TCP (Transmission Control Protocol) for real-time communication.
  • the http protocol is a transport protocol that transmits hypertext, which makes the browser more efficient and reduces network transmission.
  • the page of the video website is opened.
  • the browser sends a video window creation instruction to the web service program.
  • the condition for triggering the browser to send the video window creation instruction to the web server program is not limited to opening the page of the video website, and when the user opens any webpage containing the video content, the browser is triggered to send a video window creation instruction to the web server program.
  • the browser In order for the browser to send a video window creation instruction to the web service program, the browser is required to establish a communication connection with the web service program.
  • the websocket service program When the web service program is a websocket service program, the websocket service program needs to establish a connection with the browser. After the connection is successfully established, the websocket service program can communicate with the browser; when the web service program is the http service program, the http service program can directly Communicate with the browser.
  • the browser After the browser establishes a communication connection with the web service program, the browser sends a video window creation instruction to the web service program, and the web service program receives the video window creation instruction, and calls the preset interface to create a video window.
  • the preset interface may be an interface created, or may be another interface that can be used to create a video window.
  • S102 Display a video window on the interface of the current window of the browser.
  • the created video window is displayed on the interface of the current window of the browser.
  • the video window After the video window is created, it can be displayed, but if the created video window is hidden for some reason after the video window is created, you need to call the open interface to open the hidden video window, and then the current browser.
  • the video window is displayed on the interface where the window is located.
  • the first way display the video window as a child window of the browser's current window.
  • the web service program After the web service program creates the video window, it determines how the video window is displayed in the browser's current window, for example, the video window is displayed as a child window of the browser's current window, or, in the browser's current The window is topped to display the video window.
  • the video window created by the web service program is not the window of the browser itself, in order to avoid the user's feeling that the video window is separated from the current window of the browser, the video window can be displayed as a child window of the current window of the browser. . That is, the current window is the parent window of the video window, and the current window and the video window are the relationship between the parent and the child window. Thus, the video window is embedded into the current window of the browser in the manner of a child window, and the effect of the video window and the current window is achieved.
  • this mode requires the operating system to support the parent and child window modes, for example, the operating system is a windows system.
  • displaying the video window as a child window of the current window of the browser may include:
  • S201 Acquire a window handle of a current window of the browser.
  • the browser may open multiple windows at the same time, in order to know which window the video window needs to be displayed as a child window, it is necessary to obtain the window handle of the browser's current window.
  • the window handle is the globally unique identifier of a window.
  • the window handle of the browser's current window After obtaining the window handle of the browser's current window, it is known that the video window needs to be displayed as a child window of the window. At this time, the window corresponding to the window handle is set as the parent window of the video window.
  • S203 Determine first initial coordinate information of the video window.
  • the web service program determines how to display the video window in the browser's current window, but if the video window is displayed anywhere in the browser's current window, for example, below the current window's interface. The user cannot immediately view the video window, causing inconvenience for the user to view. Therefore, after the web service program creates the video window, the browser presets the display position of the video window, for example, the middle position of the interface where the current window is located.
  • the browser sends the display position of the video window to the web service program, that is, the first initial coordinate information of the video window is sent to the web service program, and the web service program receives the first initial coordinate information of the video window.
  • the first initial coordinate information may be the coordinates of the vertices of the four corners of the video window, or may be the coordinates of the vertices of the two diagonal corners, and is not limited herein.
  • the window corresponding to the window handle is set as the parent window of the video window. After that, the first initial coordinate information of the video window is determined.
  • S204 Determine a first display area corresponding to the first initial coordinate information in the parent window.
  • the area determined by the coordinates of the vertices of the four corners in the parent window is the first display area.
  • the video window can be displayed in the first display area.
  • the video window is embedded in the browser as a sub-window. In the window, the effect of the video window and the current window is achieved.
  • the second way display the video window in the browser's current window.
  • the video window created by the web service program is not the window of the browser itself, the video window can be displayed independently of the current window of the browser, that is, the video window is displayed in the current window of the browser.
  • the first case is a first case:
  • other windows may obscure a portion of the browser's current window, at which point the browser's current window portion is occluded; or, other windows may overwrite the browser The current window, at this time, the current window of the browser is overwritten.
  • the second case is a first case
  • This method can be applied to any operating system, and an operating system that does not support the parent-child window mode can also adopt this method, for example, a Mac system.
  • displaying the video window at the top of the current window of the browser may include:
  • S301 Determine second initial coordinate information of the video window.
  • the web service program determines how to display the video window in the browser's current window, but if the video window is displayed anywhere in the browser's current window, for example, below the current window's interface. The user cannot immediately view the video window, which is inconvenient for the user to view. Therefore, after the web service program creates the video window, the browser presets the display position of the video window, for example, the middle position of the interface where the current window is located.
  • the browser sends the top display position of the video window to the web service program, that is, sends the second initial coordinate information of the video window to the web service program, and the web service program receives the second initial coordinate information of the video window.
  • the second initial coordinate information may be the coordinates of the vertices of the four corners of the video window, or may be the coordinates of the vertices of the two diagonal corners, and is not limited herein.
  • the web service program Since the web service program has received the second initial coordinate information of the video window after creating the video window, in order to display the video window in the current window of the browser, it is necessary to determine the second initial coordinate information of the video window.
  • S302 Determine a second display area corresponding to the second initial coordinate information in the current window of the browser.
  • the second initial coordinate information is the coordinates of the vertices of the four corners of the video window
  • the area determined by the coordinates of the vertices of the four corners in the current window is the second display area.
  • the video window can be displayed in the second display area.
  • the video window is displayed on the current window of the browser, and since the video window is displayed on the top window of the browser, In the visual aspect, the video window is not separated from the current window of the browser, and the video window is integrated with the current window.
  • a video list is displayed in the video website.
  • the user wants to watch a certain page video
  • the user sends a video play request to the browser, and after receiving the video play request, the browser knows that the user wants to watch the page video corresponding to the video play request.
  • the browser sends a video playback instruction to the web service program.
  • the web service program receives the video play instruction and knows that the user wants to watch the video corresponding to the video play instruction.
  • S104 Play a video corresponding to the video playback instruction in the video window.
  • the video corresponding to the video playback instruction can be played in the video window, whereby the user can view the page video of the browser.
  • the web service program calls the preset interface to create a video window, displays a video window on the interface of the current window of the browser, receives a video playback instruction, and plays a video corresponding to the video playback instruction in the video window.
  • a video window is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the purpose of the page video is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the user may change the position or size of the current window of the browser for various reasons during the process of watching the video, for example, the user opens the word file during the process of watching the video through the browser, and at this time, the mobile browsing is required.
  • the current window of the device is in an inconspicuous position and shrinks the current window of the browser to view the word file.
  • the method may further include:
  • S105 Receive target coordinate information after the video window is changed.
  • the browser When playing the video corresponding to the video playback instruction in the video window, if the position or size of the current window of the browser changes, the browser calculates the coordinate information of the video window, that is, the target coordinate information after the video window changes, and the target coordinate The information is sent to a web service program, and the web service program receives the target coordinate information.
  • S106 Determine a target display area corresponding to the target coordinate information in the interface where the current window of the browser is located.
  • the coordinate information after the video window is changed is obtained.
  • determining the target display area corresponding to the target coordinate information in the interface of the current window of the browser may be: determining the target display of the target coordinate information in the parent window. region.
  • the target coordinate information is determined to be in the target display area corresponding to the current window of the browser, and may be: determining the target display area corresponding to the target coordinate information in the current window.
  • the video window can be displayed in the target display area.
  • the video window When the video window is displayed as a child window of the current window of the browser, the video window may be directly displayed in the target display area; when the video window is displayed on the current window of the browser, the video window is displayed in the target display area, To: Display the video window to the top of the target display area.
  • the effect that the video window changes with the change of the current window of the browser is achieved.
  • the video window changes with the current window of the browser and includes not only the position change and the size change, but also other window changes, such as window hiding, window folding or window destruction, etc., which are not limited herein.
  • the method may further include:
  • the browser Since the user may play control on the video during the process of watching the video, for example, playback, at this time, the browser sends a video playback control instruction to the web service program, and the web service program receives the video playback control instruction.
  • the user After receiving the video playback control command, determining an operation mode corresponding to the video playback control instruction, after determining the operation mode, the user is notified of what operation the user needs to perform on the viewed video.
  • the corresponding operation may be performed on the video corresponding to the video playback instruction according to the operation mode, for example, playing back the video.
  • the web service program can implement the video operation of the video corresponding to the video playback instruction by receiving the video control instruction.
  • the embodiment of the present application further provides a video playing device, as shown in FIG. 6, applied to a web service program, where the device may include:
  • the creating module 601 is configured to invoke a preset interface to create a video window.
  • the display module 602 is configured to display the video window on an interface where the current window of the browser is located.
  • the video play instruction receiving module 603 is configured to receive a video play instruction.
  • the playing module 604 is configured to play a video corresponding to the video playing instruction in the video window.
  • the web service program calls the preset interface to create a video window, displays a video window on the interface of the current window of the browser, receives a video playback instruction, and plays a video corresponding to the video playback instruction in the video window.
  • a video window is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the purpose of the page video is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the web service program may be a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the display module 603 may be specifically configured to:
  • the video window is displayed as a child window of the current window of the browser.
  • the display module 603 may be specifically configured to:
  • the video window is displayed at the top of the browser's current window.
  • the display module 603 may include:
  • a window handle acquisition unit for obtaining a window handle of a browser's current window.
  • a setting unit configured to set a window corresponding to the window handle as a parent window of the video window.
  • the first initial coordinate information determining unit is configured to determine first initial coordinate information of the video window.
  • the first display area determining unit is configured to determine a first display area corresponding to the first initial coordinate information in the parent window.
  • a first display unit configured to display the video window in the first display area.
  • the display module 603 may include:
  • the second initial coordinate information determining unit is configured to determine second initial coordinate information of the video window.
  • the second display area determining unit is configured to determine the second display area corresponding to the second initial coordinate information in the current window of the browser.
  • a second display unit configured to display the video window on the second display area.
  • the device may further include:
  • the target coordinate information receiving module is configured to receive target coordinate information after the video window changes when the current window changes position or size.
  • the target display area determining module is configured to determine the target display area corresponding to the target coordinate information in the interface of the current window of the browser.
  • a target display module configured to display the video window on the target display area.
  • the device may further include:
  • the video play control instruction receiving module is configured to receive a video play control instruction after the video window plays the video corresponding to the video play request.
  • the operation mode determining module is configured to determine an operation mode corresponding to the video playback control instruction.
  • an execution module configured to perform a corresponding operation on the video corresponding to the video play instruction according to the operation mode.
  • the embodiment of the present application further provides an electronic device, as shown in FIG. 7, including a processor 701 and a memory 702.
  • a memory 702 configured to store a computer program
  • the processor 701 is configured to implement a video playing method when the web service program stored on the memory 702 is executed.
  • the method includes the following steps:
  • the preset interface is invoked to create a video window; the video window is displayed on the interface of the current window of the browser; the video playback instruction is received; and the video corresponding to the video playback instruction is played in the video window.
  • the web service program calls the preset interface to create a video window, displays a video window on the interface of the current window of the browser, receives a video playback instruction, and plays a video corresponding to the video playback instruction in the video window.
  • a video window is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the purpose of the page video is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the web service program may be a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the step of displaying the video window on the interface of the current window of the browser may include:
  • the video window is displayed as a child window of the current window of the browser.
  • the step of displaying the video window on the interface of the current window of the browser may include:
  • the video window is displayed at the top of the browser's current window.
  • the step of displaying the video window as a sub-window of a current window of the browser may include:
  • Receiving first initial coordinate information of the video window acquiring a window handle of the current window of the browser; setting a window corresponding to the window handle as a parent window of the video window; determining first initial coordinate information of the video window; The first initial coordinate information is in a corresponding first display area in the parent window; the video window is displayed on the first display area.
  • the step of displaying the video window in the current window of the browser may include:
  • Determining a second initial coordinate information of the video window determining a second display area corresponding to the second initial coordinate information in a current window of the browser; and displaying the video window on the second display area.
  • the method may further include:
  • the method may further include:
  • the memory mentioned in the above electronic device may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk storage.
  • NVM non-volatile memory
  • the memory may also be at least one storage device located away from the aforementioned processor.
  • the above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processing (DSP), dedicated integration.
  • CPU central processing unit
  • NP network processor
  • DSP digital signal processing
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • the embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a web service program, and the web service program is implemented by a processor to implement a video playing method, and the method includes the following steps:
  • the preset interface is invoked to create a video window; the video window is displayed on the interface of the current window of the browser; the video playback instruction is received; and the video corresponding to the video playback instruction is played in the video window.
  • the web service program calls the preset interface to create a video window, displays a video window on the interface of the current window of the browser, receives a video playback instruction, and plays a video corresponding to the video playback instruction in the video window.
  • a video window is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the purpose of the page video is created through a web service program, and the created video window is displayed on the interface of the current window of the browser, and then the video is played through the video window, and the video is played without loading the plug-in, so that the browser does not play through the plug-in.
  • the web service program may be a full-duplex communication protocol websocket service program or a hypertext transfer protocol http service program.
  • the step of displaying the video window on the interface of the current window of the browser may include:
  • the video window is displayed as a child window of the current window of the browser.
  • the step of displaying the video window on the interface where the current window of the browser is located includes:
  • the video window is displayed at the top of the browser's current window.
  • the step of displaying the video window as a sub-window of a current window of the browser may include:
  • Obtaining a window handle of a current window of the browser setting a window corresponding to the window handle as a parent window of the video window; determining first initial coordinate information of the video window; determining that the first initial coordinate information is in the parent a corresponding first display area in the window; displaying the video window in the first display area.
  • the step of displaying the video window in the current window of the browser may include:
  • Determining a second initial coordinate information of the video window determining a second display area corresponding to the second initial coordinate information in a current window of the browser; and displaying the video window on the second display area.
  • the method may further include:
  • the method may further include:

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Information Transfer Between Computers (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

一种视频播放方法、装置、电子设备及存储介质,该方法中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。

Description

一种视频播放方法、装置、电子设备及存储介质
本申请要求于2018年03月22日提交中国专利局、申请号为201810240270.8申请名称为“一种视频播放方法、装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及视频播放技术领域,特别是涉及一种视频播放方法、装置、电子设备及存储介质。
背景技术
插件在浏览器中的应用已经十分普遍,在将插件嵌入到浏览器中后,浏览器能够直接调用插件进行视频播放,例如:NPAPI插件或ActiveX插件。
鉴于插件是在网络环境相对简单的九十年代被发明的,当时的开发者基本都忽略掉了安全性问题,因此,相对于其它程序来说,插件的权限较高。使得浏览器在调用插件的过程中,插件有权对系统内的文件进行修改或调用,这将导致严重的安全问题,因此,目前越来越多的浏览器开始禁用插件。
浏览器禁用插件后,导致浏览器无法通过加载插件的方式来播放视频,因此,目前,亟需一种不通过插件播放浏览器的页面视频的方法。
发明内容
本申请实施例的目的在于提供一种视频播放方法、装置、电子设备及存储介质,以播放浏览器的页面视频。具体技术方案如下:
第一方面,本申请实施例提供了一种视频播放方法,应用于web服务程序,所述方法包括:
调用预设接口创建视频窗口;
在浏览器的当前窗口所在界面显示所述视频窗口;
接收视频播放指令;
在所述视频窗口播放所述视频播放指令对应的视频。
可选的,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
可选的,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
可选的,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
在浏览器的当前窗口置顶显示所述视频窗口。
可选的,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,包括:
获取浏览器的当前窗口的窗口句柄;
将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
确定视频窗口的第一初始坐标信息;
确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;
将所述视频窗口显示于所述第一显示区域。
可选的,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,包括:
确定视频窗口的第二初始坐标信息;
确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
将所述视频窗口置顶显示于所述第二显示区域。
可选的,当所述当前窗口发生位置变化或大小变化时,所述方法还包括:
接收视频窗口变化后的目标坐标信息;
确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
将所述视频窗口显示于所述目标显示区域。
可选的,在所述视频窗口播放所述视频播放请求对应的视频的步骤之后,所述方法还包括:
接收视频播放控制指令;
确定所述视频播放控制指令对应的操作方式;
根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
第二方面,本申请实施例提供了一种视频播放装置,应用于web服务程序,所述装置包括:
创建模块,用于调用预设接口创建视频窗口;
显示模块,用于在浏览器的当前窗口所在界面显示所述视频窗口;
视频播放指令接收模块,用于接收视频播放指令;
播放模块,用于在所述视频窗口播放所述视频播放指令对应的视频。
可选的,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
可选的,所述显示模块,具体用于:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
可选的,所述显示模块,具体用于:
在浏览器的当前窗口置顶显示所述视频窗口。
可选的,所述显示模块,包括:
窗口句柄获取单元,用于获取浏览器的当前窗口的窗口句柄;
设置单元,用于将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
第一初始坐标信息确定单元,用于确定视频窗口的第一初始坐标信息;
第一显示区域确定单元,用于确定所述第一初始坐标信息在所述父窗口 中对应的第一显示区域;
第一显示单元,用于将所述视频窗口显示于所述第一显示区域。
可选的,所述显示模块,包括:
第二初始坐标信息确定单元,用于确定视频窗口的第二初始坐标信息;
第二显示区域确定单元,用于确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
第二显示单元,用于将所述视频窗口置顶显示于所述第二显示区域。
可选的,所述装置还包括:
目标坐标信息接收模块,用于当所述当前窗口发生位置变化或大小变化时,接收视频窗口变化后的目标坐标信息;
目标显示区域确定模块,用于确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
目标显示模块,用于将所述视频窗口显示于所述目标显示区域。
可选的,所述装置还包括:
视频播放控制指令接收模块,用于在所述视频窗口播放所述视频播放请求对应的视频之后,接收视频播放控制指令;
操作方式确定模块,用于确定所述视频播放控制指令对应的操作方式;
执行模块,用于根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
第三方面,本申请实施例提供了一种电子设备,包括处理器和存储器,
存储器,用于存放计算机程序;
处理器,用于执行存储器上所存放的程序时,实现如下步骤:
调用预设接口创建视频窗口;
在浏览器的当前窗口所在界面显示所述视频窗口;
接收视频播放指令;
在所述视频窗口播放所述视频播放指令对应的视频。
可选的,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
可选的,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
可选的,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
在浏览器的当前窗口置顶显示所述视频窗口。
可选的,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,包括:
获取浏览器的当前窗口的窗口句柄;
将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
确定视频窗口的第一初始坐标信息;
确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;
将所述视频窗口显示于所述第一显示区域。
可选的,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,包括:
确定视频窗口的第二初始坐标信息;
确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
将所述视频窗口置顶显示于所述第二显示区域。
可选的,所述处理器还用于执行:
接收视频窗口变化后的目标坐标信息;
确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
将所述视频窗口显示于所述目标显示区域。
可选的,所述处理器还用于执行:
接收视频播放控制指令;
确定所述视频播放控制指令对应的操作方式;
根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面任一所述的方法步骤。
本申请实施例中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。
附图说明
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的视频播放方法的第一种流程示意图;
图2为本申请实施例提供的将视频窗口作为浏览器的当前窗口的子窗口进行显示的流程示意图;
图3为本申请实施例提供的在浏览器的当前窗口置顶显示视频窗口的流程示意图;
图4为本申请实施例提供的视频播放方法的第二种流程示意图;
图5为本申请实施例提供的视频播放方法的第三种流程示意图;
图6为本申请实施例提供的视频播放装置的结构示意图;
图7为本申请实施例提供的电子设备的结构示意图。
具体实施方式
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
下面通过具体实施例对本申请实施例提供的视频播放方法进行详细说明。
本申请实施例所提供的一种视频播放方法可以应用于web(World Wide Web,万维网)服务程序,该web服务程序在启动后在后台运行,可与浏览器进行通信,用于接收浏览器发出的指令,并执行相应的操作。
参见图1,图1示出了本申请实施例提供的一种视频播放方法,应用于web服务程序,该方法可以包括:
S101:调用预设接口创建视频窗口。
web服务程序可以在开机时启动,也可以设定在启动浏览器时启动,在此不做任何限定。
在用户启动浏览器时,如果在启动浏览器之前已启动了web服务程序,则启动浏览器时无需再次启动web服务程序。如果在启动浏览器之前由于各种原因关闭了web服务程序,则在启动浏览器时,需要再次启动web服务程序。
在一种可能的实现方式中,该web服务程序可以为全双工通信协议websocket服务程序或http(Hyper Text Transfer Protocol,超文本传输协议)服务程序。
其中,websocket协议是基于TCP(Transmission Control Protocol,传输控制协议)的一种新的网络协议,用于实现即时通讯。http协议是一种传输超文本的传输协议,可以使浏览器更加高效,减少网络传输。
用户启动浏览器后,并想要观看某一视频网站内的视频时,打开该视频网站的页面,此时,浏览器会向web服务程序发送视频窗口创建指令。当然,触发浏览器向web服务器程序发送视频窗口创建指令的条件不限于打开视频网站的页面,在用户打开任意包含视频内容的网页时,均会触发浏览器向web服务器程序发送视频窗口创建指令。
为了使浏览器可以向web服务程序发送视频窗口创建指令,需要浏览器与web服务程序建立通信连接。
当web服务程序为websocket服务程序时,websocket服务程序需要与浏览器建立连接,成功建立连接后,websocket服务程序可与浏览器进行通信;当web服务程序为http服务程序时,http服务程序可直接与浏览器进行通信。
在浏览器与web服务程序建立通信连接后,浏览器向web服务程序发送视频窗口创建指令,web服务程序接收该视频窗口创建指令,调用预设接口创建视频窗口。
示例性的,该预设接口可以为创建接口,也可以为其它约定的可用于创建视频窗口的接口。
S102:在浏览器的当前窗口所在界面显示视频窗口。
为了使用户可以观看视频,在创建视频窗口后,在浏览器的当前窗口所在界面显示所创建的视频窗口。
一般情况下,视频窗口创建后,即可显示,但是如果在视频窗口创建后,由于某些原因导致隐藏了创建的视频窗口,则需要调用打开接口打开隐藏的视频窗口,然后在浏览器的当前窗口所在界面显示视频窗口。
在浏览器的当前窗口所在界面显示视频窗口的方式有多种,包括并不限于以下几种:
第一种方式:将视频窗口作为浏览器的当前窗口的子窗口进行显示。
在web服务程序创建视频窗口后,就确定了通过何种方式在浏览器的当前窗口显示视频窗口,例如:将视频窗口作为浏览器的当前窗口的子窗口进行显示,或者,在浏览器的当前窗口置顶显示视频窗口。
由于web服务程序创建的视频窗口,并不是浏览器本身的窗口,因此,为了避免用户产生视频窗口与浏览器的当前窗口脱离的感觉,可以将视频窗口作为浏览器的当前窗口的子窗口进行显示。即当前窗口为视频窗口的父窗口,当前窗口与视频窗口是父子窗口的关系,由此,视频窗口以子窗口的方式嵌入到浏览器的当前窗口中,达到视频窗口与当前窗口一体的效果。
由于当前窗口与视频窗口是父子窗口的关系,因此,本方式需要操作系统支持父子窗口模式,例如:操作系统为windows系统等。
参见图2,将视频窗口作为浏览器的当前窗口的子窗口进行显示可以包括:
S201:获取浏览器的当前窗口的窗口句柄。
由于浏览器可能同时打开多个窗口,为了获知需要将视频窗口作为哪一个窗口的子窗口进行显示,需要获取浏览器的当前窗口的窗口句柄。其中,窗口句柄为一个窗口的全局唯一标识。
S202:将窗口句柄对应的窗口设置为视频窗口的父窗口。
在获取了浏览器的当前窗口的窗口句柄后,即获知了需要将视频窗口作为哪一个窗口的子窗口进行显示,此时,将窗口句柄对应的窗口设置为视频窗口的父窗口。
S203:确定视频窗口的第一初始坐标信息。
虽然在web服务程序创建视频窗口后,就确定了通过何种方式在浏览器的当前窗口显示视频窗口,但是如果视频窗口显示在浏览器的当前窗口的任意位置,例如:当前窗口所在界面的下方,则用户无法立刻查看到视频窗口,造成用户查看的不便性,因此,在web服务程序创建视频窗口后,浏览器会预先设定视频窗口的显示位置,例如:当前窗口所在界面的中间位置。
然后,浏览器将视频窗口的显示位置发送至web服务程序,即将视频窗口 的第一初始坐标信息发送至web服务程序,web服务程序接收视频窗口的第一初始坐标信息。
其中,该第一初始坐标信息可以为视频窗口的四个角的顶点的坐标,也可以为两个对角的顶点的坐标,在此不做任何限定。
由于在创建视频窗口后,web服务程序已接收到了视频窗口的第一初始坐标信息,因此,为了将视频窗口显示于浏览器的当前窗口,在将窗口句柄对应的窗口设置为视频窗口的父窗口后,确定视频窗口的第一初始坐标信息。
S204:确定第一初始坐标信息在父窗口中对应的第一显示区域。
在确定视频窗口的第一初始坐标信息后,为了确定视频窗口显示在父窗口中的位置,需要确定第一初始坐标信息在父窗口中对应的第一显示区域。
例如:假设第一初始坐标信息为视频窗口的四个角的顶点的坐标,则通过四个角的顶点的坐标在父窗口中确定的区域即为第一显示区域。
S205:将视频窗口显示于第一显示区域。
在确定了第一显示区域后,就可将视频窗口显示于第一显示区域。
由此,通过将当前窗口设置为视频窗口的父窗口,并将视频窗口显示于通过第一初始坐标信息确定的第一显示区域的方式,使得视频窗口以子窗口的方式嵌入到浏览器的当前窗口中,达到视频窗口与当前窗口一体的效果。
第二种方式:在浏览器的当前窗口置顶显示视频窗口。
由于web服务程序创建的视频窗口,并不是浏览器本身的窗口,因此,该视频窗口可以独立于浏览器的当前窗口进行显示,即在浏览器的当前窗口置顶显示视频窗口。
由于浏览器的当前窗口可能存在被覆盖或者部分被遮挡的情况,此时,视频窗口不再置顶显示于浏览器的当前窗口,其中,浏览器的当前窗口被覆盖或者部分被遮挡的情况有多种,包括但不限于以下几种:
第一种情况:
当用户开启除浏览器以外的其它窗口时,例如:文本窗口,其它窗口可 能遮挡浏览器的当前窗口的某一部分,此时,浏览器的当前窗口部分被遮挡;或者,其它窗口可能覆盖浏览器的当前窗口,此时,浏览器的当前窗口被覆盖。
第二种情况:
当浏览器的其它窗口被开启时,被开启的其它窗口就成为了浏览器的当前窗口,此时,浏览器原有的当前窗口被覆盖。
本方式可以应用于任何操作系统,不支持父子窗口模式的操作系统也可以采用该方式,例如:Mac系统。
参见图3,在浏览器的当前窗口置顶显示视频窗口可以包括:
S301:确定视频窗口的第二初始坐标信息。
虽然在web服务程序创建视频窗口后,就确定了通过何种方式在浏览器的当前窗口显示视频窗口,但是如果视频窗口显示在浏览器的当前窗口的任意位置,例如:当前窗口所在界面的下方,则用户无法立刻查看到视频窗口,造成用户查看不方便,因此,在web服务程序创建视频窗口后,浏览器会预先设定视频窗口的显示位置,例如:当前窗口所在界面的中间位置。
然后,浏览器将视频窗口的置顶显示位置发送至web服务程序,即将视频窗口的第二初始坐标信息发送至web服务程序,web服务程序接收视频窗口的第二初始坐标信息。
其中,该第二初始坐标信息可以为视频窗口的四个角的顶点的坐标,也可以为两个对角的顶点的坐标,在此不做任何限定。
由于在创建视频窗口后,web服务程序已接收到了视频窗口的第二初始坐标信息,因此,为了将视频窗口显示于浏览器的当前窗口,需要确定视频窗口的第二初始坐标信息。
S302:确定第二初始坐标信息在浏览器的当前窗口中对应的第二显示区域。
在确定视频窗口的第二初始坐标信息后,为了确定视屏窗口置顶显示的位置,需要确定第二初始坐标信息在浏览器的当前窗口中对应的第二显示区 域。
例如:假设第二初始坐标信息为视频窗口的四个角的顶点的坐标,则通过四个角的顶点的坐标在当前窗口中确定的区域即为第二显示区域。
S303:将视频窗口置顶显示于第二显示区域。
在确定了第二显示区域后,就可将视频窗口显示于第二显示区域。
由此,通过将视频窗口置顶显示于通过第二初始坐标信息确定的第二显示区域的方式,使得在浏览器的当前窗口置顶显示视频窗口,由于视频窗口是置顶显示在浏览器的当前窗口,使得在视觉上,视频窗口并未与浏览器的当前窗口脱离,达到视频窗口与当前窗口一体的效果。
S103:接收视频播放指令。
通常视频网站中显示有视频列表,当用户想要观看某一页面视频时,向浏览器发送视频播放请求,浏览器接收到视频播放请求后,获知用户想要观看该视频播放请求对应的页面视频,此时,浏览器向web服务程序发送视频播放指令。web服务程序接收视频播放指令,获知用户想要观看该视频播放指令对应的视频。
S104:在视频窗口播放视频播放指令对应的视频。
在接收视频播放指令后,即可在视频窗口播放视频播放指令对应的视频,由此,用户即可观看到浏览器的页面视频。
本申请实施例中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。
由于用户在观看视频的过程中,可能会由于各种原因改变浏览器的当前窗口的位置或大小,例如:用户在通过浏览器观看视频的过程中,打开了word文件,此时,需要移动浏览器的当前窗口至不显眼的位置,并缩小浏览器的 当前窗口,以便查看word文件。
为了达到视频窗口与当前窗口一体的效果,在浏览器的当前窗口的位置或大小发生变化时,需要动态改变视频窗口的位置和大小,因此,当前窗口发生位置变化或大小变化时,在图1所示方法的基础上,如图4所示,该方法还可以包括:
S105:接收视频窗口变化后的目标坐标信息。
在视频窗口中播放视频播放指令对应的视频时,如果浏览器的当前窗口的位置或大小发生变化,浏览器计算视频窗口的坐标信息,即视频窗口变化后的目标坐标信息,并将该目标坐标信息发送至web服务程序,web服务程序接收该目标坐标信息。
S106:确定目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域。
在接收到目标坐标信息后,获知视频窗口改变后的坐标信息,为了确定视频窗口改变后的显示位置,需要确定目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域。
当视频窗口作为浏览器的当前窗口的子窗口进行显示时,确定目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域,可以为:确定目标坐标信息在父窗口中对应的目标显示区域。
当视频窗口置顶显示于浏览器的当前窗口时,确定目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域,可以为:确定目标坐标信息在当前窗口中对应的目标显示区域。
S107:将视频窗口显示于目标显示区域。
在确定了目标显示区域后,就可将视频窗口显示于目标显示区域。
当视频窗口作为浏览器的当前窗口的子窗口进行显示时,可以直接将视频窗口显示于目标显示区域;当视频窗口置顶显示于浏览器的当前窗口时,将视频窗口显示于目标显示区域,可以为:将视频窗口置顶显示于目标显示区域。
由此,通过接收视频窗口变化后的目标坐标信息,并将视频窗口显示于通过目标坐标信息确定的目标显示区域的方式,达到了视频窗口随浏览器的当前窗口的变化而变化的效果。
视频窗口随浏览器的当前窗口的变化而变化并不仅包括位置变化和大小变化,还可以包括其他窗口的变化,例如:窗口隐藏、窗口折叠或窗口销毁等,在此并不做任何限定。
在图1所示方法的基础上,如图5所示,该方法还可以包括:
S108:接收视频播放控制指令。
由于用户在观看视频的过程中,可能对视频进行播放控制,例如:回放,此时,浏览器向web服务程序发送视频播放控制指令,web服务程序接收该视频播放控制指令。
S109:确定视频控制指令对应的操作方式。
在接收到视频播放控制指令后,确定视频播放控制指令对应的操作方式,在确定了操作方式后,即获知用户需要对所观看的视频执行何种操作。
S110:根据操作方式,对视频播放指令对应的视频执行对应的操作。
在确定了视频控制指令对应的操作方式后,即可根据操作方式,对视频播放指令对应的视频执行对应的操作,例如:回放视频。
由此,web服务程序通过接收视频控制指令的方式,可以实现对视频播放指令对应的视频进行视频操作的目的。
与上述方法实施例相对应,本申请实施例还提供一种视频播放装置,如图6所示,应用于web服务程序,所述装置可以包括:
创建模块601,用于调用预设接口创建视频窗口。
显示模块602,用于在浏览器的当前窗口所在界面显示所述视频窗口。
视频播放指令接收模块603,用于接收视频播放指令。
播放模块604,用于在所述视频窗口播放所述视频播放指令对应的视频。
本申请实施例中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。
在本申请的一种实现方式中,所述web服务程序可以为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
在本申请的一种实现方式中,所述显示模块603,可以具体用于:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
在本申请的一种实现方式中,所述显示模块603,可以具体用于:
在浏览器的当前窗口置顶显示所述视频窗口。
在本申请的一种实现方式中,所述显示模块603,可以包括:
窗口句柄获取单元,用于获取浏览器的当前窗口的窗口句柄。
设置单元,用于将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口。
第一初始坐标信息确定单元,用于确定视频窗口的第一初始坐标信息。
第一显示区域确定单元,用于确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域。
第一显示单元,用于将所述视频窗口显示于所述第一显示区域。
在本申请的一种实现方式中,所述显示模块603,可以包括:
第二初始坐标信息确定单元,用于确定视频窗口的第二初始坐标信息。
第二显示区域确定单元,用于确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域。
第二显示单元,用于将所述视频窗口置顶显示于所述第二显示区域。
在本申请的一种实现方式中,所述装置还可以包括:
目标坐标信息接收模块,用于当所述当前窗口发生位置变化或大小变化时,接收视频窗口变化后的目标坐标信息。
目标显示区域确定模块,用于确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域。
目标显示模块,用于将所述视频窗口显示于所述目标显示区域。
在本申请的一种实现方式中,所述装置还可以包括:
视频播放控制指令接收模块,用于在所述视频窗口播放所述视频播放请求对应的视频之后,接收视频播放控制指令。
操作方式确定模块,用于确定所述视频播放控制指令对应的操作方式。
执行模块,用于根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
本申请实施例还提供了一种电子设备,如图7所示,包括处理器701和存储器702,
存储器702,用于存放计算机程序;
处理器701,用于执行存储器702上所存放的web服务程序时,实现视频播放方法,该方法包括如下步骤:
调用预设接口创建视频窗口;在浏览器的当前窗口所在界面显示所述视频窗口;接收视频播放指令;在所述视频窗口播放所述视频播放指令对应的视频。
本申请实施例中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。
在本申请的一种实现方式中,所述web服务程序可以为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
在本申请的一种实现方式中,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,可以包括:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
在本申请的一种实现方式中,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,可以包括:
在浏览器的当前窗口置顶显示所述视频窗口。
在本申请的一种实现方式中,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,可以包括:
接收视频窗口的第一初始坐标信息;获取浏览器的当前窗口的窗口句柄;将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;确定视频窗口的第一初始坐标信息;确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;将所述视频窗口显示于所述第一显示区域。
在本申请的一种实现方式中,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,可以包括:
确定视频窗口的第二初始坐标信息;确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;将所述视频窗口置顶显示于所述第二显示区域。
在本申请的一种实现方式中,当所述当前窗口发生位置变化或大小变化时,所述方法还可以包括:
接收视频窗口变化后的目标坐标信息;确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;将所述视频窗口显示于所述目标显示区域。
在本申请的一种实现方式中,在所述视频窗口播放所述视频播放请求对应的视频的步骤之后,所述方法还可以包括:
接收视频播放控制指令;确定所述视频播放控制指令对应的操作方式;根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
上述电子设备提到的存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质内存储有web服务程序,所述web服务程序被处理器执行时实现视频播放方法,该方法包括如下步骤:
调用预设接口创建视频窗口;在浏览器的当前窗口所在界面显示所述视频窗口;接收视频播放指令;在所述视频窗口播放所述视频播放指令对应的视频。
本申请实施例中,web服务程序调用预设接口创建视频窗口,在浏览器的当前窗口所在界面显示视频窗口,接收视频播放指令,在视频窗口播放视频播放指令对应的视频。本申请中,通过web服务程序创建视频窗口,并在浏览器的当前窗口所在界面显示创建的视频窗口,然后通过该视频窗口播放视频,无需通过加载插件来播放视频,达到了不通过插件播放浏览器的页面视频的目的。
在本申请的一种实现方式中,所述web服务程序可以为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
在本申请的一种实现方式中,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,可以包括:
将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
在本申请的一种实现方式中,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
在浏览器的当前窗口置顶显示所述视频窗口。
在本申请的一种实现方式中,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,可以包括:
获取浏览器的当前窗口的窗口句柄;将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;确定视频窗口的第一初始坐标信息;确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;将所述视频窗口显示于所述第一显示区域。
在本申请的一种实现方式中,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,可以包括:
确定视频窗口的第二初始坐标信息;确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;将所述视频窗口置顶显示于所述第二显示区域。
在本申请的一种实现方式中,当所述当前窗口发生位置变化或大小变化时,所述方法还可以包括:
接收视频窗口变化后的目标坐标信息;确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;将所述视频窗口显示于所述目标显示区域。
在本申请的一种实现方式中,在所述视频窗口播放所述视频播放请求对应的视频的步骤之后,所述方法还可以包括:
接收视频播放控制指令;确定所述视频播放控制指令对应的操作方式;根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、 “包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图6所示的装置实施例、图7所示的电子设备实施例以及计算机可读存储介质实施例而言,由于其基本相似于图1所示的方法实施例,所以描述的比较简单,相关之处参见图1所示的方法实施例的部分说明即可。
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。

Claims (25)

  1. 一种视频播放方法,其特征在于,应用于web服务程序,所述方法包括:
    调用预设接口创建视频窗口;
    在浏览器的当前窗口所在界面显示所述视频窗口;
    接收视频播放指令;
    在所述视频窗口播放所述视频播放指令对应的视频。
  2. 根据权利要求1所述的方法,其特征在于,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
  3. 根据权利要求1所述的方法,其特征在于,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
    将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
  4. 根据权利要求1所述的方法,其特征在于,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
    在浏览器的当前窗口置顶显示所述视频窗口。
  5. 根据权利要求3所述的方法,其特征在于,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,包括:
    获取浏览器的当前窗口的窗口句柄;
    将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
    确定视频窗口的第一初始坐标信息;
    确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;
    将所述视频窗口显示于所述第一显示区域。
  6. 根据权利要求4所述的方法,其特征在于,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,包括:
    确定视频窗口的第二初始坐标信息;
    确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
    将所述视频窗口置顶显示于所述第二显示区域。
  7. 根据权利要求1所述的方法,其特征在于,当所述当前窗口发生位置变化或大小变化时,所述方法还包括:
    接收视频窗口变化后的目标坐标信息;
    确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
    将所述视频窗口显示于所述目标显示区域。
  8. 根据权利要求1所述的方法,其特征在于,在所述视频窗口播放所述视频播放请求对应的视频的步骤之后,所述方法还包括:
    接收视频播放控制指令;
    确定所述视频播放控制指令对应的操作方式;
    根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
  9. 一种视频播放装置,其特征在于,应用于web服务程序,所述装置包括:
    创建模块,用于调用预设接口创建视频窗口;
    显示模块,用于在浏览器的当前窗口所在界面显示所述视频窗口;
    视频播放指令接收模块,用于接收视频播放指令;
    播放模块,用于在所述视频窗口播放所述视频播放指令对应的视频。
  10. 根据权利要求9所述的装置,其特征在于,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
  11. 根据权利要求9所述的装置,其特征在于,所述显示模块,具体用于:
    将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
  12. 根据权利要求9所述的装置,其特征在于,所述显示模块,具体用于:
    在浏览器的当前窗口置顶显示所述视频窗口。
  13. 根据权利要求11所述的装置,其特征在于,所述显示模块,包括:
    窗口句柄获取单元,用于获取浏览器的当前窗口的窗口句柄;
    设置单元,用于将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
    第一初始坐标信息确定单元,用于确定视频窗口的第一初始坐标信息;
    第一显示区域确定单元,用于确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;
    第一显示单元,用于将所述视频窗口显示于所述第一显示区域。
  14. 根据权利要求12所述的装置,其特征在于,所述显示模块,包括:
    第二初始坐标信息确定单元,用于确定视频窗口的第二初始坐标信息;
    第二显示区域确定单元,用于确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
    第二显示单元,用于将所述视频窗口置顶显示于所述第二显示区域。
  15. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    目标坐标信息接收模块,用于当所述当前窗口发生位置变化或大小变化时,接收视频窗口变化后的目标坐标信息;
    目标显示区域确定模块,用于确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
    目标显示模块,用于将所述视频窗口显示于所述目标显示区域。
  16. 根据权利要求9所述的装置,其特征在于,所述装置还包括:
    视频播放控制指令接收模块,用于在所述视频窗口播放所述视频播放请 求对应的视频之后,接收视频播放控制指令;
    操作方式确定模块,用于确定所述视频播放控制指令对应的操作方式;
    执行模块,用于根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
  17. 一种电子设备,其特征在于,包括处理器和存储器,
    存储器,用于存放计算机程序;
    处理器,用于执行存储器上所存放的程序时,实现如下步骤:
    调用预设接口创建视频窗口;
    在浏览器的当前窗口所在界面显示所述视频窗口;
    接收视频播放指令;
    在所述视频窗口播放所述视频播放指令对应的视频。
  18. 根据权利要求17所述的电子设备,其特征在于,所述web服务程序为全双工通信协议websocket服务程序或超文本传输协议http服务程序。
  19. 根据权利要求17所述的电子设备,其特征在于,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
    将所述视频窗口作为浏览器的当前窗口的子窗口进行显示。
  20. 根据权利要求17所述的电子设备,其特征在于,所述在浏览器的当前窗口所在界面显示所述视频窗口的步骤,包括:
    在浏览器的当前窗口置顶显示所述视频窗口。
  21. 根据权利要求19所述的电子设备,其特征在于,所述将所述视频窗口作为浏览器的当前窗口的子窗口进行显示的步骤,包括:
    获取浏览器的当前窗口的窗口句柄;
    将所述窗口句柄对应的窗口设置为所述视频窗口的父窗口;
    确定视频窗口的第一初始坐标信息;
    确定所述第一初始坐标信息在所述父窗口中对应的第一显示区域;
    将所述视频窗口显示于所述第一显示区域。
  22. 根据权利要求20所述的电子设备,其特征在于,所述在浏览器的当前窗口置顶显示所述视频窗口的步骤,包括:
    确定视频窗口的第二初始坐标信息;
    确定所述第二初始坐标信息在所述浏览器的当前窗口中对应的第二显示区域;
    将所述视频窗口置顶显示于所述第二显示区域。
  23. 根据权利要求17所述的电子设备,其特征在于,所述处理器还用于执行:
    接收视频窗口变化后的目标坐标信息;
    确定所述目标坐标信息在浏览器的当前窗口所在界面中对应的目标显示区域;
    将所述视频窗口显示于所述目标显示区域。
  24. 根据权利要求17所述的电子设备,其特征在于,所述处理器还用于执行:
    接收视频播放控制指令;
    确定所述视频播放控制指令对应的操作方式;
    根据所述操作方式,对所述视频播放指令对应的视频执行对应的操作。
  25. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1-8任一所述的方法步骤。
PCT/CN2019/075261 2018-03-22 2019-02-15 一种视频播放方法、装置、电子设备及存储介质 WO2019179264A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP19771426.4A EP3771218A4 (en) 2018-03-22 2019-02-15 VIDEO PLAYBACK PROCESS AND DEVICE, ELECTRONIC EQUIPMENT AND STORAGE MEDIA
US16/981,100 US11204688B2 (en) 2018-03-22 2019-02-15 Video playing method and device, electronic equipment and storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810240270.8 2018-03-22
CN201810240270.8A CN110300320B (zh) 2018-03-22 2018-03-22 一种视频播放方法、装置、电子设备及存储介质

Publications (1)

Publication Number Publication Date
WO2019179264A1 true WO2019179264A1 (zh) 2019-09-26

Family

ID=67986683

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/075261 WO2019179264A1 (zh) 2018-03-22 2019-02-15 一种视频播放方法、装置、电子设备及存储介质

Country Status (4)

Country Link
US (1) US11204688B2 (zh)
EP (1) EP3771218A4 (zh)
CN (1) CN110300320B (zh)
WO (1) WO2019179264A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745599A (zh) * 2022-03-10 2022-07-12 慧之安信息技术股份有限公司 基于wasm的web端无插件监控实时预览方法
CN115022725A (zh) * 2022-05-25 2022-09-06 京东城市(北京)数字科技有限公司 一种视频播放方法和装置

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111556353B (zh) * 2020-04-15 2022-07-26 重庆锐明信息技术有限公司 一种视频播放方法、视频播放管理装置及终端设备
CN113949821A (zh) * 2021-09-15 2022-01-18 长视科技股份有限公司 视频播放方法、装置、计算机设备和存储介质
CN114615546B (zh) * 2022-02-08 2024-04-12 武汉光庭信息技术股份有限公司 一种视频播放方法、装置、电子设备及存储介质
CN114710708B (zh) * 2022-03-14 2024-04-02 武汉虹信技术服务有限责任公司 一种宿住C/S宿主程序的Web播放监控视频的方法及系统
CN115175002B (zh) * 2022-06-28 2023-11-03 青岛海信移动通信技术有限公司 一种视频播放方法及设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110113354A1 (en) * 2009-11-12 2011-05-12 Sling Media Pvt Ltd Always-on-top media player launched from a web browser
CN104093060A (zh) * 2014-07-17 2014-10-08 可牛网络技术(北京)有限公司 网页视频播放方法及系统
CN104268251A (zh) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 一种网页中视频元素的播放方法和装置
CN105898608A (zh) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 视频播放控制方法及浏览器
CN107257510A (zh) * 2017-06-05 2017-10-17 努比亚技术有限公司 视频统一播放方法、终端及计算机可读存储介质
CN107277004A (zh) * 2017-06-13 2017-10-20 重庆扬讯软件技术股份有限公司 一种浏览器无插件视频直播方法

Family Cites Families (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6928624B1 (en) * 2000-03-06 2005-08-09 Intel Corporation Method and apparatus to display video
GB0105994D0 (en) * 2001-03-10 2001-05-02 Pace Micro Tech Plc Video display resizing
US6907570B2 (en) * 2001-03-29 2005-06-14 International Business Machines Corporation Video and multimedia browsing while switching between views
US8644674B2 (en) * 2012-06-01 2014-02-04 Limelight Networks, Inc. Control layer indexed playback
US8306859B2 (en) * 2006-07-21 2012-11-06 Say Media, Inc. Dynamic configuration of an advertisement
CN101334740B (zh) * 2008-08-01 2010-06-09 广东威创视讯科技股份有限公司 外部进程的处理方法及处理装置
US8402494B1 (en) * 2009-03-23 2013-03-19 Conviva Inc. Switching content
US8812962B2 (en) * 2009-11-12 2014-08-19 Microsoft Corporation Web service interface and querying
US10713018B2 (en) * 2009-12-07 2020-07-14 International Business Machines Corporation Interactive video player component for mashup interfaces
CN102663003B (zh) * 2012-03-16 2015-07-22 掌中帷幄(北京)科技有限公司 移动终端多web页面应用中的页面切换方法及系统
US9832178B2 (en) 2012-12-20 2017-11-28 Cable Television Laboratories, Inc. Administration of web page
CN103024526B (zh) * 2012-12-31 2016-07-06 上海全景数字技术有限公司 基于数字电视机顶盒的多屏互动系统
CN104113570A (zh) * 2013-04-17 2014-10-22 崔伯磊 一种通过浏览器或软件程序直接访问Android终端桌面的方法及系统
CN103294767A (zh) * 2013-04-22 2013-09-11 腾讯科技(深圳)有限公司 浏览器的多媒体信息显示方法及装置
KR102063075B1 (ko) * 2013-06-28 2020-01-07 엘지전자 주식회사 서비스 시스템, 디지털 기기 및 그 서비스 처리 방법
CN103442034B (zh) * 2013-08-07 2016-08-10 中南民族大学 一种基于云计算技术的流媒体服务方法和系统
JP6242492B2 (ja) 2013-08-23 2017-12-06 華為技術有限公司Huawei Technologies Co.,Ltd. 任意のネットワーク機能性クライアント又はサーバをhtml5アプリケーションにおいて有効にするためのシステム及びデバイス
CN103793224B (zh) * 2014-01-17 2017-07-28 北京奇虎科技有限公司 一种窗口的显示方法和装置
CN104469475A (zh) * 2014-11-19 2015-03-25 乐视网信息技术(北京)股份有限公司 一种信息交互方法、装置、系统以及智能电视
CN104469516B (zh) * 2014-12-11 2017-12-19 福州瑞芯微电子股份有限公司 一种安卓系统的网页视频处理方法和装置
CN105100824A (zh) * 2015-09-10 2015-11-25 东方网力科技股份有限公司 一种视频处理设备、系统和方法
CN105681841B (zh) * 2015-12-30 2018-05-29 广东欧珀移动通信有限公司 一种基于浏览器的视频播放控制方法及系统
US10412130B2 (en) * 2016-04-04 2019-09-10 Hanwha Techwin Co., Ltd. Method and apparatus for playing media stream on web browser
CN105868418B (zh) * 2016-05-31 2019-06-14 北京奇艺世纪科技有限公司 一种视频显示方法及装置
CN107786906B (zh) * 2016-08-26 2021-05-25 腾讯科技(深圳)有限公司 一种浏览器在独立窗口中播放视频的方法和装置
US10931733B2 (en) * 2017-08-24 2021-02-23 Re Mago Ltd Method, apparatus, and computer-readable medium for transmission of files over a web socket connection in a networked collaboration workspace

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110113354A1 (en) * 2009-11-12 2011-05-12 Sling Media Pvt Ltd Always-on-top media player launched from a web browser
CN104093060A (zh) * 2014-07-17 2014-10-08 可牛网络技术(北京)有限公司 网页视频播放方法及系统
CN104268251A (zh) * 2014-09-30 2015-01-07 北京奇虎科技有限公司 一种网页中视频元素的播放方法和装置
CN105898608A (zh) * 2015-12-31 2016-08-24 乐视移动智能信息技术(北京)有限公司 视频播放控制方法及浏览器
CN107257510A (zh) * 2017-06-05 2017-10-17 努比亚技术有限公司 视频统一播放方法、终端及计算机可读存储介质
CN107277004A (zh) * 2017-06-13 2017-10-20 重庆扬讯软件技术股份有限公司 一种浏览器无插件视频直播方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114745599A (zh) * 2022-03-10 2022-07-12 慧之安信息技术股份有限公司 基于wasm的web端无插件监控实时预览方法
CN115022725A (zh) * 2022-05-25 2022-09-06 京东城市(北京)数字科技有限公司 一种视频播放方法和装置

Also Published As

Publication number Publication date
US20210041999A1 (en) 2021-02-11
US11204688B2 (en) 2021-12-21
EP3771218A4 (en) 2021-03-10
EP3771218A1 (en) 2021-01-27
CN110300320A (zh) 2019-10-01
CN110300320B (zh) 2022-01-21

Similar Documents

Publication Publication Date Title
WO2019179264A1 (zh) 一种视频播放方法、装置、电子设备及存储介质
US11799984B2 (en) Installable web applications
US10031772B2 (en) Method and apparatus for managing background application
US9983761B1 (en) Method for interception and blocking of mouse move and resize events on mobile device
WO2020249044A1 (zh) 窗口层级切换的方法、装置、设备和存储介质
US20150058713A1 (en) Method and apparatus for sharing media content and method and apparatus for displaying media content
US20170168705A1 (en) Method and electronic device for adjusting video progress
TWI646835B (zh) 一種電視節目播放方法以及相關的終端設備
CN111901695B (zh) 视频内容截取方法、装置和设备及计算机存储介质
WO2016070726A1 (zh) 页面标签的加载方法、装置和浏览器客户端
WO2019000723A1 (zh) 一种实现弹窗交互事件的方法、装置及计算机设备
TW201826109A (zh) 頁面展示方法及裝置
WO2017113855A1 (zh) 应用程序交互的方法和终端
US20060164396A1 (en) Synthesizing mouse events from input device events
CN113613064A (zh) 视频处理方法、装置、存储介质及终端
US11733831B2 (en) Devices and methods of intelligent interaction, and storage media
WO2019047184A1 (zh) 信息显示方法、装置及终端
US10178087B2 (en) Trusted pin management
US10380614B1 (en) User reset voting to identify unwanted settings values in client software
CN113806700A (zh) 一种信息展示方法及装置
CN108391307B (zh) 基于安卓系统的功耗管控方法、装置及存储介质
CN112579936B (zh) 一种页面处理方法、装置及计算机可读存储介质
WO2019137437A1 (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: 19771426

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2019771426

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2019771426

Country of ref document: EP

Effective date: 20201022