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

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

Info

Publication number
WO2019154014A1
WO2019154014A1 PCT/CN2019/071344 CN2019071344W WO2019154014A1 WO 2019154014 A1 WO2019154014 A1 WO 2019154014A1 CN 2019071344 W CN2019071344 W CN 2019071344W WO 2019154014 A1 WO2019154014 A1 WO 2019154014A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
application
information
target application
search
Prior art date
Application number
PCT/CN2019/071344
Other languages
English (en)
French (fr)
Inventor
骆杰明
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2019154014A1 publication Critical patent/WO2019154014A1/zh

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/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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/954Navigation, e.g. using categorised browsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/73Querying
    • G06F16/738Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/70Information retrieval; Database structures therefor; File system structures therefor of video data
    • G06F16/74Browsing; Visualisation therefor
    • G06F16/748Hypervideo
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • H04N21/4722End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content for requesting additional data associated with the content
    • 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/81Monomedia components thereof
    • H04N21/8166Monomedia components thereof involving executable data, e.g. software
    • H04N21/8173End-user applications, e.g. Web browser, game

Definitions

  • the embodiment of the present application provides a video playing method, device, storage medium, and electronic device, which can improve the efficiency of playing video by an electronic device.
  • a first playing module configured to receive a video play request, and play the first video indicated by the video play request by using a current application
  • An application search module configured to search, according to the video information, application information of a target application that plays the second video;
  • a file obtaining module configured to provide an application portal of the target application in the current application according to the application information, and acquire a configuration file corresponding to the target application when the application portal is triggered;
  • a storage medium provided by an embodiment of the present application has a computer program stored thereon, and when the computer program runs on a computer, causes the computer to perform the following steps:
  • FIG. 1 is a schematic diagram of an application scenario of a video playing method according to an embodiment of the present disclosure.
  • FIG. 2 is a schematic flowchart of a video playing method according to an embodiment of the present application.
  • FIG. 4 is a diagram showing an example of triggering an application portal and playing a second video in a native interface of a target application in an embodiment of the present application.
  • FIG. 5 is another schematic flowchart of a video playing method according to an embodiment of the present application.
  • the searching for video information of the second video includes:
  • the playing the second video in the native interface comprises:
  • the obtaining, before the application portal triggers, the configuration file corresponding to the target application further includes:
  • Playing the second video in the native interface including:
  • the cached second video is decoded and played in the native interface.
  • FIG. 1 is a schematic diagram of an application scenario of a video playing method according to an embodiment of the present disclosure.
  • the video device is integrated into an electronic device as an example, and the electronic device can receive a video play request and play a video play request through the current application.
  • the first video indicated; the video information of the second video is searched, the second video is associated with the first video; the application information of the target application that plays the second video is searched according to the video information; and the target application is provided in the current application according to the application information.
  • the application portal and when the application portal is triggered, obtains a configuration file corresponding to the target application; generates a native interface of the target application according to the configuration file, and plays the second video in the native interface.
  • the video play request may be received in the current application, and the current application may be an application that the electronic device has installed, or may be a fast application.
  • the embodiment of the present application does not specifically limit the type of the current application, as long as the video can be played, and may be various types of applications, such as a video application, a browser application, and an information aggregation application.
  • the current application is a browser application "XX browser", the user currently browses the Internet content through the XX browser, and when browsing to the video of interest, he can click the icon of the video to trigger the instruction XX browser to play the video.
  • association relationship between the first video and the second video may be multiple:
  • the search server is used to provide a search engine service.
  • the search engine refers to collecting information from the Internet by using a specific computer program according to a certain policy, and providing a search service for the user after organizing the information.
  • the relevant information retrieved by the user is displayed on each user's system.
  • Search engines include full-text index search engines, directory index search engines, meta search engines, vertical search engines, collective search engines, portal search engines, and free link list search engines. It should be noted that the embodiment of the present application does not specifically limit what kind of search engine service is provided by the search server.
  • the application entry of the target application is provided in the current application according to the application information of the target application.
  • the configuration file corresponding to the target application is obtained, and the configuration file is a configuration file of the fast application corresponding to the target application.
  • the electronic device parses the foregoing statement according to a configuration file corresponding to the target application (that is, a configuration file corresponding to the fast application of the target application), and the framework file parses the statement in the configuration file into a display.
  • the element and through the corresponding relationship between the display element set in the frame file and the target application native view, converts the parsed display element into a native view of the target application, and performs local rendering according to the converted native view to generate a corresponding target application.
  • the fast application interface is the native interface of the target application.
  • the second video is decoded and played in the native interface.
  • the configuration file further includes a code file of a data transmission service running the target application, and the data transmission service can implement data transmission of the video server corresponding to the target application.
  • the data transmission service of the target application is started according to the configuration file, that is, the code file corresponding to the data transmission service in the configuration file is started, thereby starting the data transmission of the target application. service.
  • the second video After receiving the second video returned by the video server, the second video is decoded and played in the native interface of the target application.
  • the foregoing decoding of the first video may be specifically referred to. Related descriptions are not described here.
  • the electronic device starts a built-in timer to start timing when the first video is started to play, so as to obtain the played duration of the first video by using the timer.
  • a preset duration that is, whether the timer duration of the timer reaches a preset duration, where the preset duration is used to describe whether the user is
  • the first video played is of interest, and can be set by a person skilled in the art according to experience.
  • the preset duration can be set to 45 seconds, the first video has been played for 45 seconds, or the user has watched the first video. At 45 seconds, the user's first video is considered to be of interest, and there is a need to view the second video associated with the first video.
  • the configuration file of the corresponding target application returned by the application server is received, and the received configuration file is cached in a preset buffer.
  • the size of the buffer area and the setting of the path are not limited, and may be set by a person skilled in the art according to actual needs.
  • acquiring a configuration file corresponding to the target application includes the following steps:
  • the cached second video is decoded and played in the native interface.
  • the application entry of the target application is provided in the current application according to the application information of the target application.
  • the embodiment of the present application first receives a video play request, and plays a first video indicated by the video play request through the current application; then searches for video information of the second video, where the second video is associated with the first video;
  • the information search plays the application information of the target application of the second video; the application entry of the target application is provided in the current application according to the application information, and the configuration file corresponding to the target application is obtained when the application portal is triggered; and finally the target application is generated according to the configuration file.
  • the native interface plays a second video in the native interface, enabling automatic playback of the video, eliminating the need for the user to manually select the video, and eliminating the need to download and install additional video applications, which can improve the efficiency of the video played by the electronic device.
  • the video playing method may include:
  • the video identifier may be a video name of the video to be played, a part of the video name, or other nouns that may be associated with the video that needs to be played.
  • the video application that carries the video identifier of the first video is sent to the video server where the first video is located by the current application, and is used to indicate that the video server where the first video is located returns the video data of the first video.
  • the electronic device receives the video data of the first video returned by the video server where the first video is located.
  • the video play request may be received in other applications, where the other application may be an application that the electronic device has installed, or may be an online application, or may be a fast application or the like.
  • the other application is a browser application "XX browser", the user currently browses the Internet content through the XX browser, and the browser page displays four videos A, B, C, and D.
  • Video video icon if the user is interested in the video D, the user can click the icon of the video D to trigger a video play request, the video play request is used to indicate that the video D is played through the current application "XX video"; correspondingly, the electronic
  • the device switches the XX video indicated by the video play request to the foreground, and plays the video D indicated by the video play request through the XX video.
  • the application server searches for the target application that plays the second video according to the application search request, and returns the program name “XX video” of the video playback application as the application information of the target application.
  • the application information is associated with the fast application corresponding to the target application, for example, the target application is video application A, and the application information “XX” is associated with the video application A and the video application A.
  • Application A is associated with the fast application corresponding to the target application, for example, the target application is video application A, and the application information “XX” is associated with the video application A and the video application A.
  • the configuration file obtaining request for carrying the application information is sent to the application server, where the configuration file obtaining request is used to instruct the application server to return a configuration file corresponding to the target application, when the played time duration of the first video reaches a preset duration;
  • the size of the buffer area and the setting of the path are not limited, and may be set by a person skilled in the art according to actual needs.
  • the video transmission request of the video information of the second video may be sent to the video server associated with the target application by using the data transmission service, where the video acquisition request is used to instruct the video server to return the second video.
  • the electronic device monitors the playing process of the first video in real time to determine whether the first video is played, and then provides an application entry of the target application in the current application according to the application information of the target application when the first video is played.
  • the provided application portal does not affect the user watching the first video being played.
  • the embodiment of the present application first receives a video play request, and plays a first video indicated by the video play request through the current application; then searches for video information of the second video, where the second video is associated with the first video;
  • the information search plays the application information of the target application of the second video; the application entry of the target application is provided in the current application according to the application information, and the configuration file corresponding to the target application is obtained when the application portal is triggered; and finally the target application is generated according to the configuration file.
  • the native interface plays a second video in the native interface, enabling automatic playback of the video, eliminating the need for the user to manually select the video, and eliminating the need to download and install additional video applications, which can improve the efficiency of the video played by the electronic device.
  • FIG. 6 is a schematic structural diagram of a video playback apparatus 400 according to an embodiment of the present disclosure.
  • the video playback device 400 is applied to an electronic device.
  • the video playback device 400 includes a first play module 401, an information search module 402, an application search module 403, a file acquisition module 404, and a program execution module, as follows:
  • the information search module 402 is configured to search for video information of the second video, where the second video is associated with the first video;
  • the application search module 403 is configured to search, according to the video information of the second video, application information of the target application that plays the second video;
  • the file obtaining module 404 is configured to provide an application portal of the target application in the current application according to the application information of the target application, and acquire a configuration file corresponding to the target application when the application portal triggers;
  • the information search module 40 when searching for video information of the second video, the information search module 40 may be configured to:
  • the video search request is used to instruct the search server to search for video information of the second video;
  • the application search module 403 when searching for the application information of the target application of the second video according to the video information of the second video, the application search module 403 may be configured to:
  • the second video is decoded and played in the native interface of the target application.
  • the second playing module 405 before acquiring the configuration file of the target application, is further configured to:
  • the second video is obtained from the video server associated with the target application through the data transmission service, and the second video is cached.
  • the file obtaining module 404 can be used to:
  • the cached second video is decoded and played in the native interface of the target application.
  • the file obtaining module 404 is further configured to:
  • the application entry of the target application is provided in the current application according to the application information of the target application.
  • the first play module 401 when receiving a video play request, can be used to:
  • each of the above modules may be implemented as a separate entity, or may be implemented in any combination, as the same or several entities.
  • the video playback device belongs to the same concept as the video playback method in the above embodiment, and plays in the video. Any method provided in the embodiment of the video playing method may be run on the device. For the specific implementation process, refer to the embodiment of the video playing method, and details are not described herein again.
  • the video playback device 400 of the present embodiment can receive the video play request by the first play module 401, and play the first video indicated by the video play request by the current application; the information search module 402 searches for the video information of the second video.
  • the second video is associated with the first video;
  • the application search module 403 searches for the application information of the target application that plays the second video according to the video information; and the file acquisition module 404 provides the application entry of the target application in the current application according to the application information, and
  • the second playback module 405 generates a native interface of the target application according to the configuration file, and plays the second video in the native interface, thereby realizing automatic playback of the video without the user.
  • Manually selecting videos without the need to download and install additional video applications can increase the efficiency of video playback on electronic devices.
  • the electronic device 500 includes a processor 501 and a memory 502.
  • the processor 501 is electrically connected to the memory 502.
  • the processor 500 is a control center of the electronic device 500 that connects various portions of the entire electronic device using various interfaces and lines, by running or loading a computer program stored in the memory 502, and recalling data stored in the memory 502, The various functions of the electronic device 500 are performed and the data is processed to enable automatic change of material information of the electronic device.
  • the memory 502 can be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by running computer programs and modules stored in the memory 502.
  • the memory 502 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, a computer program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to Data created by the use of electronic devices, etc.
  • memory 502 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 volatile solid state storage device. Accordingly, memory 502 can also include a memory controller to provide processor 501 access to memory 502.
  • the native interface of the target application is generated according to the configuration file, and the second video is played in the native interface of the target application.
  • the electronic device 500 may further include: a display 503, a radio frequency circuit 504, an audio circuit 505, and a power source 506.
  • the display 503, the radio frequency circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501, respectively.
  • the radio frequency circuit 504 can be used to transmit and receive radio frequency signals to establish wireless communication with a network device or other electronic device through wireless communication, and to transmit and receive signals with a network device or other electronic device.
  • the audio circuit 505 can be used to provide an audio interface between a user and an electronic device through a speaker or a microphone.
  • the power source 506 can be used to power various components of the electronic device 500.
  • the power source 506 can be logically coupled to the processor 501 through a power management system to enable functions such as managing charging, discharging, and power management through the power management system.
  • the electronic device 500 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the processor 501 in the electronic device 500 loads the instructions corresponding to the process of one or more computer programs into the memory 502 according to the following steps, and is stored in the memory 502 by the processor 501.
  • the computer program in which to implement various functions, as follows:
  • the native interface of the target application is generated according to the configuration file, and the second video is played in the native interface of the target application.
  • the processor 501 when searching for video information of the second video, the processor 501 may specifically perform the following steps:
  • the video search request is used to instruct the search server to search for video information of the second video;
  • the processor 501 when playing the second video in the native interface of the target application, can perform the following steps:
  • the second video is decoded and played in the native interface of the target application.
  • the processor 501 may further perform the following steps before acquiring the configuration file corresponding to the target application when the application is triggered:
  • the application server When the played duration reaches a preset duration, the application server sends a configuration file acquisition request that carries the application information, where the configuration file acquisition request is used to instruct the application server to return a configuration file corresponding to the target application;
  • the cached second video is decoded and played in the native interface of the target application.
  • the processor 501 may further perform the following steps:
  • the application entry of the target application is provided in the current application according to the application information of the target application.
  • the electronic device has the same concept as the video playing method in the above embodiment, and any method provided in the embodiment of the video playing method can be run on the electronic device, and the specific implementation process is described in the video playing method. For example, it will not be described here.
  • the computer program may be stored in a computer readable storage medium, such as in a memory of the electronic device, and executed by at least one processor in the electronic device, and may include, for example, a video playing method during execution.
  • the storage medium may be a magnetic disk, an optical disk, a read only memory, a random access memory, or the like.
  • each functional module may be integrated into one processing chip, or each module may exist physically separately, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules.
  • the integrated module if implemented in the form of a software functional module and sold or used as a standalone product, may also be stored in a computer readable storage medium, such as a read only memory, a magnetic disk or an optical disk, etc. .

