[go: up one dir, main page]

CN106302631B - A method and system for sharing content - Google Patents

A method and system for sharing content Download PDF

Info

Publication number
CN106302631B
CN106302631B CN201610580781.5A CN201610580781A CN106302631B CN 106302631 B CN106302631 B CN 106302631B CN 201610580781 A CN201610580781 A CN 201610580781A CN 106302631 B CN106302631 B CN 106302631B
Authority
CN
China
Prior art keywords
content
sharing
script
shared
executable data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610580781.5A
Other languages
Chinese (zh)
Other versions
CN106302631A (en
Inventor
吴亮
熊张亮
严书浩
时小亮
霍常俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics China R&D Center
Samsung Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Samsung Electronics China R&D Center, Samsung Electronics Co Ltd filed Critical Samsung Electronics China R&D Center
Priority to CN201610580781.5A priority Critical patent/CN106302631B/en
Publication of CN106302631A publication Critical patent/CN106302631A/en
Application granted granted Critical
Publication of CN106302631B publication Critical patent/CN106302631B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种分享内容的方法和系统,其中方法包括:内容分享发起端将待分享内容发送给服务器;服务器利用本地保存的服务样式框架,生成包含所述待分享内容的可执行数据脚本,将可执行数据脚本发送给内容分享接收端;内容分享接收端执行所述可执行数据脚本在本端显示所述待分享内容。采用本发明,可以实现不同类型智能终端之间的内容分享。

The present application discloses a method and system for sharing content, wherein the method includes: a content sharing initiator sends the content to be shared to a server; the server generates an executable data script containing the content to be shared by using a service style framework saved locally , sending the executable data script to the content sharing receiving end; the content sharing receiving end executes the executable data script to display the content to be shared at the local end. By adopting the present invention, content sharing between different types of intelligent terminals can be realized.

Description

一种分享内容的方法和系统A method and system for sharing content

技术领域technical field

本发明涉及智能终端服务的技术领域,尤其涉及一种分享内容的方法和系统。The present invention relates to the technical field of intelligent terminal services, and in particular, to a method and system for sharing content.

背景技术Background technique

随着智能设备的推广和互联网技术的普及,通过智能设备进行在线交流和分享信息,已经成为人们生活中不可或缺的组成部分。目前,当一个智能终端需要向另一个智能终端分享内容时,双方都需要下载同样的应用软件,登陆后在该应用的服务框架中进行信息交流。比如两台连接到网络的智能手机,可以通过登录同样的社交应用,进行图文的交流。With the promotion of smart devices and the popularization of Internet technology, online communication and sharing of information through smart devices has become an indispensable part of people's lives. At present, when a smart terminal needs to share content with another smart terminal, both parties need to download the same application software, and after logging in, they can exchange information in the service framework of the application. For example, two smart phones connected to the Internet can exchange pictures and texts by logging into the same social application.

上述现有的端到端分享内容的方案中,在用户之间使用智能设备进行内容分享时,必须在双方的终端上安装同样的应用。在实际应用中,智能设备的类型不同,而应用的开发常常无法支持所有类型的智能设备,这样,不同类型的智能设备之间无法进行内容的分享,例如手机和智能电视之间无法通过微信等APP进行内容分享。In the above-mentioned existing solution for sharing content from end to end, when users use smart devices to share content, the same application must be installed on the terminals of both parties. In practical applications, the types of smart devices are different, and the development of applications often cannot support all types of smart devices. In this way, content cannot be shared between different types of smart devices. For example, mobile phones and smart TVs cannot communicate through WeChat, etc. APP for content sharing.

由此可见,现有的端到端分享内容方案依赖于终端安装用于内容分享的应用,使得端到端的内容分享受限于终端的应用平台。It can be seen that the existing end-to-end content sharing solution relies on the terminal to install an application for content sharing, so that the end-to-end content sharing is limited to the application platform of the terminal.

发明内容SUMMARY OF THE INVENTION

有鉴于此,本发明的主要目的在于提供一种分享内容的方法和系统,可以实现不同类型智能终端之间的内容分享。In view of this, the main purpose of the present invention is to provide a method and system for sharing content, which can realize content sharing among different types of intelligent terminals.

为了达到上述目的,本发明提出的技术方案为:In order to achieve the above object, the technical scheme proposed by the present invention is:

一种分享内容的方法,包括:A method of sharing content, including:

内容分享发起端将待分享内容发送给服务器;The content sharing initiator sends the content to be shared to the server;

所述服务器利用本地保存的服务样式框架,生成包含所述待分享内容的可执行数据脚本,将所述可执行数据脚本发送给内容分享接收端;The server generates an executable data script containing the content to be shared by using the locally stored service style framework, and sends the executable data script to the content sharing receiver;

所述内容分享接收端执行所述可执行数据脚本在本端显示所述待分享内容。The content sharing receiving end executes the executable data script to display the content to be shared at the local end.

一种分享内容的系统,包括:A system for sharing content, including:

内容分享发起端,用于将待分享内容发送给服务器;The content sharing initiator is used to send the content to be shared to the server;

服务器,用于利用本地保存的服务样式框架,生成包含所述待分享内容的可执行数据脚本,将所述可执行数据脚本发送给内容分享接收端;The server is configured to generate an executable data script containing the content to be shared by using the locally stored service style framework, and send the executable data script to the content sharing receiver;

内容分享接收端,用于执行所述可执行数据脚本在本端显示所述待分享内容。The content sharing receiving end is configured to execute the executable data script to display the to-be-shared content at the local end.

综上所述,本发明提出的分享内容的方法和系统,由服务器利用本地保存的服务样式框架生成包含待分享内容的可执行数据脚本,接收端接收到该可执行数据脚本后执行该可执行数据脚本即可在该服务样式框架下获知发起端分享的所述内容。如此,由于不需要在发起端和接收端安装专用于内容分享的应用,因此使得内容分享不再受限于终端的应用平台,真正达到不同类型智能终端之间可分享的内容的目的。To sum up, in the method and system for sharing content proposed by the present invention, the server generates an executable data script containing the content to be shared by using a locally stored service style framework, and the receiving end executes the executable data script after receiving the executable data script. The data script can learn the content shared by the initiator under the service style framework. In this way, since there is no need to install an application dedicated to content sharing on the originating end and the receiving end, content sharing is no longer limited by the application platform of the terminal, and the purpose of sharing content between different types of intelligent terminals is truly achieved.

附图说明Description of drawings

图1为本发明实施例的方法流程示意图;1 is a schematic flowchart of a method according to an embodiment of the present invention;

图2为图1步骤102中生成可执行数据脚本的流程示意图;Fig. 2 is the flow chart of generating executable data script in step 102 of Fig. 1;

图3为本发明实施例的系统结构示意图。FIG. 3 is a schematic diagram of a system structure according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图及具体实施例对本发明作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

本发明的核心思想是:内容分享发起端仅将待分享的内容发送给服务器,由服务器按照一定的服务样式框架生成可以在内容分享接收端执行的可执行文件,并将该可执行文件发送给接收端,接收端执行该可执行文件即可获知发起端所分享的内容。如此,不需要在发起端和接收端安装专用于内容分享的应用,从而使得内容分享不再受限于终端的应用平台,真正达到不同类型智能终端之间可分享的内容的目的。The core idea of the present invention is: the content sharing initiator only sends the content to be shared to the server, and the server generates an executable file that can be executed on the content sharing receiving end according to a certain service style framework, and sends the executable file to the server. At the receiving end, by executing the executable file, the receiving end can know the content shared by the initiator. In this way, there is no need to install an application dedicated to content sharing on the originating end and the receiving end, so that content sharing is no longer limited by the application platform of the terminal, and the purpose of sharing content between different types of intelligent terminals is truly achieved.

图1为本发明实施例一的流程示意图,如图1所示,该分享内容的方法实施例主要包括:FIG. 1 is a schematic flowchart of Embodiment 1 of the present invention. As shown in FIG. 1 , the embodiment of the method for sharing content mainly includes:

步骤101、内容分享发起端将待分享内容发送给服务器。Step 101: The content sharing initiator sends the content to be shared to the server.

本步骤中,内容分享发起端只需要将待分享的内容发给服务器即可。In this step, the content sharing initiator only needs to send the content to be shared to the server.

具体地,所述待分享内容可以包括文字、图片和/或视频等信息的一种或多种组合,可以是本地资源、也可以是在线资源对应的资源定位符信息。Specifically, the to-be-shared content may include one or more combinations of information such as text, pictures, and/or videos, and may be local resources or resource locator information corresponding to online resources.

较佳地,可以采用下述方法将待分享内容发送给服务器:Preferably, the following method can be used to send the content to be shared to the server:

所述内容分享发起端向所述服务器发送分享请求消息,所述分享请求消息携带所述待分享内容和内容分享接收端标识。The content sharing initiating end sends a sharing request message to the server, where the sharing request message carries the content to be shared and an identifier of the content sharing receiving end.

上述发送方法中,分享请求消息将携带内容分享接收端标识,以供服务器确定接收分享内容的目标设备。In the above sending method, the sharing request message will carry the identifier of the content sharing receiver, so that the server can determine the target device that receives the shared content.

进一步地,内容分享发起端将待分享内容发送给服务器的同时,还可以指定当前分享所采用的服务样式框架,该服务样式框架用于指示在内容分享接收端展示分享内容的窗口界面风格,其包含显示窗口的尺寸、背景图片资源、预留内容填充的位置信息以及接收交互的操作逻辑等信息。具体地,可以采用下述方法实现这一目的:Further, when the content sharing initiator sends the content to be shared to the server, it can also specify the service style framework currently used for sharing, and the service style framework is used to indicate the window interface style for displaying the shared content at the content sharing receiving end, which It includes information such as the size of the display window, the background image resources, the location information filled with the reserved content, and the operation logic for receiving the interaction. Specifically, the following methods can be used to achieve this purpose:

所述内容分享发起端在将待分享内容发送给服务器之前,从所述服务器获取可使用的服务样式框架类型集合;所述内容分享发起端在需要分享内容时,从所述服务样式框架类型集合中选择出一种类型作为当前分享内容所使用的服务样式框架类型;所述分享请求消息携带所述选择出的服务样式框架类型。Before sending the content to be shared to the server, the content sharing initiator obtains the available service style framework type set from the server; when the content sharing initiator needs to share the content, the content sharing initiator obtains the set of service style framework types from the service style frame type set. One type is selected as the service style frame type used by the current shared content; the sharing request message carries the selected service style frame type.

上述方法中,所述内容分享发起端需要预先从服务器处获取预设的可以使用的服务样式框架类型集合,在需要进行内容分享时,则从中选择一种作为当前使用的服务样式框架类型并利用分享请求消息通知给服务器。在实际应用中,服务器中保存的服务样式框架可以采取用户定制的方式进行设置。In the above method, the content sharing initiator needs to obtain a preset set of service style framework types that can be used from the server in advance, and when content sharing needs to be performed, select one of the service style framework types currently used and use The share request message is notified to the server. In practical applications, the service style frame saved in the server can be set in a user-customized manner.

较佳地,考虑到如果当前的分享不是与接收端之间的首次内容分享,则接收端此前已获知了用于展示分享内容的服务样式框架,此时为了减少服务器与接收端之间的信息量,服务器可以不需要再为本次分享生成包含服务样式框架信息的脚本文件,只需要将分享内容发给接收端触发其进行分享内容的更新即可。该情况下,为了便于服务器获知当前的分享属于内容更新的情况,所述分享请求消息还可以携带内容更新标识信息。Preferably, considering that if the current sharing is not the first content sharing with the receiving end, the receiving end has previously known the service style framework used to display the shared content, at this time, in order to reduce the information between the server and the receiving end. The server does not need to generate a script file containing the service style framework information for this sharing, but only needs to send the shared content to the receiver to trigger it to update the shared content. In this case, in order to facilitate the server to know that the current sharing belongs to the content update, the sharing request message may also carry content update identification information.

步骤102、所述服务器利用本地保存的服务样式框架,生成包含所述待分享内容的可执行数据脚本,将所述可执行数据脚本发送给内容分享接收端。Step 102: The server generates an executable data script including the content to be shared by using the locally saved service style framework, and sends the executable data script to the content sharing receiver.

本步骤中,服务器需要为待分享的内容生成可以在接收端执行的数据脚本,以便可以在目标设备展示待分享的内容。In this step, the server needs to generate a data script for the content to be shared that can be executed at the receiving end, so that the content to be shared can be displayed on the target device.

较佳地,在步骤101中内容分享发起端通过分享请求消息将待分享内容和内容分享接收端标识发送给服务器的基础上,本步骤中可以采用下述方法生成包含所述待分享内容的可执行数据脚本:Preferably, in step 101, on the basis that the content sharing initiator sends the content to be shared and the identifier of the content sharing receiver to the server through a sharing request message, in this step, the following method can be used to generate an acceptable content containing the content to be shared. Execute the data script:

步骤1021、所述服务器判断所述内容分享接收端标识对应的终端是否属于合法用户,如果是,则执行步骤1022,否则,结束所述分享内容的方法。Step 1021: The server determines whether the terminal corresponding to the identifier of the content sharing receiver belongs to a legitimate user, and if so, executes step 1022, otherwise, ends the method for sharing content.

本步骤中,需要对当前分享的合法性进行检测,即判断目标接收端是否是已注册的合法用户,如果不是,则不再执行后续的内容分享步骤。In this step, the legality of the current sharing needs to be detected, that is, it is determined whether the target receiving end is a registered legal user, and if not, the subsequent content sharing steps are not performed.

步骤1022~1023、判断所述分享请求消息是否携带内容更新标识信息,如果是,则生成一包含所述待分享内容的可执行数据脚本;否则,执行步骤1024。Steps 1022 to 1023: Determine whether the sharing request message carries content update identification information, and if so, generate an executable data script containing the content to be shared; otherwise, go to step 1024.

本步骤中,服务器需要对当前的分享类型进行识别,即是首次分享还是内容更新,对于前者需要生成包含所使用的服务样式框架脚本的可执行数据脚本,而对于后者,则只需要生成一包含所述待分享内容的可执行数据脚本即可。In this step, the server needs to identify the current sharing type, that is, whether it is the first sharing or the content update. For the former, it needs to generate an executable data script containing the service style framework script used, while for the latter, it only needs to generate an executable data script. The executable data script containing the content to be shared is sufficient.

步骤1024、如果所述分享请求消息携带了服务样式框架类型信息,则根据所携带的类型信息确定为当前采用的服务样式框架,否则,将预设的缺省服务样式框架确定为当前采用的服务样式框架。Step 1024: If the sharing request message carries the service style framework type information, determine the currently adopted service style framework according to the carried type information; otherwise, determine the preset default service style framework as the currently adopted service style frame. style frame.

本步骤,用于确定当前分享所采用的服务样式框架,优先选用发起端当前指定的服务样式框架,如果分享请求消息中没有指定,则使用预设的缺省服务样式框架。This step is used to determine the service style framework currently used for sharing, preferably the service style framework currently specified by the initiator, and if not specified in the sharing request message, the default default service style framework is used.

步骤1025、将所确定的服务样式框架与所述待分享内容绑定,生成相应的可执行数据脚本。Step 1025: Bind the determined service style framework with the content to be shared to generate a corresponding executable data script.

本步骤,用于将步骤1024中所确定的服务样式框架与待分享内容绑定,生成可以在内容分享接收端直接识别并执行的数据脚本,这样,执行该数据脚本,即可在所绘制的分享窗口里展示待分享的内容,从而可以实现分享内容的展示而不依赖于某一特定的APP应用。This step is used to bind the service style framework determined in step 1024 with the content to be shared, and generate a data script that can be directly recognized and executed at the content sharing receiver. The content to be shared is displayed in the sharing window, so that the display of the shared content can be realized without depending on a specific APP.

较佳地,步骤1025可以采用下述方法实现:Preferably, step 1025 can be implemented by the following method:

根据所确定的服务样式框架的窗体属性,创建相应的窗体脚本;根据所确定的服务样式框架的背景属性,创建相应的背景脚本;根据所确定的服务样式框架的操作控制属性,创建相应的控制逻辑脚本;为所述所确定的服务样式框架创建内容填充接口脚本;将所述窗体脚本、所述背景脚本、控制逻辑脚本、所述内容填充接口脚本和所述待分享内容集成,得到一个可执行数据脚本。According to the determined form attribute of the service style frame, create a corresponding form script; according to the determined background attribute of the service style frame, create a corresponding background script; according to the determined operation control attribute of the service style frame, create a corresponding create a content filling interface script for the determined service style framework; integrate the window script, the background script, the control logic script, the content filling interface script and the content to be shared, Get an executable data script.

利用上述方法,即可将用于展示待分享内容的服务样式框架和待分享内容进行绑定,所得到的可执行数据脚本将包含两部分内容,一部分是待分享内容,另一部分是关于服务样式框架的脚本。Using the above method, the service style framework for displaying the content to be shared and the content to be shared can be bound, and the obtained executable data script will contain two parts, one part is the content to be shared, and the other part is about the service style Framework script.

服务样式框架的脚本包括窗体脚本、背景脚本、控制逻辑脚本和内容填充接口脚本。The scripts of the service style framework include form scripts, background scripts, control logic scripts and content filling interface scripts.

其中,所述窗体脚本是根据样式框架中指定的窗体属性(即窗体的尺寸,透明度,底色等信息)创建的脚本,用于在接收端实际运行时,能够达到描述中的窗体效果。Wherein, the window script is a script created according to the window attributes specified in the style frame (namely, the window size, transparency, background color, etc.) body effect.

所述背景脚本是根据样式框架中描述的背景信息,比如图片,色彩,音乐等资源的描述,创建的脚本,用于在接收端显示出该服务样式框架对应的视觉效果、背景贴图、音乐播放等。The background script is a script created according to the background information described in the style frame, such as the description of resources such as pictures, colors, and music, and is used to display the visual effects, background textures, and music playback corresponding to the service style frame at the receiving end. Wait.

所述控制逻辑脚本用于控制已经加入的视觉效果开始生效,由于接收端是可以与用户进行交互的,当该窗体开始运行并获取焦点后,能够控制触发后续的动作,包括背景图片的更换、播放器启停等。The control logic script is used to control the added visual effect to take effect. Since the receiving end can interact with the user, when the window starts to run and obtains the focus, it can control the triggering of subsequent actions, including the replacement of the background image. , the player starts and stops, etc.

考虑到从发起端传来的分享内容和所采用的服务样式框架是分离的,这里,引入了内容填充接口这一概念,即需要创建所述内容填充接口脚本,以便为内容分享提供内容填充的接口,从而可以实现在该服务样式框架下对不同分享内容的展示。Considering that the shared content from the initiator is separated from the service style framework used, the concept of content filling interface is introduced here, that is, the content filling interface script needs to be created to provide content filling for content sharing. interface, so as to realize the display of different shared content under the service style framework.

较佳地,上述方法中,可以采用下述方法将所述可执行数据脚本发送给内容分享接收端:Preferably, in the above method, the executable data script can be sent to the content sharing receiver by the following method:

所述服务器向所述内容分享接收端发送内容分享消息,所述内容分享消息携带所述可执行数据脚本和对应的服务样式框架类型。The server sends a content sharing message to the content sharing receiving end, where the content sharing message carries the executable data script and the corresponding service style framework type.

步骤103、所述内容分享接收端执行所述可执行数据脚本在本端显示所述待分享内容。Step 103: The content sharing receiving end executes the executable data script to display the content to be shared at the local end.

本步骤中,当内容分享接收端接收到可执行数据脚本并确认是发给本端的之后,通过执行所述可执行脚本,即可在本端按照一定的服务样式框架显示所述待分享内容,从而达到展示分享内容的效果。In this step, after the content sharing receiving end receives the executable data script and confirms that it is sent to the local end, by executing the executable script, the content to be shared can be displayed on the local end according to a certain service style framework, So as to achieve the effect of displaying the shared content.

较佳地,在执行所述可执行数据脚本之前,所述内容分享接收端根据所述内容分享消息,对当前保存的虚拟频道列表和相应的可执行数据脚本进行更新;并通知用户查看新到达的分享内容;其中,所述更新包括:所述内容分享接收端判断当前是否已为对应的服务样式框架类型分配了虚拟频道标识,如果是,则利用所述可执行数据脚本中的内容,对已保存的与该虚拟频道标识绑定的可执行数据脚本中的分享内容进行更新;否则,为所述服务样式框架类型分配虚拟频道标识,将所述虚拟频道标识增加至虚拟频道列表中并将其与所述可执行数据脚本绑定。Preferably, before executing the executable data script, the content sharing receiving end updates the currently saved virtual channel list and the corresponding executable data script according to the content sharing message; and notifies the user to check the new arrivals. Wherein, the update includes: the content sharing receiving end judges whether the corresponding service style framework type has been assigned a virtual channel identifier, and if so, using the content in the executable data script, to The shared content in the saved executable data script bound to the virtual channel identifier is updated; otherwise, a virtual channel identifier is assigned to the service style framework type, the virtual channel identifier is added to the virtual channel list, and the virtual channel identifier is added to the virtual channel list. It is bound to the executable data script.

在上述方法中,在执行可执行数据脚本之前,内容分享接收端需要对本地虚拟频道进行更新或分配,具体地,对于首次分享需要为其建立新的虚拟频道,而对于属于内容更新的分享,则将已建立的相应虚拟频道的可执行数据脚本进行内容更新即可。如此,可以确保在内容分享接收端实时地采用所述服务样式框架进行待分享内容的展示。In the above method, before executing the executable data script, the content sharing receiver needs to update or allocate the local virtual channel. Specifically, a new virtual channel needs to be established for the first sharing, and for the sharing belonging to the content update, Then, the content of the executable data script of the established corresponding virtual channel can be updated. In this way, it can be ensured that the service style framework is used at the content sharing receiving end to display the content to be shared in real time.

在实际应用中,为了使所述内容分享接收端的用户及时获知新的分享内容,内容分享接收端在收到所述可执行数据脚本后,即可提示用户查看。用户可根据需要在提示窗口或虚拟频道列表窗口触发分享内容查看命令进行查看。In practical applications, in order to enable the user of the content sharing receiver to know the new shared content in time, the content sharing receiver may prompt the user to view the script after receiving the executable data script. The user can trigger the shared content viewing command in the prompt window or the virtual channel list window to view as needed.

较佳地,可以采用下述方法执行所述可执行数据脚本在本端显示所述待分享内容:Preferably, the executable data script can be executed by the following method to display the content to be shared at the local end:

当所述内容分享接收端接收到所述用户的分享内容查看命令时,通过执行当前与待查看的虚拟频道的标识绑定的可执行数据脚本,绘制出所述虚拟频道的分享服务窗口以及相应的分享内容,并在接收到所述用户的分享操作控制命令时,按照所述可执行数据脚本中的控制逻辑脚本,执行相应的操作。When the content sharing receiving end receives the user's shared content viewing command, by executing the executable data script currently bound with the identifier of the virtual channel to be viewed, the sharing service window of the virtual channel and corresponding and when receiving the sharing operation control command from the user, the corresponding operation is performed according to the control logic script in the executable data script.

具体地,本发明中的所述内容发送接收端和所述内容分享接收端可以为手持移动终端、计算机或智能电视机等终端设备。这些设备既可以是内容分享发起端也可以是内容分享接收端。例如,可以在智能电视机和智能电视机之间进行视频节目、图文等内容分享,也可以在智能电视机与手机之间进行视频节目、图文等内容的分享。由此可见,利用本发明,将使得内容分享不再受限于终端的应用平台,真正达到不同类型智能终端之间可分享的内容的目的。Specifically, the content sending and receiving end and the content sharing receiving end in the present invention may be terminal devices such as a handheld mobile terminal, a computer or a smart TV. These devices can be either a content sharing initiator or a content sharing receiver. For example, content such as video programs, pictures and texts can be shared between the smart TV and the smart TV, and content such as video programs, pictures and texts can also be shared between the smart TV and the mobile phone. It can be seen that, by using the present invention, content sharing is no longer limited by the application platform of the terminal, and the purpose of sharing content between different types of intelligent terminals is truly achieved.

图3为与上述方法相对应的一种分享内容的系统结构示意图,如图3所示,该系统,包括:内容分享发起端、服务器和内容分享接收端。其中,FIG. 3 is a schematic structural diagram of a system for sharing content corresponding to the above method. As shown in FIG. 3 , the system includes: a content sharing initiator, a server, and a content sharing receiving end. in,

内容分享发起端,用于将待分享内容发送给服务器。The content sharing initiator is used to send the content to be shared to the server.

服务器,用于利用本地保存的服务样式框架,生成包含所述待分享内容的可执行数据脚本,将所述可执行数据脚本发送给内容分享接收端The server is configured to generate an executable data script containing the content to be shared by using the locally saved service style framework, and send the executable data script to the content sharing receiver

内容分享接收端,用于执行所述可执行数据脚本在本端显示所述待分享内容。The content sharing receiving end is configured to execute the executable data script to display the to-be-shared content at the local end.

较佳地,所述内容分享发起端包括分享单元:Preferably, the content sharing initiator includes a sharing unit:

所述分享单元用于向所述服务器发送分享请求消息,所述分享请求消息中携带所述待分享内容和内容分享接收端标识。The sharing unit is configured to send a sharing request message to the server, where the sharing request message carries the content to be shared and an identifier of a content sharing receiver.

较佳地,所述分享单元进一步用于在将待分享内容发送给服务器之前,从所述服务器获取可使用的服务样式框架类型集合;在需要分享内容时,从所述服务样式框架类型集合中选择出一种类型作为当前分享内容所使用的服务样式框架类型;所述分享请求消息携带所述选择出的服务样式框架类型。Preferably, the sharing unit is further configured to obtain a usable set of service style framework types from the server before sending the content to be shared to the server; when the content needs to be shared, obtain the set of service style framework types from the set of service style framework types. One type is selected as the service style frame type used by the current shared content; the sharing request message carries the selected service style frame type.

较佳地,当所述待分享内容用于分享内容更新时,所述分享请求消息携带内容更新标识信息。Preferably, when the to-be-shared content is used for sharing content update, the sharing request message carries content update identification information.

较佳地,所述服务器包括脚本生成单元,所述脚本生成单元用于在检验到所述内容分享接收端标识对应的终端属于合法用户时,判断所述分享请求消息是否携带内容更新标识信息,如果是,则生成一包含所述待分享内容的可执行数据脚本;否则,在所述分享请求消息携带了服务样式框架类型信息时,根据所携带的类型信息确定为当前采用的服务样式框架,在所述分享请求消息没有携带了服务样式框架类型信息时,将预设的缺省服务样式框架确定为当前采用的服务样式框架;将所确定的服务样式框架与所述待分享内容绑定,生成相应的可执行数据脚本。Preferably, the server includes a script generation unit, and the script generation unit is configured to judge whether the sharing request message carries content update identification information when it is checked that the terminal corresponding to the content sharing receiving end identification belongs to a legitimate user, If so, generate an executable data script containing the content to be shared; otherwise, when the sharing request message carries the service style framework type information, it is determined as the currently adopted service style framework according to the carried type information, When the sharing request message does not carry the service style frame type information, the preset default service style frame is determined as the currently adopted service style frame; the determined service style frame is bound with the content to be shared, Generate the corresponding executable data script.

较佳地,所述脚本生成单元进一步用于根据所确定的服务样式框架的窗体属性,创建相应的窗体脚本;根据所确定的服务样式框架的背景属性,创建相应的背景脚本;根据所确定的服务样式框架的操作控制属性,创建相应的控制逻辑脚本;为所述所确定的服务样式框架创建内容填充接口脚本;将所述窗体脚本、所述背景脚本、控制逻辑脚本、所述内容填充接口脚本和所述待分享内容集成,得到一个可执行数据脚本。Preferably, the script generation unit is further configured to create a corresponding form script according to the determined form attribute of the service style frame; create a corresponding background script according to the determined background attribute of the service style frame; Determine the operation control properties of the service style framework, create a corresponding control logic script; fill the interface script for the determined service style framework creation content; combine the window script, the background script, the control logic script, the The content filling interface script is integrated with the content to be shared to obtain an executable data script.

较佳地,所述服务器包括脚本发送单元,所述脚本发送单元用于向所述内容分享接收端发送内容分享消息,所述内容分享消息携带所述可执行数据脚本和对应的服务样式框架类型。Preferably, the server includes a script sending unit, and the script sending unit is configured to send a content sharing message to the content sharing receiving end, and the content sharing message carries the executable data script and the corresponding service style framework type. .

较佳地,所述内容分享接收端包括:接收单元和分享单元;Preferably, the content sharing receiving end includes: a receiving unit and a sharing unit;

所述接收单元,用于根据所述内容分享消息,对当前保存的虚拟频道列表和相应的可执行数据脚本进行更新;并通知用户查看新到达的分享内容;其中,所述更新包括:判断当前是否已为对应的服务样式框架类型分配了虚拟频道标识,如果是,则利用所述可执行数据脚本中的内容,对已保存的与该虚拟频道标识绑定的可执行数据脚本中的分享内容进行更新;否则,为所述服务样式框架类型分配虚拟频道标识,将所述虚拟频道标识增加至虚拟频道列表中并将其与所述可执行数据脚本绑定。The receiving unit is configured to update the currently saved virtual channel list and the corresponding executable data script according to the content sharing message; and notify the user to view the newly arrived shared content; wherein, the updating includes: judging the current Whether a virtual channel ID has been assigned to the corresponding service style framework type, if so, use the content in the executable data script to share the content in the saved executable data script bound to the virtual channel ID Update; otherwise, assign a virtual channel ID to the service style framework type, add the virtual channel ID to the virtual channel list and bind it to the executable data script.

所述分享单元,用于当接收到所述用户的分享内容查看命令时,通过执行当前与待查看的虚拟频道的标识绑定的可执行数据脚本,绘制出所述虚拟频道的分享服务窗口以及相应的分享内容,并在接收到所述用户的分享操作控制命令时,按照所述可执行数据脚本中的控制逻辑脚本,执行相应的操作。The sharing unit is configured to draw the sharing service window of the virtual channel by executing the executable data script currently bound with the identifier of the virtual channel to be viewed when receiving the user's sharing content viewing command; corresponding sharing content, and when receiving a sharing operation control command from the user, execute the corresponding operation according to the control logic script in the executable data script.

较佳地,所述内容发送接收端和所述内容分享接收端为手持移动终端、计算机或智能电视机。Preferably, the content sending and receiving end and the content sharing receiving end are handheld mobile terminals, computers or smart TVs.

综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included within the protection scope of the present invention.

Claims (18)

1. A method of sharing content, comprising:
the content sharing initiating terminal sends the content to be shared to the server;
the server generates an executable data script containing the content to be shared by using a locally stored service style frame, and sends the executable data script to a content sharing receiving end; the service style frame is used for indicating the window interface style of the content sharing and sharing displayed at the content sharing and receiving end;
and the content sharing receiving terminal executes the executable data script and displays the content to be shared at the local terminal.
2. The method of claim 1, wherein sending the content to be shared to a server comprises:
and the content sharing initiating terminal sends a sharing request message to the server, wherein the sharing request message carries the content to be shared and the content sharing receiving terminal identification.
3. The method of claim 2, further comprising:
the content sharing method comprises the steps that before the content to be shared is sent to a server by a content sharing initiating terminal, a usable service style frame type set is obtained from the server;
when the content sharing initiating terminal needs to share content, one type is selected from the service style frame type set to serve as a service style frame type used by the currently shared content;
and the sharing request message carries the selected service style frame type.
4. The method according to claim 2, wherein when the content to be shared is used for updating shared content, the sharing request message carries content update identification information.
5. The method of claim 4, wherein generating the executable data script containing the content to be shared comprises:
x1, the server checks whether the terminal corresponding to the content sharing receiving terminal identification belongs to a legal user, if so, the step x2 is executed, otherwise, the content sharing method is ended;
x2, judging whether the sharing request message carries content updating identification information, if so, generating an executable data script containing the content to be shared; otherwise, step x3 is performed;
x3, if the sharing request message carries service style frame type information, determining the sharing request message as a currently adopted service style frame according to the carried type information, otherwise, determining a preset default service style frame as the currently adopted service style frame;
and x4, binding the determined service style frame with the content to be shared, and generating a corresponding executable data script.
6. The method according to claim 5, wherein the step x4 comprises:
creating a corresponding form script according to the form attribute of the determined service style frame;
creating a corresponding background script according to the determined background attribute of the service style frame;
creating a corresponding control logic script according to the determined operation control attribute of the service style frame;
creating a content fill interface script for the determined service style frame;
and integrating the window script, the background script, the control logic script, the content filling interface script and the content to be shared to obtain an executable data script.
7. The method of claim 1, wherein sending the executable data script to a content sharing recipient comprises:
and the server sends a content sharing message to the content sharing receiving end, wherein the content sharing message carries the executable data script and the corresponding service style frame type.
8. The method of claim 7, further comprising:
before executing the executable data script, the content sharing receiving terminal updates a currently stored virtual channel list and a corresponding executable data script according to the content sharing message; and notifying the user to view newly arrived shared content; wherein the updating comprises: the content sharing receiving terminal judges whether a virtual channel identifier is distributed to the corresponding service style frame type or not, if so, the content in the executable data script is utilized to update the sharing content in the stored executable data script bound with the virtual channel identifier; otherwise, distributing a virtual channel identifier for the service style frame type, adding the virtual channel identifier into a virtual channel list and binding the virtual channel identifier with the executable data script;
the executing the executable data script to display the content to be shared at the local terminal comprises:
when the content sharing receiving end receives a sharing content viewing command of the user, the sharing service window of the virtual channel and the corresponding sharing content are drawn by executing the executable data script bound with the identifier of the virtual channel to be viewed currently, and when a sharing operation control command of the user is received, corresponding operation is executed according to the control logic script in the executable data script.
9. The method according to claim 1, wherein the content sending receiving end and the content sharing receiving end are a handheld mobile terminal, a computer or a smart television.
10. A system for sharing content, comprising:
the content sharing initiating terminal is used for sending the content to be shared to the server;
the server is used for generating an executable data script containing the content to be shared by using a locally stored service style frame and sending the executable data script to a content sharing receiving end; the service style frame is used for indicating the window interface style of the content sharing and sharing displayed at the content sharing and receiving end;
and the content sharing receiving end is used for executing the executable data script and displaying the content to be shared at the local end.
11. The system according to claim 10, wherein the content sharing initiating terminal comprises a sharing unit:
the sharing unit is used for sending a sharing request message to the server, wherein the sharing request message carries the content to be shared and the content sharing receiving end identification.
12. The system according to claim 11, wherein the sharing unit is further configured to obtain a set of available service style frame types from a server before sending content to be shared to the server; when content needs to be shared, selecting one type from the service style frame type set as a service style frame type used by the currently shared content; and the sharing request message carries the selected service style frame type.
13. The system according to claim 11, wherein when the content to be shared is used for updating shared content, the sharing request message carries content update identification information.
14. The system according to claim 13, wherein the server includes a script generating unit, and the script generating unit is configured to determine whether the sharing request message carries content update identification information when it is checked that the terminal corresponding to the content sharing receiving terminal identification belongs to a legal user, and if so, generate an executable data script including the content to be shared; otherwise, when the sharing request message carries service style frame type information, determining the sharing request message as a currently adopted service style frame according to the carried type information, and when the sharing request message does not carry the service style frame type information, determining a preset default service style frame as the currently adopted service style frame; and binding the determined service style frame with the content to be shared to generate a corresponding executable data script.
15. The system according to claim 14, wherein the script generating unit is further configured to create a corresponding form script according to the determined form attribute of the service style frame; creating a corresponding background script according to the determined background attribute of the service style frame; creating a corresponding control logic script according to the determined operation control attribute of the service style frame; creating a content fill interface script for the determined service style frame; and integrating the window script, the background script, the control logic script, the content filling interface script and the content to be shared to obtain an executable data script.
16. The system according to claim 10, wherein the server includes a script sending unit, and the script sending unit is configured to send a content sharing message to the content sharing receiving end, where the content sharing message carries the executable data script and the corresponding service style frame type.
17. The system according to claim 16, wherein the content sharing receiver comprises: a receiving unit and a sharing unit;
the receiving unit is used for updating the currently stored virtual channel list and the corresponding executable data script according to the content sharing message; and notifying the user to view newly arrived shared content; wherein the updating comprises: judging whether a virtual channel identifier is distributed to the corresponding service style frame type at present, if so, updating the shared content in the saved executable data script bound with the virtual channel identifier by using the content in the executable data script; otherwise, distributing a virtual channel identifier for the service style frame type, adding the virtual channel identifier into a virtual channel list and binding the virtual channel identifier with the executable data script;
the sharing unit is used for drawing a sharing service window of the virtual channel and corresponding sharing content by executing the executable data script bound with the identifier of the virtual channel to be viewed currently when receiving a sharing content viewing command of the user, and executing corresponding operation according to the control logic script in the executable data script when receiving a sharing operation control command of the user.
18. The system according to claim 10, wherein the content transmitting and receiving end and the content sharing and receiving end are a handheld mobile terminal, a computer or a smart tv.
CN201610580781.5A 2016-07-21 2016-07-21 A method and system for sharing content Active CN106302631B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610580781.5A CN106302631B (en) 2016-07-21 2016-07-21 A method and system for sharing content

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610580781.5A CN106302631B (en) 2016-07-21 2016-07-21 A method and system for sharing content

Publications (2)

Publication Number Publication Date
CN106302631A CN106302631A (en) 2017-01-04
CN106302631B true CN106302631B (en) 2019-04-26

Family

ID=57652288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610580781.5A Active CN106302631B (en) 2016-07-21 2016-07-21 A method and system for sharing content

Country Status (1)

Country Link
CN (1) CN106302631B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113329100B (en) * 2017-04-27 2022-10-14 腾讯科技(深圳)有限公司 Message pushing method, device and system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379098A (en) * 2012-04-19 2013-10-30 华为技术有限公司 Content sharing method, device and network system thereof
CN103514219A (en) * 2012-06-29 2014-01-15 深圳市快播科技有限公司 Method and system for sharing Web content between multiple terminals
CN103716339A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Multimedia sharing method, system and device
CN104079953A (en) * 2014-07-17 2014-10-01 合一网络技术(北京)有限公司 Method and system based on video information sharing operation
CN104504004A (en) * 2014-12-09 2015-04-08 北京国双科技有限公司 Method and device for website sharing
CN104601205A (en) * 2013-10-31 2015-05-06 华为终端有限公司 Content sharing method and device
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN104882151A (en) * 2015-06-05 2015-09-02 福建星网视易信息系统有限公司 Method, device and system for displaying multimedia resources in song singing
CN105430487A (en) * 2015-11-30 2016-03-23 小米科技有限责任公司 A method, device and system for playing multimedia data
CN105612472A (en) * 2012-06-10 2016-05-25 苹果公司 Sharing images and comments across different devices

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103379098A (en) * 2012-04-19 2013-10-30 华为技术有限公司 Content sharing method, device and network system thereof
CN105612472A (en) * 2012-06-10 2016-05-25 苹果公司 Sharing images and comments across different devices
CN103514219A (en) * 2012-06-29 2014-01-15 深圳市快播科技有限公司 Method and system for sharing Web content between multiple terminals
CN103716339A (en) * 2012-09-28 2014-04-09 腾讯科技(深圳)有限公司 Multimedia sharing method, system and device
CN104601205A (en) * 2013-10-31 2015-05-06 华为终端有限公司 Content sharing method and device
CN104079953A (en) * 2014-07-17 2014-10-01 合一网络技术(北京)有限公司 Method and system based on video information sharing operation
CN104504004A (en) * 2014-12-09 2015-04-08 北京国双科技有限公司 Method and device for website sharing
CN104660678A (en) * 2015-01-16 2015-05-27 深圳市深信服电子科技有限公司 Application data sharing method and device
CN104882151A (en) * 2015-06-05 2015-09-02 福建星网视易信息系统有限公司 Method, device and system for displaying multimedia resources in song singing
CN105430487A (en) * 2015-11-30 2016-03-23 小米科技有限责任公司 A method, device and system for playing multimedia data

Also Published As

Publication number Publication date
CN106302631A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
EP3467692B1 (en) Message permission management method and device, and storage medium
CN105577777B (en) message processing method, device and system
US9925465B2 (en) Game accessing method and processing method, server, terminal, and system
KR20200113276A (en) Resource arrangement method, device, terminal and storage medium
KR20190119123A (en) Message processing methods and devices, storage media, and computer devices
US10637804B2 (en) User terminal apparatus, communication system, and method of controlling user terminal apparatus which support a messenger service with additional functionality
CN105142011A (en) Web-based television terminal multi-screen interaction method and device
CN102460410B (en) Apparatus and method for transmitting and receiving user interface in communication system
CN108881228A (en) Cloud registration activation method, device, equipment and storage medium
CN104539977A (en) Live broadcast previewing method and device
CN107241651B (en) Media data playing method and device and intelligent terminal
CN103150658A (en) Augmented reality (AR) customizing system and method facing to terminal user
KR102313254B1 (en) Methods, systems and media for retrieving content associated with links
CN106802762B (en) Synchronize server-side keyboard layout with client-side layout in a virtual session
TW201526622A (en) Method, device and system for transmitting network resources
WO2020233168A1 (en) Network storage method and apparatus for picture type comment data, and electronic device and medium
CN109522131A (en) Resource allocation method, device and equipment
CN111818354A (en) Animation configuration method, animation playback method, animation configuration device, animation playback device, animation system and animation media
CN108933947B (en) Bullet screen display method and device
CN114022590B (en) Picture rendering method and related equipment
WO2017140226A1 (en) Video processing method and device therefor
CN102209116A (en) Method and device for acquiring Internet protocol television program information, and television
CN106302631B (en) A method and system for sharing content
CN104980807A (en) Method and terminal for multimedia interaction
CN111163455B (en) User identification number migration method, device, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant