IP Library Granted Patent US 10,523,718
Granted Patent B2
US 10,523,718 · App. 15/505,871 · Granted Dec 31, 2019

Video playing method and device

Inventors: Wenjing Zhou (Guangzhou, CN); Chun Liu (Guangzhou, CN)
Assignee: Guangzhou UCWeb Computer Technology Co., Ltd.
H04L65/1069H04L29/08H04L65/60H04L65/607H04L67/02H04N21/234H04N21/2402H04N21/41407H04N21/4325H04N21/4782
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,523,718
App. No.
15/505,871
Granted
Dec 31, 2019
Kind
B2
Abstract

The present application provides a video playing method and apparatus. The method includes: establishing a video message communication channel between a webpage main document including a webpage iframe and the webpage iframe; searching, by the webpage iframe, for a video marker included in the webpage iframe and acquiring video information according to the video marker; and receiving, by the webpage main document, the video information returned by the webpage iframe by using the communication channel, and performing video playing according to the video information. By means of the present application, a player built in a current browser can be called to perform playing during video playing, to improve user experience in playing of cross-domain video services.

Claims (47)

1. A video playing method, comprising:

establishing a video message communication channel between a webpage main document comprising a webpage iframe and the webpage iframe;

searching, by the webpage iframe, for a video marker comprised in the webpage iframe and acquiring video information according to the video marker; and

receiving, by the webpage main document, the video information returned by the webpage iframe by using the communication channel, and performing video playing according to the video information.

2. The method according to claim 1 , further comprising:

sending, by the webpage main document, a message for searching for the video information to the webpage iframe by using the communication channel, wherein

the searching, by the webpage iframe, for a video marker comprised in the webpage iframe and acquiring video information according to the video marker comprises: searching, by the webpage iframe, for the video marker comprised in the webpage iframe in response to the message, and acquiring the video information according to the video marker.

3. The method according to claim 2 , further comprising:

adding a monitoring instruction formed based on JavaScript into the webpage iframe for the webpage iframe to monitor the message from the webpage main document and for searching for the video information.

4. The method according to claim 2 , before the sending, by the webpage main document, a message for searching for the video information to the webpage iframe by using the communication channel, further comprising:

searching for the webpage iframe comprised in the webpage main document based on a frame tag name; and

determining whether the video information exists in a webpage main frame of the webpage main document, and executing a step of sending the message for searching for the video information to the found webpage iframe if the video information does not exist in the webpage main frame of the webpage main document.

5. The method according to claim 2 , wherein the message for searching for the video information is a message formed based on JavaScript.

6. The method according to claim 1 , further comprising:

monitoring, by the webpage main document, a notification message from the webpage iframe; and

acquiring the video information from the detected notification message.

7. The method according to claim 1 , wherein the receiving, by the webpage main document, the video information returned by the webpage iframe by using the communication channel comprises:

monitoring, by the webpage main document, a notification message from the webpage iframe; and

acquiring the video information from the detected notification message.

8. The method according to claim 1 , wherein the performing video playing according to the video information comprises:

calling a player built in a current browser to perform video playing according to the video information.

9. A computer readable storage medium comprising a program for executing the method according to claim 1 .

10. A video playing apparatus, comprising a non-transitory computer readable medium having executable instructions stored thereon, that when executed by a processor, performs operations of:

establishing a video message communication channel between a webpage main document comprising a webpage iframe and the webpage iframe;

enabling the webpage iframe to search for a video marker comprised in the webpage iframe and acquire video information according to the video marker;

enabling the webpage main document to receive the video information returned by the webpage iframe by using the communication channel; and

performing video playing according to the video information.

11. The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further perform operations of:

enabling the webpage main document to send a message for searching for the video information to the webpage iframe by using the communication channel;

enabling the webpage iframe to search for the video marker comprised in the webpage iframe in response to the message, and

acquiring the video information according to the video marker.

12. The apparatus according to claim 11 , wherein the instructions, when executed by the processor, further perform operations of:

adding a monitoring instruction formed based on JavaScript into the webpage iframe for the webpage iframe to monitor the message from the webpage main document and for searching for the video information.

13. The apparatus according to claim 11 , wherein the instructions, when executed by the processor, further perform operations of:

searching for the webpage iframe comprised in the webpage main document based on a frame tag name;

determining whether the video information exists in a webpage main frame of the webpage main document; and

sending the message for searching for the video information to the found webpage iframe if the video information does not exist in the webpage main frame of the webpage main document.

14. The apparatus according to claim 10 , wherein the instructions, when executed by the processor, further perform operations of:

enabling the webpage main document to monitor a notification message from the webpage iframe, and

acquiring the video information from the detected notification message.

15. A computing device, comprising:

one or more processors;

a memory; and

one or more modules, stored in the memory and configured to be executed 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 comprising a webpage iframe and the webpage iframe;

search, by the webpage iframe, for a video marker comprised in the webpage iframe and acquire video information according to the video marker; and

receive, by the webpage main document, the video information returned by the webpage iframe by using the communication channel, and perform video playing according to the video information.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 29, 2020
From: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 053601/0565 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Feb 22, 2017
From: ZHOU, WENJING; LIU, CHUN
To: GUANGZHOU UCWEB COMPUTER TECHNOLOGY CO., LTD.
Reel/Frame 041346/0705 →
Priority Claims (1)
CN 2015 1 0191293 · Apr 21, 2015 · national
Continuity (1)
Related Publication 20170289204A1 · Oct 5, 2017