Abstract

本申请实施例公开了一种视频播放方法、装置、存储介质及电子设备,包括:接收视频播放请求,并通过当前应用播放其指示的第一视频;然后搜索播放第二视频的目标应用的应用信息;再根据应用信息提供目标应用的应用入口,并在应用入口触发时,生成目标应用的原生界面,在原生界面中播放第二视频。

Description

视频播放方法、装置、存储介质及电子设备
本申请要求于2018年02月06日提交中国专利局、申请号为201810119072.6、发明名称为“视频播放方法、装置、存储介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子设备技术领域,具体涉及一种视频播放方法、装置、存储介质及电子设备。
背景技术
随着智能手机等电子设备的普及,使用者可以在电子设备上安装应用来实现各种各样的功能,比如,可以在电子设备安装信息聚合类应用,从而通过该聚合类应用获得丰富的各类型信息,如新闻类信息、音视频信息等。
例如,当使用者通过信息聚合类应用播放某电影的预告片时,若对该电影感兴趣,便会搜索下载能够播放该电影的视频应用,然后安装下载的视频应用,再运行安装的视频应用,最后在视频应用中搜索到感兴趣的电影进行播放。
发明内容
本申请实施例提供了一种视频播放方法、装置、存储介质及电子设备,能够提升电子设备播放视频的效率。
第一方面,本申请实施例了提供了的一种视频播放方法,包括:
接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
第二方面,本申请实施例提供了的一种视频播放装置,包括:
第一播放模块,用于接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
信息搜索模块,用于搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
应用搜索模块,用于根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
文件获取模块,用于根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
第二播放模块,用于根据所述配置文件生成所述目标应用的原生原生界面,并在所述原生界面中播放所述第二视频。
第三方面,本申请实施例提供的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行如下步骤:
接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
第四方面,本申请实施例提供的电子设备,包括处理器和存储器,所述存储器有计算机程序,所述处理器通过调用所述计算机程序,用于执行如下步骤:
接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
附图说明
下面结合附图,通过对本申请的具体实施方式详细描述,将使本申请的技术方案及其有益效果显而易见。
图1为本申请实施例提供的视频播放方法的应用场景示意图。
图2是本申请实施例提供的视频播放方法的一个流程示意图。
图3是本申请一实施例中播放使用者指示的视频D的示例图。
图4是本申请一实施例中触发应用入口并在目标应用的原生界面中播放第二视频的示例图。
图5是本申请实施例提供的视频播放方法的另一个流程示意图。
图6是本申请实施例提供的视频播放装置的一结构示意图。
图7是本申请实施例提供的电子设备的一个结构示意图。
图8是本申请实施例提供的电子设备的另一结构示意图。
具体实施方式
请参照图式,其中相同的组件符号代表相同的组件,本申请的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本申请具体实施例,其不应被视为限制本申请未在此详述的其它具体实施例。
本申请实施例提供一种视频播放方法,包括:
接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
在一些实施例中,所述搜索第二视频的视频信息,包括:
向搜索服务器发送视频搜索请求,所述视频搜索请求用于指示所述搜索服务器搜索所述第二视频的视频信息;
接收所述搜索服务器返回的所述第二视频的视频信息。
在一些实施例中,所述根据所述视频信息搜索播放所述第二视频的目标应用的应用信息,包括:
根据所述视频信息向应用服务器发送应用搜索请求,所述应用搜索请求用于指示所述应用服务器搜索所述目标应用的应用信息;
接收所述应用服务器返回的所述目标应用的应用信息。
在一些实施例中,所述在所述原生界面中播放所述第二视频,包括:
根据所述配置文件启动所述目标应用的数据传输服务;
通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频;
将所述第二视频解码后在所述原生界面中播放。
在一些实施例中,所述在所述应用入口触发时,获取对应所述目标应用的配置文件之前,还包括:
判断所述第一视频的已播放时长是否达到预设时长;
在所述已播放时长达到所述预设时长时,向所述应用服务器发送携带所述应用信息的配置文件获取请求,所述配置文件获取请求用于指示所述应用服务器返回对应所述目标应用的配置文件;
缓存所述应用服务器返回的对应所述目标应用的配置文件;
根据缓存的所述配置文件启动所述目标应用的数据传输服务,
通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频,并缓存所述第二视 频。
在一些实施例中,所述在所述应用入口触发时,获取对应所述目标应用的配置文件,包括:
在所述应用入口触发时,获取缓存的所述配置文件;
在所述原生界面中播放所述第二视频,包括:
将缓存的所述第二视频解码后在所述原生界面中播放。
在一些实施例中,所述根据所述应用信息在所述当前应用中提供所述目标应用的应用入口之前,还包括:
判断所述第一视频是否播放完成;
在所述第一视频播放完成时,根据所述应用信息在所述当前应用中提供所述目标应用的应用入口。
在一些实施例中,所述接收视频播放请求,包括:
在所述当前应用中接收所述视频播放请求;
或者,在其他应用中接收所述视频播放请求。
本申请实施例提供一种视频播放方法,该视频播放方法的执行主体可以是本申请实施例提供的视频播放装置,或者集成了该视频播放装置的电子设备,其中该视频播放装置可以采用硬件或者软件的方式实现。其中,电子设备可以是智能手机、平板电脑、掌上电脑、笔记本电脑、或者台式电脑等设备。
请参阅图1,图1为本申请实施例提供的视频播放方法的应用场景示意图,以视频播放装置集成在电子设备中为例,电子设备可以接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;搜索第二视频的视频信息,第二视频与第一视频相关联;根据视频信息搜索播放第二视频的目标应用的应用信息;根据应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;根据配置文件生成目标应用的原生界面,并在原生界面中播放第二视频。
具体地,请参照图1,以使用者通过浏览器应用浏览网页为例,可以在浏览器应用中接收使用者输入的视频播放请求,该视频播放请求指示使用者需要观看的第一视频,也即是需要播放的第一视频,比如,使用者当前通过XX浏览器浏览到感兴趣的电影预告片时,可以点击该电影预告片的图标,触发指示播放该视频的视频播放请求;根据接收到的视频播放请求获取到前述预告片的视频数据,并获取到的视频数据解码后在浏览器应用中播放;在播放期间,搜索与前述预告片相关联的第二视频的视频信息(视频信息用于描述第二视频),比如,该第二视频可以是前述预告片对应的电影;根据搜索到的视频信息进一步搜索播放前述电影的目标应用的应用信息(应用信息用于描述目标应用);在浏览器应用中提供目标应用的应用入口,比如,可以在浏览器应用的界面上叠加显示目标应用的应用入口;在目标应用的应用入口被使用者触发时,获取到目标应用的配置文件;最后根据获取到配置文件生成目标应用的原生界面,并在生成的原生界面中播放前述电影。其中,该原生界面也可以通俗的称为“快应用”,从而在未安装目标应用的前提下,实现目标应用的运行。
请参照图2,图2为本申请实施例提供的视频播放方法的流程示意图。本申请实施例提供的视频播放方法的具体流程可以如下:
201、接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频。
本申请实施例中,可以在当前应用中接收视频播放请求,当前应用可以是电子设备已安装的应用,也可以是快应用。此外,本申请实施例对于当前应用的类型不做具体限制,只要能够实现视频的播放即可,可以是视频类应用、浏览器类应用、信息聚合类应用等各类型应用。
比如,当前应用为浏览器类应用“XX浏览器”,使用者当前通过XX浏览器浏览互联网内容,在浏览到感兴趣的视频时,可以点击该视频的图标,触发指示XX浏览器播放该视频的视频播放请求;相应的,电子设备在XX浏览器中接收使用者触发的视频播放请求。
此外,视频播放请求携带有需要播放的视频的视频标识,该视频标识可以为映射到需要播放的视频的字符或者字符串。
其中,视频标识可以是需要播放的视频的视频名称、视频名称的一部分,或者是可以联想到需要播放的视频的其它名词等。
比如,使用者当前通过XX浏览器浏览互联网内容,当对XX电影的预告片视频感兴趣时,点击该预告片视频的图标,将触发指示播放该预告片视频的视频播放请求,该视频播放请求携带该预告片视频的视频名称“XX预告片”作为该预告片视频的视频标识。
需要说明的是,本申请实施例中,将视频播放请求指示的需要播放的视频记为第一视频,将需要播放的视频的视频标识记为第一视频标识。
本申请实施例中,在接收到视频播放请求之后,电子设备首先解析出该视频播放请求携带的视频标识,根据解析出的视频标识确定出需要播放的第一视频。
之后,通过当前应用向第一视频所在的视频服务器发送携带第一视频的视频标识的视频获取请求,用于指示第一视频所在的视频服务器返回第一视频的视频数据。
相应的,电子设备接收第一视频所在的视频服务器所返回的第一视频的视频数据。
在接收到第一视频的视频数据时,即可将第一视频的视频数据解码后在当前应用中播放。
可选的,在其他实施例中,可以在其他应用中接收视频播放请求,其中,其他应用可以是电子设备已安装的应用,也可以是在线应用,还可以是快应用等。
比如,请参照图3,该其他应用为浏览器应用“XX浏览器”,使用者当前通过XX浏览器浏览互联网内容,浏览器页面展示有视频A、视频B、视频C以及视频D共四个视频的视频图标,若使用者对视频D感兴趣,则可以点击视频D的图标,触发视频播放请求,该视频播放请求用于指示通过当前应用“XX视频”播放该视频D;相应的,电子设备在XX浏览器中接收到使用者触发的视频播放请求之后,将视频播放请求指示的XX视频切换至前台运行,并通过XX视频播放视频播放请求指示的视频D。
可具体的,在一个可选的实施方式中,在播放第一视频时,首先对第一视频的视频数据进行解复用,得到第一视频的视频数据所对应的解复用数据以及解复用数据的格式信息;然后根据解复用数据的格式信息初始化硬件解码器;在采用初始化后的硬件解码器对解复用数据进行解码,得到对应解复用数据的解码数据;最后采用硬件渲染器对解码数据进行渲染,得到第一视频的视频数据所对应的图像帧序列,将图像帧序列按照时间戳顺序依次在当前应用中展示即可实现第一视频的播放。
需要说明的是,在另一个可选的实施方式中,在播放第一视频时,还可以采用软件解码器的方式实现对第一视频的解码、播放,具体实现方式此处不再赘述。
202、搜索第二视频的视频信息,第二视频与第一视频相关联。
本申请实施例中,第一视频和第二视频之间的关联关系可以为多种:
比如,第一视频和第二视频之间的关联关系可以是包括关系,假设第一视频为某电影视频的预告片视频,通常的,预告片视频由电影视频中截取出精彩的视频片段组合而成,那么,与该预告片视频(第一视频)相关联的第二视频即为包括该预告片视频的电影视频。
又比如,第一视频和第二视频之间的关联关系可以是先后顺序,假设第一视频属于某视频集合,以视频集合为连续剧为例,第一视频可以是某连续剧中的第N集,那么,与该第N集连续剧视频(第一视频)相关联的第二视频为该连续剧的第N+1集连续剧视频。
此外,视频集合也可以是用户或者视频服务商创建的视频播单,比如,以系列电影为例,可以按照该系列电影的故事发展顺序,对该系列电影中的各电影视频进行排序,并创建对应该系列电影的视频播单;假设第一视频为该视频播单中的某一电影视频,那么,与该电影视频(第一视频)相关联的第二视频为视频播单中该电影视频的后一电影视频。
可具体的,作为一种可选的实施方式,搜索第二视频的视频信息,包括如下步骤:
向搜索服务器发送视频搜索请求,该视频搜索请求用于指示搜索服务器搜索第二视频的视频信息;
接收搜索服务器返回的第二视频的视频信息。
本申请实施例中,搜索服务器用于提供搜索引擎服务,搜索引擎是指根据一定的策略,运用特定的计算机程序从互联网上搜集信息,在对信息进行组织处理后,为用户提供检索服务,最终将用户检索的相关信息展示各用户的系统。搜索引擎包括全文索引搜索引擎、目录索引搜索引擎、元搜索引擎、垂直搜索引擎、集合式搜索引擎、门户搜索引擎以及免费链接列表搜索引擎等。需要说明的是,本申请实施例对于搜索服务器提供何种搜索引擎服务不做具体限制。
其中,在搜索第二视频的视频信息时,一方面,电子设备首先按照预定报文格式构建视频搜索请求,该视频搜索请求至少包括第一视频的视频标识;之后,将构建的视频搜索请求发送至搜索服务器,指示搜索服务器搜索与第一视频相关联的第二视频的视频信息,并接收搜索服务器返回的第二视频的视频信息;另一方面,搜索服务器在接收到电子设备发送的视频搜索请求之后,按照视频搜索请求的指示,搜索与第一视频关联的第二视频的视频信息,该视频信息用于描述第二视频,比如,可以采用视频标识作为视频信息;之后,将搜索到的第二视频的视频信息返回至电子设备。
203、根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息。
需要说明的是,在播放视频时,电子设备需要从待播放视频所在的视频服务器获取到待播放视频之后,才能实现对待播放视频的播放。然而,视频服务器归属于视频服务商,由于版权原因,不同视频服务商的视频服务器提供的可播放视频往往不同。
比如,A视频服务商的视频服务器提供有A电影,但A视频服务商限制其视频服务器仅向其运营的A视频应用和A快应用提供服务,也即是说,除A视频应用和A快应用之外的其它应用都不能实现A电影的播放。
因此,本申请实施例中在搜索到与第一视频关联的第二视频的视频信息之后,进一步根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息,该应用信息用于描述目标应用。
可具体的,根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息,包括以下步骤:
根据第二视频的视频信息向应用服务器发送应用搜索请求,该应用搜索请求用于指示应用服务器搜索目标应用的应用信息;
接收应用服务器返回的目标应用的应用信息。
其中,应用服务器作为使用者与开发者的“中间人”,为使用者和开发者提供平台服务,一方面,开发者可以将自身开发的“快应用”上传至应用服务器,通过“快应用平台”提供给使用者使用;另一方面,使用者可以根据自己使用需求,通过“快应用平台”查找到需要使用的快应用进行使用。
本申请实施例中,搜索播放第二视频的目标应用的应用信息正是查找需要使用的快应用的过程。
在一个可选的实施方式中,应用服务器存储维护有应用与视频的关联关系,该关联关系用于描述某个视频可以被哪个应用播放,或者可以被哪几个应用播放。在搜索播放第二视频的目标应用的应用信息时,一方面,电子设备首先按照预定报文格式构建应用搜索请求,该应用搜索请求至少包括第二视频的视频信息;之后,将构建的应用搜索请求发送至应用服务器,指示应用服务器搜索与能够播放第二视频的目标应用的应用信息,并接收应用服务器返回的目标应用的应用信息;另一方面,应用服务器在接收到电子设备发送的应用搜索请求之后,按照应用搜索请求的指示,根据存储的应用与视频的关联关系,搜索到能够播放第二视频的目标应用的应用信息,该应用信息用于描述目标应用;之后,将搜索到的目标应用的应用信息返回至电子设备。
其中,应用信息可以是目标应用的程序标识,程序标识为可以映射到目标应用的字符或字符串,例如,程序标识可以是目标应用的程序名称、程序名称的一部分,或者是可以联想到目标应用的其它名词等。
比如,应用服务器根据应用搜索请求搜索到播放第二视频的目标应用为某视频播放类应用,则返回该视频播放类应用的程序名称“XX视频”作为目标应用的应用信息。
在另一个可选的实施方式中,应用服务器未存储维护有应用与视频的关联关系。在搜索播放第二视频的目标应用的应用信息时,一方面,电子设备首先按照预定报文格式构建应用搜索请求,该应用搜索请求至少包括第二视频的视频信息;之后,将构建的应用搜索请求发送至应用服务器,指示应用服务器搜索与能够播放第二视频的目标应用的应用信息,并接收应用服务器返回的目标应用的应用信息;另一方面,应用服务器在接收到电子设备发送的应用搜索请求之后,解析出应用搜索请求携带的视频信息,并根据该视频信息构建应用搜索请求,将构建的应用搜索请求发送至搜索服务器,指示搜索服务器搜索能够播放第二视频的目标应用的应用信息;在接收到搜索服务器返回的能够播放第二视频的目标应用的应用信息之后,将该应用信息返回至电子设备。
需要说明的是,应用信息除了关联目标应用之外,还与目标应用对应的快应用关联,比如,目标应用为视频应用A,应用信息“XX”同时关联视频应用A以及视频应用A对应的快应用A。
204、根据目标应用的应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件。
本申请实施例中,在搜索到第二视频的视频信息,以及搜索到播放第二视频的目标应用的应用信息之后,根据目标应用的应用信息在当前应用中提供目标应用的应用入口。在目标应用的应用入口被触发时,获取对应目标应用的配置文件,该配置文件即是对应目标应用的快应用的配置文件。
比如,请参照图4,当前应用为XX视频,应用入口以“播放”控件的形式提供,并叠加显示XX视频的界面之上,使用者可以通过点击的方式触发目标应用的应用入口;之后,电子设备将获取到对应目标应用的配置文件。
可具体的,在一种实施方式中,获取对应目标应用的配置文件,包括以下步骤:
在应用入口触发时,向应用服务器发送携带应用信息的配置文件获取请求,配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件;
缓存应用服务器返回的配置文件。
其中,对应目标应用的配置文件也即是对应目标应用的快应用的配置文件,该配置文件用于供电子设备生成并显示目标应用的原生界面,从而使得电子设备在未安装应用的情况下,能够实现已安装应用相同的运行效果。
具体的,配置文件包括描述目标应用的界面的语句,该语句包括界面展示所需的数据以及界面的运行逻辑。
前述数据可以包括目标应用界面需要展示的显示元素、显示元素的布局信息、该显示元素展示所需 的资源地址等,其中,布局信息可以包括各个显示元素的位置、尺寸、颜色等信息,资源地址可以为电子设备本地资源的地址或者应用服务器上存储的资源的链接地址。
前述运行逻辑可以包括点击显示元素时需要跳转的界面地址,或者点击该显示元素需要执行的操作,或者其他用户操作对应的需要执行的操作。
需要说明的是,前述数据以及运行逻辑均可基于Java Script语言实现。
205、根据配置文件生成目标应用的原生界面,并在目标应用的原生界面中播放第二视频。
其中,电子设备根据对应目标应用的配置文件(也即是对应目标应用的快应用的配置文件),调用内置于操作系统的框架文件解析前述语句,框架文件会将配置文件中的语句解析为显示元素,并通过框架文件中设置的显示元素与目标应用原生视图的对应关系,将解析得到的显示元素转换为目标应用的原生视图,并根据转换得到的原生视图进行本地渲染,生成对应目标应用的快应用的界面,也即是目标应用的原生界面。
之后,即可在目标应用的原生界面中播放第二视频,可具体的,在一种实施方式中,在原生界面中播放第二视频包括:
根据配置文件启动目标应用的数据传输服务;
通过数据传输服务从目标应用关联的视频服务器中获取第二视频;
将第二视频解码后在原生界面中播放。
需要说明的是,配置文件还包括运行目标应用的数据传输服务的代码文件,通过该数据传输服务可以实现与目标应用对应的视频服务器的数据传输。本申请实施例中,在生成目标应用的原生界面的同时,还根据配置文件启动目标应用的数据传输服务,也即是运行配置文件中对应数据传输服务的代码文件,从而启动目标应用的数据传输服务。
在启动目标应用的数据传输服务之后,即可通过数据传输服务向目标应用关联的视频服务器发送携带第二视频的视频信息的视频获取请求,该视频获取请求用于指示视频服务器返回第二视频。
在接收到视频服务器返回的第二视频之后,即可将第二视频解码后在目标应用的原生界面内进行播放,其中,对于第二视频的解码方式,具体可参照前述对第一视频解码的相关描述,此处不再赘述。
可选的,为提升视频播放的连续性,在一实施例中,在应用入口触发时,获取对应目标应用的配置文件之前,还包括:
判断第一视频的已播放时长是否达到预设时长;
在已播放时长达到预设时长时,向应用服务器发送携带目标应用的应用信息的配置文件获取请求,该配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件;
缓存应用服务器返回的对应目标应用的配置文件;
根据缓存的配置文件启动目标应用的数据传输服务,
通过数据传输服务从目标应用关联的视频服务器中获取第二视频,并缓存第二视频。
其中,电子设备在开始播放第一视频时即启动内置的定时器进行计时,以通过该计时器来获得第一视频的已播放时长。在第一播放期间,实时判断第一视频的已播放时长是否达到预设时长,也即是判断前述定时器的计时时长是否达到预设时长,其中,该预设时长用于描述使用者是否对播放的第一视频感兴趣,具体可由本领域技术人员根据经验进行设置,比如,可以将预设时长设置为45秒,在第一视频已播放达到45秒,或者说使用者已观看第一视频45秒时,即可认为使用者第一视频感兴趣,存在观看与第一视频相关联的第二视频的需求。
在第一视频的已播放时长达到预设时长,也即是判定使用者存在观看与第一视频关联的第二视频的需求时,向应用服务器发送携带目标应用的应用信息的配置文件获取请求,该配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件。
之后,接收应用服务器返回的对应目标应用的配置文件,并将接收到的配置文件缓存至预设的缓存区中。需要说明的是,本申请实施例对于缓存区的大小以及路径的设置不做限定,可由本领域技术人员根据实际需要进行设置。
之后,根据缓存的配置文件启动目标应用的数据传输服务,也即是运行配置文件中对应数据传输服务的代码文件,从而启动目标应用的数据传输服务。
在启动目标应用的数据传输服务之后,即可通过数据传输服务向目标应用关联的视频服务器发送携带第二视频的视频信息的视频获取请求,该视频获取请求用于指示视频服务器返回第二视频。
之后,接收视频服务器根据视频获取请求返回的第二视频,并将接收到的第二视频缓存至预设的视频缓存区中。需要说明的是,本申请实施例对于视频缓存区的大小以及路径的设置不做限定,可由本领域技术人员根据实际需要进行设置。
可具体的,在该实施例中,在应用入口触发时,获取对应目标应用的配置文件,包括以下步骤:
在应用入口触发时,获取缓存的对应目标应用的配置文件;
在目标应用的原生界面中播放第二视频,包括:
将缓存的第二视频解码后在原生界面中播放。
其中,由于对应目标应用的配置文件已经缓存在本地的缓存区中,在应用入口触发时,从缓存区中获取缓存的对应目标应用的配置文件即可。同时,由于当前已经缓存有第二视频的视频数据,无需再从视频服务器获取第二视频,只需从本地提取出缓存的第二视频,将第二视频解码后在目标应用的原生界面中播放即可。其中,对于第二视频的解码方式,具体可参照前述对第一视频解码的相关描述,此处不再赘述。
为不影响使用者观看第一视频,在一实施例中,根据目标应用的应用信息在当前应用中提供目标应用的应用入口之前,还包括以下步骤:
判断第一视频是否播放完成;
在第一视频播放完成时,根据目标应用的应用信息在当前应用中提供目标应用的应用入口。
其中,电子设备实时对第一视频的播放进程进行监控,以判断第一视频是否播放完成,进而在第一视频播放完成时,根据目标应用的应用信息在当前应用中提供目标应用的应用入口,由此,使得提供的应用入口不会影响使用者观看播放的第一视频。
由上可知,本申请实施例首先接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;然后搜索第二视频的视频信息,第二视频与第一视频相关联;再根据视频信息搜索播放第二视频的目标应用的应用信息;再根据应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;最后根据配置文件生成目标应用的原生界面,并在原生界面中播放第二视频,从而实现对视频的自动播放,无需用户手动选择视频,且无需下载安装额外的视频应用,能够提高电子设备播放视频的效率。
下面将在上述实施例描述的方法基础上,对本申请的视频播放方法做进一步介绍。参考图5,该视频播放方法可以包括:
301、接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频。
本申请实施例中,可以在当前应用中接收视频播放请求,当前应用可以是电子设备已安装的应用,也可以是快应用。此外,本申请实施例对于当前应用的类型不做具体限制,只要能够实现视频的播放即可,可以是视频类应用、浏览器类应用、信息聚合类应用等各类型应用。
比如,当前应用为浏览器类应用“XX浏览器”,使用者当前通过XX浏览器浏览互联网内容,在浏览到感兴趣的视频时,可以点击该视频的图标,触发指示XX浏览器播放该视频的视频播放请求;相应的,电子设备在XX浏览器中接收使用者触发的视频播放请求。
此外,视频播放请求携带有需要播放的视频的视频标识,该视频标识可以为映射到需要播放的视频的字符或者字符串。
其中,视频标识可以是需要播放的视频的视频名称、视频名称的一部分,或者是可以联想到需要播放的视频的其它名词等。
比如,使用者当前通过XX浏览器浏览互联网内容,当对XX电影的预告片视频感兴趣时,点击该预告片视频的图标,将触发指示播放该预告片视频的视频播放请求,该视频播放请求携带该预告片视频的视频名称“XX预告片”作为该预告片视频的视频标识。
需要说明的是,本申请实施例中,将视频播放请求指示的需要播放的视频记为第一视频,将需要播放的视频的视频标识记为第一视频标识。
本申请实施例中,在接收到视频播放请求之后,电子设备首先解析出该视频播放请求携带的视频标识,根据解析出的视频标识确定出需要播放的第一视频。
之后,通过当前应用向第一视频所在的视频服务器发送携带第一视频的视频标识的视频获取请求,用于指示第一视频所在的视频服务器返回第一视频的视频数据。
相应的,电子设备接收第一视频所在的视频服务器所返回的第一视频的视频数据。
在接收到第一视频的视频数据时,即可将第一视频的视频数据解码后在当前应用中播放。
可选的,在其他实施例中,可以在其他应用中接收视频播放请求,其中,其他应用可以是电子设备已安装的应用,也可以是在线应用,还可以是快应用等。
比如,请参照图3,该其他应用为浏览器应用“XX浏览器”,使用者当前通过XX浏览器浏览互联网内容,浏览器页面展示有视频A、视频B、视频C以及视频D共四个视频的视频图标,若使用者对视频D感兴趣,则可以点击视频D的图标,触发视频播放请求,该视频播放请求用于指示通过当前应用“XX 视频”播放该视频D;相应的,电子设备在XX浏览器中接收到使用者触发的视频播放请求之后,将视频播放请求指示的XX视频切换至前台运行,并通过XX视频播放视频播放请求指示的视频D。
可具体的,在一个可选的实施方式中,在播放第一视频时,首先对第一视频的视频数据进行解复用,得到第一视频的视频数据所对应的解复用数据以及解复用数据的格式信息;然后根据解复用数据的格式信息初始化硬件解码器;在采用初始化后的硬件解码器对解复用数据进行解码,得到对应解复用数据的解码数据;最后采用硬件渲染器对解码数据进行渲染,得到第一视频的视频数据所对应的图像帧序列,将图像帧序列按照时间戳顺序依次在当前应用中展示即可实现第一视频的播放。
需要说明的是,在另一个可选的实施方式中,在播放第一视频时,还可以采用软件解码器的方式实现对第一视频的解码、播放,具体实现方式此处不再赘述。
302、向搜索服务器发送视频搜索请求,并接收搜索服务器根据视频搜索请求返回的,与第一视频关联的第二视频的视频信息。
本申请实施例中,搜索服务器用于提供搜索引擎服务,搜索引擎是指根据一定的策略,运用特定的计算机程序从互联网上搜集信息,在对信息进行组织处理后,为用户提供检索服务,最终将用户检索的相关信息展示各用户的系统。搜索引擎包括全文索引搜索引擎、目录索引搜索引擎、元搜索引擎、垂直搜索引擎、集合式搜索引擎、门户搜索引擎以及免费链接列表搜索引擎等。需要说明的是,本申请实施例对于搜索服务器提供何种搜索引擎服务不做具体限制。
其中,在搜索第二视频的视频信息时,一方面,电子设备首先按照预定报文格式构建视频搜索请求,该视频搜索请求至少包括第一视频的视频标识;之后,将构建的视频搜索请求发送至搜索服务器,指示搜索服务器搜索与第一视频相关联的第二视频的视频信息,并接收搜索服务器返回的第二视频的视频信息;另一方面,搜索服务器在接收到电子设备发送的视频搜索请求之后,按照视频搜索请求的指示,搜索与第一视频关联的第二视频的视频信息,该视频信息用于描述第二视频,比如,可以采用视频标识作为视频信息;之后,将搜索到的第二视频的视频信息返回至电子设备。
本申请实施例中,第一视频和第二视频之间的关联关系可以为多种:
比如,第一视频和第二视频之间的关联关系可以是包括关系,假设第一视频为某电影视频的预告片视频,通常的,预告片视频由电影视频中截取出精彩的视频片段组合而成,那么,与该预告片视频(第一视频)相关联的第二视频即为包括该预告片视频的电影视频。
又比如,第一视频和第二视频之间的关联关系可以是先后顺序,假设第一视频属于某视频集合,以视频集合为连续剧为例,第一视频可以是某连续剧中的第N集,那么,与该第N集连续剧视频(第一视频)相关联的第二视频为该连续剧的第N+1集连续剧视频。
此外,视频集合也可以是用户或者视频服务商创建的视频播单,比如,以系列电影为例,可以按照该系列电影的故事发展顺序,对该系列电影中的各电影视频进行排序,并创建对应该系列电影的视频播单;假设第一视频为该视频播单中的某一电影视频,那么,与该电影视频(第一视频)相关联的第二视频为视频播单中该电影视频的后一电影视频。
303、根据第二视频的视频信息向应用服务器发送应用搜索请求,并接收应用服务器根据应用搜索请求返回的目标应用的应用信息。
需要说明的是,在播放视频时,电子设备需要从待播放视频所在的视频服务器获取到待播放视频之后,才能实现对待播放视频的播放。然而,视频服务器归属于视频服务商,由于版权原因,不同视频服务商的视频服务器提供的可播放视频往往不同。
比如,A视频服务商的视频服务器提供有A电影,但A视频服务商限制其视频服务器仅向其运营的A视频应用和A快应用提供服务,也即是说,除A视频应用和A快应用之外的其它应用都不能实现A电影的播放。
因此,本申请实施例中在搜索到与第一视频关联的第二视频的视频信息之后,进一步根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息,该应用信息用于描述目标应用。
其中,应用服务器作为使用者与开发者的“中间人”,为使用者和开发者提供平台服务,一方面,开发者可以将自身开发的“快应用”上传至应用服务器,通过“快应用平台”提供给使用者使用;另一方面,使用者可以根据自己使用需求,通过“快应用平台”查找到需要使用的快应用进行使用。
本申请实施例中,搜索播放第二视频的目标应用的视频信息正是查找需要使用的快应用的过程。
在一个可选的实施方式中,应用服务器存储维护有应用与视频的关联关系,该关联关系用于描述某个视频可以被哪个应用播放,或者可以被哪几个应用播放。在搜索播放第二视频的目标应用的应用信息时,一方面,电子设备首先按照预定报文格式构建应用搜索请求,该应用搜索请求至少包括第二视频的视频信息;之后,将构建的应用搜索请求发送至应用服务器,指示应用服务器搜索与能够播放第二视频 的目标应用的应用信息,并接收应用服务器返回的目标应用的应用信息;另一方面,应用服务器在接收到电子设备发送的应用搜索请求之后,按照应用搜索请求的指示,根据存储的应用与视频的关联关系,搜索到能够播放第二视频的目标应用的应用信息,该应用信息用于描述目标应用;之后,将搜索到的目标应用的应用信息返回至电子设备。
其中,应用信息可以是目标应用的程序标识,程序标识为可以映射到目标应用的字符或字符串,例如,程序标识可以是目标应用的程序名称、程序名称的一部分,或者是可以联想到目标应用的其它名词等。
比如,应用服务器根据应用搜索请求搜索到播放第二视频的目标应用为某视频播放类应用,则返回该视频播放类应用的程序名称“XX视频”作为目标应用的应用信息。
在另一个可选的实施方式中,应用服务器未存储维护有应用与视频的关联关系。在搜索播放第二视频的目标应用的应用信息时,一方面,电子设备首先按照预定报文格式构建应用搜索请求,该应用搜索请求至少包括第二视频的视频信息;之后,将构建的应用搜索请求发送至应用服务器,指示应用服务器搜索与能够播放第二视频的目标应用的应用信息,并接收应用服务器返回的目标应用的应用信息;另一方面,应用服务器在接收到电子设备发送的应用搜索请求之后,解析出应用搜索请求携带的视频信息,并根据该视频信息构建应用搜索请求,将构建的应用搜索请求发送至搜索服务器,指示搜索服务器搜索能够播放第二视频的目标应用的应用信息;在接收到搜索服务器返回的能够播放第二视频的目标应用的应用信息之后,将该应用信息返回至电子设备。
需要说明的是,应用信息除了关联目标应用之外,还与目标应用对应的快应用关联,比如,目标应用为视频应用A,应用信息“XX”同时关联视频应用A以及视频应用A对应的快应用A。
304、在第一视频的已播放时长达到预设时长时,向应用服务器发送携带应用信息的配置文件获取请求,该配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件;
其中,电子设备在开始播放第一视频时即启动内置的定时器进行计时,以通过该计时器来获得第一视频的已播放时长。在第一播放期间,实时判断第一视频的已播放时长是否达到预设时长,也即是判断前述定时器的计时时长是否达到预设时长,其中,该预设时长用于描述使用者是否对播放的第一视频感兴趣,具体可由本领域技术人员根据经验进行设置,比如,可以将预设时长设置为45秒,在第一视频已播放达到45秒,或者说使用者已观看第一视频45秒时,即可认为使用者第一视频感兴趣,存在观看与第一视频相关联的第二视频的需求。
在第一视频的已播放时长达到预设时长,也即是判定使用者存在观看与第一视频关联的第二视频的需求时,向应用服务器发送携带目标应用的应用信息的配置文件获取请求,该配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件。
其中,对应目标应用的配置文件也即是对应目标应用的快应用的配置文件,该配置文件用于供电子设备生成并显示目标应用的原生界面,从而使得电子设备在未安装应用的情况下,能够实现已安装应用相同的运行效果。
305、缓存应用服务器返回的对应目标应用的配置文件;
在向应用服务器发送携带应用信息的配置文件获取请求之后,接收应用服务器返回的对应目标应用的配置文件,并将接收到的配置文件缓存至预设的缓存区中。需要说明的是,本申请实施例对于缓存区的大小以及路径的设置不做限定,可由本领域技术人员根据实际需要进行设置。
306、根据缓存的对应目标应用配置文件启动目标应用的数据传输服务。
需要说明的是,配置文件还包括运行目标应用的数据传输服务的代码文件,通过该数据传输服务可以实现与目标应用对应的视频服务器的数据传输。本申请实施例中,在生成目标应用的原生界面的同时,还根据配置文件启动目标应用的数据传输服务,也即是运行配置文件中对应数据传输服务的代码文件,从而启动目标应用的数据传输服务。
307、通过数据传输服务从目标应用关联的视频服务器中获取第二视频,并缓存第二视频。
在启动目标应用的数据传输服务之后,即可通过数据传输服务向目标应用关联的视频服务器发送携带第二视频的视频信息的视频获取请求,该视频获取请求用于指示视频服务器返回第二视频。
之后,接收视频服务器根据视频获取请求返回的第二视频,并将接收到的第二视频缓存至预设的视频缓存区中。需要说明的是,本申请实施例对于视频缓存区的大小以及路径的设置不做限定,可由本领域技术人员根据实际需要进行设置。
308、在第一视频播放完成时,根据应用信息在当前应用中提供目标应用的应用入口。
其中,电子设备实时对第一视频的播放进程进行监控,以判断第一视频是否播放完成,进而在第一视频播放完成时,根据目标应用的应用信息在当前应用中提供目标应用的应用入口,由此,使得提供的 应用入口不会影响使用者观看播放的第一视频。
309、在应用入口触发时,获取缓存的配置文件,并根据配置文件生成目标应用的原生界面。
具体的,配置文件包括描述目标应用的界面的语句,该语句包括界面展示所需的数据以及界面的运行逻辑。
前述数据可以包括目标应用界面需要展示的显示元素、显示元素的布局信息、该显示元素展示所需的资源地址等,其中,布局信息可以包括各个显示元素的位置、尺寸、颜色等信息,资源地址可以为电子设备本地资源的地址或者应用服务器上存储的资源的链接地址。
前述运行逻辑可以包括点击显示元素时需要跳转的界面地址,或者点击该显示元素需要执行的操作,或者其他用户操作对应的需要执行的操作。
需要说明的是,前述数据以及运行逻辑均可基于Java Script语言实现。
其中,应用入口触发时,由于对应目标应用的配置文件已经缓存在本地的缓存区中,在应用入口触发时,从缓存区中获取缓存的对应目标应用的配置文件即可。在获取到对应目标应用的配置文件之后,根据配置文件(也即是对应目标应用的快应用的配置文件)调用内置于操作系统的框架文件解析前述语句,框架文件会将配置文件中的语句解析为显示元素,并通过框架文件中设置的显示元素与目标应用原生视图的对应关系,将解析得到的显示元素转换为目标应用的原生视图,并根据转换得到的原生视图进行本地渲染,生成对应目标应用的快应用的界面,也即是目标应用的原生界面。
310、将缓存的第二视频解码后在目标应用的原生界面中播放。
由于当前已经缓存有第二视频的视频数据,无需再从视频服务器获取第二视频,只需从本地提取出缓存的第二视频,将第二视频解码后在目标应用的原生界面中播放即可。其中,对于第二视频的解码方式,具体可参照前述对第一视频解码的相关描述,此处不再赘述。
由上可知,本申请实施例首先接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;然后搜索第二视频的视频信息,第二视频与第一视频相关联;再根据视频信息搜索播放第二视频的目标应用的应用信息;再根据应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;最后根据配置文件生成目标应用的原生界面,并在原生界面中播放第二视频,从而实现对视频的自动播放,无需用户手动选择视频,且无需下载安装额外的视频应用,能够提高电子设备播放视频的效率。
在一实施例中还提供了一种视频播放装置。请参阅图6,图6为本申请实施例提供的视频播放装置400的结构示意图。其中该视频播放装置400应用于电子设备,该视频播放装置400包括第一播放模块401、信息搜索模块402、应用搜索模块403、文件获取模块404以及程序运行模块,如下:
第一播放模块401,用于接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;
信息搜索模块402,用于搜索第二视频的视频信息,第二视频与第一视频相关联;
应用搜索模块403,用于根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息;
文件获取模块404,用于根据目标应用的应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;
第二播放模块405,用于根据配置文件生成目标应用的原生界面,并在目标应用的原生界面中播放第二视频。
在一实施例中,搜索第二视频的视频信息时,信息搜索模块40可以用于:
向搜索服务器发送视频搜索请求,视频搜索请求用于指示搜索服务器搜索第二视频的视频信息;
接收搜索服务器返回的第二视频的视频信息。
在一实施例中,在根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息时,应用搜索模块403可以用于:
根据第二视频的视频信息向应用服务器发送应用搜索请求,应用搜索请求用于指示应用服务器搜索目标应用的应用信息;
接收应用服务器返回的目标应用的应用信息。
在一实施例中,在目标应用的原生界面中播放第二视频时,第二播放模块405可以用于:
根据对应目标应用的配置文件启动目标应用的数据传输服务;
通过数据传输服务从目标应用关联的视频服务器中获取第二视频;
将第二视频解码后在目标应用的原生界面中播放。
在一实施例中,在应用入口触发时,获取对应目标应用的配置文件之前,第二播放模块405,还用于:
判断第一视频的已播放时长是否达到预设时长;
在已播放时长达到预设时长时,向应用服务器发送携带应用信息的配置文件获取请求,配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件;
缓存应用服务器返回的对应目标应用的配置文件;
根据缓存的配置文件启动目标应用的数据传输服务,
通过数据传输服务从目标应用关联的视频服务器中获取第二视频,并缓存第二视频。
在一实施例中,在应用入口触发时,获取对应目标应用的配置文件时,文件获取模块404可以用于:
在应用入口触发时,获取缓存的对应目标应用的配置文件;
第二播放模块405,还用于:
将缓存的第二视频解码后在目标应用的原生界面中播放。
在一实施例中,在根据目标应用的应用信息在当前应用中提供目标应用的应用入口之前,文件获取模块404,还用于:
判断第一视频是否播放完成;
在第一视频播放完成时,根据目标应用的应用信息在当前应用中提供目标应用的应用入口。
在一实施例中,在接收视频播放请求时,第一播放模块401可以用于:
在所述当前应用中接收所述视频播放请求;
或者,在其他应用中接收所述视频播放请求。
具体实施时,以上各个模块可以作为独立的实体实现,也可以进行任意组合,作为同一或若干个实体来实现,该视频播放装置与上文实施例中的视频播放方法属于同一构思,在视频播放装置上可以运行视频播放方法实施例中提供的任一方法,其具体实现过程详见视频播放方法实施例,此处不再赘述。
由上可知,本实施例视频播放装置400可以由第一播放模块401接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;由信息搜索模块402搜索第二视频的视频信息,第二视频与第一视频相关联;由应用搜索模块403根据视频信息搜索播放第二视频的目标应用的应用信息;由文件获取模块404根据应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;由第二播放模块405根据配置文件生成目标应用的原生界面,并在原生界面中播放第二视频,从而实现对视频的自动播放,无需用户手动选择视频,且无需下载安装额外的视频应用,能够提高电子设备播放视频的效率。
本申请实施例还提供一种电子设备。请参阅图7,电子设备500包括处理器501以及存储器502。其中,处理器501与存储器502电性连接。
所述处理器500是电子设备500的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或加载存储在存储器502内的计算机程序,以及调用存储在存储器502内的数据,执行电子设备500的各种功能并处理数据,从而实现对电子设备物料信息的自动变更。
所述存储器502可用于存储软件程序以及模块,处理器501通过运行存储在存储器502的计算机程序以及模块,从而执行各种功能应用以及数据处理。存储器502可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的计算机程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据电子设备的使用所创建的数据等。此外,存储器502可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。相应地,存储器502还可以包括存储器控制器,以提供处理器501对存储器502的访问。
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:
接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;
搜索第二视频的视频信息,第二视频与第一视频相关联;
根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息;
根据目标应用的应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;
根据配置文件生成目标应用的原生界面,并在目标应用的原生界面中播放第二视频。
请一并参阅图8,在某些实施方式中,电子设备500还可以包括:显示器503、射频电路504、音频电路505以及电源506。其中,其中,显示器503、射频电路504、音频电路505以及电源506分别与处理器501电性连接。
所述显示器503可以用于显示由用户输入的信息或提供给用户的信息以及各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。显示器503可以包括显示面板,在 某些实施方式中,可以采用液晶显示器(Liquid Crystal Display,LCD)、或者有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板。
所述射频电路504可以用于收发射频信号,以通过无线通信与网络设备或其他电子设备建立无线通讯,与网络设备或其他电子设备之间收发信号。
所述音频电路505可以用于通过扬声器、传声器提供用户与电子设备之间的音频接口。
所述电源506可以用于给电子设备500的各个部件供电。在一些实施例中,电源506可以通过电源管理系统与处理器501逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
尽管图8中未示出,电子设备500还可以包括摄像头、蓝牙模块等,在此不再赘述。
在本申请实施例中,电子设备500中的处理器501会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器502中,并由处理器501运行存储在存储器502中的计算机程序,从而实现各种功能,如下:
接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;
搜索第二视频的视频信息,第二视频与第一视频相关联;
根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息;
根据目标应用的应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;
根据配置文件生成目标应用的原生界面,并在目标应用的原生界面中播放第二视频。
在某些实施方式中,在搜索第二视频的视频信息时,处理器501可以具体执行以下步骤:
向搜索服务器发送视频搜索请求,视频搜索请求用于指示搜索服务器搜索第二视频的视频信息;
接收搜索服务器返回的第二视频的视频信息。
在某些实施方式中,在根据第二视频的视频信息搜索播放第二视频的目标应用的应用信息时,处理器501还可以执行以下步骤:
根据第二视频的视频信息向应用服务器发送应用搜索请求,应用搜索请求用于指示应用服务器搜索目标应用的应用信息;
接收应用服务器返回的目标应用的应用信息。
在某些实施方式中,当在目标应用的原生界面中播放第二视频时,处理器501可以执行以下步骤:
根据对应目标应用的配置文件启动目标应用的数据传输服务;
通过数据传输服务从目标应用关联的视频服务器中获取第二视频;
将第二视频解码后在目标应用的原生界面中播放。
在某些实施方式中,在应用入口触发时,获取对应目标应用的配置文件之前,处理器501还可以具体执行以下步骤:
判断第一视频的已播放时长是否达到预设时长;
在已播放时长达到预设时长时,向应用服务器发送携带应用信息的配置文件获取请求,配置文件获取请求用于指示应用服务器返回对应目标应用的配置文件;
缓存应用服务器返回的对应目标应用的配置文件;
根据缓存的配置文件启动目标应用的数据传输服务,
通过数据传输服务从目标应用关联的视频服务器中获取第二视频,并缓存第二视频。
在某些实施方式中,在获取对应目标应用的配置文件时,处理器501还可以具体执行以下步骤:
在应用入口触发时,获取缓存的对应目标应用的配置文件;
在目标应用的原生界面中播放第二视频时,处理器501还可以具体执行以下步骤:
将缓存的第二视频解码后在目标应用的原生界面中播放。
在某些实施方式中,在根据应用信息在当前应用中提供目标应用的应用入口之前,处理器501还可以具体执行以下步骤:
判断第一视频是否播放完成;
在第一视频播放完成时,根据目标应用的应用信息在当前应用中提供目标应用的应用入口。
在某些实施方式中,在接收视频播放请求时,处理器501还可以具体执行以下步骤:
在所述当前应用中接收所述视频播放请求;
或者,在其他应用中接收所述视频播放请求。
应当说明的是,该电子设备与上文实施例中的视频播放方法属于同一构思,在电子设备上可以运行视频播放方法实施例中提供的任一方法,其具体实现过程详见视频播放方法实施例,此处不再赘述。
本申请实施例还提供一种存储介质,所述存储介质存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述任一实施例中的视频播放方法,比如:接收视频播放请求,并通过当前应用播放视频播放请求指示的第一视频;搜索第二视频的视频信息,第二视频与第一视频相关联;根据视频信息搜索播放第二视频的目标应用的应用信息;根据应用信息在当前应用中提供目标应用的应用入口,并在应用入口触发时,获取对应目标应用的配置文件;根据配置文件生成目标应用的原生界面,并在原生界面中播放第二视频。
在本申请实施例中,存储介质可以是磁碟、光盘、只读存储器(Read Only Memory,ROM,)、或者随机存取记忆体(Random Access Memory,RAM)等。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
需要说明的是,对本申请实施例的视频播放方法而言,本领域普通测试人员可以理解实现本申请实施例的视频播放方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在电子设备的存储器中,并被该电子设备内的至少一个处理器执行,在执行过程中可包括如视频播放方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器、随机存取记忆体等。
对本申请实施例的视频播放装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。
以上对本申请实施例所提供的一种视频播放方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种视频播放方法,其中,包括:
    接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
    搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
    根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
    根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
    根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
  2. 如权利要求1所述的视频播放方法,其中,所述搜索第二视频的视频信息,包括:
    向搜索服务器发送视频搜索请求,所述视频搜索请求用于指示所述搜索服务器搜索所述第二视频的视频信息;
    接收所述搜索服务器返回的所述第二视频的视频信息。
  3. 如权利要求1所述的视频播放方法,其中,所述根据所述视频信息搜索播放所述第二视频的目标应用的应用信息,包括:
    根据所述视频信息向应用服务器发送应用搜索请求,所述应用搜索请求用于指示所述应用服务器搜索所述目标应用的应用信息;
    接收所述应用服务器返回的所述目标应用的应用信息。
  4. 如权利要求1所述的视频播放方法,其中,所述在所述原生界面中播放所述第二视频,包括:
    根据所述配置文件启动所述目标应用的数据传输服务;
    通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频;
    将所述第二视频解码后在所述原生界面中播放。
  5. 如权利要求1所述的视频播放方法,其中,所述在所述应用入口触发时,获取对应所述目标应用的配置文件之前,还包括:
    判断所述第一视频的已播放时长是否达到预设时长;
    在所述已播放时长达到所述预设时长时,向所述应用服务器发送携带所述应用信息的配置文件获取请求,所述配置文件获取请求用于指示所述应用服务器返回对应所述目标应用的配置文件;
    缓存所述应用服务器返回的对应所述目标应用的配置文件;
    根据缓存的所述配置文件启动所述目标应用的数据传输服务,
    通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频,并缓存所述第二视频。
  6. 如权利要求5所述的视频播放方法,其中,所述在所述应用入口触发时,获取对应所述目标应用的配置文件,包括:
    在所述应用入口触发时,获取缓存的所述配置文件;
    在所述原生界面中播放所述第二视频,包括:
    将缓存的所述第二视频解码后在所述原生界面中播放。
  7. 如权利要求1所述的视频播放方法,其中,所述根据所述应用信息在所述当前应用中提供所述目标应用的应用入口之前,还包括:
    判断所述第一视频是否播放完成;
    在所述第一视频播放完成时,根据所述应用信息在所述当前应用中提供所述目标应用的应用入口。
  8. 如权利要求1所述的视频播放方法,其中,所述接收视频播放请求,包括:
    在所述当前应用中接收所述视频播放请求;
    或者,在其他应用中接收所述视频播放请求。
  9. 一种视频播放装置,其中,包括:
    第一播放模块,用于接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
    信息搜索模块,用于搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
    应用搜索模块,用于根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
    文件获取模块,用于根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
    第二播放模块,用于根据所述配置文件生成所述目标应用的原生原生界面,并在所述原生界面中播放所述第二视频。
  10. 如权利要求9所述的视频播放装置,其中,在搜索第二视频的视频信息时,信息搜索模块可以用于:
    向搜索服务器发送视频搜索请求,所述视频搜索请求用于指示所述搜索服务器搜索所述第二视频的视频信息;
    接收所述搜索服务器返回的所述第二视频的视频信息。
  11. 如权利要求9所述的视频播放装置,其中,在根据所述视频信息搜索播放所述第二视频的目标应用的应用信息时,所述应用搜索模块用于:
    根据所述视频信息向应用服务器发送应用搜索请求,所述应用搜索请求用于指示所述应用服务器搜索所述目标应用的应用信息;
    接收所述应用服务器返回的所述目标应用的应用信息。
  12. 一种存储介质,其上存储有计算机程序,其中,当所述计算机程序在计算机上运行时,使得所述计算机执行如下步骤:
    接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
    搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
    根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
    根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
    根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
  13. 一种电子设备,包括处理器和存储器,所述存储器储存有计算机程序,其中,所述处理器通过调用所述计算机程序,用于执行如下步骤:
    接收视频播放请求,并通过当前应用播放所述视频播放请求指示的第一视频;
    搜索第二视频的视频信息,所述第二视频与所述第一视频相关联;
    根据所述视频信息搜索播放所述第二视频的目标应用的应用信息;
    根据所述应用信息在所述当前应用中提供所述目标应用的应用入口,并在所述应用入口触发时,获取对应所述目标应用的配置文件;
    根据所述配置文件生成所述目标应用的原生界面,并在所述原生界面中播放所述第二视频。
  14. 如权利要求13所述的电子设备,其中,在搜索第二视频的视频信息时,所述处理器用于执行:
    向搜索服务器发送视频搜索请求,所述视频搜索请求用于指示所述搜索服务器搜索所述第二视频的视频信息;
    接收所述搜索服务器返回的所述第二视频的视频信息。
  15. 如权利要求13所述的电子设备,其中,在根据所述视频信息搜索播放所述第二视频的目标应用的应用信息时,所述处理器用于执行:
    根据所述视频信息向应用服务器发送应用搜索请求,所述应用搜索请求用于指示所述应用服务器搜索所述目标应用的应用信息;
    接收所述应用服务器返回的所述目标应用的应用信息。
  16. 如权利要求13所述的电子设备,其中,在所述原生界面中播放所述第二视频时,所述处理器用于执行:
    根据所述配置文件启动所述目标应用的数据传输服务;
    通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频;
    将所述第二视频解码后在所述原生界面中播放。
  17. 如权利要求13所述的电子设备,其中,在所述应用入口触发时,获取对应所述目标应用的配置文件之前,所述处理器用于执行:
    判断所述第一视频的已播放时长是否达到预设时长;
    在所述已播放时长达到所述预设时长时,向所述应用服务器发送携带所述应用信息的配置文件获取请求,所述配置文件获取请求用于指示所述应用服务器返回对应所述目标应用的配置文件;
    缓存所述应用服务器返回的对应所述目标应用的配置文件;
    根据缓存的所述配置文件启动所述目标应用的数据传输服务,
    通过所述数据传输服务从所述目标应用关联的视频服务器中获取所述第二视频,并缓存所述第二视频。
  18. 如权利要求17所述的电子设备,其中,在所述应用入口触发时,获取对应所述目标应用的配置文件,包括:
    在所述应用入口触发时,获取缓存的所述配置文件;
    在所述原生界面中播放所述第二视频,包括:
    将缓存的所述第二视频解码后在所述原生界面中播放。
  19. 如权利要求13所述的电子设备,其中,在根据所述应用信息在所述当前应用中提供所述目标应用的应用入口之前,所述处理器用于执行:
    判断所述第一视频是否播放完成;
    在所述第一视频播放完成时,根据所述应用信息在所述当前应用中提供所述目标应用的应用入口。
  20. 如权利要求13所述的电子设备,其中,在接收视频播放请求时,所述处理器用于执行:
    在所述当前应用中接收所述视频播放请求;
    或者,在其他应用中接收所述视频播放请求。
