WO2017206396A1 - 一种视频播放方法及设备 - Google Patents
一种视频播放方法及设备 Download PDFInfo
- 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
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
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/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/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management 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/262—Content 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/26208—Content 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
-
- 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]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/858—Linking data to content, e.g. by linking an URL to a video object, by creating a hotspot
- H04N21/8586—Linking 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
本发明实施例公开了一种视频播放方法及设备,包括,浏览器通过网页链接获取视频信息;若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求HTML5播放器所支持的第一视频文件;所述浏览器通过所述HTML5播放器播放所述第一视频文件。
Description
本申请要求在2016年5月30日提交中国专利局、申请号为201610371295.2,发明名称为“一种视频播放方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明实施例涉及视频技术领域,尤其涉及一种视频播放方法及设备。
用户在观看视频时,可以通过本地已经安装的播放器播放视频,也可以通过网页播放视频。目前,通过网页播放视频,主要有两种播放模式:Flash模式和HTML(Hypertext Markup Language,超文本标记语言)5模式。
由于相对于HTML5模式,采用Flash模式播放视频时,占用的资源以及功耗都较高,因此目前移动终端均不再支持通过Flash模式播放视频,即移动终端中只能采用HTML5模式播放视频。但是在PC(Personal Computer,个人电脑)端播放视频时,对资源以及功耗的消耗并不敏感,因此PC端通过网页播放视频时,可以通过HTML5模式或Flash模式进行播放。
由于移动终端不支持通过Flash模式播放视频,如果移动终端接收到支持Flash模式的视频链接,则会出现播放失败,从而无法正常播放视频。为此,移动终端在通过网页进行视频播放时,如何播放支持Flash模式的视频链接,还没有一种有效的解决方法。
发明内容
本发明实施例提供一种视频播放方法及设备,用以解决现有技术中,移动终端无法正常播放支持Flash模式的视频链接的问题。
本发明实施例提供一种视频播放方法,包括:
浏览器通过网页链接获取视频信息;
若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;
所述浏览器通过所述HTML5播放器播放所述第一视频文件。
较佳地,所述方法还包括:
若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;
所述浏览器通过所述Flash播放器播放所述第二视频文件。
较佳地,所述浏览器确定所述浏览器对应的终端为移动终端,包括:
所述浏览器检测所述终端所采用的操作系统;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
较佳地,所述浏览器检测所述终端所采用的操作系统,包括:
所述浏览器检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
较佳地,所述浏览器通过所述HTML5播放器播放所述第一视频文件,包括:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;
通过所述HTML5播放器播放解码后的所述第一视频文件。
本发明实施例提供一种视频播放设备,包括:
获取单元,用于通过网页链接获取视频信息;
处理单元,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;
播放单元,用于通过所述HTML5播放器播放所述第一视频文件。
较佳地,所述播放单元还用于:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;
通过所述Flash播放器播放所述第二视频文件。
较佳地,所述处理单元具体用于:
检测所述终端所采用的操作系统;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
较佳地,所述处理单元具体用于:
检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
较佳地,所述播放单元具体用于:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;
通过所述HTML5播放器播放解码后的所述第一视频文件。
一种终端,其特征在于,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:
若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述收发器获取所述第一视频文件并通过所述HTML5播放器播放所述第一视频文件。
根据本发明实施例提供的视频处理方法及设备,在确定终端为移动终端
后,向视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,从而实现在移动终端播放通过HTML5播放器播放所述第一视频文件,避免了移动终端不支持Flash播放器时无法播放视频的问题,实现为用户提供更好的视觉体验。
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种视频播放方法流程示意图;
图2为本发明实施例提供的一种视频播放设备结构示意图;
图3为本发明实施例提供的一种终端的结构示意图。
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
本发明实施例中,移动终端可以是移动电话、平板电脑、个人数码助理(英文:personal digital assistant,缩写:PDA)、移动互联网设备(英文:mobile Internet device,缩写:MID)、可穿戴设备和电子书阅读器(英文:e-book reader)等。
基于上述论述,如图1所示,本发明实施例提供的一种视频播放方法流程示意图。
如图1所示,该方法具体包括以下步骤:
步骤101:浏览器通过网页链接获取视频信息;
步骤102:若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;
步骤103:所述浏览器通过所述HTML5播放器播放所述第一视频文件。
步骤101中,网页链接可以为用户在浏览器中输入的网页地址,也可以为通过即时通信软件接收到的URL(Uniform Resource Locator,全球资源定位器)链接,本发明实施例对此并不限定。
浏览器获取到的视频信息可以包括存储第一视频文件的服务器地址、第一视频文件的视频格式、第一视频文件的持续时长等信息,在此不再逐一举例说明。
步骤102中,浏览器获取网页链接之后,可以检测当前的终端是否为移动终端。检测当前的终端是否为移动终端的方法有多种,由于移动终端采用的操作系统与非移动终端采用的操作系统是不同的,因此浏览器检测所述终端所采用的操作系统,从而可以根据终端所采用的操作系统来判断终端是否为移动终端。
具体的,所述浏览器检测所述终端所采用的操作系统之后,若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。其中,目标操作系统可以为安卓、iOS、Windows Phone、SymbianOS等系统中的任意一种。
需要说明的是,非移动终端采用的操作系统一般为Windows、mac os、unix等系统。非移动终端可以为PC等终端。因此,所述浏览器检测若确定所述终端所采用的操作系统为Windows、mac os、unix等系统,则确定所述终端为非移动终端。
对于如何检测所述终端所采用的操作系统,本发明实施例对此并不限定。举例来说,一种可能的实现方式中,所述浏览器可以检测所述终端发送的HTTP(Hyper Text Transport Protocol,超文本传输协议)报文中用户请求
头中User-Agent(用户代理)的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。User-Agent是一个特殊字符串头,可以使得其他设备能够识别发送携带该User-Agent的HTTP报文的终端使用的操作系统类型及版本、CPU(Central Processing Unit,中央处理器)类型、浏览器类型及版本、浏览器渲染引擎、浏览器语言、浏览器插件等信息。
本发明实施例中,可以通过在网页链接的HTML代码中增加脚本程序,例如在HTML代码中嵌入javascript代码,实现检测所述终端所采用的操作系统,从而实现判断当前的终端是否为移动终端。
本发明实施例中,第一视频文件的格式可以是HTML5播放器所支持的视频格式,例如mp4、Ogg和WebM等格式;第一视频文件的格式可以是Flash播放器所支持的视频格式,例如flv、mp4等格式。
最后,在步骤103中,浏览器可以通过所述HTML5播放器播放所述第一视频文件。
本发明实施例中,为了减少播放视频时,对终端的CPU资源的消耗,可以采用硬件加速技术对第一视频文件的解码。具体的,可以调用GPU(Graphics Processing Unit,图形处理器)对所述第一视频文件进行解码,获得解码后的所述第一视频文件;然后通过所述HTML5播放器播放解码后的所述第一视频文件。
本发明实施例中,服务器中存储的第一视频文件可以对应多个不同分辨率的文件,例如,高清文件、标清文件等。在向服务器请求第一视频文件的同时,还可以获得第一视频文件的分辨率、时间长度等信息,例如,第一视频文件对应多个不同分辨率的文件。可选的,若确定所述第一视频文件对应多个不同分辨率的文件,则优先向服务器请求所述第一视频文件对应的分辨率最高的文件。
可选的,还可以根据终端当前的网络状况确定向服务器所请求的第一视频文件对应的分辨率。例如,若确定所述终端通过wifi连接网络,则优先向服务器请求所述第一视频文件对应的分辨率最高的文件;若确定所述终端通
过3G或4G连接网络,则优先向服务器请求所述第一视频文件对应的分辨率最低的文件。当然,以上只是示例,具体可以根据实际情况选择第一视频文件对应的分辨率,在此不再赘述。
本发明实施例中,若所述浏览器确定所述浏览器对应的终端为非移动终端,则可以向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件,或者,向所述视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,本申请实施例对此并不限定。
可选的,本发明实施例中,为了获得较佳的显示效果,若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;然后通过所述Flash播放器播放所述第二视频文件。
基于相同的发明构思,本发明实施例还提供一种视频播放设备,该视频处理设备可以执行上述方法。
如图2所示,为本发明实施例还提供一种视频播放设备结构示意图,包括:
获取单元201,用于通过网页链接获取视频信息;
处理单元202,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;
播放单元203,用于通过所述HTML5播放器播放所述第一视频文件。
可选的,所述播放单元203还用于:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;
通过所述Flash播放器播放所述第二视频文件。
可选的,所述处理单元202具体用于:
检测所述终端所采用的操作系统;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为
移动终端。
可选的,所述处理单元202具体用于:
检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
可选的,所述播放单元203具体用于:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;
通过所述HTML5播放器播放解码后的所述第一视频文件。
参见图3,为本发明实施例提供的一种终端,该终端可应用于本发明的上述实施例。
该终端可包括一个或多个处理器310以及存储器320,图3中以一个处理器310为例。
执行列表项操作的处理方法的设备还可以包括:输入装置330和输出装置340。
处理器310、存储器320、输入装置330和输出装置330可以通过总线或者其他方式连接,图3中以通过总线连接为例。
存储器320作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的列表项操作的处理方法对应的程序指令/模块。处理器310通过运行存储在存储器320中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例列表项操作的处理方法。
存储器320可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据列表项操作的处理装置的使用所创建的数据等。此外,存储器320可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器320可
选包括相对于处理器310远程设置的存储器,这些远程存储器可以通过网络连接至列表项操作的处理装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
输入装置330可接收输入的数字或字符信息,以及产生与列表项操作的处理装置的用户设置以及功能控制有关的键信号输入。输出装置340可包括显示屏等显示设备。
所述一个或者多个模块存储在所述存储器320中,当被所述一个或者多个处理器310执行时,执行上述任意方法实施例中的列表项操作的处理方法。
处理器310,被配置了一个或多个可执行程序,所述一个或多个可执行程序用于执行以下过程:若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述HTML5播放器播放所述第一视频文件。
较佳地,处理器310还用于:
若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;
通过所述Flash播放器播放所述第二视频文件。
较佳地,处理器310具体用于:
检测所述终端所采用的操作系统;
若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
较佳地,处理器310具体用于:检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
较佳地,处理器310具体用于:
调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;
通过所述HTML5播放器播放解码后的所述第一视频文件。
综上所述,根据本发明实施例提供的视频处理方法及设备,在确定终端
为移动终端后,向视频信息对应的服务器请求HTML5播放器所支持的第一视频文件,从而实现在移动终端播放通过HTML5播放器播放所述第一视频文件,避免了移动终端不支持Flash播放器时无法播放视频的问题,实现为用户提供更好的视觉体验。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储信道(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器指令,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本
发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。
Claims (17)
- 一种视频播放方法,其特征在于,包括:浏览器通过网页链接获取视频信息;若所述浏览器确定所述浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;所述浏览器通过所述HTML5播放器播放所述第一视频文件。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:若所述浏览器确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;所述浏览器通过所述Flash播放器播放所述第二视频文件。
- 根据权利要求1或2所述的方法,其特征在于,所述浏览器确定所述浏览器对应的终端为移动终端,包括:所述浏览器检测所述终端所采用的操作系统;若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
- 根据权利要求3所述的方法,其特征在于,所述浏览器检测所述终端所采用的操作系统,包括:所述浏览器检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
- 根据权利要求1或2所述的方法,其特征在于,所述浏览器通过所述HTML5播放器播放所述第一视频文件,包括:调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;通过所述HTML5播放器播放解码后的所述第一视频文件。
- 一种视频播放设备,其特征在于,包括:获取单元,用于通过网页链接获取视频信息;处理单元,用于若确定浏览器对应的终端为移动终端,则向所述视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;播放单元,用于通过所述HTML5播放器播放所述第一视频文件。
- 根据权利要求6所述的设备,其特征在于,所述播放单元还用于:若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;通过所述Flash播放器播放所述第二视频文件。
- 根据权利要求6或7所述的设备,其特征在于,所述处理单元具体用于:检测所述终端所采用的操作系统;若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
- 根据权利要求8所述的设备,其特征在于,所述处理单元具体用于:检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
- 根据权利要求6或7所述的设备,其特征在于,所述播放单元具体用于:调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;通过所述HTML5播放器播放解码后的所述第一视频文件。
- 一种终端,其特征在于,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够:若确定浏览器对应的终端为移动终端,则通过网页链接向视频信息对应的服务器请求超文本标记语言HTML5播放器所支持的第一视频文件;通过所述收发器获取所述第一视频文件并通过所述HTML5播放器播放所述第一视频文件。
- 根据权利要求11所述的终端,其特征在于,所述处理器还用于:若确定所述浏览器对应的终端为非移动终端,则向所述视频信息对应的服务器请求Flash播放器所支持的第二视频文件;通过所述Flash播放器播放所述第二视频文件。
- 根据权利要求11或12所述的终端,其特征在于,所述处理器具体用于:检测所述终端所采用的操作系统;若确定所述终端所采用的操作系统为目标操作系统,则确定所述终端为移动终端。
- 根据权利要求13所述的终端,其特征在于,所述处理器具体用于:检测所述终端发送的超文本传输协议HTTP报文中用户请求头中User-Agent的值,并根据所述User-Agent的值确定所述终端所采用的操作系统。
- 根据权利要求11或12所述的终端,其特征在于,所述处理器具体用于:调用图形处理器GPU对所述第一视频文件进行解码,获得解码后的所述第一视频文件;通过所述HTML5播放器播放解码后的所述第一视频文件。
- 一种非易失性计算机存储介质,其特征在于,所述非易失性计算机存储介质用于存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行权利要求1至5任一项所述的方法。
- 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非易失性计算机存储介质上计算机程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1至5任一项所述的方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610371295.2 | 2016-05-30 | ||
| CN201610371295.2A CN105959821A (zh) | 2016-05-30 | 2016-05-30 | 一种视频播放方法及设备 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017206396A1 true WO2017206396A1 (zh) | 2017-12-07 |
Family
ID=56911007
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2016/099915 Ceased WO2017206396A1 (zh) | 2016-05-30 | 2016-09-23 | 一种视频播放方法及设备 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105959821A (zh) |
| WO (1) | WO2017206396A1 (zh) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112135199A (zh) * | 2020-09-23 | 2020-12-25 | 平安国际智慧城市科技股份有限公司 | 基于多类型视频源的视频播放方法及相关设备 |
| CN114979719A (zh) * | 2021-02-24 | 2022-08-30 | 北京金山云网络技术有限公司 | 视频播放方法、装置、介质和电子设备 |
| CN115209222A (zh) * | 2022-06-15 | 2022-10-18 | 深圳市锐明技术股份有限公司 | 一种视频播放方法、装置、电子设备及可读存储介质 |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105959821A (zh) * | 2016-05-30 | 2016-09-21 | 乐视控股(北京)有限公司 | 一种视频播放方法及设备 |
| CN106230988A (zh) * | 2016-09-22 | 2016-12-14 | 乐视控股(北京)有限公司 | 一种视频文件播放处理方法及装置 |
| CN108235144B (zh) | 2016-12-22 | 2021-02-19 | 阿里巴巴(中国)有限公司 | 播放内容获取方法、装置及计算设备 |
| CN106919707B (zh) * | 2017-03-10 | 2020-04-07 | 腾讯科技(深圳)有限公司 | 一种基于h5的页面显示方法和终端 |
| CN108228836B (zh) * | 2018-01-04 | 2021-02-02 | 武汉斗鱼网络科技有限公司 | 视频兼容加载方法、装置及视频组件 |
| CN109151570B (zh) * | 2018-10-10 | 2022-04-01 | 深圳市网心科技有限公司 | 一种基于html5的流媒体处理方法、系统及相关组件 |
| CN110248248A (zh) * | 2019-06-05 | 2019-09-17 | 湖南快乐阳光互动娱乐传媒有限公司 | 一种网页视频播放方法及系统 |
| CN112954431A (zh) * | 2021-01-29 | 2021-06-11 | 北京奇艺世纪科技有限公司 | 视频播放方法、装置、视频播放设备及可读存储介质 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102752385A (zh) * | 2012-06-29 | 2012-10-24 | 广东大晋对接信息科技有限公司 | 一种跨平台全景3d展示方法及系统 |
| CN103338401A (zh) * | 2013-06-03 | 2013-10-02 | 贝壳网际(北京)安全技术有限公司 | 用于移动终端浏览器中的视频播放控制方法、装置和系统 |
| CN104125490A (zh) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | 一种在线视频播放方法及装置 |
| CN104954867A (zh) * | 2015-06-26 | 2015-09-30 | 努比亚技术有限公司 | 媒体播放方法及装置 |
| CN105959821A (zh) * | 2016-05-30 | 2016-09-21 | 乐视控股(北京)有限公司 | 一种视频播放方法及设备 |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9443280B2 (en) * | 2011-12-30 | 2016-09-13 | Intel Corporation | Selective hardware acceleration in video playback systems |
| KR102131644B1 (ko) * | 2014-01-06 | 2020-07-08 | 삼성전자주식회사 | 전자장치 및 전자장치에서의 웹 플랫폼 동작방법 |
-
2016
- 2016-05-30 CN CN201610371295.2A patent/CN105959821A/zh active Pending
- 2016-09-23 WO PCT/CN2016/099915 patent/WO2017206396A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102752385A (zh) * | 2012-06-29 | 2012-10-24 | 广东大晋对接信息科技有限公司 | 一种跨平台全景3d展示方法及系统 |
| CN104125490A (zh) * | 2013-04-28 | 2014-10-29 | 腾讯科技(深圳)有限公司 | 一种在线视频播放方法及装置 |
| CN103338401A (zh) * | 2013-06-03 | 2013-10-02 | 贝壳网际(北京)安全技术有限公司 | 用于移动终端浏览器中的视频播放控制方法、装置和系统 |
| CN104954867A (zh) * | 2015-06-26 | 2015-09-30 | 努比亚技术有限公司 | 媒体播放方法及装置 |
| CN105959821A (zh) * | 2016-05-30 | 2016-09-21 | 乐视控股(北京)有限公司 | 一种视频播放方法及设备 |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112135199A (zh) * | 2020-09-23 | 2020-12-25 | 平安国际智慧城市科技股份有限公司 | 基于多类型视频源的视频播放方法及相关设备 |
| CN112135199B (zh) * | 2020-09-23 | 2022-07-29 | 平安国际智慧城市科技股份有限公司 | 基于多类型视频源的视频播放方法及相关设备 |
| CN114979719A (zh) * | 2021-02-24 | 2022-08-30 | 北京金山云网络技术有限公司 | 视频播放方法、装置、介质和电子设备 |
| CN114979719B (zh) * | 2021-02-24 | 2024-05-14 | 北京金山云网络技术有限公司 | 视频播放方法、装置、介质和电子设备 |
| CN115209222A (zh) * | 2022-06-15 | 2022-10-18 | 深圳市锐明技术股份有限公司 | 一种视频播放方法、装置、电子设备及可读存储介质 |
| CN115209222B (zh) * | 2022-06-15 | 2024-02-09 | 深圳市锐明技术股份有限公司 | 一种视频播放方法、装置、电子设备及可读存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105959821A (zh) | 2016-09-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017206396A1 (zh) | 一种视频播放方法及设备 | |
| EP3465467B1 (en) | Web page accelerations for web application hosted in native mobile application | |
| US20180338166A1 (en) | Remotely validating a webpage video stream | |
| CN109068153B (zh) | 视频播放方法、装置和计算机可读存储介质 | |
| CN107390994B (zh) | 界面呈现方法和装置 | |
| JP6466574B2 (ja) | クラウドストリーミングサービスシステム、最適gpuを利用したクラウドストリーミングサービス方法及びそのための装置 | |
| US12032798B1 (en) | Providing content presentation elements in conjunction with a media content item | |
| WO2017092313A1 (zh) | 控制播放设备播放视频的方法和装置 | |
| CN103201759A (zh) | 用于监视与内容封装的可选部分的用户交互的方法和设备 | |
| CN110324671A (zh) | 网页视频播放方法及装置、电子设备及存储介质 | |
| CN104935655A (zh) | 数据展示方法和装置 | |
| JP6314252B2 (ja) | ネットワークビデオ再生方法及び装置 | |
| US20160359989A1 (en) | Recording And Triggering Web And Native Mobile Application Events With Mapped Data Fields | |
| US20140101289A1 (en) | Methods and systems for selecting device applications | |
| US10419798B2 (en) | Method and apparatus for just-in-time transcoding | |
| CN111510770A (zh) | 切换清晰度的方法、装置、计算机设备及可读存储介质 | |
| WO2020155960A1 (zh) | 视频播放方法、系统、计算机设备及计算机可读存储介质 | |
| US10073688B2 (en) | Method and apparatus for executing application | |
| CN103714143A (zh) | 网页数据的处理方法和装置及通信系统 | |
| EP3125541A1 (en) | Data acquisition and interaction method, set top box, server and multimedia system | |
| CN110134450B (zh) | 一种视频重定向方法,装置和计算机可读存储介质 | |
| CN104346460B (zh) | 进行文件下载的方法、装置及浏览器客户端 | |
| JP7399999B2 (ja) | 情報表示方法および装置 | |
| US8868785B1 (en) | Method and apparatus for displaying multimedia content | |
| CN103618961B (zh) | 一种显示视频标题的方法、系统及浏览器 |
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 |