HK1235580B - Method for transferring files, method for sharing vedio, media server and client - Google Patents
Method for transferring files, method for sharing vedio, media server and client Download PDFInfo
- Publication number
- HK1235580B HK1235580B HK17109262.3A HK17109262A HK1235580B HK 1235580 B HK1235580 B HK 1235580B HK 17109262 A HK17109262 A HK 17109262A HK 1235580 B HK1235580 B HK 1235580B
- Authority
- HK
- Hong Kong
- Prior art keywords
- client
- location information
- uploaded
- media
- file
- Prior art date
Links
Description
技术领域Technical Field
本申请涉及互联网技术领域,特别涉及一种传输文件的方法、分享视频的方法、媒体服务器、客户端。The present application relates to the field of Internet technology, and in particular to a method for transmitting files, a method for sharing videos, a media server, and a client.
背景技术Background Art
在web2.0时代,网络上内容的产出主要是由用户,每一个用户都可以生成自己的内容。互联网上的很多内容都可以由用户创造,而不只是以前的某一些人或机构。这样,互联网上的内容飞速增长,形成一个多、广、专的局面。In the Web 2.0 era, online content is primarily produced by users, each of whom can generate their own content. Much of the content on the internet is user-generated, not just by a few individuals or organizations. This has led to a rapid growth in online content, creating a landscape of diverse, broad, and specialized content.
UGC(User GeneratedContent,用户原创内容)即是这样的概念。近年来,随着手机的日益普及全球3G、4G商用的日益推进和移动互联网业务的不断发展,人们倾向于用手机记录真实的生活,表达自己的感受。UGC (User Generated Content) is such a concept. In recent years, with the increasing popularity of mobile phones, the increasing commercialization of 3G and 4G around the world, and the continuous development of mobile Internet services, people tend to use their phones to record their real lives and express their feelings.
社交网络(如Facebook、人人网、微信)、视频分享网络(如YouTube、优酷网、土豆网、爱奇艺)、照片分享网络(Flickr)、微博(如Twitter、新浪微博)等媒体中,作为其中的参与人,可以发布和分享媒体信息。尤其是参与人的不特定性,使得每一个用户都可能成为第一现场的发布者。Participants in social networks (such as Facebook, Renren, and WeChat), video sharing networks (such as YouTube, Youku, Tudou, and iQiyi), photo sharing networks (Flickr), and microblogs (such as Twitter and Sina Weibo) can publish and share media information. The unspecified nature of participants makes every user a potential first-hand publisher.
在传统的媒体信息展示和分享中,往往需要用户手动添加关注对象或话题。为了添加正确的关注对象或话题,用户需要获得特定的话题或对象标志,而这类获得的过程伴随用户手工搜索或以来信息的定向传播;后者例如是从其它的信息来源得到,如从好友或关注人的媒体信息中得到。而对于缺乏准确的信息来源,即处于信息定向传播方向之外的情况,或者搜索结果并不准确的情况,经历现场的用户可能无法参与到现场的相关媒体展示和分享中。In traditional media information display and sharing, users are often required to manually add followers or topics. To add the correct followers or topics, users need to obtain specific topic or object identifiers, and this acquisition process involves manual search or targeted information dissemination; the latter is obtained from other information sources, such as media information from friends or followers. In the absence of accurate information sources, that is, when the information is not in the targeted dissemination direction, or when the search results are inaccurate, users who experience the event may not be able to participate in the relevant media display and sharing.
发明内容Summary of the Invention
本申请实施例的目的是提供一种传输文件的方法、分享视频的方法、媒体服务器、客户端,以使参与人更便捷、准确的参与到现场相关媒体的展示和分享中。The purpose of the embodiments of the present application is to provide a method for transmitting files, a method for sharing videos, a media server, and a client, so that participants can participate in the display and sharing of on-site related media more conveniently and accurately.
为解决上述技术问题,本申请实施例提供一种传输文件的方法、分享视频的方法、媒体服务器、客户端是这样实现的:To solve the above technical problems, the embodiments of the present application provide a method for transmitting files, a method for sharing videos, a media server, and a client, which are implemented as follows:
一种传输文件的方法,包括:A method for transmitting a file, comprising:
第一客户端上传第一客户端的地理位置信息至媒体服务器;The first client uploads the geographic location information of the first client to the media server;
第一客户端发送上传媒体文件的请求至所述媒体服务器;The first client sends a request to upload a media file to the media server;
所述媒体服务器判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;The media server determines whether the geographic location information uploaded by the first client is within a preset geographic range; if so, returns a confirmation upload message to the first client;
第一客户端接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器;After receiving the upload confirmation message returned by the media server, the first client uploads the media file to the media server;
第二客户端上传第二客户端的地理位置信息至所述媒体服务器;The second client uploads the geographic location information of the second client to the media server;
所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When the media server determines that the geographical location information uploaded by the second client is within a preset geographical range, the media server sends the media file uploaded by the first client to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
媒体服务器发送预设地理范围至第一客户端;The media server sends the preset geographical range to the first client;
第一客户端采集第一客户端当前的地理位置信息;The first client collects the current geographical location information of the first client;
第一客户端接收输入的上传媒体文件指令;The first client receives an input instruction to upload a media file;
第一客户端判断所述采集的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器;When the first client determines that the collected geographical location is within the received preset geographical range, the first client uploads the media file to the media server in response to the input instruction to upload the media file;
第二客户端上传第二客户端的地理位置信息至所述媒体服务器;The second client uploads the geographic location information of the second client to the media server;
所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When the media server determines that the geographical location information uploaded by the second client is within a preset geographical range, the media server sends the media file uploaded by the first client to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收第一客户端上传的地理位置信息;Receiving geographic location information uploaded by the first client;
接收第一客户端发送的上传文件请求;Receiving a file upload request sent by a first client;
判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;Determine whether the geographic location information uploaded by the first client is within a preset geographic range; if so, return a confirmation upload message to the first client;
接收第一客户端上传的媒体文件。Receive a media file uploaded by a first client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收第一客户端上传的地理位置信息;Receiving geographic location information uploaded by the first client;
接收第一客户端发送的上传文件请求;Receiving a file upload request sent by a first client;
判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果否则返回拒绝上传消息至第一客户端。Determine whether the geographic location information uploaded by the first client is within a preset geographic range; if not, return a rejection message to the first client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收第一客户端上传的媒体文件;receiving a media file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
上传第一客户端的地理位置信息至媒体服务器;Uploading the geographic location information of the first client to the media server;
发送上传媒体文件的请求至所述媒体服务器;Sending a request to upload a media file to the media server;
接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器。After receiving the upload confirmation message returned by the media server, the media file is uploaded to the media server.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收第一客户端上传的现场媒体文件;receiving a live media file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
第一客户端上传包含地理位置信息的媒体文件至媒体服务器;The first client uploads a media file containing geographic location information to the media server;
所述媒体服务器判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述媒体文件;The media server determines whether the geographical location information contained in the uploaded media file is within a preset geographical range; if so, saves the uploaded media file;
第二客户端上传第二客户端的地理位置信息至所述媒体服务器;The second client uploads the geographic location information of the second client to the media server;
所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When the media server determines that the geographical location information uploaded by the second client is within a preset geographical range, the media server sends the media file uploaded by the first client to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
媒体服务器发送预设地理范围至第一客户端;The media server sends the preset geographical range to the first client;
第一客户端采集第一客户端当前的地理位置信息;The first client collects the current geographical location information of the first client;
第一客户端接收输入的上传媒体文件指令;所述媒体文件包含地理位置信息;The first client receives an input instruction to upload a media file; the media file includes geographic location information;
第一客户端判断所述媒体文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器;When the first client determines that the geographical location included in the media file is within the received preset geographical range, in response to the input instruction to upload the media file, the first client uploads the media file to the media server;
第二客户端上传第二客户端的地理位置信息至所述媒体服务器;The second client uploads the geographic location information of the second client to the media server;
所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When the media server determines that the geographical location information uploaded by the second client is within a preset geographical range, the media server sends the media file uploaded by the first client to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收第一客户端上传的包含地理位置信息的媒体文件;Receiving a media file containing geographic location information uploaded by a first client;
判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述媒体文件;Determine whether the geographic location information contained in the uploaded media file is within a preset geographic range; if so, save the uploaded media file;
接收第二客户端上传的第二客户端的地理位置信息;receiving geographic location information of the second client uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
一种传输文件的方法,包括:A method for transmitting a file, comprising:
接收媒体服务器发送的预设地理范围;receiving a preset geographical range sent by a media server;
采集第一客户端当前的地理位置信息;Collecting the current geographic location information of the first client;
接收输入的上传媒体文件指令;所述媒体文件包含地理位置信息;Receiving an input instruction to upload a media file; the media file includes geographic location information;
判断所述媒体文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。When it is determined that the geographical location included in the media file is within the received preset geographical range, the media file is uploaded to the media server in response to the input instruction to upload the media file.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的地理位置信息;A first receiving unit receives geographic location information uploaded by a first client;
第二接收单元,接收第一客户端发送的上传文件请求;A second receiving unit receives a file upload request sent by the first client;
判断单元,判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;a judgment unit, configured to judge whether the geographic location information uploaded by the first client is within a preset geographic range; if so, returning a confirmation upload message to the first client;
第三接收单元,接收第一客户端上传的媒体文件。The third receiving unit receives the media file uploaded by the first client.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的媒体文件;A first receiving unit receives a media file uploaded by a first client;
第二接收单元,接收第二客户端上传的地理位置信息;A second receiving unit receives geographic location information uploaded by a second client;
判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;a determination unit, configured to determine whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当所述判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit is configured to send the media file uploaded by the first client to the second client when the judgment result of the judging unit is yes.
一种客户端,包括:A client, comprising:
第一上传单元,上传第一客户端的地理位置信息至媒体服务器;A first uploading unit, uploading the geographic location information of the first client to the media server;
发送单元,发送上传媒体文件的请求至所述媒体服务器;A sending unit, sending a request to upload a media file to the media server;
第二上传单元,接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器。The second uploading unit uploads the media file to the media server after receiving the upload confirmation message returned by the media server.
一种客户端,包括:A client, comprising:
第一接收单元,接收第一客户端上传的现场媒体文件;A first receiving unit receives a live media file uploaded by a first client;
第二接收单元,接收第二客户端上传的地理位置信息;A second receiving unit receives geographic location information uploaded by a second client;
判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;a determination unit, configured to determine whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当所述判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit is configured to send the media file uploaded by the first client to the second client when the judgment result of the judging unit is yes.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的包含地理位置信息的媒体文件;A first receiving unit receives a media file containing geographic location information uploaded by a first client;
第一判断单元,判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;a first determining unit for determining whether the geographical location information included in the uploaded media file is within a preset geographical range;
保存单元,当第一判断单元判断结果为是时,保存上传的所述媒体文件;a saving unit, configured to save the uploaded media file when the judgment result of the first judgment unit is yes;
第二接收单元,接收第二客户端上传的第二客户端的地理位置信息;A second receiving unit receives geographic location information of the second client uploaded by the second client;
第二判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;A second determining unit, determining whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当第二判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit sends the media file uploaded by the first client to the second client when the second judging unit determines that the media file is uploaded by the first client.
一种客户端,包括:A client, comprising:
第一接收单元,接收媒体服务器发送的预设地理范围;A first receiving unit receives a preset geographical range sent by a media server;
采集单元,采集第一客户端当前的地理位置信息;A collection unit, collecting current geographical location information of the first client;
第二接收单元,接收输入的上传媒体文件指令;所述媒体文件包含地理位置信息;A second receiving unit receives an input instruction to upload a media file; the media file includes geographic location information;
判断单元,判断所述媒体文件包含的地理位置是否位于所述接收的预设地理范围之内;a determination unit, configured to determine whether the geographical location included in the media file is within the received preset geographical range;
上传单元,当第二判断单元判断结果为是时,上传所述媒体文件至所述媒体服务器。The uploading unit uploads the media file to the media server when the judgment result of the second judgment unit is yes.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的包含地理位置信息的媒体文件;A first receiving unit receives a media file containing geographic location information uploaded by a first client;
第一判断单元,判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;a first determining unit for determining whether the geographical location information included in the uploaded media file is within a preset geographical range;
保存单元,当第一判断单元判断结果为是时,保存上传的所述媒体文件;a saving unit, configured to save the uploaded media file when the judgment result of the first judgment unit is yes;
第二接收单元,接收第二客户端上传的第二客户端的地理位置信息;A second receiving unit receives geographic location information of the second client uploaded by the second client;
第二判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;A second determining unit, determining whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当第二判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit sends the media file uploaded by the first client to the second client when the second judging unit determines that the media file is uploaded by the first client.
一种客户端,包括:A client, comprising:
第一接收单元,接收媒体服务器发送的预设地理范围;A first receiving unit receives a preset geographical range sent by a media server;
采集单元,采集第一客户端当前的地理位置信息;A collection unit, collecting current geographical location information of the first client;
第一上传单元,接收选定并上传媒体文件的指令;所述媒体文件包含地理位置信息;A first uploading unit receives an instruction to select and upload a media file; the media file includes geographic location information;
判断单元,判断所述媒体文件包含的地理位置是否位于所述接收的预设地理范围之内;a determination unit, configured to determine whether the geographical location included in the media file is within the received preset geographical range;
第二上传单元,当判断单元判断结果为是时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。The second uploading unit uploads the media file to the media server in response to the input instruction to upload the media file when the judgment result of the judgment unit is yes.
一种分享视频的方法,包括:A method for sharing a video, comprising:
接收第一社交应用客户端上传的地理位置信息;Receiving geographic location information uploaded by the first social application client;
接收第一社交应用客户端发送的上传现场视频文件的请求;receiving a request from a first social application client to upload a live video file;
判断第一社交应用客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;Determine whether the geographic location information uploaded by the first social application client is within a preset geographic range; if so, return a confirmation upload message to the first client;
接收第一客户端上传的现场视频文件。Receive the live video file uploaded by the first client.
一种分享视频的方法,包括:A method for sharing a video, comprising:
接收第一客户端上传的现场视频文件;Receiving a live video file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the live video file uploaded by the first client is sent to the second client.
一种分享视频的方法,包括:A method for sharing a video, comprising:
上传第一客户端的地理位置信息至媒体服务器;Uploading the geographic location information of the first client to the media server;
发送上传现场视频文件的请求至所述媒体服务器;Sending a request to upload a live video file to the media server;
接收到所述媒体服务器返回的确认上传消息后,上传所述现场视频文件至所述媒体服务器。After receiving the upload confirmation message returned by the media server, the live video file is uploaded to the media server.
一种分享视频的方法,包括:A method for sharing a video, comprising:
接收第一客户端上传的现场视频文件;Receiving a live video file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
一种分享视频的方法,包括:A method for sharing a video, comprising:
接收第一客户端上传的包含地理位置信息的现场视频文件;Receiving a live video file containing geographic location information uploaded by a first client;
判断上传的现场视频文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述现场视频文件;Determine whether the geographical location information contained in the uploaded live video file is within a preset geographical range; if so, save the uploaded live video file;
接收第二客户端上传的第二客户端的地理位置信息;receiving geographic location information of the second client uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the live video file uploaded by the first client is sent to the second client.
一种分享视频文件的方法,包括:A method for sharing a video file, comprising:
接收媒体服务器发送的预设地理范围;receiving a preset geographical range sent by a media server;
采集第一客户端当前的地理位置信息;Collecting the current geographic location information of the first client;
接收选定并上传现场视频文件的指令;所述现场视频文件包含地理位置信息;Receiving an instruction to select and upload a live video file; the live video file includes geographic location information;
判断所述现场视频文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传现场视频文件指令,上传所述现场视频文件至所述媒体服务器。When it is determined that the geographical location included in the live video file is within the received preset geographical range, the live video file is uploaded to the media server in response to the input instruction to upload the live video file.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一社交应用客户端上传的地理位置信息;A first receiving unit receives geographic location information uploaded by a first social application client;
第二接收单元,接收第一社交应用客户端发送的上传现场视频文件的请求;A second receiving unit receives a request sent by the first social application client to upload a live video file;
判断单元,判断第一社交应用客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;a judgment unit, configured to judge whether the geographic location information uploaded by the first social application client is within a preset geographic range; if so, returning a confirmation upload message to the first client;
第三接收单元,接收第一客户端上传的现场视频文件。The third receiving unit receives the live video file uploaded by the first client.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的现场视频文件;A first receiving unit receives a live video file uploaded by a first client;
第二接收单元,接收第二客户端上传的地理位置信息;A second receiving unit receives geographic location information uploaded by a second client;
发送单元,判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。The sending unit sends the live video file uploaded by the first client to the second client when it is determined that the geographical location information uploaded by the second client is within a preset geographical range.
一种客户端,包括:A client, comprising:
第一上传单元,上传第一客户端的地理位置信息至媒体服务器;A first uploading unit, uploading the geographic location information of the first client to the media server;
发送单元,发送上传现场视频文件的请求至所述媒体服务器;A sending unit, sending a request to upload a live video file to the media server;
第二上传单元,接收到所述媒体服务器返回的确认上传消息后,上传所述现场视频文件至所述媒体服务器。The second uploading unit uploads the live video file to the media server after receiving the upload confirmation message returned by the media server.
一种媒体服务器,包括:A media server comprising:
接收第一客户端上传的现场视频文件;Receiving a live video file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
一种媒体服务器,包括:A media server comprising:
第一接收单元,接收第一客户端上传的包含地理位置信息的现场视频文件;A first receiving unit receives a live video file containing geographic location information uploaded by a first client;
第一判断单元,判断上传的现场视频文件中包含的地理位置信息是否位于预设的地第一理范围之内;A first judgment unit is configured to judge whether the geographical location information contained in the uploaded live video file is within a preset geographical range;
保存单元,如果第一判断单元判断结果为是,保存上传的所述现场视频文件;a saving unit, for saving the uploaded live video file if the judgment result of the first judgment unit is yes;
第二接收单元,接收第二客户端上传的第二客户端的地理位置信息;A second receiving unit receives geographic location information of the second client uploaded by the second client;
第二判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;A second determining unit, determining whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当第二判断单元判断结果为是时,将第一客户端上传的所述现场视频文件发送至第二客户端。The sending unit sends the live video file uploaded by the first client to the second client when the second judging unit determines that the result is yes.
一种客户端,包括:A client, comprising:
第一接收单元,接收媒体服务器发送的预设地理范围;A first receiving unit receives a preset geographical range sent by a media server;
采集单元,采集第一客户端当前的地理位置信息;A collection unit, collecting current geographical location information of the first client;
第二接收单元,接收选定并上传现场视频文件的指令;所述现场视频文件包含地理位置信息;A second receiving unit receives an instruction to select and upload a live video file; the live video file includes geographic location information;
判断单元,判断所述现场视频文件包含的地理位置是否位于所述接收的预设地理范围之内;a determination unit, configured to determine whether the geographical location included in the live video file is within the received preset geographical range;
上传单元,当判断单元判断结果为是时,上传所述现场视频文件至所述媒体服务器。The uploading unit uploads the live video file to the media server when the judgment result of the judgment unit is yes.
由以上本申请实施例提供的技术方案可见,媒体服务器可以将接收位于活动现场的客户端上传的媒体文件;而且媒体服务器可以将所述上传的媒体文件发送至位于同一活动现场的第二客户端。特别的,当第二客户端所在终端移动到活动现场所属的预设地理范围时,可以自动的接收到媒体服务器推送的媒体信息,从而使得第二客户端可以便捷、准确的获得活动现场的信息。As can be seen from the technical solutions provided by the embodiments of the present application, a media server can receive media files uploaded by a client at an event site; further, the media server can send the uploaded media files to a second client at the same event site. In particular, when the terminal of the second client moves to a preset geographical range of the event site, it can automatically receive the media information pushed by the media server, allowing the second client to obtain information about the event site conveniently and accurately.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
图1为本申请传输文件方法一个实施例的流程图;FIG1 is a flow chart of an embodiment of a method for transmitting files according to the present application;
图2为本申请传输文件方法一个实施例的流程图;FIG2 is a flow chart of an embodiment of a method for transmitting files according to the present application;
图3为本申请传输文件方法一个实施例的流程图;FIG3 is a flow chart of an embodiment of a method for transmitting files according to the present application;
图4为本申请传输文件方法一个实施例的流程图;FIG4 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图5为本申请传输文件方法一个实施例的流程图;FIG5 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图6为本申请传输文件方法一个实施例的流程图;FIG6 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图7为本申请传输文件方法一个实施例的流程图;FIG7 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图8为本申请传输文件方法一个实施例的流程图;FIG8 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图9为本申请传输文件方法一个实施例的流程图;FIG9 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图10为本申请传输文件方法一个实施例的流程图;FIG10 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图11为本申请传输文件方法一个实施例的流程图;FIG11 is a flowchart of an embodiment of a method for transmitting files according to the present application;
图12为本申请媒体服务器一个实施例的模块图;FIG12 is a module diagram of an embodiment of the media server of the present application;
图13为本申请媒体服务器一个实施例的模块图;FIG13 is a module diagram of an embodiment of a media server of the present application;
图14为本申请第一客户端一个实施例的模块图;FIG14 is a module diagram of an embodiment of the first client of the present application;
图15为本申请媒体服务器一个实施例的模块图;FIG15 is a module diagram of an embodiment of a media server of the present application;
图16为本申请媒体服务器一个实施例的模块图;FIG16 is a module diagram of an embodiment of the media server of the present application;
图17为本申请第一客户端一个实施例的模块图;FIG17 is a module diagram of an embodiment of the first client of the present application;
图18为本申请媒体服务器一个实施例的模块图;FIG18 is a module diagram of an embodiment of the media server of the present application;
图19为本申请第一客户端一个实施例的模块图。FIG19 is a module diagram of an embodiment of the first client of the present application.
具体实施方式DETAILED DESCRIPTION
本申请实施例提供一种传输文件的方法、分享视频的方法、媒体服务器、客户端。The embodiments of the present application provide a method for transmitting files, a method for sharing videos, a media server, and a client.
为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
如前所述,社交网络(如Facebook、人人网、微信)、视频分享网络(如YouTube、优酷网、土豆网、爱奇艺)、照片分享网络(Flickr)、微博(如Twitter、新浪微博)等媒体中,作为其中的参与人,可以发布和分享媒体信息。媒体的服务器可以负责对这些信息进行处理和完成在其平台上的发布。媒体服务器一般位于网络中,作为参与人的物理媒介——移动终端和/或固定终端可以通过互联网与媒体服务器相连。借助于媒体服务器的相连,可以形成广泛的媒体参与人的互联。As mentioned above, participants in social networks (such as Facebook, Renren, and WeChat), video sharing networks (such as YouTube, Youku, Tudou, and iQiyi), photo sharing networks (Flickr), and microblogs (such as Twitter and Sina Weibo) can publish and share media information. Media servers are responsible for processing this information and distributing it on their platforms. Media servers are typically located within a network, and mobile and/or fixed terminals, acting as physical media for participants, can connect to the media servers via the internet. This connection to media servers enables a broad network of media participants.
处于便捷和一些安全的考虑,媒体参与人的移动终端和/或固定终端上可以安装专门的客户端(其中一种形式为应用),例如媒体服务器提供的应用,或通过终端上的浏览器,高效的进行媒体信息的发布与交互。为了表述方便,这里统称为客户端。For convenience and security reasons, media participants can install dedicated clients (one form of which is an application) on their mobile and/or fixed terminals, such as applications provided by a media server, or use a browser on the terminal to efficiently publish and interact with media information. For convenience, these are collectively referred to as clients here.
以下介绍本申请传输文件方法的一个实施例,图1示出了该实施例的流程。The following introduces an embodiment of the file transmission method of the present application, and FIG1 shows the process of this embodiment.
如图所示,该方法包括:As shown in the figure, the method includes:
S11:第一客户端上传第一客户端的地理位置信息至媒体服务器。S11: The first client uploads its geographic location information to the media server.
第一客户端所安装或所处于的硬件中,可以获得该硬件所处地理位置的信息。这样,第一客户端可以获得当前位置的地理位置信息。常用的方法主要是通过消息客户端内置的GPS定位系统或电信移动运营商的移动通信网络,或者是通过上述两种方式的结合来定位消息客户端并获取消息客户端的地理位置信息。也可以结合WIFI热点信息获取消息客户端的地理位置信息。The hardware where the first client is installed or located can obtain information about the geographic location of the hardware. Thus, the first client can obtain geographic location information of its current location. Common methods include locating the messaging client and obtaining its geographic location information through the messaging client's built-in GPS positioning system or the mobile communication network of a telecom or mobile operator, or a combination of the two. Alternatively, the messaging client's geographic location information can be obtained by combining WiFi hotspot information.
例如客户端所位于的移动终端所处的位置,可以经该移动终端可以记录位置信息的定位装置记录下的,代表位置的坐标信息。常见的定位装置可以采用美国GPS卫星导航系统,欧洲“伽利略”卫星导航系统,俄罗斯GLONASS卫星导航系统,或者中国“北斗”卫星导航系统等,或者类似的组合。这类定位的坐标信息也称为移动定位。此外,也可以是网络设备基于客户端所位于的移动终端的信号特点转换得到的,例如由网络运营商利用基站覆盖原理,通过所述客户端所位于的移动终端的信号通过基站定位计算得到的位置信息。在后者的定位计算中,一般由移动终端测量不同基站的下行导频信号,得到不同基站下行导频的到达时刻(Time of Arrival,TOA)或到达时间差(Time Difference of Arrival,TDOA),根据该测量结果并结合基站的坐标,一般采用三角公式估计算法,从而计算出移动终端的位置。实际的位置估计算法需要考虑多基站(3个或3个以上)定位的情况,现有技术中有多种算法,较为复杂。一般而言,移动台测量的基站数目越多,测量精度越高,定位性能改善越明显。所述位置信息,还可以是通过基站辅助定位并结合移动终端中的定位装置共同定位得到的较为精确的位置。这里并不限定位置信息的获取方式。For example, the location of the mobile terminal where the client is located can be represented by coordinate information recorded by a positioning device capable of recording location information. Common positioning devices can use the US GPS satellite navigation system, the European Galileo satellite navigation system, the Russian GLONASS satellite navigation system, the Chinese Beidou satellite navigation system, or similar combinations. This type of positioning coordinate information is also called mobile positioning. Alternatively, it can be obtained by network equipment based on the signal characteristics of the mobile terminal where the client is located. For example, a network operator uses the principle of base station coverage to calculate the location information using the signal from the mobile terminal where the client is located through base station positioning. In the latter positioning calculation, the mobile terminal generally measures the downlink pilot signals of different base stations to obtain the time of arrival (TOA) or time difference of arrival (TDOA) of the downlink pilot signals of the different base stations. Based on this measurement result and the coordinates of the base stations, a triangulation formula estimation algorithm is generally used to calculate the location of the mobile terminal. Actual position estimation algorithms need to consider the situation of positioning with multiple base stations (3 or more). There are many algorithms in the existing technology, which are relatively complex. Generally speaking, the more base stations a mobile station measures, the higher the measurement accuracy and the more significant the improvement in positioning performance. The location information can also be a more accurate location obtained through base station-assisted positioning combined with positioning by a positioning device in the mobile terminal. The method for obtaining location information is not limited here.
第一客户端获取第一客户端的地理位置信息后,可以通过其接入的网络,将第一客户端的地理位置信息发送至媒体服务器。After obtaining the geographical location information of the first client, the first client may send the geographical location information of the first client to the media server through the network to which it is connected.
S12:第一客户端发送上传媒体文件的请求至所述媒体服务器。S12: The first client sends a request to upload a media file to the media server.
第一客户端可以位于处于现场的终端上。媒体参与人可能携带该终端移动到某个现场,例如演唱会现场、庆典现场、活动现场之类。The first client may be located on a terminal at a scene. A media participant may carry the terminal to a scene, such as a concert scene, a celebration scene, an activity scene, or the like.
第一客户端上可以对现场的场景进行拍照、视频拍摄以及记录文字、语音等,形成媒体文件。在参与人参与的媒体交互过程中,第一客户端可以根据用户的操作指令,向媒体服务器发起上传上述媒体文件的请求。The first client can take photos, videos, and record text and voice of the scene to form media files. During the media interaction process of the participants, the first client can initiate a request to upload the above media files to the media server according to the user's operation instructions.
S13:所述媒体服务器判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端。S13: The media server determines whether the geographical location information uploaded by the first client is within a preset geographical range; if yes, the media server returns an upload confirmation message to the first client.
媒体服务器在确认第一客户端可以上传所述媒体文件之前,可以判断第一客户端所处的地理位置。媒体服务器可以根据S11中第一客户端上传的地理位置信息是否位于预设的地理范围之内来完成判断。Before confirming that the first client can upload the media file, the media server may determine the geographical location of the first client. The media server may make the determination based on whether the geographical location information uploaded by the first client in S11 is within a preset geographical range.
媒体服务器可以预设一个地理范围。这个地理范围,例如可以是根据经纬度设定的地理区域;也可以是以预设地理点中心的预设半径之内的地理范围;还可以是预设信息点(POI)。在包含导航数据的地图中,经常包含POI信息。POI信息通常可以包含名称、类别、经度纬度、附近的酒店饭店商铺等的信息。The media server can preset a geographic range. This geographic range can be, for example, a geographical area defined by longitude and latitude; a geographical range within a predetermined radius centered on a predetermined geographic point; or a predetermined point of interest (POI). Maps containing navigation data often include POI information. POI information typically includes a name, category, longitude and latitude, and nearby hotels, restaurants, and shops.
例如,媒体服务器可以设置特定经纬度范围的矩形区域为预设地理范围,例如某个广场;也可以设置预设地理点中心的预设半径之内的地理范围为预设地理范围,如某个商圈;也可以设置某个POI为预设地理范围,例如某个商业体。预设地理范围内可以圈定发生演唱会、庆典或活动之类的现场。For example, the media server can set a rectangular area within a specific latitude and longitude range as the preset geographic range, such as a square; it can also set a geographic range within a preset radius from a preset geographic point as the preset geographic range, such as a business district; it can also set a specific point of interest as the preset geographic range, such as a commercial building. The preset geographic range can include venues such as concerts, celebrations, or events.
媒体服务器可以第一客户端上传的地理位置信息判断第一客户端是否位于预设的地理范围之内,即判断第一客户端所处的终端是否位于活动现场。The media server may determine whether the first client is located within a preset geographical range based on the geographical location information uploaded by the first client, that is, determine whether the terminal where the first client is located is at the event site.
通过判断,如果确定第一客户端位于活动现场,则可以返回确认上传消息至第一客户端,作为第一客户端发送上传媒体文件请求的响应。If it is determined that the first client is located at the activity site, a confirmation upload message may be returned to the first client as a response to the request to upload the media file sent by the first client.
S14:第一客户端接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器。S14: After receiving the upload confirmation message returned by the media server, the first client uploads the media file to the media server.
第一客户端接收到所述媒体服务器返回的确认上传消息后,可以上传前述媒体文件至所述媒体服务器。After receiving the upload confirmation message returned by the media server, the first client may upload the aforementioned media file to the media server.
伴随第一客户端的上传指令,可能还会有分享指令。这样,所述媒体服务器可以发布第一客户端上传的媒体文件。例如在视频分享网络中发布第一客户端上传的视频之类,在照片分享网络发布第一客户端上传的照片之类,在微博/微信中发布第一客户端上传的视频/音频/图片/文字之类。The first client's upload instruction may be accompanied by a sharing instruction. Thus, the media server can publish the media file uploaded by the first client. For example, the media server may publish the video uploaded by the first client on a video sharing network, publish the photo uploaded by the first client on a photo sharing network, or publish the video, audio, image, text, etc. uploaded by the first client on Weibo or WeChat.
此外,S13中,所述媒体服务器判断第一客户端上传的地理位置信息并不位于预设的地理范围之内时,可以返回拒绝上传媒体信息的消息至第一客户端。通过这样的方式,可以判断第一客户端并不位于活动现场,则其上传的媒体文件可能并不与活动现场有关。这样,第一客户端并不会将与活动现场关系不大的媒体文件上传至媒体服务器,这里特别指第一客户端不会上传至媒体服务器中开设的与活动现场有关的栏目/话题相关的页面。Furthermore, in S13, if the media server determines that the geographic location information uploaded by the first client is not within the preset geographic range, it may return a message to the first client rejecting the upload of the media information. This allows the first client to determine that the first client is not located at the event site, and therefore the media files uploaded by the client may not be related to the event site. Thus, the first client will not upload media files that are not particularly relevant to the event site to the media server. Specifically, the first client will not upload to pages on the media server related to columns/topics related to the event site.
S15:第二客户端上传第二客户端的地理位置信息至所述媒体服务器。S15: The second client uploads the geographic location information of the second client to the media server.
与第一客户端上传地理位置信息至所述媒体服务器类似的,第二客户端可以上传自己的地理位置信息至所述媒体服务器。Similar to the first client uploading geographic location information to the media server, the second client may upload its own geographic location information to the media server.
S16:所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S16: When the media server determines that the geographical location information uploaded by the second client is within a preset geographical range, the media server sends the media file uploaded by the first client to the second client.
所述媒体服务器可以根据第二客户端上传的地理位置信息判断第二客户端是否位于预设的地理范围内。当判断第二客户端位于预设地理范围内时,即第二客户端也位于同一活动的现场,则所述媒体服务器可以将第一客户端上传的所述媒体文件发送至第二客户端。The media server may determine whether the second client is located within a preset geographical range based on the geographic location information uploaded by the second client. If the second client is determined to be within the preset geographical range, i.e., the second client is also at the same event site, the media server may send the media file uploaded by the first client to the second client.
通过上述实施例,媒体服务器可以将接收位于活动现场的客户端上传的媒体文件;而且媒体服务器可以将所述上传的媒体文件发送至位于同一活动现场的第二客户端。特别的,当第二客户端所在终端移动到活动现场所属的预设地理范围时,可以自动的接收到媒体服务器推送的媒体信息,从而使得第二客户端可以便捷、准确的获得活动现场的信息。Through the above embodiment, a media server can receive media files uploaded by a client at an event site; the media server can also send the uploaded media files to a second client at the same event site. Specifically, when the second client's terminal moves to a preset geographical range of the event site, it can automatically receive media information pushed by the media server, allowing the second client to conveniently and accurately obtain information about the event site.
以下介绍本申请传输文件方法的另一个实施例,图2示出了该实施例的流程。如图所示,该方法包括:Another embodiment of the file transmission method of the present application is described below. FIG2 shows the process of this embodiment. As shown in the figure, the method includes:
S21:媒体服务器发送预设地理范围至第一客户端。S21: The media server sends a preset geographical range to the first client.
媒体服务器可以预设一个地理范围。这个地理范围,如前所述,例如可以是根据经纬度设定的地理区域;也可以是以预设地理点中心的预设半径之内的地理范围;还可以是预设信息点(POI)。在包含导航数据的地图中,经常包含POI信息。The media server can preset a geographic range. As previously mentioned, this geographic range can be, for example, a geographical area defined by longitude and latitude; a geographical range within a predetermined radius centered on a predetermined geographic point; or a predetermined point of interest (POI). Maps containing navigation data often include POI information.
例如,媒体服务器可以设置特定经纬度范围的矩形区域为预设地理范围,例如某个广场;也可以设置预设地理点中心的预设半径之内的地理范围为预设地理范围,如某个商圈;也可以设置某个POI为预设地理范围,例如某个商业体。预设地理范围内可以圈定发生演唱会、庆典或活动之类的现场。For example, the media server can set a rectangular area within a specific latitude and longitude range as the preset geographic range, such as a square; it can also set a geographic range within a preset radius from a preset geographic point as the preset geographic range, such as a business district; it can also set a specific point of interest as the preset geographic range, such as a commercial building. The preset geographic range can include venues such as concerts, celebrations, or events.
媒体服务器可以将该预设的地理范围发送至第一客户端。例如,第一客户端可以在程序启动时,根据程序的设定与媒体服务器交互,在此过程中完成对预设地理范围的接收。The media server may send the preset geographical range to the first client. For example, the first client may interact with the media server according to the settings of the program when the program is started, and complete the reception of the preset geographical range in this process.
S22:第一客户端采集第一客户端当前的地理位置信息。S22: The first client collects the current geographical location information of the first client.
如前所述,第一客户端所安装或所处于的硬件中,可以获得该硬件所处地理位置的信息。这样,第一客户端可以采集当前位置的地理位置信息。As mentioned above, the hardware where the first client is installed or located can obtain the geographical location information of the hardware. In this way, the first client can collect the geographical location information of the current location.
S23:第一客户端接收输入的上传媒体文件指令。S23: The first client receives an input instruction to upload a media file.
第一客户端可以接收用户输入的上传媒体文件的指令。The first client may receive an instruction input by a user to upload a media file.
S24:第一客户端判断所述采集的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。S24: When the first client determines that the collected geographical location is within the received preset geographical range, the first client uploads the media file to the media server in response to the input instruction to upload the media file.
第一客户端可以根据上传的地理位置信息判断第一客户端是否位于预设的地理范围之内,即判断第一客户端所处的终端是否位于活动现场。The first client can determine whether the first client is located within a preset geographical range based on the uploaded geographical location information, that is, determine whether the terminal where the first client is located is located at the activity site.
通过判断,如果第一客户端确定当前位置位于活动现场,则可以上传媒体文件至所述媒体服务器。Through judgment, if the first client determines that the current location is at the event site, the media file can be uploaded to the media server.
与图1对应实施例不同的是,该图2示例中,媒体服务器通过将预设地理范围发送至第一客户端,可以有第一客户端完成对第一客户端是否位于预设地理范围的判断。这种方式对于第一客户端周期性上报自身地理位置信息的情况,不需要图1实施例中可能的多次上传自身地理位置信息并由媒体服务器判断的过程,从而降低网络传输次数,也可以减轻媒体服务器的压力。取而代之的,第一客户端在获得预设地理范围之后,可以由所在终端的本地计算资源完成判断,即判断第一客户端是否位于预设地理范围之内,响应速度也可以一定程度的提高。Unlike the embodiment corresponding to FIG1 , in the example of FIG2 , the media server sends a preset geographical range to the first client, so that the first client can complete the judgment of whether the first client is located in the preset geographical range. This method does not require the process of uploading its own geographical location information multiple times and having the media server make the judgment in the embodiment of FIG1 , which may be necessary for the first client to periodically report its own geographical location information. This reduces the number of network transmissions and can also reduce the pressure on the media server. Instead, after obtaining the preset geographical range, the first client can use the local computing resources of the terminal where it is located to complete the judgment, that is, to determine whether the first client is within the preset geographical range, and the response speed can also be improved to a certain extent.
S25:第二客户端上传第二客户端的地理位置信息至所述媒体服务器。S25: The second client uploads the geographic location information of the second client to the media server.
S26:所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S26: When the media server determines that the geographical location information uploaded by the second client is within the preset geographical range, the media server sends the media file uploaded by the first client to the second client.
步骤S25、S26与前述S15、S16分别类似,不再赘述。Steps S25 and S26 are similar to the aforementioned S15 and S16, respectively, and will not be repeated here.
以下介绍图1实施例对应的以媒体服务器为主体的一个方法实施例,如图3所示:The following describes a method embodiment corresponding to the embodiment of FIG1 with a media server as the main body, as shown in FIG3:
S110:接收第一客户端上传的地理位置信息。S110: Receive geographic location information uploaded by the first client.
S120:接收第一客户端发送的上传媒体文件请求。S120: Receive a media file upload request sent by the first client.
S130:判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端。S130: Determine whether the geographic location information uploaded by the first client is within a preset geographic range; if yes, return a confirmation upload message to the first client.
S140:接收第一客户端上传的现场媒体文件。S140: Receive the live media file uploaded by the first client.
S130中,如果判断第一客户端上传的地理位置信息并不位于预设的地理范围之内,则可以返回拒绝上传消息至第一客户端。In S130 , if it is determined that the geographical location information uploaded by the first client is not within the preset geographical range, an upload rejection message may be returned to the first client.
如前所述,如果判断第一客户端上传的地理位置信息并不位于预设的地理范围之内,则媒体服务器可以返回拒绝上传消息至第一客户端,从而避免第一客户端上传可能与现场无关的媒体文件。As mentioned above, if it is determined that the geographic location information uploaded by the first client is not within the preset geographic range, the media server may return an upload rejection message to the first client, thereby preventing the first client from uploading media files that may be irrelevant to the scene.
以下介绍图2实施例对应的以媒体服务器为主体的一个方法实施例,如图4所示:The following describes a method embodiment corresponding to the embodiment of FIG. 2 with a media server as the main body, as shown in FIG. 4 :
S210:接收第一客户端上传的现场媒体文件。S210: Receive a live media file uploaded by a first client.
S220:接收第二客户端上传的地理位置信息。S220: Receive geographic location information uploaded by the second client.
S230:判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S230: When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
以下介绍图1实施例对应的以第一客户端为主体的一个方法实施例,如图5所示:The following describes a method embodiment corresponding to the embodiment of FIG1 with the first client as the main body, as shown in FIG5:
S310:上传第一客户端的地理位置信息至媒体服务器。S310: Uploading the geographic location information of the first client to the media server.
S320:发送上传媒体文件的请求至所述媒体服务器。S320: Send a request to upload the media file to the media server.
S330:接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器。S330: After receiving the upload confirmation message returned by the media server, upload the media file to the media server.
以下介绍图2实施例对应的以第一客户端为主体的另一方法实施例,如图6所示:The following describes another method embodiment corresponding to the embodiment of FIG. 2 with the first client as the main body, as shown in FIG. 6 :
S410:接收媒体服务器发送的预设地理范围。S410: Receive a preset geographical range sent by a media server.
S420:采集第一客户端当前的地理位置信息。S420: Collect the current geographical location information of the first client.
S430:接收输入的上传媒体文件指令。S430: Receive an input instruction to upload a media file.
S440:当采集的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。S440: When the collected geographical location is within the received preset geographical range, in response to the input instruction to upload the media file, the media file is uploaded to the media server.
以下介绍图1、2实施例对应的以第二客户端为主体的一方法实施例,如图7所示:The following describes a method embodiment corresponding to the embodiments of Figures 1 and 2 with the second client as the main body, as shown in Figure 7:
S510:采集第二客户端当前的地理位置信息。S510: Collect the current geographical location information of the second client.
S520:发送采集的第二客户端当前的地理位置信息至媒体服务器。S520: Send the collected current geographical location information of the second client to the media server.
S530:接收所述媒体服务器发送的媒体文件。S530: Receive the media file sent by the media server.
以下介绍本申请一种传输文件的方法的实施例,如图8所示,包括:The following describes an embodiment of a method for transmitting files according to the present application, as shown in FIG8 , including:
S31:第一客户端上传包含地理位置信息的媒体文件至媒体服务器。S31: The first client uploads a media file containing geographic location information to a media server.
第一客户端可以自身可以存有包含地理位置信息的媒体文件。这些地理位置信息,例如可以是在媒体文件生成时即包含的,如拍摄的照片在拍摄时可以包含GPS信息。The first client may store a media file containing geographic location information. Such geographic location information may be included when the media file is generated, for example, a photograph may contain GPS information when it is taken.
S32:所述媒体服务器判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述媒体文件。S32: The media server determines whether the geographical location information included in the uploaded media file is within a preset geographical range; if yes, the uploaded media file is saved.
所述媒体服务器接收到的第一客户端上传的媒体文件后,可以通过其中包含的地理位置信息判断是否位于预设的地理范围之内。After receiving the media file uploaded by the first client, the media server can determine whether the media file is located within a preset geographical range based on the geographical location information contained therein.
S33:第二客户端上传第二客户端的地理位置信息至所述媒体服务器。S33: The second client uploads the geographic location information of the second client to the media server.
S34:所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S34: When the media server determines that the geographical location information uploaded by the second client is within the preset geographical range, the media server sends the media file uploaded by the first client to the second client.
以下介绍本申请一种传输文件的方法的实施例,如图9所示,包括:The following describes an embodiment of a method for transmitting files according to the present application, as shown in FIG9 , including:
S41:媒体服务器发送预设地理范围至第一客户端;S41: The media server sends a preset geographical range to the first client;
S42:第一客户端采集第一客户端当前的地理位置信息;S42: The first client collects the current geographical location information of the first client;
S43:第一客户端接收选定并上传媒体文件指令;所述媒体文件包含地理位置信息;S43: The first client receives an instruction to select and upload a media file; the media file includes geographic location information;
S44:第一客户端判断所述媒体文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器;S44: When the first client determines that the geographical location included in the media file is within the received preset geographical range, the first client uploads the media file to the media server in response to the input instruction to upload the media file;
S45:第二客户端上传第二客户端的地理位置信息至所述媒体服务器;S45: The second client uploads the geographic location information of the second client to the media server;
S46:所述媒体服务器判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S46: When the media server determines that the geographical location information uploaded by the second client is within the preset geographical range, the media server sends the media file uploaded by the first client to the second client.
以下介绍图8实施例对应的以媒体服务器为主体的一方法实施例,如图10所示,包括:The following describes a method embodiment corresponding to the embodiment of FIG8 with a media server as the main body, as shown in FIG10, including:
S610:接收第一客户端上传的包含地理位置信息的媒体文件;S610: Receive a media file containing geographic location information uploaded by a first client;
S620:判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述媒体文件;S620: Determine whether the geographical location information included in the uploaded media file is within a preset geographical range; if yes, save the uploaded media file;
S630:接收第二客户端上传的第二客户端的地理位置信息;S630: Receive geographic location information of the second client uploaded by the second client;
S640:判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S640: When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
以下介绍图9实施例对应的以第一客户端为主体的一方法实施例,如图11所示,包括:The following describes a method embodiment corresponding to the embodiment of FIG. 9 with the first client as the main body, as shown in FIG. 11 , including:
S710:接收媒体服务器发送的预设地理范围;S710: Receive a preset geographical range sent by a media server;
S720:采集第一客户端当前的地理位置信息;S720: Collecting the current geographical location information of the first client;
S730:接收输入的上传媒体文件指令;所述媒体文件包含地理位置信息;S730: Receive an input instruction to upload a media file; the media file includes geographic location information;
S740:判断所述媒体文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。S740: When it is determined that the geographical location included in the media file is within the received preset geographical range, in response to the input instruction to upload the media file, the media file is uploaded to the media server.
以下介绍图3实施例对应的媒体服务器实施例,如图12所示,包括:The following describes an embodiment of a media server corresponding to the embodiment of FIG3 , as shown in FIG12 , including:
第一接收单元121,接收第一客户端上传的地理位置信息;The first receiving unit 121 receives geographic location information uploaded by the first client;
第二接收单元122,接收第一客户端发送的上传文件请求;The second receiving unit 122 receives a file upload request sent by the first client;
判断单元123,判断第一客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;The determining unit 123 determines whether the geographic location information uploaded by the first client is within a preset geographic range; if so, returns a confirmation upload message to the first client;
第三接收单元124,接收第一客户端上传的媒体文件。The third receiving unit 124 receives the media file uploaded by the first client.
以下介绍图4实施例对应的媒体服务器实施例,如图13所示,包括:The following describes an embodiment of a media server corresponding to the embodiment of FIG. 4 , as shown in FIG. 13 , including:
第一接收单元131,接收第一客户端上传的媒体文件;A first receiving unit 131 receives a media file uploaded by a first client;
第二接收单元132,接收第二客户端上传的地理位置信息;The second receiving unit 132 receives the geographic location information uploaded by the second client;
判断单元133,判断第二客户端上传的地理位置信息是否在预设地理范围内;The determining unit 133 determines whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元134,当所述判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit 134 sends the media file uploaded by the first client to the second client when the determination result of the determination unit is yes.
以下介绍图5实施例对应的第一客户端实施例,如图14所示,包括:The following describes a first client embodiment corresponding to the embodiment of FIG5 , as shown in FIG14 , including:
第一上传单元141,上传第一客户端的地理位置信息至媒体服务器;The first uploading unit 141 uploads the geographic location information of the first client to the media server;
发送单元,发送上传媒体文件的请求至所述媒体服务器;A sending unit, sending a request to upload a media file to the media server;
第二上传单元142,接收到所述媒体服务器返回的确认上传消息后,上传媒体文件至所述媒体服务器。The second uploading unit 142 uploads the media file to the media server after receiving the upload confirmation message returned by the media server.
以下介绍图6实施例对应的媒体服务器实施例,如图15所示,包括:The following describes an embodiment of a media server corresponding to the embodiment of FIG6 , as shown in FIG15 , including:
第一接收单元151,接收第一客户端上传的现场媒体文件;A first receiving unit 151 receives a live media file uploaded by a first client;
第二接收单元152,接收第二客户端上传的地理位置信息;The second receiving unit 152 receives the geographic location information uploaded by the second client;
判断单元153,判断第二客户端上传的地理位置信息是否在预设地理范围内;The determining unit 153 determines whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元154,当所述判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit 154 sends the media file uploaded by the first client to the second client when the determination result of the determination unit is yes.
以下介绍图5实施例对应的媒体服务器实施例,如图16所示,包括:The following describes an embodiment of a media server corresponding to the embodiment of FIG5 , as shown in FIG16 , including:
第一接收单元161,接收第一客户端上传的包含地理位置信息的媒体文件;The first receiving unit 161 receives a media file containing geographic location information uploaded by a first client;
第一判断单元162,判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;The first determination unit 162 determines whether the geographical location information included in the uploaded media file is within a preset geographical range;
保存单元163,当第一判断单元判断结果为是时,保存上传的所述媒体文件;The saving unit 163 saves the uploaded media file when the judgment result of the first judgment unit is yes;
第二接收单元164,接收第二客户端上传的第二客户端的地理位置信息;The second receiving unit 164 receives the geographic location information of the second client uploaded by the second client;
第二判断单元165,判断第二客户端上传的地理位置信息是否在预设地理范围内;The second determining unit 165 determines whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元166,当第二判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit 166 sends the media file uploaded by the first client to the second client when the determination result of the second determination unit is yes.
以下介绍图5实施例对应的第一客户端实施例,如图17所示,包括:The following describes a first client embodiment corresponding to the embodiment of FIG5 , as shown in FIG17 , including:
第一接收单元171,接收媒体服务器发送的预设地理范围;The first receiving unit 171 receives a preset geographical range sent by the media server;
采集单元172,采集第一客户端当前的地理位置信息;The collecting unit 172 collects the current geographical location information of the first client;
第二接收单元173,接收输入的上传媒体文件指令;所述媒体文件包含地理位置信息;The second receiving unit 173 receives an input instruction to upload a media file; the media file includes geographic location information;
判断单元174,判断所述媒体文件包含的地理位置是否位于所述接收的预设地理范围之内;The determining unit 174 determines whether the geographical location included in the media file is within the received preset geographical range;
上传单元175,当第二判断单元判断结果为是时,上传所述媒体文件至所述媒体服务器。The uploading unit 175 uploads the media file to the media server when the determination result of the second determination unit is yes.
以下介绍图10实施例对应的媒体服务器实施例,如图18所示,包括:The following describes a media server embodiment corresponding to the embodiment of FIG10 , as shown in FIG18 , including:
第一接收单元181,接收第一客户端上传的包含地理位置信息的媒体文件;The first receiving unit 181 receives a media file containing geographic location information uploaded by a first client;
第一判断单元182,判断上传的媒体文件中包含的地理位置信息是否位于预设的地理范围之内;The first determination unit 182 determines whether the geographical location information included in the uploaded media file is within a preset geographical range;
保存单元183,当第一判断单元判断结果为是时,保存上传的所述媒体文件;The saving unit 183 saves the uploaded media file when the judgment result of the first judgment unit is yes;
第二接收单元184,接收第二客户端上传的第二客户端的地理位置信息;The second receiving unit 184 receives the geographic location information of the second client uploaded by the second client;
第二判断单元185,判断第二客户端上传的地理位置信息是否在预设地理范围内;The second determining unit 185 determines whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元186,当第二判断单元判断结果为是时,将第一客户端上传的所述媒体文件发送至第二客户端。The sending unit 186 sends the media file uploaded by the first client to the second client when the determination result of the second determination unit is yes.
以下介绍图11实施例对应的第一客户端实施例,如图19所示,包括:The following describes a first client embodiment corresponding to the embodiment of FIG11 , as shown in FIG19 , including:
第一接收单元191,接收媒体服务器发送的预设地理范围;The first receiving unit 191 receives a preset geographical range sent by the media server;
采集单元192,采集第一客户端当前的地理位置信息;A collecting unit 192 collects the current geographical location information of the first client;
第一上传单元193,接收选定并上传媒体文件的指令;所述媒体文件包含地理位置信息;The first uploading unit 193 receives an instruction to select and upload a media file; the media file includes geographic location information;
判断单元194,判断所述媒体文件包含的地理位置是否位于所述接收的预设地理范围之内;The determining unit 194 determines whether the geographical location included in the media file is within the received preset geographical range;
第二上传单元195,当判断单元判断结果为是时,响应于输入的上传媒体文件指令,上传所述媒体文件至所述媒体服务器。The second uploading unit 195 uploads the media file to the media server in response to the input instruction to upload the media file when the judgment result of the judgment unit is yes.
可以理解的是,在不同的场景下,上述的媒体服务器可以是指单独进行媒体,例如音视频、图片处理和播放的服务器,或者也可以是集成有这些功能,并具有社交或即时通讯功能的其他服务器等;相应的客户端可以是能实现不同功能,例如媒体播放、社交分享或即时通讯功能的客户端等。It is understandable that in different scenarios, the above-mentioned media server may refer to a server that performs media processing and playback independently, such as audio, video, and images, or it may be other servers that integrate these functions and have social or instant messaging functions; the corresponding client may be a client that can realize different functions, such as media playback, social sharing, or instant messaging functions.
本申请实施例还提供一种视频分享的方法,在视频分享方法可应用于即时通讯等社交系统中,社交系统中的用户之间可通过上传视频方式分享给社交系统中的其他用户,再具体的说,社交系统中的一个用户,可以将其在某一现场拍摄的视频文件,上传至社交系统中的服务器,由服务器将该视频文件可分享给其它用户。其中,社交系统的服务器上可建立不同主题的视频分享项目,社交系统中的用户可以在该视频分享项目中进行视频的分享,例如可以上传视频或者观看视频,在视频上传过程中,可以基于地理位置来确定是否允许用户上传,例如可允许在一定地理范围的用户进行视频的拍摄和上传;视频上传后,也可以允许一定的用户和/或一定地理范围内的用户观看视频,例如,可以是第一用户的具有关系的用户,例如是第一用户的好友的用户才有权限观看视频,或者,只有在设定的地理范围内的用户才可以观看该视频等等。同时,视频分享时,可以是通过视频播放界面,例如每一个视频分享项目会有一个视频播放界面提供给社交系统中的每个用户,使得用户可以基于该视频播放界面来进行视频的拍摄、上传、观看等分享动作。在视频分享,例如观看过程中,还可以实现打赏功能,即用户可通过打赏功能向自己喜欢的视频上传用户支付一定的费用来进行奖励等。The present application also provides a video sharing method, which can be applied to social systems such as instant messaging. Users in the social system can share videos with other users in the social system by uploading them. More specifically, a user in the social system can upload a video file shot at a certain location to a server in the social system, and the server can share the video file with other users. The server can establish video sharing projects with different themes, and users in the social system can share videos in these video sharing projects, such as uploading videos or watching videos. During the video uploading process, whether to allow users to upload can be determined based on geographic location. For example, users within a certain geographic range can be allowed to shoot and upload videos. After the video is uploaded, certain users and/or users within a certain geographic range can also be allowed to view the video. For example, only users with a relationship with the first user, such as users who are friends of the first user, can view the video, or only users within a set geographic range can view the video. At the same time, when sharing videos, it can be through a video playback interface. For example, each video sharing project will have a video playback interface provided to each user in the social system, allowing users to perform sharing actions such as shooting, uploading, and watching videos based on the video playback interface. During video sharing, for example, during the viewing process, a reward function can also be implemented, that is, users can use the reward function to pay a certain fee to the user who uploaded their favorite video as a reward.
下面将会以在社交应用中的视频分享过程进行说明,可以理解的是,下面所述的媒体服务器可以是单独的服务器或者是社交应用中的服务器,所述的客户端可以是指社交应用的客户端。The following will be explained using the video sharing process in a social application. It is understandable that the media server described below can be a separate server or a server in a social application, and the client can refer to a client of the social application.
本申请一种分享视频的方法,该方法可以以媒体服务器为主体,包括如下步骤:The present application provides a method for sharing videos, which may be based on a media server and includes the following steps:
S51:接收第一社交应用客户端上传的地理位置信息;S51: Receive geographic location information uploaded by a first social application client;
S52:接收第一社交应用客户端发送的上传现场视频文件的请求;S52: Receive a request from the first social application client to upload a live video file;
S53:判断第一社交应用客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;S53: Determine whether the geographic location information uploaded by the first social application client is within a preset geographic range; if so, return a confirmation upload message to the first client;
S54:接收第一客户端上传的现场视频文件。S54: Receive the live video file uploaded by the first client.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
在一种实现中,媒体服务器接收到视频文件后,可以将所述视频文件分享给第一社交应用的其它用户。In one implementation, after receiving the video file, the media server may share the video file with other users of the first social application.
在一种实现中,可将所述视频文件在一视频播放界面进行播放,以分享给第一社交应用的其它用户,其中,可根据第一客户端对应的用户的用户关系,和/或第一客户端的地理位置,确定待分享的其它用户,并将所述视频文件分享给确定待分享的其它用户。In one implementation, the video file can be played on a video playback interface to be shared with other users of the first social application. The other users to be shared can be determined based on the user relationship of the user corresponding to the first client and/or the geographic location of the first client, and the video file can be shared with the other users determined to be shared.
具体地,上述第一社交应用的客户端对应于第一用户,其上传的视频文件可以是指上传至一视频分享项目,该视频分享项目会在第一社交应用的其他客户端上展示,并可以视频播放界面的方式提供给用户进行分享视频的播放,同时也可以实现分享视频的上传,即该视频播放界面,可以提供视频的录制按钮,还可以有评论、打赏等功能。此外,该视频分享项目可以包括有多个社交客户端,即多个社交应用中的用户上传的视频,该多个用户上传的多个视频可以在该视频播放界面轮番播放或随机播放,同时在不同的社交用户对应的客户端上可以有选择的播放,例如只有上传视频的用户的好友,或者在一定范围内的用户的客户端上才进行播放,即视频的分享是需要满足条件的。Specifically, the client of the first social application corresponds to the first user, and the video file uploaded by the user can refer to a video sharing project that is uploaded to other clients of the first social application. The video sharing project will be displayed on other clients of the first social application and can be provided to users in the form of a video playback interface to play the shared video. At the same time, the upload of shared videos can also be realized. That is, the video playback interface can provide a video recording button, and can also have functions such as comments and rewards. In addition, the video sharing project can include multiple social clients, that is, videos uploaded by users in multiple social applications. The multiple videos uploaded by the multiple users can be played in turn or randomly on the video playback interface, and can be selectively played on the clients corresponding to different social users. For example, it can only be played on the clients of the friends of the user who uploaded the video, or users within a certain range. That is, the sharing of the video needs to meet conditions.
以下介绍本申请一种分享视频文件的方法,该方法可以以媒体服务器为主体,包括:The following describes a method for sharing video files in this application. The method can be based on a media server and includes:
S61:接收第一客户端上传的现场视频文件;S61: receiving a live video file uploaded by a first client;
S62:接收第二客户端上传的地理位置信息;S62: Receive geographic location information uploaded by the second client;
S63:判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。S63: When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the live video file uploaded by the first client is sent to the second client.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
以下介绍本申请一种分享视频文件的方法,该方法可以以第一客户端为主体,包括:The following describes a method for sharing video files in the present application. The method may be based on a first client and includes:
S71:上传第一客户端的地理位置信息至媒体服务器;S71: Uploading the geographic location information of the first client to the media server;
S72:发送上传现场视频文件的请求至所述媒体服务器;S72: Sending a request to upload a live video file to the media server;
S73:接收到所述媒体服务器返回的确认上传消息后,上传所述现场视频文件至所述媒体服务器。S73: After receiving the upload confirmation message returned by the media server, upload the live video file to the media server.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
以下介绍本申请一种分享视频文件的方法,该方法可以以媒体服务器为主体,包括:The following describes a method for sharing video files in this application. The method can be based on a media server and includes:
S81:接收第一客户端上传的现场视频文件;S81: receiving a live video file uploaded by a first client;
S82:接收第二客户端上传的地理位置信息;S82: Receive geographic location information uploaded by the second client;
S83:判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。S83: When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
以下介绍本申请一种分享视频文件的方法,该方法可以以媒体服务器为主体,包括:The following describes a method for sharing video files in this application. The method can be based on a media server and includes:
S91:接收第一客户端上传的包含地理位置信息的现场视频文件;S91: receiving a live video file containing geographic location information uploaded by a first client;
S92:判断上传的现场视频文件中包含的地理位置信息是否位于预设的地理范围之内;如果是则保存上传的所述现场视频文件;S92: Determine whether the geographical location information contained in the uploaded live video file is within a preset geographical range; if so, save the uploaded live video file;
S93:接收第二客户端上传的第二客户端的地理位置信息;S93: Receive geographic location information of the second client uploaded by the second client;
S94:判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。S94: When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the live video file uploaded by the first client is sent to the second client.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
以下介绍本申请一种分享视频文件的方法,该方法可以以第一客户端为主体,包括:The following describes a method for sharing video files in the present application. The method may be based on a first client and includes:
S101:接收媒体服务器发送的预设地理范围;S101: receiving a preset geographical range sent by a media server;
S102:采集第一客户端当前的地理位置信息;S102: Collecting the current geographical location information of the first client;
S103:接收选定并上传现场视频文件的指令;所述现场视频文件包含地理位置信息;S103: Receive an instruction to select and upload a live video file; the live video file includes geographic location information;
S104:判断所述现场视频文件包含的地理位置位于所述接收的预设地理范围之内时,响应于输入的上传现场视频文件指令,上传所述现场视频文件至所述媒体服务器。S104: When it is determined that the geographical location included in the live video file is within the received preset geographical range, in response to the input instruction to upload the live video file, the live video file is uploaded to the media server.
其中,上传的现场视频文件可以携带有分享范围信息;所述分享范围信息可以指定社交网络中可以查看所述现场视频文件的用户类型和/或用户名。The uploaded live video file may carry sharing range information; the sharing range information may specify the user type and/or user name in the social network that can view the live video file.
以下介绍本申请一种媒体服务器实施例,包括:The following describes an embodiment of a media server of the present application, including:
第一接收单元,接收第一社交应用客户端上传的地理位置信息;A first receiving unit receives geographic location information uploaded by a first social application client;
第二接收单元,接收第一社交应用客户端发送的上传现场视频文件的请求;A second receiving unit receives a request sent by the first social application client to upload a live video file;
判断单元,判断第一社交应用客户端上传的地理位置信息是否位于预设的地理范围之内;如果是则返回确认上传消息至第一客户端;a judgment unit, configured to judge whether the geographic location information uploaded by the first social application client is within a preset geographic range; if so, returning a confirmation upload message to the first client;
第三接收单元,接收第一客户端上传的现场视频文件。The third receiving unit receives the live video file uploaded by the first client.
以下介绍本申请一种媒体服务器实施例,包括:The following describes an embodiment of a media server of the present application, including:
第一接收单元,接收第一客户端上传的现场视频文件;A first receiving unit receives a live video file uploaded by a first client;
第二接收单元,接收第二客户端上传的地理位置信息;A second receiving unit receives geographic location information uploaded by a second client;
发送单元,判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述现场视频文件发送至第二客户端。The sending unit sends the live video file uploaded by the first client to the second client when it is determined that the geographical location information uploaded by the second client is within a preset geographical range.
以下介绍本申请一种客户端实施例,包括:The following describes a client embodiment of the present application, including:
第一上传单元,上传第一客户端的地理位置信息至媒体服务器;A first uploading unit, uploading the geographic location information of the first client to the media server;
发送单元,发送上传现场视频文件的请求至所述媒体服务器;A sending unit, sending a request to upload a live video file to the media server;
第二上传单元,接收到所述媒体服务器返回的确认上传消息后,上传所述现场视频文件至所述媒体服务器。The second uploading unit uploads the live video file to the media server after receiving the upload confirmation message returned by the media server.
以下介绍本申请一种媒体服务器实施例,包括:The following describes an embodiment of a media server of the present application, including:
接收第一客户端上传的现场视频文件;Receiving a live video file uploaded by a first client;
接收第二客户端上传的地理位置信息;Receiving geographic location information uploaded by the second client;
判断第二客户端上传的地理位置信息在预设地理范围内时,将第一客户端上传的所述媒体文件发送至第二客户端。When it is determined that the geographical location information uploaded by the second client is within the preset geographical range, the media file uploaded by the first client is sent to the second client.
以下介绍本申请一种媒体服务器实施例,包括:The following describes an embodiment of a media server of the present application, including:
第一接收单元,接收第一客户端上传的包含地理位置信息的现场视频文件;A first receiving unit receives a live video file containing geographic location information uploaded by a first client;
第一判断单元,判断上传的现场视频文件中包含的地理位置信息是否位于预设的地第一理范围之内;A first judgment unit is configured to judge whether the geographical location information contained in the uploaded live video file is within a preset geographical range;
保存单元,如果第一判断单元判断结果为是,保存上传的所述现场视频文件;a saving unit, for saving the uploaded live video file if the judgment result of the first judgment unit is yes;
第二接收单元,接收第二客户端上传的第二客户端的地理位置信息;A second receiving unit receives geographic location information of the second client uploaded by the second client;
第二判断单元,判断第二客户端上传的地理位置信息是否在预设地理范围内;A second determining unit, determining whether the geographical location information uploaded by the second client is within a preset geographical range;
发送单元,当第二判断单元判断结果为是时,将第一客户端上传的所述现场视频文件发送至第二客户端。The sending unit sends the live video file uploaded by the first client to the second client when the second judging unit determines that the result is yes.
以下介绍本申请一种客户端实施例,包括:The following describes a client embodiment of the present application, including:
第一接收单元,接收媒体服务器发送的预设地理范围;A first receiving unit receives a preset geographical range sent by a media server;
采集单元,采集第一客户端当前的地理位置信息;A collection unit, collecting current geographical location information of the first client;
第二接收单元,接收选定并上传现场视频文件的指令;所述现场视频文件包含地理位置信息;A second receiving unit receives an instruction to select and upload a live video file; the live video file includes geographic location information;
判断单元,判断所述现场视频文件包含的地理位置是否位于所述接收的预设地理范围之内A judgment unit is used to judge whether the geographical location contained in the live video file is within the received preset geographical range.
上传单元,当判断单元判断结果为是时,上传所述现场视频文件至所述媒体服务器。The uploading unit uploads the live video file to the media server when the judgment result of the judgment unit is yes.
在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device,PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, technological improvements could be clearly distinguished as either hardware improvements (for example, improvements to circuit structures like diodes, transistors, and switches) or software improvements (improvements to process flows). However, with the advancement of technology, many process flow improvements today can now be considered direct improvements to hardware circuit structures. Designers almost always create the corresponding hardware circuit structure by programming the improved process flow into the hardware circuit. Therefore, it cannot be said that a process flow improvement cannot be implemented using hardware modules. For example, a programmable logic device (PLD), such as a field programmable gate array (FPGA), is an integrated circuit whose logical function is determined by user programming. Designers can "integrate" a digital system on a PLD through their own programming, without having to hire a chip manufacturer to design and manufacture a dedicated integrated circuit chip. Moreover, nowadays, instead of manually fabricating integrated circuit chips, this programming is mostly done using "logic compiler" software. This is similar to the software compiler used when developing programs. Before compilation, the original code must also be written in a specific programming language, called a hardware description language (HDL). There is not just one HDL, but many, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art will also understand that by simply programming the method flow in one of these hardware description languages and then programming it into an integrated circuit, a hardware circuit that implements the logic method flow can be easily obtained.
控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller can be implemented in any suitable manner. For example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also know that in addition to implementing the controller in a purely computer-readable program code format, the controller can be implemented in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers by logically programming the method steps. Therefore, such a controller can be considered a hardware component, and the devices included therein for implementing various functions can also be considered as structures within the hardware component. Or even, the devices for implementing various functions can be considered as both software modules that implement the method and structures within the hardware component.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above devices are described as being divided into various units according to their functions. Of course, when implementing this application, the functions of each unit can be implemented in the same or multiple software and/or hardware.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device produce a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communications network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included within the scope of the claims of the present application.
Claims (41)
Publications (3)
Publication Number | Publication Date |
---|---|
HK1235580A1 HK1235580A1 (en) | 2018-03-09 |
HK1235580A HK1235580A (en) | 2018-03-09 |
HK1235580B true HK1235580B (en) | 2021-03-05 |
Family
ID=
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5620517B2 (en) | A system for multimedia tagging by mobile users | |
RU2562437C2 (en) | Generating and distributing annotated information | |
US10187666B2 (en) | Live video streaming services using one or more external devices | |
US9262596B1 (en) | Controlling access to captured media content | |
CN102549570B (en) | a device | |
CN104677362B (en) | Interaction method of track route data independent of digital map | |
US8510383B2 (en) | Method for providing event based media streams | |
US20140214986A1 (en) | Apparatus, method and computer readable recording medium for sharing real time video through chatting window of messenger service | |
US20110238762A1 (en) | Geo-coded comments in a messaging service | |
US11062331B2 (en) | Determining streaming content user consumption | |
TW201212671A (en) | Location and contextual-based mobile application promotion and delivery | |
JP2013504805A (en) | System and method for generating selective distribution of media content feeds | |
WO2015038338A1 (en) | Browsing videos by searching multiple user comments and overlaying those into the content | |
CN101809972A (en) | Discovering peer-to-peer content using metadata streams | |
US10158688B2 (en) | Method and system for dynamic proximity-based media sharing | |
US20140280090A1 (en) | Obtaining rated subject content | |
CN102957741B (en) | Method and apparatus for accessing location Based service | |
US20140317202A1 (en) | System and method for requesting and sending audio, video, still pictures, and text from a specified location | |
HK1235580B (en) | Method for transferring files, method for sharing vedio, media server and client | |
CN112114920B (en) | A method and device for displaying multimedia resources | |
CN106603600B (en) | File transmission method, video sharing method, media server and client | |
HK1235580A1 (en) | Method for transferring files, method for sharing vedio, media server and client | |
HK1235580A (en) | Method and device for transferring files | |
KR101461590B1 (en) | Method for Providing Multimedia Contents based on Location | |
EP2793165A1 (en) | Detecting an event captured by video cameras |