PCT/CN2019/071344 2018-02-06 2019-01-11 视频播放方法、装置、存储介质及电子设备 WO2019154014A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810119072.6 2018-02-06
CN201810119072.6A CN108319708B (zh) 2018-02-06 2018-02-06 视频播放方法、装置、存储介质及电子设备

Publications (1)

Publication Number Publication Date
WO2019154014A1 true WO2019154014A1 (zh) 2019-08-15

Family

ID=62903600

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/071344 WO2019154014A1 (zh) 2018-02-06 2019-01-11 视频播放方法、装置、存储介质及电子设备

Country Status (2)

Country Link
CN (1) CN108319708B (zh)
WO (1) WO2019154014A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108319708B (zh) * 2018-02-06 2020-01-14 Oppo广东移动通信有限公司 视频播放方法、装置、存储介质及电子设备
CN109005464A (zh) * 2018-08-28 2018-12-14 深圳市有钱科技有限公司 视频播放方法、存储介质及计算机设备
CN109359262B (zh) * 2018-10-11 2020-09-04 广州酷狗计算机科技有限公司 动画播放方法、装置、终端及存储介质
CN110430473B (zh) * 2019-07-18 2022-03-04 东软集团股份有限公司 视频播放的方法、装置、存储介质及电子设备
CN112632324A (zh) * 2020-12-16 2021-04-09 北京字节跳动网络技术有限公司 一种视频播放方法、装置、设备及介质
CN113905277B (zh) * 2021-12-09 2022-03-22 北京新片场传媒股份有限公司 一种浏览器端播放视频的方法、装置及电子设备
CN114007103B (zh) * 2021-12-30 2022-04-26 飞狐信息技术(天津)有限公司 在线视频播放的方法及装置、电子设备、存储介质
CN115550741A (zh) * 2022-09-02 2022-12-30 维沃移动通信有限公司 视频管理方法、装置、电子设备及可读存储介质

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159337A1 (en) * 2010-12-17 2012-06-21 Kerry Travilla System and method for recommending media content
CN103096172A (zh) * 2013-01-18 2013-05-08 深圳市龙视传媒有限公司 一种展示推荐节目的方法和装置
CN103647989A (zh) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 一种智能电视的节目推荐方法及装置
CN103873928A (zh) * 2014-03-14 2014-06-18 可牛网络技术(北京)有限公司 一种播放视频的方法、装置及应用服务器
CN104811776A (zh) * 2015-04-09 2015-07-29 小米科技有限责任公司 多媒体播放方法及装置
CN104954811A (zh) * 2015-07-17 2015-09-30 杭州当贝网络科技有限公司 一种视频聚合应用加载网络视频的方法及智能电视终端
CN106358082A (zh) * 2016-11-01 2017-01-25 合网络技术(北京)有限公司 视频播放方法及装置
CN107172454A (zh) * 2017-06-30 2017-09-15 网易传媒科技(北京)有限公司 一种视频推荐方法、介质、装置和计算设备
CN107465598A (zh) * 2017-08-11 2017-12-12 北京安云世纪科技有限公司 音视频播放方法、装置及终端
CN108319708A (zh) * 2018-02-06 2018-07-24 广东欧珀移动通信有限公司 视频播放方法、装置、存储介质及电子设备

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120159337A1 (en) * 2010-12-17 2012-06-21 Kerry Travilla System and method for recommending media content
CN103096172A (zh) * 2013-01-18 2013-05-08 深圳市龙视传媒有限公司 一种展示推荐节目的方法和装置
CN103647989A (zh) * 2013-11-15 2014-03-19 乐视致新电子科技(天津)有限公司 一种智能电视的节目推荐方法及装置
CN103873928A (zh) * 2014-03-14 2014-06-18 可牛网络技术(北京)有限公司 一种播放视频的方法、装置及应用服务器
CN104811776A (zh) * 2015-04-09 2015-07-29 小米科技有限责任公司 多媒体播放方法及装置
CN104954811A (zh) * 2015-07-17 2015-09-30 杭州当贝网络科技有限公司 一种视频聚合应用加载网络视频的方法及智能电视终端
CN106358082A (zh) * 2016-11-01 2017-01-25 合网络技术(北京)有限公司 视频播放方法及装置
CN107172454A (zh) * 2017-06-30 2017-09-15 网易传媒科技(北京)有限公司 一种视频推荐方法、介质、装置和计算设备
CN107465598A (zh) * 2017-08-11 2017-12-12 北京安云世纪科技有限公司 音视频播放方法、装置及终端
CN108319708A (zh) * 2018-02-06 2018-07-24 广东欧珀移动通信有限公司 视频播放方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN108319708A (zh) 2018-07-24
CN108319708B (zh) 2020-01-14

