WO2016169426A1 - 一种视频播放方法及装置 - Google Patents
一种视频播放方法及装置 Download PDFInfo
- Publication number
- WO2016169426A1 WO2016169426A1 PCT/CN2016/079184 CN2016079184W WO2016169426A1 WO 2016169426 A1 WO2016169426 A1 WO 2016169426A1 CN 2016079184 W CN2016079184 W CN 2016079184W WO 2016169426 A1 WO2016169426 A1 WO 2016169426A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- webpage
- video
- video information
- main document
- inline frame
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 238000004891 communication Methods 0.000 claims abstract description 41
- 238000012544 monitoring process Methods 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 5
- 238000012545 processing Methods 0.000 description 13
- 230000002452 interceptive effect Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 6
- 230000008569 process Effects 0.000 description 6
- 230000001960 triggered effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000002085 persistent effect Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000010410 layer Substances 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 229920005994 diacetyl cellulose Polymers 0.000 description 1
- 239000002355 dual-layer Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/414—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
- H04N21/41407—Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1069—Session establishment or de-establishment
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/60—Network streaming of media packets
- H04L65/70—Media network packetisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/234—Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/24—Monitoring of processes or resources, e.g. monitoring of server load, available bandwidth, upstream requests
- H04N21/2402—Monitoring of the downstream path of the transmission network, e.g. bandwidth available
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/432—Content retrieval operation from a local storage medium, e.g. hard-disk
- H04N21/4325—Content retrieval operation from a local storage medium, e.g. hard-disk by playing back content from the storage medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
- H04N21/442—Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
- H04N21/4424—Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/478—Supplemental services, e.g. displaying phone caller identification, shopping application
- H04N21/4782—Web browsing, e.g. WebTV
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/81—Monomedia components thereof
- H04N21/8166—Monomedia components thereof involving executable data, e.g. software
- H04N21/8173—End-user applications, e.g. Web browser, game
Definitions
- the present application relates to the field of video playback technologies, and in particular, to a video playback method and apparatus.
- the method for browsing a webpage on a mobile terminal is generally: the user inputs a web address in a browser, and the browser sends a page request to the server based on the web address; the server returns an html file corresponding to the page request to the browser; the browser starts loading the html
- the code obtains CSS (Cascading Style Sheets) files from the server according to the link tag in the html code header; the browser continues to load the html body code and renders the page based on the CSS file, where the html body code is
- cross-domain video playback services are sometimes introduced according to the webpage architecture design.
- Cross-domain video means that there is an iframe in the current webpage (the webpage inline frame, which is an HTML tag, and the element creates a document containing another document. Inline frame), and the video to be played in the iframe, the domain name, protocol or port of the iframe is different from the current webpage (usually the domain name is different), then the video in the iframe is a cross-domain video.
- the video in the iframe is a cross-domain video.
- a webpage with a domain name of A contains an iframe with a domain name B, and the video on the iframe may be referred to as a cross-domain video.
- the browser can only call the system's own player to play, but can't call the player that is not included in the system to play, and the user experience is poor.
- the purpose of the present application is to provide a video playing method and apparatus to improve user experience in playing cross-domain video services.
- an embodiment of the present application provides a video playing method, including: establishing a video message communication channel between a webpage main document including a webpage inline frame and the webpage inline frame; and the webpage inline frame searching a video tag included in the self, and acquiring video information according to the video tag; the webpage main document receiving video information returned by the webpage inline frame through the communication channel; and performing video playback according to the video information.
- the embodiment of the present application further provides a video playing device, including: a communication channel establishing module, configured to establish a video message communication channel between a webpage main document including a webpage inline frame and the webpage inline frame.
- a video information search module configured to: the webpage inline frame finds a video tag that is included in the webpage, and obtains video information according to the video tag; and
- a video information receiving module configured to: receive, by the webpage master document, the webpage The video information returned by the inline frame through the communication channel; the video playing module is configured to perform video playback according to the video information.
- an embodiment of the present application provides a computing device, including: one or more processors; a memory; and one or more modules, the one or more modules being stored in the memory and configured to Executing by the one or more processors, wherein the one or more modules are configured to: establish a video message communication channel between a webpage main document including a webpage inline frame and the webpage inline frame;
- the webpage inline frame finds a video tag that it contains, and acquires video information according to the video tag; the webpage main document receives video information returned by the webpage inline frame through the communication channel; and, according to the Video information for video playback.
- an embodiment of the present application provides a computer readable storage medium having recorded thereon a program for executing the method of the embodiment of the present application.
- the webpage inline frame can find the video tag contained in the webpage, and obtain the video according to the found video tag.
- the information is sent to the webpage main document, so that the player currently loaded by the current browser can be played during the video playback, thereby improving the user experience of playing the cross-domain video service.
- FIG. 1 is a first flowchart of a video playing method in an embodiment of the present application
- FIG. 2 is a second flowchart of a video playing method in an embodiment of the present application
- FIG. 3 is a third flowchart of a video playing method in an embodiment of the present application.
- FIG. 4 is a schematic structural diagram of a video playback apparatus according to an embodiment of the present application.
- FIG. 5 is a schematic structural diagram of another video playback apparatus in the embodiment of the present application.
- FIG. 6 shows a structural block diagram of a computing device provided in accordance with an embodiment of the present invention.
- Mobile terminal based on ios system when playing cross-domain video in the browser, because the webkit kernel does not have the permission of cross-domain access, only the player that comes with the system can play the cross-domain video, but cannot call the browser. The player plays cross-domain video.
- the embodiment of the present application provides a video playing method.
- the method is applied to an ios system.
- a cross-domain video is loaded in a webpage loaded by a mobile terminal browser, a webpage main document and a webpage inline frame iframe are connected before the webpage is rendered, and the iframe is used to find the video contained in the webpage. Mark and obtain video information, the main document of the webpage records the video information obtained by the iframe, and can call the player provided by the browser to play when the video is played.
- the embodiment of the present application provides a video playing method, which can be applied to an ios system.
- the method can be run on a mobile terminal with a browser installed (such as iphone/ipod/itouch/ipad).
- a browser installed on the mobile terminal uses the webkit kernel to play cross-domain video using the browser's own player.
- the main processing steps of the method include:
- Step S11 Establish a video message communication channel between the webpage main document including the iframe and the iframe.
- the webpage loaded by the browser may contain an iframe.
- Cross-domain video exists only when the webpage contains an iframe. That is, when the domain name of the iframe is different from the webpage domain name, the video on the iframe may be called cross-domain. video.
- webkit-based browsers do not have permission to access iframes to obtain video information when playing cross-domain video. They can only call the system's own player to play cross-domain video.
- the webpage when the webpage includes a cross-domain iframe and the video is included in the iframe, a connection is established between the iframe and the main document of the webpage, so that the message can be transmitted between the iframe and the webpage main document, that is, between the iframe and the webpage main document.
- the message communication channel is a virtual information channel, which means that information can be exchanged between the iframe and the webpage main document.
- Step S12 The iframe searches for the video tag it contains, and acquires the video information according to the video tag.
- the iframe looks up the video tag it contains and obtains video information, such as a video address, based on the found video tag.
- the triggering manner of the iframe to search for the video tag included in the iframe is various.
- the video tag is automatically searched, and the video information acquired according to the video tag is sent to the webpage main document.
- the iframe is triggered by a message for finding a video tag sent by the webpage main document, and the iframe responds to the message of the main document to perform video tag search.
- the method of triggering the iframe to find the video tag itself can be set according to actual needs, and will not be enumerated here.
- Step S13 The webpage main document receives the video information returned by the iframe through the communication channel.
- the iframe After the iframe obtains the video information according to the found video tag, the obtained video information is sent to the webpage main document through a communication channel with the webpage main document, and the webpage main document receives the recorded video information.
- Step S14 Perform video playback according to the video information.
- the webpage main document obtains the video information
- the player that is currently included in the current browser can be called to play according to the video information acquired by the main document of the webpage.
- a webpage main document sends a message for finding video information to an iframe
- an iframe listens for a message sent by a webpage main document, and searches for a video tag included in the webpage in response to the message, and acquires a video according to the video tag. information.
- the network module of the mobile terminal injects a monitoring instruction into the iframe of the webpage, wherein the network module is an underlying module of the mobile terminal, and is used for monitoring data received by the network layer, including original data of the webpage, and A listener instruction can be injected into the iframe at the network layer.
- the iframe can listen to the message sent by the webpage main document through the interception instruction, and when the interception instruction in the iframe listens to the message for finding the video information, finds the video tag contained in the iframe, and obtains the video information according to the video tag, and acquires the obtained video information.
- FIG. 1 shows the implementation steps of the video playing method in the application scenario, including:
- Step S21 Establish a video message communication channel between the webpage main document including the iframe and the iframe.
- Step S22 The webpage main document sends a message for finding video information to the iframe through the communication channel.
- the action of finding a video information message in the iframe may be triggered by loading a page main document of the webpage.
- Step S23 The iframe responds to the message for finding the video information sent by the webpage main document, searches for the video tag included in the iframe, and acquires the video information according to the video tag.
- a monitoring instruction is set in the iframe for monitoring the message sent by the main document of the webpage.
- the iframe listens to the message for finding the video information sent by the main document of the webpage, the video tag is searched for the video information.
- the browser that comes with the mobile phone is a safari browser. Users can install a browser that is not included in the system according to actual needs.
- the user browses the webpage in the browser.
- the A domain webpage loaded on the browser includes the B domain iframe, and the B domain iframe contains the video
- the webpage main document of the A domain webpage sends a message for finding the video information to the B domain iframe;
- the B domain iframe is provided with a listening instruction for monitoring the main document of the webpage.
- the listening instruction listens to the message for finding the video information sent by the main document of the webpage of the A domain webpage
- the B domain iframe responds to the message and searches for the video mark in the iframe. And get video information based on the found video tag.
- the message for finding video information sent by the webpage main document to the iframe in the present application is a message formed based on JS (JavaScript, literal translation scripting language); the monitoring instruction set in the iframe for monitoring the main document of the webpage is also formed based on JS. instruction.
- JS JavaScript, literal translation scripting language
- the network module of the mobile terminal injects a JS-formed listening instruction into the iframe for the iframe to listen to the message for finding the video information sent by the webpage main document.
- Step S24 The webpage main document receives the video information sent by the iframe.
- an interactive instruction for interacting with the iframe can also be set on the webpage main document, and the interactive instruction can listen to the notification message from the iframe to receive the notification message. Get video information.
- the webpage main document receives the video information returned by the webpage inline framework through the communication channel, and specifically, the webpage main document listens to the notification message from the webpage inline framework; Obtaining the video information from the notified notification message, that is, the webpage main document listens to the notification message from the iframe through an interactive instruction, and then acquires the video information from the monitored notification message.
- the B domain iframe in the browser responds to the message for finding the video information sent from the main webpage of the webpage of the A domain webpage, and after obtaining the video information, the B domain iframe transmits the video information as the notification content of the notification message.
- Step S25 Calling the player that is provided by the current browser to perform video playback according to the video information.
- the webpage main document receives and stores the video information.
- the mobile terminal browser calls its own player to play according to the video information recorded in the main document of the webpage, thereby realizing the use of the browser to bring the player to cross.
- the playback of domain video enhances the user experience in playing cross-domain video services.
- the webpage main document of the A domain webpage in the browser calls its own player to play the cross-domain video.
- the browser When loading a webpage in a mobile terminal browser, the browser renders the webpage by using the webpage main document provided by the server, wherein the webpage main document includes an html file and a CSS file, etc., in the webpage rendering process, according to the design of the webpage architecture, in the webpage
- the webpage main document obtains video information from the cross-domain iframe, and calls the browser to bring the player to play.
- a webpage frame file is further needed to provide a basis for webpage page layout.
- the main frame mainframe and the iframe are included in the frame file, and the related information, such as video information, is generally introduced in the webpage through the cross-domain iframe.
- the premise that the webpage main document obtains the video information in the cross-domain iframe is that there is a cross-domain iframe in the webpage. Therefore, in the method of the embodiment of the present application, the cross-domain iframe in the webpage is first searched. Based on this, the present application further provides a specific implementation method of the video playing method, which can also be run on the mobile terminal with the browser installed. As shown in FIG. 3, the main processing steps of the method include:
- Step S31 Find an iframe based on the frame label name.
- a frame tag list exists in a frame file of a webpage loaded in the mobile terminal browser, and the webpage main document traverses the frame tag list, and the frame tag name in the frame tag list is compared with the "iframe" one by one, when the frame label of the comparison is performed When the name is consistent with the "iframe", it means that an iframe exists in the frame file of the web page.
- Step S32 The webpage main document sends a message for finding video information to the found iframe.
- the main document of the webpage first finds whether there is video information in the main frame of the webpage, and if there is video information in the main frame of the webpage, the webpage is obtained.
- the iframe is provided with a listening instruction for monitoring the main document of the webpage. After the webpage main document sends a message for finding the video information to the iframe, the iframe responds to the message to find the video tag contained in the webpage, and obtains the video tag based on the found video tag. Video information.
- the listener command set in the iframe is injected into the iframe by the mobile terminal network module before the webpage is rendered.
- the listener instruction in the iframe is an instruction formed based on JS, and the instruction formed based on JS can perform cross-domain access.
- the iframe After the iframe finds the video information, it sends a notification message to the main document of the webpage, and the iframe notifies the webpage main document by the asynchronous communication method through the JS instruction.
- Step S33 The webpage main document listens to the notification message from the iframe.
- the webpage main document is provided with an interactive instruction for interacting with the iframe, and the interactive instruction is capable of listening to the notification message sent by the iframe, wherein the interactive instruction is an instruction formed based on the JS.
- the interactive instruction in the webpage main document listens and responds to the notification message.
- Step S34 The webpage main document acquires video information from the monitored notification message.
- the webpage main document listens to the notification message from the iframe and periodically finds the video information.
- Step S35 Perform video playback according to the video information.
- the video information obtained by the cross-domain iframe may be a video address.
- the player currently loaded by the current browser may be used to perform video playback according to the video address.
- the browser of the browser can be used to play the cross-domain video on the browser of the mobile terminal, thereby improving the user experience of playing the cross-domain video service.
- the embodiment of the present application further provides a video playing device.
- the device includes the following modules:
- a communication channel establishing module 41 configured to establish a video message communication channel between the webpage main document including the iframe and the iframe;
- the video information searching module 42 is configured to enable the iframe to search for the video tag it contains, and obtain the video information according to the video tag;
- the video information receiving module 43 is configured to enable the webpage main document to receive the video information returned by the iframe through the communication channel;
- the video playing module 44 is configured to perform video playback according to the video information.
- the iframe can find the video tag included in the webpage, obtain the video information according to the found video tag, and send the obtained video information to the webpage main document. Therefore, when the video is played, the player currently loaded by the current browser can be called to play, thereby improving the user experience of playing the cross-domain video service.
- an iframe is triggered to find the video tags it contains, for example, when the iframe contains video information, it is automatically triggered, or triggered by the webpage main document.
- FIG. 5 is a structural block diagram of another video playback apparatus in the embodiment of the present application.
- the search triggering module 45 is configured to enable the webpage main document to send a message for finding video information to the iframe through the communication channel.
- the video information searching module in the video playing device is configured to cause the iframe to search for the video tag included in the message in response to the message. And get video information based on the video tag.
- a monitoring instruction may be set in the iframe to listen to the webpage main document.
- the video playback device may further include a first monitoring module 46, configured to add a monitoring instruction formed by the JS based on the JS to the iframe to listen to the message of the video information sent by the main document of the webpage. .
- a web file is required to load a webpage, and the mainframe mainframe and the cross-domain iframe are included in the frame file.
- the webpage introduces a file, such as a video, through a cross-domain iframe, so the webpage main document of the webpage is obtained in order to obtain a cross-domain.
- the video information in the domain iframe first needs to find the cross-domain iframe in the webpage.
- the video playback device further includes an inline frame lookup module 47 and a determination module 48, wherein the inline frame lookup module is configured to search for an iframe included in the webpage main document based on the frame tag name; the determining module is configured to determine the webpage master Whether the video information is present in the main frame of the webpage of the document; the above-mentioned search triggering module in the device is configured to send a message for finding video information to the found intra-framework of the webpage when the video information does not exist in the main frame of the webpage.
- the inline frame lookup module is configured to search for an iframe included in the webpage main document based on the frame tag name
- the determining module is configured to determine the webpage master Whether the video information is present in the main frame of the webpage of the document
- the above-mentioned search triggering module in the device is configured to send a message for finding video information to the found intra-framework of the webpage when the video information does not exist in the main frame of the webpage.
- the cross-domain iframe in the frame file can be found in a relatively simple manner, and the message for finding the video information is sent to the iframe.
- a listening instruction for monitoring the main document of the webpage is set.
- the main document of the webpage sends a message for finding the video information to the iframe
- the iframe responds to the message to find the video tag contained in the webpage, and according to the found
- the video tag gets the video information, such as the video address.
- the iframe After the iframe finds the video information, it sends a notification message to the webpage main document, wherein the iframe notifies the webpage main document by the JS instruction in the asynchronous communication manner.
- the webpage main document is provided with an interactive instruction for interacting with the iframe, and the interactive instruction is capable of listening to the notification message sent by the iframe, wherein the interactive instruction is an instruction formed based on the JS. Therefore, in an optional embodiment, the video information receiving module is configured to enable the webpage main document to listen to a notification message from the webpage inline frame, and obtain the notification message from the intercepted notification message. Video information.
- the interactive instruction in the webpage main document listens and responds to the notification message.
- the second listening module 49 may be configured in the video playing device, so that the webpage main document listens to the notification message from the iframe, and Get the video information in the notified notification message.
- the technical solution of the present application can call a browser-equipped player to play cross-domain video in the browser of the mobile terminal, thereby improving the user experience of playing the cross-domain video service.
- the computer program product for executing the cross-domain video includes a computer readable storage medium storing the program code, and the program code includes instructions for executing the method in the foregoing method embodiment.
- the embodiment is not described here.
- each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions.
- the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
- each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
- the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
- the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
- the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application.
- the foregoing storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program code.
- the computing device can be implemented as various types of computer devices, such as desktops, portable computers, tablets, smart phones, personal data assistants (PDAs), smart wearable devices, or other types of computer devices, but is not limited to any particular form.
- the computer can include a processing module 100, a storage subsystem 200, an input device 300, a display 400, a network interface 500, and a bus 600.
- the processing module 100 can be a multi-core processor or multiple processors.
- processing module 100 can include a general purpose main processor and one or more special coprocessors, such as a graphics processing unit (GPU), a digital signal processor (DSP), and the like.
- processor 100 can be implemented using custom circuitry, such as an application specific integrated circuit (ASIC) or field programmable gate arrays (FPGA).
- ASIC application specific integrated circuit
- FPGA field programmable gate arrays
- the processing module 100 can be a similar circuit that executes executable instructions stored on itself.
- the processing module 100 can execute executable instructions stored on the storage subsystem 200.
- Storage subsystem 200 can include various types of storage units, such as system memory, read only memory (ROM), and persistent storage.
- the ROM can store static data or instructions required by the processing module 100 or other modules of the computer.
- the persistent storage device can be a readable and writable storage device.
- the persistent storage device may be a non-volatile storage device that does not lose stored instructions and data even after the computer is powered off.
- the permanent storage device employs a mass storage device (eg, a magnetic or optical disk, Flash memory) as a permanent storage device.
- the persistent storage device can be a removable storage device (eg, a floppy disk, an optical drive).
- the system memory can be a readable and writable storage device or a volatile read/write storage device, such as dynamic random access memory.
- System memory can store instructions and data that some or all of the processors need at runtime.
- storage subsystem 200 can include any combination of computer readable storage media, including various types of semiconductor memory chips (DRAM, SRAM, SDRAM, flash memory, programmable read only memory), and magnetic disks and/or optical disks can also be employed.
- storage subsystem 200 can include removable storage devices that are readable and/or writable, such as a compact disc (CD), a read-only digital versatile disc (eg, a DVD-ROM, a dual layer DVD-ROM) ), read-only Blu-ray discs, ultra-density discs, flash cards (such as SD cards, min SD cards, Micro-SD cards, etc.), magnetic floppy disks, and so on.
- the computer readable storage medium does not include a carrier wave and an instantaneous electronic signal transmitted by wireless or wire.
- the storage subsystem 200 can store one or more software programs that can be executed by the processing module 100 or resource files that need to be invoked.
- the resource files can include some third-party libraries, including but not limited to audio libraries, video libraries. , 2D graphics library, 3D graphics library.
- the user interface can be provided by one or more user input devices 300, display 400, and/or one or more other user output devices.
- Input device 300 can include means for a user to input signals to a computer that can interpret such signals containing particular user requests or information.
- a web address may be input to the user interface through a keyboard to display webpage content corresponding to the input webpage.
- input device 300 can include some or all of a keyboard button, touch screen, mouse or other pointing device, scroll wheel, click wheel, dial, button, switch, keypad, microphone, and the like.
- the display 400 can display images generated by a computer, and can include various types of image devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a light emitting device.
- CTR cathode ray tube
- LCD liquid crystal display
- a light emitting device e.g., a laser beam, a laser beam, a laser beam, a laser beam, a laser beam, a laser beam, etc.
- LEDs diodes
- OLEDs organic light emitting diodes
- projection systems eg, DACs, ADCs, signal processors, etc.
- the user interface can be provided through a graphical user interface.
- Certain areas of the display 400 define some visual graphical elements as interactive objects or control objects that the user selects through the input device 300.
- the user can operate the user input device 300 to move the specified location input URL on the screen, and control the display of the webpage content corresponding to the webpage on the display 400.
- a touch device that can recognize a user gesture can be used as an input device that can, but need not, be associated with an array on display 300.
- Network interface 500 provides sound and/or data communication functionality to the computer.
- network interface 500 can include a radio frequency transceiver to communicate sound and/or data (eg, using cellular telephone technology, such as 3G, 4G or EDGE, WIFI data network technology), GPS accepting modules, and/or other Module.
- network interface 500 can provide an additional wireless network connection or an alternative wireless interface.
- Network interface 500 may be a combination of hardware (eg, antennas, modems, codecs, and other analog and/or digital signal processing circuits) and software modules.
- the bus 600 can include various systems, external devices, and chip buses that connect various components within the computer.
- bus 600 connects processing device 100 to storage subsystem 200, and may also connect input device 300 and display 400.
- Bus 600 can also cause a computer to interface with the network via network interface 500.
- the computer can be part of multiple networked computer devices. Any or all of the components of the computer can be used in concert in embodiments of the present invention.
- Some embodiments include electronic components, such as a microprocessor, a memory that stores computer instructions and data in a computer readable storage medium. Many of the features described in the Detailed Description section can be implemented by the method steps of executing computer instructions stored on a computer readable storage medium. When these computer instructions are executed, the computer processing unit performs various functions of the instructions.
- the embodiment of the program instructions or computer code may be machine code, such as code compiled using a computer, electronic component or microprocessor of the object to be parsed to compile other high-level languages.
- the computer is schematic.
- the computer may have other functions not specifically described (eg, mobile call, GPS, power management, one or more cameras, various connection ports or accessories for connecting external devices, etc.).
- the specific functional modules involved in the computer 100 are described herein, and the description of these functional modules is for convenience of description, and does not mean a specific physical configuration of the functional components. Moreover, these functional modules do not need to be in one-to-one correspondence with physical modules.
- the module can be configured to perform various operations, such as by programming or setting up appropriate control circuitry, and the module may be reconfigured according to initial settings.
- Embodiments of the invention may be implemented in a variety of devices, including electronic devices, through the use of a combination of hardware and software.
- the embodiment further provides a non-volatile readable storage medium, where the storage medium stores one or more programs, and when the one or more modules are applied to the computing device, the computing device can be Instructions (instructions) that perform the following steps:
- the webpage inline frame searches for the video mark included therein, and acquires video information according to the video mark;
- the webpage main document receives the video information returned by the webpage inline frame through the communication channel; and performs video playback according to the video information.
- the method further includes: sending, by the webpage master document, a message for finding video information to the webpage inline frame through the communication channel; and the webpage inline frame searches for a content included in the webpage in response to the message Video tags, and video information is obtained based on the video tags.
- the method further includes: adding, in the webpage inline framework, a listener instruction formed based on the JavaScript, for the webpage inline framework to listen to the message for finding the video information sent by the webpage main document.
- the method further includes: searching, according to the frame label name, a webpage inline frame included in the webpage main document; determining whether video information exists in a webpage main frame of the webpage main document, if the webpage master of the webpage main document If there is no video information in the framework, the message for finding the video information is sent to the found intra-framework of the webpage.
- the method further includes: the webpage main document listening to the notification message from the webpage inline framework; and acquiring the video information from the intercepted notification message.
- the webpage main document receives the video information returned by the webpage inline frame through the communication channel, and the method includes: the webpage main document listening to a notification message from the webpage inline frame; and, from listening to The video information is obtained in the notification message.
- performing video playback according to the video information including: calling a player that is currently included in the current browser to perform video playback according to the video information.
- the message for finding video information is a message formed based on JavaScript.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Software Systems (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims (16)
- 一种视频播放方法,包括:在包含网页内联框架的网页主文档以及所述网页内联框架之间建立视频消息通信通道;所述网页内联框架查找自身所包含的视频标记,且根据所述视频标记获取视频信息;所述网页主文档接收所述网页内联框架通过所述通信通道返回的视频信息;以及,根据所述视频信息进行视频播放。
- 根据权利要求1所述的方法,还包括:所述网页主文档通过所述通信通道向所述网页内联框架发送查找视频信息的消息;则所述网页内联框架查找自身所包含的视频标记,且根据所述视频标记获取视频信息,包括:所述网页内联框架响应于所述消息查找其自身所包含的视频标记,且根据所述视频标记获取视频信息。
- 根据权利要求2所述的方法,还包括:在所述网页内联框架中加入基于JavaScript形成的监听指令以供网页内联框架监听所述网页主文档发送的查找视频信息的消息。
- 根据权利要求2所述的方法,所述网页主文档通过所述通信通道向所述网页内联框架发送查找视频信息的消息之前,还包括:基于框架标签名称查找所述网页主文档所包含的网页内联框架;判断所述网页主文档的网页主框架中是否存在视频信息,如果所述网页主文档的网页主框架中不存在视频信息,则执行向查找到的所述网页内联框架中发送查找视频信息的消息的步骤。
- 根据权利要求1所述的方法,还包括:所述网页主文档监听来自所述网页内联框架的通知消息;以及,从监听到的所述通知消息中获取所述视频信息。
- 根据权利要求1所述的方法,其中,所述网页主文档接收所述网页内联框架通过所述通信通道返回的视频信息,包括:所述网页主文档监听来自所述网页内联框架的通知消息;以及,从监听到的所述通知消息中获取所述视频信息。
- 根据权利要求1所述的方法,其中,根据所述视频信息进行视频播放,包括:调用当前浏览器自带的播放器根据所述视频信息进行视频播放。
- 根据权利要求2所述的方法,其中,所述查找视频信息的消息为基于JavaScript形成的消息。
- 一种视频播放装置,包括:通信通道建立模块,用于在包含网页内联框架的网页主文档以及所述网页内联框架之间建立视频消息通信通道;视频信息查找模块,用于使所述网页内联框架查找自身所包含的视频标记,且根据所述视频标记获取视频信息;视频信息接收模块,用于使所述网页主文档接收所述网页内联框架通过所述通信通道返回的视频信息;视频播放模块,用于根据所述视频信息进行视频播放。
- 根据权利要求9所述的装置,还包括:查找触发模块,用于使所述网页主文档通过所述通信通道向所述网页内联框架发送查找视频信息的消息;则所述视频信息查找模块,用于使所述网页内联框架响应于所述消息查找其自身所包含的视频标记,且根据所述视频标记获取视频信息。
- 根据权利要求10所述的装置,还包括:第一监听模块,用于在所述网页内联框架中加入基于JavaScript形成的监听指令以供网页内联框架监听所述网页主文档发送的查找视频信息的消息。
- 根据权利要求10所述的装置,还包括:内联框架查找模块,用于基于框架标签名称查找所述网页主文档所包含的网页内联框架;判断模块,用于判断所述网页主文档的网页主框架中是否存在视频信息;所述查找触发模块,用于在所述网页主框架中不存在视频信息时向查找到的所述网页内联框架中发送查找视频信息的消息。
- 根据权利要求9所述的装置,还包括:第二监听模块,用于使所述网页主文档监听来自所述网页内联框架的通知消息,以及从监听到的所述通知消息中获取所述视频信息。
- 根据权利要求9所述的装置,所述视频信息接收模块,用于使所述网页主文档监听来自所述网页内联框架的通知消息,以及从监听到的所述通知消息中获取所述视频信息。
- 一种计算设备,包括:一个或多个处理器;存储器;和一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块配置用于:在包含网页内联框架的网页主文档以及所述网页内联框架之间建立视频消息通信通道;所述网页内联框架查找自身所包含的视频标记,且根据所述视频标记获取视频信息;所述网页主文档接收所述网页内联框架通过所述通信通道返回的视频信息;以及,根据所述视频信息进行视频播放。
- 一种在其上记录有用于执行权利要求1-8所述方法的程序的计算机可读存储介质。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
RU2017114860A RU2679562C1 (ru) | 2015-04-21 | 2016-04-13 | Способ воспроизведения видео и устройство |
US15/505,871 US10523718B2 (en) | 2015-04-21 | 2016-04-13 | Video playing method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510191293.0 | 2015-04-21 | ||
CN201510191293.0A CN106162367A (zh) | 2015-04-21 | 2015-04-21 | 一种视频播放方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016169426A1 true WO2016169426A1 (zh) | 2016-10-27 |
Family
ID=57144351
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/079184 WO2016169426A1 (zh) | 2015-04-21 | 2016-04-13 | 一种视频播放方法及装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US10523718B2 (zh) |
CN (1) | CN106162367A (zh) |
RU (1) | RU2679562C1 (zh) |
WO (1) | WO2016169426A1 (zh) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10341419B2 (en) * | 2016-08-08 | 2019-07-02 | Tnq Books And Journals Private Limited | Transformation of a content file into a content-centric social network |
CN111917516B (zh) * | 2020-08-06 | 2022-11-11 | 上海熙菱信息技术有限公司 | 一种多域信令快速调度方法 |
CN113542906A (zh) * | 2021-07-20 | 2021-10-22 | 山东新一代信息产业技术研究院有限公司 | 一种基于rtsp视频的网页无插件播放方法 |
CN115695401A (zh) * | 2022-09-27 | 2023-02-03 | 四川长虹电器股份有限公司 | 基于浏览器的媒体播放系统 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102779046A (zh) * | 2012-07-04 | 2012-11-14 | 合一网络技术(北京)有限公司 | 一种基于html5开发的视频播放系统及其视频播放方法 |
US20130167005A1 (en) * | 2009-09-30 | 2013-06-27 | Adobe Systems Incorporated | Player Instance Management |
CN103856543A (zh) * | 2012-12-07 | 2014-06-11 | 腾讯科技(深圳)有限公司 | 一种视频处理方法、移动终端及服务器 |
CN104090820A (zh) * | 2013-11-26 | 2014-10-08 | 腾讯科技(深圳)有限公司 | 一种网页多媒体文件的播放方法及装置 |
Family Cites Families (24)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040021684A1 (en) * | 2002-07-23 | 2004-02-05 | Dominick B. Millner | Method and system for an interactive video system |
US8250082B2 (en) * | 2006-06-23 | 2012-08-21 | Microsoft Corporation | Cross domain communication |
US8185737B2 (en) * | 2006-06-23 | 2012-05-22 | Microsoft Corporation | Communication across domains |
US20090299862A1 (en) | 2008-06-03 | 2009-12-03 | Microsoft Corporation | Online ad serving |
US8209706B2 (en) * | 2008-06-27 | 2012-06-26 | Microsoft Corporation | Inter-frame messaging between different domains |
US8103740B1 (en) * | 2009-05-13 | 2012-01-24 | Google Inc. | Cross-domain linking of data types |
US20110113354A1 (en) * | 2009-11-12 | 2011-05-12 | Sling Media Pvt Ltd | Always-on-top media player launched from a web browser |
CN101729880B (zh) * | 2009-12-14 | 2012-01-18 | 中国电信股份有限公司 | 基于sip的网络视频监控方法和系统 |
US9558289B2 (en) * | 2010-09-30 | 2017-01-31 | Microsoft Technology Licensing, Llc | Securely rendering online ads in a host page |
AU2011250721B1 (en) * | 2011-01-11 | 2012-05-31 | Social IT Pty Ltd | Online educational software |
US20120185784A1 (en) * | 2011-01-13 | 2012-07-19 | Charles Katz | Method Of Providing Co-browsing Functionality Within A Standard Browser |
US20120254925A1 (en) * | 2011-04-01 | 2012-10-04 | VideoGenie, Inc. | Computer systems and methods for video capturing, managing, and/or sharing |
CN103246667A (zh) * | 2012-02-08 | 2013-08-14 | 腾讯科技(深圳)有限公司 | 数据跨域传递的方法及装置 |
US10509850B2 (en) * | 2013-02-10 | 2019-12-17 | Wix.Com Ltd. | Third party application communication API |
CN102904962A (zh) * | 2012-10-23 | 2013-01-30 | 深圳市汇智集信息科技有限公司 | 消息推送系统及其消息推送的方法 |
CN103023790A (zh) * | 2012-12-31 | 2013-04-03 | 北京京东世纪贸易有限公司 | 一种用于实现跨域交互访问的方法和系统 |
US9264507B2 (en) * | 2013-01-03 | 2016-02-16 | Sap Portals Israel Ltd | Cross domain communication channel |
WO2014124420A1 (en) * | 2013-02-11 | 2014-08-14 | Vindico Llc | System and method to analyze and rate online advertisement placement quality and potential value |
US9569292B2 (en) * | 2013-02-25 | 2017-02-14 | Microsoft Technology Licensing, Llc | Remotable contracts for the web |
US20150200976A1 (en) * | 2013-02-27 | 2015-07-16 | Google Inc. | Web application collaboration system, method, and computer-readable medium |
US9031375B2 (en) * | 2013-04-18 | 2015-05-12 | Rapt Media, Inc. | Video frame still image sequences |
US9143840B2 (en) * | 2013-05-20 | 2015-09-22 | Veenome, Inc. | Systems and methods for evaluating online videos |
US9189466B2 (en) * | 2013-09-13 | 2015-11-17 | Linkedin Corporation | Cross document communication |
US9697188B2 (en) * | 2013-11-15 | 2017-07-04 | Instart Logic, Inc. | Method to enable cross-origin resource sharing from a webpage inside a private network |
-
2015
- 2015-04-21 CN CN201510191293.0A patent/CN106162367A/zh active Pending
-
2016
- 2016-04-13 WO PCT/CN2016/079184 patent/WO2016169426A1/zh active Application Filing
- 2016-04-13 US US15/505,871 patent/US10523718B2/en active Active
- 2016-04-13 RU RU2017114860A patent/RU2679562C1/ru active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130167005A1 (en) * | 2009-09-30 | 2013-06-27 | Adobe Systems Incorporated | Player Instance Management |
CN102779046A (zh) * | 2012-07-04 | 2012-11-14 | 合一网络技术(北京)有限公司 | 一种基于html5开发的视频播放系统及其视频播放方法 |
CN103856543A (zh) * | 2012-12-07 | 2014-06-11 | 腾讯科技(深圳)有限公司 | 一种视频处理方法、移动终端及服务器 |
CN104090820A (zh) * | 2013-11-26 | 2014-10-08 | 腾讯科技(深圳)有限公司 | 一种网页多媒体文件的播放方法及装置 |
Also Published As
Publication number | Publication date |
---|---|
US20170289204A1 (en) | 2017-10-05 |
CN106162367A (zh) | 2016-11-23 |
RU2679562C1 (ru) | 2019-02-11 |
US10523718B2 (en) | 2019-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10853437B2 (en) | Method and apparatus for invoking application programming interface | |
WO2017202348A1 (zh) | 一种视频播放方法、装置及计算机存储介质 | |
US8407584B1 (en) | Stable and secure use of content scripts in browser extensions | |
CN109165050B (zh) | 程序的运行方法、装置、计算设备以及存储介质 | |
US20130091197A1 (en) | Mobile device as a local server | |
AU2017219385A1 (en) | Electronic device and method of application data display therefor | |
US11144195B2 (en) | Fast data copying method and electronic device | |
JP6992012B2 (ja) | データ処理方法及びデバイス | |
TWI608416B (zh) | Page return method and apparatus, page generation method and apparatus | |
WO2019157860A1 (zh) | 应用界面的启动方法、装置、存储介质及电子设备 | |
US20140325323A1 (en) | Online video playing method and apparatus and computer readable medium | |
WO2015096747A1 (zh) | 操作响应方法、客户端、浏览器及系统 | |
WO2016169426A1 (zh) | 一种视频播放方法及装置 | |
CN111580879A (zh) | 小程序的运行方法、装置、电子设备及计算机存储介质 | |
KR20100120232A (ko) | 다중-컨텍스트 그래픽 처리 | |
WO2017128978A1 (zh) | 推送信息监控装置、推送信息监控方法及客户端 | |
CN113613064B (zh) | 视频处理方法、装置、存储介质及终端 | |
US20180196584A1 (en) | Execution of multiple applications on a device | |
KR101621637B1 (ko) | 이동 단말기 리소스 처리 방법과 장치, 클라이언트측 컴퓨터, 서버, 이동 단말기, 프로그램 및 기록매체 | |
WO2022253158A1 (zh) | 一种用户隐私保护方法及装置 | |
CN111162990B (zh) | 一种呈现消息通知的方法与设备 | |
WO2016070690A1 (zh) | 实现终端设备上的网页和应用间通信的方法、装置和系统 | |
WO2024078348A1 (zh) | 应用移植环境下注册表操作的处理方法、装置和介质 | |
KR102140294B1 (ko) | 전자 장치의 광고 방법 및 그 전자 장치 | |
EP3683692A1 (en) | Cloud streaming service system, and method and apparatus for providing cloud streaming service |
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: 16782573 Country of ref document: EP Kind code of ref document: A1 |
|
WWE | Wipo information: entry into national phase |
Ref document number: 15505871 Country of ref document: US |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2017114860 Country of ref document: RU |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16782573 Country of ref document: EP Kind code of ref document: A1 |