WO2017206396A1 - Video playing method and device - Google Patents

Video playing method and device Download PDF

Info

Publication number
WO2017206396A1
WO2017206396A1 PCT/CN2016/099915 CN2016099915W WO2017206396A1 WO 2017206396 A1 WO2017206396 A1 WO 2017206396A1 CN 2016099915 W CN2016099915 W CN 2016099915W WO 2017206396 A1 WO2017206396 A1 WO 2017206396A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
video file
browser
video
operating system
Prior art date
Application number
PCT/CN2016/099915
Other languages
French (fr)
Chinese (zh)
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 乐视控股(北京)有限公司
Publication of WO2017206396A1 publication Critical patent/WO2017206396A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/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/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/262Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
    • H04N21/26208Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/414Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance
    • H04N21/41407Specialised client platforms, e.g. receiver in car or embedded in a mobile appliance embedded in a portable device, e.g. video client on a mobile phone, PDA, laptop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications
    • H04N21/858Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
    • H04N21/8586Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot by using a URL

Definitions

  • the embodiments of the present invention relate to the field of video technologies, and in particular, to a video playing method and device.
  • Flash mode Flash mode
  • HTML 5 mode Hypertext Markup Language
  • the mobile terminal no longer supports playing the video through the Flash mode, that is, the mobile terminal can only play the video in the HTML5 mode.
  • the PC Personal Computer
  • it is not sensitive to the consumption of resources and power consumption. Therefore, when the PC plays video through a webpage, it can be played in HTML5 mode or Flash mode.
  • the mobile terminal does not support playing video through the Flash mode, if the mobile terminal receives a video link that supports the Flash mode, the playback fails and the video cannot be played normally. For this reason, when the mobile terminal plays video through the webpage, how to play the video link supporting the flash mode has no effective solution.
  • the embodiment of the invention provides a video playing method and device, which are used to solve the problem that the mobile terminal cannot play the video link supporting the Flash mode normally in the prior art.
  • the embodiment of the invention provides a video playing method, including:
  • the browser obtains video information through a web link
  • the browser determines that the terminal corresponding to the browser is a mobile terminal, requesting, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
  • the browser plays the first video file through the HTML5 player.
  • the method further includes:
  • the browser determines that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
  • the browser plays the second video file through the Flash player.
  • the browser determines that the terminal corresponding to the browser is a mobile terminal, and includes:
  • the browser detects an operating system used by the terminal
  • the processing unit is specifically configured to:
  • the terminal determines that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
  • a terminal comprising:
  • At least one processor and,
  • the terminal corresponding to the browser is a mobile terminal, requesting, by the webpage link, the first video file supported by the hypertext markup language HTML5 player to the server corresponding to the video information; acquiring the first video file by using the transceiver The first video file is played by the HTML5 player.
  • a video processing method and device determining that the terminal is a mobile terminal After the first video file supported by the HTML5 player is requested by the server corresponding to the video information, the first video file is played by the HTML5 player in the mobile terminal, so that the mobile terminal cannot be played when the mobile terminal does not support the Flash player.
  • the problem of video is to provide users with a better visual experience.
  • FIG. 1 is a schematic flowchart of a video playing method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic structural diagram of a video playing device according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the method specifically includes the following steps:
  • the webpage link may be a webpage address input by the user in the browser, or may be a URL (Uniform Resource Locator) link received by the instant messaging software, which is not limited by the embodiment of the present invention. .
  • URL Uniform Resource Locator
  • step 102 after the browser obtains the webpage link, it can detect whether the current terminal is a mobile terminal.
  • the browser There are various methods for detecting whether the current terminal is a mobile terminal. Since the operating system used by the mobile terminal is different from the operating system used by the non-mobile terminal, the browser detects the operating system used by the terminal, and thus can be based on the terminal. The operating system used is used to determine whether the terminal is a mobile terminal.
  • the embodiment of the present invention is not limited to how to detect the operating system used by the terminal.
  • the browser may detect a user request in an HTTP (Hyper Text Transport Protocol) message sent by the terminal.
  • HTTP Hyper Text Transport Protocol
  • User-Agent is a special string header that enables other devices to identify the operating system type and version, CPU (Central Processing Unit) type, and browser used by the terminal that sends the HTTP packet carrying the User-Agent.
  • Type and version browser rendering engine, browser language, browser plugin and more.
  • the format of the first video file may be a video format supported by the HTML5 player, such as mp4, Ogg, and WebM; the format of the first video file may be a video format supported by the Flash player, for example, Flv, mp4 and other formats.
  • step 103 the browser can play the first video file through the HTML5 player.
  • the resolution corresponding to the first video file requested by the server may also be determined according to the current network status of the terminal. For example, if it is determined that the terminal connects to the network through wifi, the file with the highest resolution corresponding to the first video file is preferentially requested from the server; If the network is connected to the 3G or 4G network, the file with the lowest resolution corresponding to the first video file is preferentially requested from the server.
  • the resolution corresponding to the first video file may be selected according to actual conditions, and details are not described herein again.
  • the processing unit 202 is configured to: if it is determined that the terminal corresponding to the browser is a mobile terminal, request, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
  • the playing unit 203 is further configured to:
  • the terminal determines that the operating system used by the terminal is a target operating system, determining that the terminal is Mobile terminal.
  • processing unit 202 is specifically configured to:
  • the playing unit 203 is specifically configured to:
  • the decoded first video file is played by the HTML5 player.
  • the terminal may include one or more processors 310 and a memory 320.
  • One processor 310 is exemplified in FIG.
  • the apparatus for performing the processing method of the list item operation may further include: an input device 330 and an output device 340.
  • the processor 310, the memory 320, the input device 330, and the output device 330 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
  • the memory 320 is a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as a processing method for a list item operation in the embodiment of the present application.
  • the processor 310 executes various functional applications of the server and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 320, that is, processing methods for implementing the list item operations of the above method embodiments.
  • Input device 330 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the processing device operating on the list item.
  • the output device 340 can include a display device such as a display screen.
  • the one or more modules are stored in the memory 320, and when executed by the one or more processors 310, perform a processing method of a list item operation in any of the above method embodiments.
  • the processor 310 is further configured to:
  • the processor 310 is specifically configured to:
  • the terminal determines that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable memory channels (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Disclosed are a video playing method and device. The method comprises: a browser obtains video information by means of a webpage link; if determining that a terminal corresponding to the browser is a mobile terminal, the browser requests a server corresponding to the video information for a first video file supported by an HTML5 player; the browser plays the first video file by means of the HTML5 player.

Description

一种视频播放方法及设备Video playing method and device
本申请要求在2016年5月30日提交中国专利局、申请号为201610371295.2,发明名称为“一种视频播放方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610371295.2, filed on May 30, 2016, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本发明实施例涉及视频技术领域,尤其涉及一种视频播放方法及设备。The embodiments of the present invention relate to the field of video technologies, and in particular, to a video playing method and device.
背景技术Background technique
用户在观看视频时,可以通过本地已经安装的播放器播放视频,也可以通过网页播放视频。目前,通过网页播放视频,主要有两种播放模式:Flash模式和HTML(Hypertext Markup Language,超文本标记语言)5模式。When watching a video, the user can play the video through a player already installed locally, or play the video through the webpage. Currently, there are two main playback modes for playing video through the webpage: Flash mode and HTML (Hypertext Markup Language) 5 mode.
由于相对于HTML5模式,采用Flash模式播放视频时,占用的资源以及功耗都较高,因此目前移动终端均不再支持通过Flash模式播放视频,即移动终端中只能采用HTML5模式播放视频。但是在PC(Personal Computer,个人电脑)端播放视频时,对资源以及功耗的消耗并不敏感,因此PC端通过网页播放视频时,可以通过HTML5模式或Flash模式进行播放。Compared with the HTML5 mode, when the video is played in the Flash mode, the occupied resources and power consumption are high. Therefore, the mobile terminal no longer supports playing the video through the Flash mode, that is, the mobile terminal can only play the video in the HTML5 mode. However, when playing video on a PC (Personal Computer), it is not sensitive to the consumption of resources and power consumption. Therefore, when the PC plays video through a webpage, it can be played in HTML5 mode or Flash mode.
由于移动终端不支持通过Flash模式播放视频,如果移动终端接收到支持Flash模式的视频链接,则会出现播放失败,从而无法正常播放视频。为此,移动终端在通过网页进行视频播放时,如何播放支持Flash模式的视频链接,还没有一种有效的解决方法。Since the mobile terminal does not support playing video through the Flash mode, if the mobile terminal receives a video link that supports the Flash mode, the playback fails and the video cannot be played normally. For this reason, when the mobile terminal plays video through the webpage, how to play the video link supporting the flash mode has no effective solution.
发明内容Summary of the invention
本发明实施例提供一种视频播放方法及设备,用以解决现有技术中,移动终端无法正常播放支持Flash模式的视频链接的问题。The embodiment of the invention provides a video playing method and device, which are used to solve the problem that the mobile terminal cannot play the video link supporting the Flash mode normally in the prior art.
本发明实施例提供一种视频播放方法,包括:The embodiment of the invention provides a video playing method, including:
浏览器通过网页链接获取视频信息; The browser obtains video information through a web link;
若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;If the browser determines that the terminal corresponding to the browser is a mobile terminal, requesting, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
所述浏览器通过所述HTML5播放器播放所述第一视频文件。The browser plays the first video file through the HTML5 player.
较佳地,所述方法还包括:Preferably, the method further includes:
若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If the browser determines that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
所述浏览器通过所述Flash播放器播放所述第二视频文件。The browser plays the second video file through the Flash player.
较佳地,所述浏览器确定所述浏览器对应的终端为移动终端,包括:Preferably, the browser determines that the terminal corresponding to the browser is a mobile terminal, and includes:
所述浏览器检测所述终端所采用的操作系统;The browser detects an operating system used by the terminal;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
较佳地,所述浏览器检测所述终端所采用的操作系统,包括:Preferably, the browser detects an operating system used by the terminal, including:
所述浏览器检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。The browser detects the value of the User-Agent in the user request header in the Hypertext Transfer Protocol (HTTP) message sent by the terminal, and determines the operating system used by the terminal according to the value of the User-Agent.
较佳地,所述浏览器通过所述HTML5播放器播放所述第一视频文件,包括:Preferably, the browser plays the first video file by using the HTML5 player, including:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
本发明实施例提供一种视频播放设备,包括:The embodiment of the invention provides a video playing device, including:
获取单元,用于通过网页链接获取视频信息;An obtaining unit, configured to obtain video information through a webpage link;
处理单元,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;a processing unit, configured to: if the terminal corresponding to the browser is a mobile terminal, request the first video file supported by the hypertext markup language HTML5 player from the server corresponding to the video information;
播放单元,用于通过所述HTML5播放器播放所述第一视频文件。 a playing unit, configured to play the first video file by using the HTML5 player.
较佳地,所述播放单元还用于:Preferably, the playing unit is further configured to:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If it is determined that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
通过所述Flash播放器播放所述第二视频文件。Playing the second video file through the Flash player.
较佳地,所述处理单元具体用于:Preferably, the processing unit is specifically configured to:
检测所述终端所采用的操作系统;Detecting an operating system used by the terminal;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
较佳地,所述处理单元具体用于:Preferably, the processing unit is specifically configured to:
检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。Detecting a value of a User-Agent in a user request header in a Hypertext Transfer Protocol HTTP message sent by the terminal, and determining an operating system used by the terminal according to the value of the User-Agent.
较佳地,所述播放单元具体用于:Preferably, the playing unit is specifically configured to:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
一种终端,其特征在于,包括:A terminal, comprising:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述收发器获取所述第一视频文件并通过所述HTML5播放器播放所述第一视频文件。If it is determined that the terminal corresponding to the browser is a mobile terminal, requesting, by the webpage link, the first video file supported by the hypertext markup language HTML5 player to the server corresponding to the video information; acquiring the first video file by using the transceiver The first video file is played by the HTML5 player.
根据本发明实施例提供的视频处理方法及设备,在确定终端为移动终端 后,向视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,从而实现在移动终端播放通过HTML5播放器播放所述第一视频文件,避免了移动终端不支持Flash播放器时无法播放视频的问题,实现为用户提供更好的视觉体验。A video processing method and device according to an embodiment of the present invention, determining that the terminal is a mobile terminal After the first video file supported by the HTML5 player is requested by the server corresponding to the video information, the first video file is played by the HTML5 player in the mobile terminal, so that the mobile terminal cannot be played when the mobile terminal does not support the Flash player. The problem of video is to provide users with a better visual experience.
附图说明DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying for inventive labor.
图1为本发明实施例提供的一种视频播放方法流程示意图;FIG. 1 is a schematic flowchart of a video playing method according to an embodiment of the present disclosure;
图2为本发明实施例提供的一种视频播放设备结构示意图;2 is a schematic structural diagram of a video playing device according to an embodiment of the present invention;
图3为本发明实施例提供的一种终端的结构示意图。FIG. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
具体实施方式detailed description
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。The present invention will be further described in detail with reference to the accompanying drawings, in which FIG. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本发明实施例中,移动终端可以是移动电话、平板电脑、个人数码助理(英文:personal digital assistant,缩写:PDA)、移动互联网设备(英文:mobile Internet device,缩写:MID)、可穿戴设备和电子书阅读器(英文:e-book reader)等。In the embodiment of the present invention, the mobile terminal may be a mobile phone, a tablet computer, a personal digital assistant (abbreviation: PDA), a mobile internet device (English: mobile Internet device, abbreviation: MID), a wearable device, and E-book reader (English: e-book reader).
基于上述论述,如图1所示,本发明实施例提供的一种视频播放方法流程示意图。Based on the above discussion, as shown in FIG. 1 , a schematic flowchart of a video playing method according to an embodiment of the present invention is shown.
如图1所示,该方法具体包括以下步骤: As shown in FIG. 1, the method specifically includes the following steps:
步骤101:浏览器通过网页链接获取视频信息;Step 101: The browser obtains video information through a webpage link;
步骤102:若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;Step 102: If the browser determines that the terminal corresponding to the browser is a mobile terminal, requesting, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
步骤103:所述浏览器通过所述HTML5播放器播放所述第一视频文件。Step 103: The browser plays the first video file by using the HTML5 player.
步骤101中,网页链接可以为用户在浏览器中输入的网页地址,也可以为通过即时通信软件接收到的URL(Uniform Resource Locator,全球资源定位器)链接,本发明实施例对此并不限定。In the step 101, the webpage link may be a webpage address input by the user in the browser, or may be a URL (Uniform Resource Locator) link received by the instant messaging software, which is not limited by the embodiment of the present invention. .
浏览器获取到的视频信息可以包括存储第一视频文件的服务器地址、第一视频文件的视频格式、第一视频文件的持续时长等信息,在此不再逐一举例说明。The video information obtained by the browser may include information such as a server address of the first video file, a video format of the first video file, and a duration of the first video file, which are not illustrated one by one.
步骤102中,浏览器获取网页链接之后,可以检测当前的终端是否为移动终端。检测当前的终端是否为移动终端的方法有多种,由于移动终端采用的操作系统与非移动终端采用的操作系统是不同的,因此浏览器检测所述终端所采用的操作系统,从而可以根据终端所采用的操作系统来判断终端是否为移动终端。In step 102, after the browser obtains the webpage link, it can detect whether the current terminal is a mobile terminal. There are various methods for detecting whether the current terminal is a mobile terminal. Since the operating system used by the mobile terminal is different from the operating system used by the non-mobile terminal, the browser detects the operating system used by the terminal, and thus can be based on the terminal. The operating system used is used to determine whether the terminal is a mobile terminal.
具体的,所述浏览器检测所述终端所采用的操作系统之后,若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。其中,目标操作系统可以为安卓、iOS、Windows Phone、SymbianOS等系统中的任意一种。Specifically, after the browser detects the operating system used by the terminal, if it is determined that the operating system used by the terminal is the target operating system, the terminal is determined to be the mobile terminal. The target operating system may be any one of Android, iOS, Windows Phone, SymbianOS, and the like.
需要说明的是,非移动终端采用的操作系统一般为Windows、mac os、unix等系统。非移动终端可以为PC等终端。因此,所述浏览器检测若确定所述终端所采用的操作系统为Windows、mac os、unix等系统,则确定所述终端为非移动终端。It should be noted that the operating system used by the non-mobile terminal is generally a system such as Windows, mac os, or Unix. The non-mobile terminal can be a terminal such as a PC. Therefore, the browser detects that the terminal is a non-mobile terminal if it determines that the operating system used by the terminal is a system such as Windows, mac os, or unix.
对于如何检测所述终端所采用的操作系统,本发明实施例对此并不限定。举例来说,一种可能的实现方式中,所述浏览器可以检测所述终端发送的HTTP(Hyper Text Transport Protocol,超文本传输协议)报文中用户请求 头中User-Agent(用户代理)的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。User-Agent是一个特殊字符串头,可以使得其他设备能够识别发送携带该User-Agent的HTTP报文的终端使用的操作系统类型及版本、CPU(Central Processing Unit,中央处理器)类型、浏览器类型及版本、浏览器渲染引擎、浏览器语言、浏览器插件等信息。The embodiment of the present invention is not limited to how to detect the operating system used by the terminal. For example, in a possible implementation manner, the browser may detect a user request in an HTTP (Hyper Text Transport Protocol) message sent by the terminal. The value of the User-Agent in the header, and determining the operating system used by the terminal according to the value of the User-Agent. User-Agent is a special string header that enables other devices to identify the operating system type and version, CPU (Central Processing Unit) type, and browser used by the terminal that sends the HTTP packet carrying the User-Agent. Type and version, browser rendering engine, browser language, browser plugin and more.
本发明实施例中,可以通过在网页链接的HTML代码中增加脚本程序,例如在HTML代码中嵌入javascript代码,实现检测所述终端所采用的操作系统,从而实现判断当前的终端是否为移动终端。In the embodiment of the present invention, the script can be added to the HTML code of the webpage link, for example, the javascript code is embedded in the HTML code, and the operating system used by the terminal is detected, thereby determining whether the current terminal is a mobile terminal.
本发明实施例中,第一视频文件的格式可以是HTML5播放器所支持的视频格式,例如mp4、Ogg和WebM等格式;第一视频文件的格式可以是Flash播放器所支持的视频格式,例如flv、mp4等格式。In the embodiment of the present invention, the format of the first video file may be a video format supported by the HTML5 player, such as mp4, Ogg, and WebM; the format of the first video file may be a video format supported by the Flash player, for example, Flv, mp4 and other formats.
最后,在步骤103中,浏览器可以通过所述HTML5播放器播放所述第一视频文件。Finally, in step 103, the browser can play the first video file through the HTML5 player.
本发明实施例中,为了减少播放视频时,对终端的CPU资源的消耗,可以采用硬件加速技术对第一视频文件的解码。具体的,可以调用GPU(Graphics Processing Unit,图形处理器)对所述第一视频文件进行解码,获得解码后的所述第一视频文件;然后通过所述HTML5播放器播放解码后的所述第一视频文件。In the embodiment of the present invention, in order to reduce the consumption of the CPU resources of the terminal when the video is played, the hardware acceleration technology may be used to decode the first video file. Specifically, the first video file may be decoded by using a GPU (Graphics Processing Unit) to obtain the decoded first video file; and then the decoded content is played by the HTML5 player. A video file.
本发明实施例中,服务器中存储的第一视频文件可以对应多个不同分辨率的文件,例如,高清文件、标清文件等。在向服务器请求第一视频文件的同时,还可以获得第一视频文件的分辨率、时间长度等信息,例如,第一视频文件对应多个不同分辨率的文件。可选的,若确定所述第一视频文件对应多个不同分辨率的文件,则优先向服务器请求所述第一视频文件对应的分辨率最高的文件。In the embodiment of the present invention, the first video file stored in the server may correspond to multiple files of different resolutions, for example, a high definition file, a standard definition file, or the like. While requesting the first video file from the server, information such as the resolution, the length of time, and the like of the first video file may also be obtained. For example, the first video file corresponds to a plurality of files of different resolutions. Optionally, if it is determined that the first video file corresponds to multiple files of different resolutions, the file with the highest resolution corresponding to the first video file is preferentially requested from the server.
可选的,还可以根据终端当前的网络状况确定向服务器所请求的第一视频文件对应的分辨率。例如,若确定所述终端通过wifi连接网络,则优先向服务器请求所述第一视频文件对应的分辨率最高的文件;若确定所述终端通 过3G或4G连接网络,则优先向服务器请求所述第一视频文件对应的分辨率最低的文件。当然,以上只是示例,具体可以根据实际情况选择第一视频文件对应的分辨率,在此不再赘述。Optionally, the resolution corresponding to the first video file requested by the server may also be determined according to the current network status of the terminal. For example, if it is determined that the terminal connects to the network through wifi, the file with the highest resolution corresponding to the first video file is preferentially requested from the server; If the network is connected to the 3G or 4G network, the file with the lowest resolution corresponding to the first video file is preferentially requested from the server. Of course, the above is only an example, and the resolution corresponding to the first video file may be selected according to actual conditions, and details are not described herein again.
本发明实施例中,若所述浏览器确定所述浏览器对应的终端为非移动终端,则可以向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件,或者,向所述视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,本申请实施例对此并不限定。In the embodiment of the present invention, if the browser determines that the terminal corresponding to the browser is a non-mobile terminal, the server corresponding to the video information may be requested to request a second video file supported by the Flash player, or The server corresponding to the video information requests the first video file supported by the HTML5 player, which is not limited in this embodiment of the present application.
可选的,本发明实施例中,为了获得较佳的显示效果,若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;然后通过所述Flash播放器播放所述第二视频文件。Optionally, in the embodiment of the present invention, in order to obtain a better display effect, if the browser determines that the terminal corresponding to the browser is a non-mobile terminal, requesting a Flash player from the server corresponding to the video information. a supported second video file; then playing the second video file through the Flash player.
基于相同的发明构思,本发明实施例还提供一种视频播放设备,该视频处理设备可以执行上述方法。Based on the same inventive concept, an embodiment of the present invention further provides a video playing device, which can perform the above method.
如图2所示,为本发明实施例还提供一种视频播放设备结构示意图,包括:As shown in FIG. 2, a schematic structural diagram of a video playing device according to an embodiment of the present invention includes:
获取单元201,用于通过网页链接获取视频信息;The obtaining unit 201 is configured to obtain video information by using a webpage link;
处理单元202,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;The processing unit 202 is configured to: if it is determined that the terminal corresponding to the browser is a mobile terminal, request, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
播放单元203,用于通过所述HTML5播放器播放所述第一视频文件。The playing unit 203 is configured to play the first video file by using the HTML5 player.
可选的,所述播放单元203还用于:Optionally, the playing unit 203 is further configured to:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If it is determined that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
通过所述Flash播放器播放所述第二视频文件。Playing the second video file through the Flash player.
可选的,所述处理单元202具体用于:Optionally, the processing unit 202 is specifically configured to:
检测所述终端所采用的操作系统;Detecting an operating system used by the terminal;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为 移动终端。If it is determined that the operating system used by the terminal is a target operating system, determining that the terminal is Mobile terminal.
可选的,所述处理单元202具体用于:Optionally, the processing unit 202 is specifically configured to:
检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。Detecting a value of a User-Agent in a user request header in a Hypertext Transfer Protocol HTTP message sent by the terminal, and determining an operating system used by the terminal according to the value of the User-Agent.
可选的,所述播放单元203具体用于:Optionally, the playing unit 203 is specifically configured to:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
参见图3,为本发明实施例提供的一种终端,该终端可应用于本发明的上述实施例。Referring to FIG. 3, a terminal according to an embodiment of the present invention is applicable to the foregoing embodiment of the present invention.
该终端可包括一个或多个处理器310以及存储器320,图3中以一个处理器310为例。The terminal may include one or more processors 310 and a memory 320. One processor 310 is exemplified in FIG.
执行列表项操作的处理方法的设备还可以包括:输入装置330和输出装置340。The apparatus for performing the processing method of the list item operation may further include: an input device 330 and an output device 340.
处理器310、存储器320、输入装置330和输出装置330可以通过总线或者其他方式连接,图3中以通过总线连接为例。The processor 310, the memory 320, the input device 330, and the output device 330 may be connected by a bus or other means, as exemplified by a bus connection in FIG.
存储器320作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的列表项操作的处理方法对应的程序指令/模块。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例列表项操作的处理方法。The memory 320 is a non-volatile computer readable storage medium, and can be used for storing non-volatile software programs, non-volatile computer-executable programs, and modules, such as a processing method for a list item operation in the embodiment of the present application. Program instructions/modules. The processor 310 executes various functional applications of the server and data processing by executing non-volatile software programs, instructions, and modules stored in the memory 320, that is, processing methods for implementing the list item operations of the above method embodiments.
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据列表项操作的处理装置的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可 选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至列表项操作的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 320 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function; the storage data area may store data created by use of the processing device operated according to the list item, and the like. . Moreover, memory 320 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 320 can The selection includes memory remotely located relative to the processor 310, which may be connected to the processing device of the list item operation via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置330可接收输入的数字或字符信息,以及产生与列表项操作的处理装置的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。 Input device 330 can receive input numeric or character information and generate key signal inputs related to user settings and function control of the processing device operating on the list item. The output device 340 can include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器320中,当被所述一个或者多个处理器310执行时,执行上述任意方法实施例中的列表项操作的处理方法。The one or more modules are stored in the memory 320, and when executed by the one or more processors 310, perform a processing method of a list item operation in any of the above method embodiments.
处理器310,被配置了一个或多个可执行程序,所述一个或多个可执行程序用于执行以下过程:若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述HTML5播放器播放所述第一视频文件。The processor 310 is configured with one or more executable programs, and the one or more executable programs are configured to perform the following process: if it is determined that the terminal corresponding to the browser is a mobile terminal, corresponding to the video information by using a webpage link The server requests the first video file supported by the hypertext markup language HTML5 player; the first video file is played by the HTML5 player.
较佳地,处理器310还用于:Preferably, the processor 310 is further configured to:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If it is determined that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
通过所述Flash播放器播放所述第二视频文件。Playing the second video file through the Flash player.
较佳地,处理器310具体用于:Preferably, the processor 310 is specifically configured to:
检测所述终端所采用的操作系统;Detecting an operating system used by the terminal;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
较佳地,处理器310具体用于:检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。Preferably, the processor 310 is specifically configured to: detect a value of a User-Agent in a user request header in a Hypertext Transfer Protocol HTTP message sent by the terminal, and determine, according to the value of the User-Agent, the terminal adopts Operating system.
较佳地,处理器310具体用于:Preferably, the processor 310 is specifically configured to:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
综上所述,根据本发明实施例提供的视频处理方法及设备,在确定终端 为移动终端后,向视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,从而实现在移动终端播放通过HTML5播放器播放所述第一视频文件,避免了移动终端不支持Flash播放器时无法播放视频的问题,实现为用户提供更好的视觉体验。In summary, the video processing method and device provided by the embodiment of the present invention determine the terminal. After the mobile terminal is used, the first video file supported by the HTML5 player is requested by the server corresponding to the video information, so that the first video file is played by the HTML5 player in the mobile terminal, thereby avoiding that the mobile terminal does not support the Flash player. The problem of not being able to play the video can provide a better visual experience for the user.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储信道(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable memory channels (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器指令,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. The computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine instruction for generating instructions executed by a processor of a computer or other programmable data processing device Means for implementing the functions specified in one or more flows of the flowchart or in a block or blocks of the flowchart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本 发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the present invention. The spirit and scope of the invention. Thus, it is intended that the present invention cover the modifications and modifications of the invention
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (17)

  1. 一种视频播放方法,其特征在于,包括:A video playing method, comprising:
    浏览器通过网页链接获取视频信息;The browser obtains video information through a web link;
    若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;If the browser determines that the terminal corresponding to the browser is a mobile terminal, requesting, by the server corresponding to the video information, the first video file supported by the hypertext markup language HTML5 player;
    所述浏览器通过所述HTML5播放器播放所述第一视频文件。The browser plays the first video file through the HTML5 player.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If the browser determines that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
    所述浏览器通过所述Flash播放器播放所述第二视频文件。The browser plays the second video file through the Flash player.
  3. 根据权利要求1或2所述的方法,其特征在于,所述浏览器确定所述浏览器对应的终端为移动终端,包括:The method according to claim 1 or 2, wherein the browser determines that the terminal corresponding to the browser is a mobile terminal, and includes:
    所述浏览器检测所述终端所采用的操作系统;The browser detects an operating system used by the terminal;
    若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
  4. 根据权利要求3所述的方法,其特征在于,所述浏览器检测所述终端所采用的操作系统,包括:The method according to claim 3, wherein the browser detects an operating system used by the terminal, including:
    所述浏览器检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。The browser detects the value of the User-Agent in the user request header in the Hypertext Transfer Protocol (HTTP) message sent by the terminal, and determines the operating system used by the terminal according to the value of the User-Agent.
  5. 根据权利要求1或2所述的方法,其特征在于,所述浏览器通过所述HTML5播放器播放所述第一视频文件,包括:The method according to claim 1 or 2, wherein the browser plays the first video file by using the HTML5 player, including:
    调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
    通过所述HTML5播放器播放解码后的所述第一视频文件。 The decoded first video file is played by the HTML5 player.
  6. 一种视频播放设备,其特征在于,包括:A video playing device, comprising:
    获取单元,用于通过网页链接获取视频信息;An obtaining unit, configured to obtain video information through a webpage link;
    处理单元,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;a processing unit, configured to: if the terminal corresponding to the browser is a mobile terminal, request the first video file supported by the hypertext markup language HTML5 player from the server corresponding to the video information;
    播放单元,用于通过所述HTML5播放器播放所述第一视频文件。a playing unit, configured to play the first video file by using the HTML5 player.
  7. 根据权利要求6所述的设备,其特征在于,所述播放单元还用于:The device according to claim 6, wherein the playing unit is further configured to:
    若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If it is determined that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
    通过所述Flash播放器播放所述第二视频文件。Playing the second video file through the Flash player.
  8. 根据权利要求6或7所述的设备,其特征在于,所述处理单元具体用于:The device according to claim 6 or 7, wherein the processing unit is specifically configured to:
    检测所述终端所采用的操作系统;Detecting an operating system used by the terminal;
    若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
  9. 根据权利要求8所述的设备,其特征在于,所述处理单元具体用于:The device according to claim 8, wherein the processing unit is specifically configured to:
    检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。Detecting a value of a User-Agent in a user request header in a Hypertext Transfer Protocol HTTP message sent by the terminal, and determining an operating system used by the terminal according to the value of the User-Agent.
  10. 根据权利要求6或7所述的设备,其特征在于,所述播放单元具体用于:The device according to claim 6 or 7, wherein the playing unit is specifically configured to:
    调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
    通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
  11. 一种终端,其特征在于,包括:A terminal, comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中, a memory communicatively coupled to the at least one processor; wherein
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:The memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor to enable the at least one processor to:
    若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述收发器获取所述第一视频文件并通过所述HTML5播放器播放所述第一视频文件。If it is determined that the terminal corresponding to the browser is a mobile terminal, requesting, by the webpage link, the first video file supported by the hypertext markup language HTML5 player to the server corresponding to the video information; acquiring the first video file by using the transceiver The first video file is played by the HTML5 player.
  12. 根据权利要求11所述的终端,其特征在于,所述处理器还用于:The terminal according to claim 11, wherein the processor is further configured to:
    若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;If it is determined that the terminal corresponding to the browser is a non-mobile terminal, requesting, by the server corresponding to the video information, a second video file supported by the Flash player;
    通过所述Flash播放器播放所述第二视频文件。Playing the second video file through the Flash player.
  13. 根据权利要求11或12所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 11 or 12, wherein the processor is specifically configured to:
    检测所述终端所采用的操作系统;Detecting an operating system used by the terminal;
    若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。If it is determined that the operating system used by the terminal is the target operating system, determining that the terminal is a mobile terminal.
  14. 根据权利要求13所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 13, wherein the processor is specifically configured to:
    检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。Detecting a value of a User-Agent in a user request header in a Hypertext Transfer Protocol HTTP message sent by the terminal, and determining an operating system used by the terminal according to the value of the User-Agent.
  15. 根据权利要求11或12所述的终端,其特征在于,所述处理器具体用于:The terminal according to claim 11 or 12, wherein the processor is specifically configured to:
    调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;Calling a graphics processor GPU to decode the first video file to obtain the decoded first video file;
    通过所述HTML5播放器播放解码后的所述第一视频文件。The decoded first video file is played by the HTML5 player.
  16. 一种非易失性计算机存储介质,其特征在于,所述非易失性计算机存储介质用于存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行权利要求1至5任一项所述的方法。 A non-volatile computer storage medium for storing computer-executable instructions for causing the computer to perform claims 1 to 5 The method of any of the preceding claims.
  17. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机存储介质上计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1至5任一项所述的方法。 A computer program product, comprising: a computer program stored on a non-volatile computer storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, The computer performs the method of any one of claims 1 to 5.
PCT/CN2016/099915 2016-05-30 2016-09-23 Video playing method and device WO2017206396A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610371295.2 2016-05-30
CN201610371295.2A CN105959821A (en) 2016-05-30 2016-05-30 Video play method and device

Publications (1)

Publication Number Publication Date
WO2017206396A1 true WO2017206396A1 (en) 2017-12-07

Family

ID=56911007

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/099915 WO2017206396A1 (en) 2016-05-30 2016-09-23 Video playing method and device

Country Status (2)

Country Link
CN (1) CN105959821A (en)
WO (1) WO2017206396A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135199A (en) * 2020-09-23 2020-12-25 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN114979719A (en) * 2021-02-24 2022-08-30 北京金山云网络技术有限公司 Video playing method, device, medium and electronic equipment
CN115209222A (en) * 2022-06-15 2022-10-18 深圳市锐明技术股份有限公司 Video playing method and device, electronic equipment and readable storage medium

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959821A (en) * 2016-05-30 2016-09-21 乐视控股(北京)有限公司 Video play method and device
CN106230988A (en) * 2016-09-22 2016-12-14 乐视控股(北京)有限公司 A kind of processing method for playing video files and device
CN108235144B (en) * 2016-12-22 2021-02-19 阿里巴巴(中国)有限公司 Playing content obtaining method and device and computing equipment
CN106919707B (en) * 2017-03-10 2020-04-07 腾讯科技(深圳)有限公司 Page display method and terminal based on H5
CN108228836B (en) * 2018-01-04 2021-02-02 武汉斗鱼网络科技有限公司 Video compatible loading method and device and video component
CN109151570B (en) * 2018-10-10 2022-04-01 深圳市网心科技有限公司 Streaming media processing method and system based on HTML5 and related components
CN110248248A (en) * 2019-06-05 2019-09-17 湖南快乐阳光互动娱乐传媒有限公司 Webpage video playing method and system
CN112954431A (en) * 2021-01-29 2021-06-11 北京奇艺世纪科技有限公司 Video playing method and device, video playing equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752385A (en) * 2012-06-29 2012-10-24 广东大晋对接信息科技有限公司 Cross-platform panorama three-dimensional display method and system
CN103338401A (en) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 Video playing control method, device and system for mobile terminal browser
CN104125490A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Online video playing method and device
CN104954867A (en) * 2015-06-26 2015-09-30 努比亚技术有限公司 Media playing method and device
CN105959821A (en) * 2016-05-30 2016-09-21 乐视控股(北京)有限公司 Video play method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2798522A4 (en) * 2011-12-30 2015-08-05 Intel Corp Selective hardware acceleration in video playback systems
KR102131644B1 (en) * 2014-01-06 2020-07-08 삼성전자주식회사 Electronic apparatus and operating method of web-platform

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752385A (en) * 2012-06-29 2012-10-24 广东大晋对接信息科技有限公司 Cross-platform panorama three-dimensional display method and system
CN104125490A (en) * 2013-04-28 2014-10-29 腾讯科技(深圳)有限公司 Online video playing method and device
CN103338401A (en) * 2013-06-03 2013-10-02 贝壳网际(北京)安全技术有限公司 Video playing control method, device and system for mobile terminal browser
CN104954867A (en) * 2015-06-26 2015-09-30 努比亚技术有限公司 Media playing method and device
CN105959821A (en) * 2016-05-30 2016-09-21 乐视控股(北京)有限公司 Video play method and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112135199A (en) * 2020-09-23 2020-12-25 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN112135199B (en) * 2020-09-23 2022-07-29 平安国际智慧城市科技股份有限公司 Video playing method based on multiple types of video sources and related equipment
CN114979719A (en) * 2021-02-24 2022-08-30 北京金山云网络技术有限公司 Video playing method, device, medium and electronic equipment
CN114979719B (en) * 2021-02-24 2024-05-14 北京金山云网络技术有限公司 Video playing method, device, medium and electronic equipment
CN115209222A (en) * 2022-06-15 2022-10-18 深圳市锐明技术股份有限公司 Video playing method and device, electronic equipment and readable storage medium
CN115209222B (en) * 2022-06-15 2024-02-09 深圳市锐明技术股份有限公司 Video playing method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
CN105959821A (en) 2016-09-21

Similar Documents

Publication Publication Date Title
WO2017206396A1 (en) Video playing method and device
US20180338166A1 (en) Remotely validating a webpage video stream
EP3465467B1 (en) Web page accelerations for web application hosted in native mobile application
CN109068153B (en) Video playing method and device and computer readable storage medium
US9542501B2 (en) System and method for presenting content in a client/server environment
AU2013325007B2 (en) Systems and methods for sharing files among multiple terminals
WO2017092313A1 (en) Method and apparatus for controlling video playing of playing device
US10516903B2 (en) Method and apparatus for transmitting video data
US11016716B2 (en) Picture interface display method and apparatus according to jump protocol
JP6466574B2 (en) Cloud streaming service system, cloud streaming service method using optimal GPU, and apparatus therefor
US8689099B1 (en) Cross-domain communication
US9942305B2 (en) Method and apparatus for resource downloading over a network from multiple sources
JP6314252B2 (en) Network video playback method and apparatus
US10419798B2 (en) Method and apparatus for just-in-time transcoding
US9874989B1 (en) Providing content presentation elements in conjunction with a media content item
US20140101289A1 (en) Methods and systems for selecting device applications
US20150127709A1 (en) Providing reliable session initiation protocol (sip) signaling for web real-time communications (webrtc) interactive flows, and related methods, systems, and computer-readable media
WO2020155959A1 (en) Definition switching method and apparatus, computer device, and readable storage medium
WO2020155960A1 (en) Video playback method and system, computer device, and computer readable storage medium
EP3125541A1 (en) Data acquisition and interaction method, set top box, server and multimedia system
JP7399999B2 (en) Information display method and device
US10073688B2 (en) Method and apparatus for executing application
CN114302176B (en) Video playing method and device
US8868785B1 (en) Method and apparatus for displaying multimedia content
US11758016B2 (en) Hosted application as web widget toolkit

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

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

Ref document number: 16903778

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16903778

Country of ref document: EP

Kind code of ref document: A1