Similar Documents

Publication Publication Date Title
WO2019154014A1 (zh) 视频播放方法、装置、存储介质及电子设备
US11770429B2 (en) System and method for streaming content from multiple servers
US9003277B2 (en) Method and system for presenting web page resources
US10595089B2 (en) Information processing apparatus, information processing method, program, and information processing system
US8301596B2 (en) Method and apparatus for providing supplemental video content for third party websites
US9344517B2 (en) Downloading and adaptive streaming of multimedia content to a device with cache assist
US20180315098A1 (en) Information processing method, server, and computer storage medium
US8244707B2 (en) Method and apparatus for providing supplemental video content for third party websites
WO2020063019A1 (zh) 信息处理方法、装置、存储介质、电子设备及系统
US20190251144A1 (en) Method and apparatus for launching application page, and electronic device
US8938465B2 (en) Method and system for utilizing packaged content sources to identify and provide information based on contextual information
WO2017206626A1 (zh) 网络资源访问设备、混合设备及方法
US11216851B2 (en) Interactive rendering application for low-bandwidth communication environments
KR20140126328A (ko) 애플리케이션 캐시를 사용하여 설치된 애플리케이션의 리소스를 업데이트하는 기법
KR20120063533A (ko) 통신 장치 상에서 콘텐츠를 검색/다운로딩하기 위한 장치 및 방법들
WO2017080200A1 (zh) 一种自定义菜单的实现方法、装置、客户端及服务器
US20140067835A1 (en) Search extensibility application framework in a hosted search
CA2745981C (en) A computer-implemented method, a computer program product and an embedded system for increasing the speed of data retrieval by a client on the embedded system
WO2015143854A1 (zh) 数据获取及交互方法、机顶盒、服务器、多媒体系统
WO2022127743A1 (zh) 内容显示方法及终端设备
US8392452B2 (en) Method and apparatus for callback supplementation of media program metadata
US9189547B2 (en) Method and apparatus for presenting a search utility in an embedded video
KR102313531B1 (ko) 클라우드 스트리밍 서비스 시스템, 동일 세션 다중 접속 방식을 이용한 클라우드 스트리밍 서비스 방법 및 이를 위한 장치
CN112068941A (zh) 应用调起方法、装置、电子设备及存储介质
KR20190027746A (ko) 방송 시간 내 관심도 정보를 이용한 방송 정보 제공 방법 및 장치

Legal Events

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

Ref document number: 19750798

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19750798

Country of ref document: EP

Kind code of ref document: A1