[go: up one dir, main page]

WO2018196733A1 - 数据分享方法及装置、存储介质和电子装置 - Google Patents

数据分享方法及装置、存储介质和电子装置 Download PDF

Info

Publication number
WO2018196733A1
WO2018196733A1 PCT/CN2018/084209 CN2018084209W WO2018196733A1 WO 2018196733 A1 WO2018196733 A1 WO 2018196733A1 CN 2018084209 W CN2018084209 W CN 2018084209W WO 2018196733 A1 WO2018196733 A1 WO 2018196733A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
account
stream data
target stream
sharing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2018/084209
Other languages
English (en)
French (fr)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Publication of WO2018196733A1 publication Critical patent/WO2018196733A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/85Assembly of content; Generation of multimedia applications

Definitions

  • the present application relates to the field of computers, and in particular to a data sharing method and apparatus, a storage medium, and an electronic device.
  • an access link corresponding to the content of the media stream data is generated, and the access link is directly shared to the community space, so that the friend displays in the click community space. After accessing the link, by jumping to the page corresponding to the above access link, the sharing and playing of the media stream data to be shared in the above page can be realized.
  • the friend is invited to view the media stream data in the page corresponding to the access link.
  • the access threshold of the link jump is increased, which may cause many users to abandon the data sharing in order to avoid unnecessary waiting, thereby resulting in more efficient sharing of media stream data. Low problem.
  • the embodiment of the present application provides a data sharing method and device, a storage medium, and an electronic device to solve at least the technical problem of low data sharing efficiency existing in the current data sharing method.
  • a data sharing method including: acquiring a live broadcast initiation instruction generated by a first account to perform a live broadcast initiation operation in a client of a first application, where the live broadcast initiation instruction carries The live broadcast control information is matched with the target flow data to be broadcasted by the first account; and the image code is obtained by the server of the first application in response to the live broadcast initiation command, where the image code is used to identify that the first account is to be broadcasted.
  • the target stream data is generated by using the image code and the live broadcast control information to generate an invitation card that matches the target stream data; and the invitation card is shared to the second application for display, to invite the second account in the second application to be utilized.
  • the invitation card shares the playing process of the target stream data broadcasted by the first account.
  • a data sharing method including: acquiring a live broadcast request sent by a client using a first account in a first application, where the live broadcast request carries the first The live stream control information that the target stream data to be broadcasted by the account is matched; and the image code is obtained in response to the live broadcast request, wherein the image code is used to identify the target stream data to be broadcasted by the first account; and the image code is sent to the foregoing An application that uses the first account to generate an invitation card that matches the target stream data; and obtains a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and The application identifier of the second application, the access request generated by the second account in the second application to perform the access operation on the invitation card, and the client using the second account in the second application in response to the access request Sharing the playing process of the above target stream data broadcasted by the first account mentioned above.
  • a data sharing apparatus including: a first acquiring unit, configured to acquire a live broadcast initiation instruction generated by a first account to perform a live broadcast initiation operation in a client of the first application
  • the live broadcast initiating instruction carries live broadcast control information that matches the target flow data to be broadcasted by the first account;
  • the second obtaining unit is configured to obtain an image by using the server of the first application in response to the live broadcast initiation command.
  • the image code is used to identify the target stream data to be broadcasted by the first account
  • the generating unit is configured to generate an invitation card that matches the target stream data by using the image code and the live control information
  • the method is configured to share the invitation card to the second application for display, to invite the second account in the second application to share the playing process of the target stream data broadcasted by the first account by using the invitation card.
  • a data sharing apparatus including: a first acquiring unit, configured to acquire a live broadcast request sent by a client using a first account in a first application, where the live broadcast request The live control information is matched with the target stream data to be broadcasted by the first account, and the second acquiring unit is configured to obtain the image code in response to the live request, wherein the image code is used to identify that the first account is to be broadcasted.
  • the first sending unit is configured to send the image code to the client that uses the first account in the first application to generate an invitation card that matches the target stream data; and a third acquiring unit,
  • the sharing request is configured to obtain the sharing request for sharing the foregoing invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application, and the sharing unit is configured to acquire the second in the second application.
  • the account performs an access request generated by the access operation on the invitation card, and responds to the access request Said second application using the second sharing client account during playback of the first broadcast by the target account data stream.
  • a storage medium having a computer program stored therein, wherein the computer program is configured to execute the data sharing method at runtime.
  • an electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the data by using a computer program Sharing method.
  • the client in the first application after obtaining the live broadcast initiation instruction generated by the first account to perform the live broadcast initiation operation, obtains the first account to obtain the first account by responding to the live initiation command.
  • the image code of the target stream data of the live broadcast and then using the above-mentioned image code and the live broadcast control information matched by the target stream data carried in the live broadcast command to generate an invitation card matching the target stream data, and sharing the invitation card to
  • the second application performs display to invite the second account in the second application to share the playing process of the target stream data broadcasted by the first account by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code greatly simplifies the operation steps of data sharing, reduces the waiting time in the sharing process, and achieves the effect of improving data sharing efficiency, thereby overcoming the correlation.
  • FIG. 1 is a schematic diagram of an application environment of an optional data sharing method according to an embodiment of the present application
  • FIG. 2 is a flowchart of an optional data sharing method according to an embodiment of the present application.
  • FIG. 3 is a flow chart of another alternative data sharing method according to an embodiment of the present application.
  • FIG. 4 is a schematic diagram of an optional data sharing method according to an embodiment of the present application.
  • FIG. 5 is a flowchart of still another optional data sharing method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another optional data sharing method according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of still another optional data sharing method according to an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an optional data sharing apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another optional data sharing device according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an optional data sharing terminal according to an embodiment of the present application.
  • FIG. 11 is a schematic diagram of an optional data sharing server in accordance with an embodiment of the present application.
  • the data sharing method may be, but is not limited to, being applied to an application environment as shown in FIG. 1.
  • the terminal 102 is installed with a client that uses the first application of the first account, and is used to initiate a live broadcast.
  • the terminal 108 is installed with a client of the second application using the second account.
  • the first account is used to initiate a live broadcast as an anchor, and the second account is used as a fan to watch content in a live broadcast.
  • the terminal 102 obtains a live broadcast initiation instruction generated by the first account to perform a live broadcast initiation operation in the client of the first application, where the live broadcast initiation instruction carries live broadcast control information that matches the target flow data to be broadcasted by the first account;
  • the image code is obtained by the server 106 of the first application, wherein the image code is used to identify the target stream data to be broadcasted by the first account; and the image card and the live control information are used to generate an invitation card matching the target stream data.
  • the terminal 102 shares the invitation card to the second application for display by the network 104, so as to invite the second account in the second application to share the playing process of the target stream data broadcasted by the first account by using the invitation card, where the second The application is associated with the first application.
  • the client in the first application after obtaining the live broadcast initiation instruction generated by the first account to perform the live broadcast initiation operation, obtains the live broadcast initiation command to obtain the first account to be broadcasted through the server of the first application.
  • the image code of the target stream data and then using the above-mentioned image code and the live control information carried in the live broadcast command to match the target stream data, generate an invitation card matching the target stream data, and share the invitation card to the first
  • the second application performs display to invite the second account in the second application to share the playing process of the target stream data broadcasted by the first account by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code greatly simplifies the operation steps of data sharing, reduces the waiting time in the sharing process, and achieves the effect of improving data sharing efficiency, thereby overcoming the correlation.
  • the foregoing terminal may include, but is not limited to, at least one of the following: a mobile phone, a tablet computer, a notebook computer, a desktop PC, a digital television, and other hardware devices for live broadcast sharing.
  • the above network may include, but is not limited to, at least one of the following: a wide area network, a metropolitan area network, and a local area network. The above is only an example, and the embodiment does not limit this.
  • a data sharing method As shown in FIG. 2, the method includes:
  • S204 Acquire an image code by using a server of the first application, where the image code is used to identify target stream data to be broadcasted by the first account.
  • the invitation card is shared to the second application for display, so that the second account in the second application invites the invitation card to share the playing process of the target stream data broadcasted by the first account.
  • the foregoing data sharing method may be applied to the process of sharing the target stream data in the live broadcast process, for example, in a live broadcast application, to implement efficient sharing of the live stream data.
  • the foregoing data sharing method may also be applied to a process of data sharing in other platforms, for example, may also be applied to a video playing application, and playing in the above application.
  • the resource is shared.
  • the foregoing is only an example, and is not limited herein.
  • the foregoing first application includes, but is not limited to, a live broadcast application, and may also include, but is not limited to, a webpage for live broadcast or other applications having a media play function.
  • the second application includes, but is not limited to, social applications, web forums, and the like with social functions or instant messaging.
  • the second application and the first application may be, but are not limited to, an associated application, such as the second application providing an authorization interface for the first application, to implement sharing the social application in the second application to share the first application. Messages or other content to achieve the purpose of expanding the scope of data sharing, and the application is not limited herein.
  • the client in the first application obtains the live broadcast initiation instruction to obtain the first account to be broadcasted by the server of the first application.
  • An image code of the target stream data and then using the image code and the live control information of the target stream data carried in the live broadcast command to generate an invitation card that matches the target stream data, and sharing the invitation card to the second application for display. The process of inviting the second account in the second application to synchronously share the first account live target stream data by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the live broadcast control information carried in the live broadcast initiation command and the image code used to identify the target flow data obtained from the server of the first application are used to generate an invitation card that matches the target flow data.
  • the target stream data in the live broadcast is shared to the associated account in the second application, where the invitation card may include but is not limited to at least one of the following format information: text, picture, audio, dynamic A picture (gif) or a short video, so that the user can intuitively view the content to be broadcasted by the first account through the invitation card, which is not limited in this embodiment.
  • the foregoing target stream data may be, but not limited to, used to indicate that the media stream data transmitted during the live broadcast process is performed after the anchor account (that is, the first account) initiates the live broadcast initiation operation.
  • the live control information that matches the target stream data to be broadcasted by the first account may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover image of the target stream data, and a summary indication of the target stream data. information.
  • the summary indication information may include, but is not limited to, at least one of the following: a live broadcast period, an anchor identifier (ID), a live content introduction, and the like.
  • ID anchor identifier
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the title and the cover of the target stream data broadcasted by the first account may be acquired by the client of the first application. Sending a title and a cover of the target stream data broadcasted by the first account to the server of the first application to initiate a live broadcast request for requesting live broadcast of the target stream data.
  • the client of the first application after obtaining the live broadcast initiation command, sends a live broadcast request to the server of the first application, and the server of the first application generates unique data for the target stream data to be broadcasted. Identifying, and transmitting the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier; and then receiving the image code generated by the server of the second application according to the data identifier.
  • the server of the second application generates an image code according to the data identifier matching the target stream data, to generate an invitation card for acquiring the target stream data by using the image code.
  • the foregoing image code may include, but is not limited to, a two-dimensional code, a three-dimensional code, and the like, and other image codes that are easily recognized by the application.
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the sharing the invitation card to the second application for display may include, but is not limited to: acquiring a sharing instruction generated by the client of the first application to perform a sharing operation on the generated invitation card, in response to the The sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • the sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • an operation on the invitation card through the client such as performing an identification operation on the image code in the invitation card, performing access to the invitation card, thereby implementing target stream data matching the invitation card. Shared play.
  • generating an invitation card that matches the target stream data by using the image code and the live broadcast control information includes, but is not limited to, the client of the first application may be, but is not limited to, indicated according to the acquired configuration instruction.
  • the display style of the invitation card is used to lay out the live control information and the image code that match the target stream data, thereby achieving the purpose of generating the invitation card.
  • the client of the first application that initiates the live broadcast is taken as an example.
  • steps S302-S328 the client 302 of the first application obtains the first account to perform the live broadcast initiation operation.
  • the generated live broadcast initiating instruction and sending a live broadcast request to the server 304 of the first application according to the live broadcast initiating instruction, where the server 304 of the first application randomly configures a data identifier ID for uniquely identifying the target data to be broadcasted by the live broadcast request, and
  • the data identification ID is sent to the server 306 of the second application such that the server 306 of the second application can generate an image code that matches the target stream data based on the data identification.
  • the client 302 of the first application receives the image code sent by the server 306 of the second application and the live broadcast information related to the current live broadcast through the server 304 of the first application, and generates a matching match with the target stream data according to the acquired content.
  • invitation card After obtaining the sharing instruction of the sharing operation by the first client to the invitation card, the invitation card is sent to the server 304 of the first application, and the server 304 of the first application establishes a mapping relationship between the invitation card and the target stream data.
  • the invitation card is shared by the server 306 of the second application to the client 308 in the second application using the second account.
  • the client 308 using the second account in the second application will display the invitation card, and obtain an access request for performing an access operation on the invitation card, and then send the access request to the server of the first application through the server 306 of the second application. 304, so that the server 304 of the first application can share the target stream data to be broadcasted to the client 308 in the second application using the second account.
  • the client in the first application After obtaining the live broadcast initiation command generated by the first account to perform the live broadcast initiation operation, the client in the first application obtains the first account by using the server of the first application in response to the live broadcast initiation command.
  • the application performs display to invite the second account in the second application to synchronously share the first account live target stream data by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • acquiring the image code by using the server of the first application includes:
  • the image code generated by the server of the second application is received by the server of the first application, where the image code is generated by the server of the second application according to the data identifier that is sent by the server of the first application and matches the target stream data.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the live broadcast request is sent to the background server of the live application app1, and the background server of the live application app1 receives the live broadcast request.
  • the live broadcast initiated by the anchor is assigned a unique data identification ID, and the ID is sent to the server of the social application app2, so that the social application app2 generates a scene image code matching the data identification ID, such as a two-dimensional code, and The scene image code is sent to the live application app1, so that the live application app1 generates an invitation card that matches the live broadcast according to the live broadcast control information (also called live broadcast information) and the scene image code combination.
  • live broadcast control information also called live broadcast information
  • an image code matching the target stream data is generated according to the data identifier sent by the server of the first application and matched with the target stream data, to utilize the image.
  • the code obtains an invitation card for inviting the associated account to play the target stream data, thereby simplifying the sharing operation of the target stream data and improving the data sharing efficiency.
  • sharing the invitation card to the second application for display includes:
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the sharing instruction generated by the anchor click initiation sharing button of the first account is acquired, and the invitation card is sent to the background server of the live application app1 in response to the sharing instruction, so that The background server of the live application app1 shares the invitation card to the social application app2 through the background server of the social application app2, so as to invite the second account of the social application app2 to focus on the first account to enter by identifying the image code on the invitation card.
  • the play interface of the target stream data is used to play the target stream data to realize data sharing.
  • the background server of the live application app1 stores the mapping relationship between the invitation card and the target stream data. Therefore, after receiving the access request generated by the second account in the second application by identifying the image code, the target stream data corresponding to the invitation card including the image code is pushed to the second account in the second application.
  • the sharing instruction generated by the client of the first application to perform the sharing operation on the invitation card is obtained, and the invitation card is sent to the server of the first application in response to the sharing instruction, so that the server of the first application passes
  • the server of the second application displays the client card to the client of the second application for display, so as to achieve the purpose of sharing the target stream data by using the social scope of the second application, and further, displaying the invitation card in the second application.
  • the client of the second account will also achieve the purpose of visually displaying the relevant content of the target stream data to be broadcasted, without having to obtain the jump link.
  • using the image code and the live control information to generate an invitation card that matches the target stream data includes:
  • the live control information and the image code are arranged according to the display style to generate an invitation card.
  • the live broadcast control information may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover picture of the target stream data, and summary indication information of the target stream data.
  • the live broadcast control information of the target stream data to be broadcasted in this time includes: a topic, a cover, a summary indication information, and the like, wherein the summary indication information includes: a live broadcast time and a live broadcast.
  • the anchor identification (for example, the identification A), further, assumes that the image code is a two-dimensional code.
  • the live application app1 may first obtain a configuration command, where the configuration command includes a display style for configuring the invitation card, and performs layout layout on the live control information and the image code according to the display style, to generate a corresponding invitation card, as shown in FIG. .
  • the live broadcast control information and the image code are configured to generate an invitation card according to the display style in the configuration instruction, so that the live broadcast content can be fully displayed, so as to improve the attention of the data to be shared and improve the data.
  • the sharing rate so that more users can share the target stream data of the above live broadcast.
  • a data sharing method is provided. As shown in FIG. 5, the method includes:
  • S502 Obtain a live broadcast request sent by a client that uses the first account in the first application, where the live broadcast request carries live broadcast control information that matches the target flow data to be broadcasted by the first account;
  • S510 Acquire an access request generated by the second account in the second application to perform an access operation on the invitation card, and share the target stream data broadcasted by the first account with the client in the second application using the second account in response to the access request. Playback process.
  • the data sharing method may be, but is not limited to, being applied to the process of sharing the target stream data in the live broadcast process, for example, being applied to a server of the live broadcast application to implement live broadcast stream data. Share efficiently.
  • the foregoing data sharing method may also be applied to a process of data sharing in a server of another platform, for example, may also be applied to a server of a video playing application.
  • the foregoing is only an example of the playback resource in the application server. The foregoing is not limited in this embodiment.
  • the foregoing first application includes, but is not limited to, a live broadcast application, and may also include, but is not limited to, a webpage for live broadcast or other applications having a media play function.
  • the second application includes, but is not limited to, social applications, web forums, and the like with social functions or instant messaging.
  • the second application and the first application may be, but are not limited to, an associated application, such as the second application providing an authorization interface for the first application, to implement sharing the social application in the second application to share the first application. Messages or other content to achieve the purpose of expanding the scope of data sharing, and the application is not limited herein.
  • the server of the first application obtains the live broadcast request sent by the client of the first application that uses the first account
  • the image code for identifying the target stream data to be broadcasted by the first account is obtained in response to the live broadcast request, Then, the above image code is sent to the client of the first application, so that the client of the first application generates an invitation card that matches the target stream data.
  • the server of the first application obtains a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application, and the second application is associated with the first application; And acquiring, by the second account in the second application, a request generated by performing an access operation on the invitation card, and sharing the target stream data broadcasted by the first account with the second application in response to the access request.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the live broadcast control information carried in the live broadcast initiation command and the image code used to identify the target flow data obtained from the server of the first application are used to generate an invitation card that matches the target flow data.
  • the target stream data in the live broadcast is shared to the associated account in the second application, where the invitation card may include but is not limited to at least one of the following format information: text, picture, audio, dynamic A picture (gif) or a short video, so that the user can intuitively view the content to be broadcasted by the first account through the invitation card, which is not limited in this embodiment.
  • the foregoing target stream data may be, but not limited to, used to indicate that the media stream data transmitted during the live broadcast process is performed after the anchor account (that is, the first account) initiates the live broadcast initiation operation.
  • the live control information that matches the target stream data to be broadcasted by the first account may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover image of the target stream data, and a summary indication of the target stream data. information.
  • the summary indication information may include, but is not limited to, at least one of the following: a live broadcast period, an anchor identifier (ID), a live content introduction, and the like.
  • ID anchor identifier
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the client of the first application after obtaining the live broadcast initiation command, sends a live broadcast request to the server of the first application, and the server of the first application generates unique data for the target stream data to be broadcasted. Identifying, and transmitting the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier; and then receiving the image code generated by the server of the second application according to the data identifier.
  • the server of the second application generates an image code according to the data identifier matching the target stream data, to generate an invitation card for acquiring the target stream data by using the image code.
  • the foregoing image code may include, but is not limited to, a two-dimensional code, a three-dimensional code, and the like, and other image codes that are easily recognized by the application.
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the sharing the invitation card to the second application for display may include, but is not limited to: acquiring a sharing instruction generated by the client of the first application to perform a sharing operation on the generated invitation card, in response to the The sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • the sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • an operation on the invitation card through the client such as performing an identification operation on the image code in the invitation card, performing access to the invitation card, thereby implementing target stream data matching the invitation card. Shared play.
  • the server of the first application may be, but is not limited to, a request time for obtaining an access request; and obtaining progress indication information that matches the request time, where the progress indication information is used to indicate that the target stream data is played. Progress; sharing target stream data matching the progress indication information to the second account in the second application.
  • sharing the target flow data that matches the progress indication information to the second account in the second application may include, but is not limited to:
  • the first prompt information is sent to the client using the second account in the second application, where the progress indication information indicates that the target stream data does not start playing, wherein the first prompt information is used to prompt whether to reserve the target stream data. ;
  • the third prompt information is sent to the client using the second account in the second application, where the progress indication information indicates that the target stream data has been played, wherein the third prompt information is used to prompt the target stream data to be played.
  • the target stream data matching the progress indication information may be shared with the second account in the second application according to the playing progress of the live target data.
  • the second account may be directly played from the playback screen corresponding to the progress indicated by the progress indication information; for example, the second account may be prompted by the example of not starting playback.
  • the target stream data to be broadcasted by the first account has not started playing yet, and is scheduled to be played. The above is only an example, and is not limited in this embodiment.
  • the client of the first application that initiates the live broadcast is taken as an example.
  • steps S302-S328 the client 302 of the first application obtains the first account to perform the live broadcast initiation operation.
  • the generated live broadcast initiating instruction and sending a live broadcast request to the server 304 of the first application according to the live broadcast initiating instruction, where the server 304 of the first application randomly configures a data identifier ID for uniquely identifying the target data to be broadcasted by the live broadcast request, and
  • the data identification ID is sent to the server 306 of the second application such that the server 306 of the second application can generate an image code that matches the target stream data based on the data identification.
  • the client 302 of the first application receives the image code sent by the server 306 of the second application and the live broadcast information related to the current live broadcast through the server 304 of the first application, and generates a matching match with the target stream data according to the acquired content.
  • invitation card After obtaining the sharing instruction of the sharing operation by the first client to the invitation card, the invitation card is sent to the server 304 of the first application, and the server 304 of the first application establishes a mapping relationship between the invitation card and the target stream data.
  • the invitation card is shared by the server 306 of the second application to the client 308 in the second application using the second account.
  • the client 308 using the second account in the second application will display the invitation card, and obtain an access request for performing an access operation on the invitation card, and then send the access request to the server of the first application through the server 306 of the second application. 304, so that the server 304 of the first application can share the target stream data to be broadcasted to the client 308 in the second application using the second account.
  • the server of the first application After the server of the first application obtains the live broadcast request sent by the client of the first application of the first account, the server of the first application obtains the target stream data for identifying the first account to be broadcasted in response to the live request.
  • the image code is then sent to the client of the first application to cause the client of the first application to generate an invitation card that matches the target stream data.
  • the server of the first application obtains a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application, and the second application is associated with the first application; And acquiring, by the second account in the second application, a request generated by performing an access operation on the invitation card, and sharing the target stream data broadcasted by the first account with the second application in response to the access request.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • obtaining an image code in response to a live broadcast request includes:
  • S2 Send the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier;
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the live broadcast request is sent to the background server of the live application app1, and the background server of the live application app1 receives the live broadcast request.
  • the live broadcast initiated by the anchor is assigned a unique data identification ID, and the ID is sent to the server of the social application app2, so that the social application app2 generates a scene image code matching the data identification ID, such as a two-dimensional code, and The scene image code is sent to the live application app1, so that the live application app1 generates an invitation card that matches the live broadcast according to the live broadcast control information (also called live broadcast information) and the scene image code combination.
  • live broadcast control information also called live broadcast information
  • the data identifier is sent to the server of the second application, so that the server of the second application is configured according to the server of the first application.
  • the sent data identifier matching the target stream data is used to generate an image code that matches the target stream data, so that an invitation card for inviting the associated account to play the target stream data is obtained by using the image code, so as to simplify the target stream data. Share operations and improve the efficiency of data sharing.
  • the method further includes:
  • acquiring an access request generated by the second account in the second application to perform an access operation on the invitation card includes: acquiring an access request sent by the second account in the second application, where the access request is The request generated by the second account in the second application by identifying the image code in the invitation card. That is to say, the second account in the second application can identify the image code by scanning to generate an access request sent to the server of the first application.
  • the server of the first application may acquire, according to the mapping relationship, target stream data that matches the invitation card that is requested to be accessed by the access request, and share the target stream data to the second application. The client that uses the second account.
  • the mapping relationship between the invitation card and the target stream data is stored in the server of the first application, so that after the access request sent by the second account in the second application is received, the The mapping relationship quickly acquires the corresponding target stream data for sharing, so as to reduce the time for searching for the shared content and improve the sharing efficiency.
  • the process of sharing the target stream data broadcasted by the first account to the client using the second account in the second application in response to the access request includes:
  • the sharing of the target flow data that matches the progress indication information to the client that uses the second account in the second application includes:
  • the first prompt information is sent to the client using the second account in the second application, where the progress indication information indicates that the target stream data does not start playing, wherein the first prompt information is used to prompt whether to reserve the target stream data. ;or
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the first prompt information is sent to the second account in the second application, and as shown in FIG. 6, the interface including the “reservation” button is displayed.
  • the second account is prompted to confirm whether the target stream data is scheduled to be played in advance.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the second prompt information is sent to the second account in the second application to prompt the second account to be current from the target stream data.
  • the play screen starts playing, and enters the current play screen to play the target stream data.
  • the third prompt information is sent to the client using the second account in the second application, where the progress indication information indicates that the target stream data has been played, wherein the third prompt information is used to prompt the target stream data to be played.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the third prompt information is sent to the second account in the second application, as shown in FIG. 7 to prompt the second account target stream data. Finish playing, such as "The live stream you requested is over.".
  • the target stream data matching the progress indication information is shared to the second account in the second application, so that the second account in the second application can synchronize the playback project of the target stream data, thereby realizing Share the effect of synchronization.
  • the method further includes:
  • the fourth prompt information is sent through the third account of the second application at a predetermined time before the start of the playback of the target stream data, wherein, The four prompt information is used to prompt the time when the target stream data starts to be played, and the third account and the second account are associated accounts.
  • the second account may be, but not limited to, the third account, for example, the third account is a public account applied by the first application in the second application, and the second account is the second account.
  • the personal account in the application wherein the second account pays attention to the third account, so as to obtain the message pushed by the third account.
  • the predetermined time before the start of the target stream data is started.
  • the fifth prompt information is sent by the third account of the second application (for example, the social application app2 as an example) 5 minutes before the broadcast, to prompt the second account to start the live broadcast of the reservation.
  • the second account by prompting the second account in time, the time when the target stream data starts playing, so that the second account can obtain the reserved playing information in time, avoiding missing or missing the reserved target stream data, and ensuring The accuracy and effectiveness of sharing.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the instructions include a number of instructions for causing a terminal device (which may be a cell phone, computer, server, or network device, etc.) to perform the methods of various embodiments of the present application.
  • a data sharing apparatus for implementing the data sharing method is further applied to a terminal side. As shown in FIG. 8, the apparatus includes:
  • the first obtaining unit 802 is configured to acquire a live broadcast initiation instruction generated by the first account to perform a live broadcast initiation operation in the client of the first application, where the live broadcast initiation instruction carries a target flow to be broadcasted with the first account. Live control information matching the data;
  • the second obtaining unit 804 is configured to obtain an image code by using a server of the first application, where the image code is used to identify target stream data to be broadcasted by the first account.
  • the generating unit 806 is configured to generate an invitation card that matches the target stream data by using the image code and the live broadcast control information;
  • the sharing unit 808 is configured to share the invitation card to the second application for display, to invite the second account in the second application to share the playing process of the target stream data broadcasted by the first account by using the invitation card.
  • the data sharing device may be used in the process of sharing the target stream data in the live broadcast process, for example, in a live broadcast application, to implement efficient sharing of the live stream data.
  • the foregoing data sharing method may also be applied to a process of data sharing in other platforms, for example, may also be applied to a video playing application, and playing in the above application.
  • the resource is shared.
  • the foregoing is only an example, and is not limited herein.
  • the foregoing first application includes, but is not limited to, a live broadcast application, and may also include, but is not limited to, a webpage for live broadcast or other applications having a media play function.
  • the second application includes, but is not limited to, social applications, web forums, and the like with social functions or instant messaging.
  • the second application and the first application may be, but are not limited to, an associated application, such as the second application providing an authorization interface for the first application, to implement sharing the social application in the second application to share the first application. Messages or other content to achieve the purpose of expanding the scope of data sharing, and the application is not limited herein.
  • the client in the first application obtains the live broadcast initiation instruction to obtain the first account to be broadcasted by the server of the first application.
  • An image code of the target stream data and then using the image code and the live control information of the target stream data carried in the live broadcast command to generate an invitation card that matches the target stream data, and sharing the invitation card to the second application for display. The process of inviting the second account in the second application to synchronously share the first account live target stream data by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated by the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the live broadcast control information carried in the live broadcast initiation command and the image code used to identify the target flow data obtained from the server of the first application are used to generate an invitation card that matches the target flow data.
  • the target stream data in the live broadcast is shared to the associated account in the second application, where the invitation card may include but is not limited to at least one of the following format information: text, picture, audio, dynamic A picture (gif) or a short video, so that the user can intuitively view the content to be broadcasted by the first account through the invitation card, which is not limited in this embodiment.
  • the foregoing target stream data may be, but not limited to, used to indicate that the media stream data transmitted during the live broadcast process is performed after the anchor account (that is, the first account) initiates the live broadcast initiation operation.
  • the live control information that matches the target stream data to be broadcasted by the first account may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover image of the target stream data, and a summary indication of the target stream data. information.
  • the summary indication information may include, but is not limited to, at least one of the following: a live broadcast period, an anchor identifier (ID), a live content introduction, and the like.
  • ID anchor identifier
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the title and the cover of the target stream data broadcasted by the first account may be acquired by the client of the first application. Sending a title and a cover of the target stream data broadcasted by the first account to the server of the first application to initiate a live broadcast request for requesting live broadcast of the target stream data.
  • the client of the first application after obtaining the live broadcast initiation command, sends a live broadcast request to the server of the first application, and the server of the first application generates unique data for the target stream data to be broadcasted. And identifying, and sending the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier; and then receiving the image code generated by the server of the second application according to the data identifier.
  • the server of the second application generates an image code according to the data identifier matching the target stream data, to generate an invitation card for acquiring the target stream data by using the image code.
  • the foregoing image code may include, but is not limited to, a two-dimensional code, a three-dimensional code, and the like, and other image codes that are easily recognized by the application.
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the sharing the invitation card to the second application for display may include, but is not limited to: acquiring a sharing instruction generated by the client of the first application to perform a sharing operation on the generated invitation card, in response to the The sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • the sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • an operation on the invitation card through the client such as performing an identification operation on the image code in the invitation card, performing access to the invitation card, thereby implementing target stream data matching the invitation card. Shared play.
  • generating an invitation card that matches the target stream data by using the image code and the live broadcast control information includes, but is not limited to, the client of the first application may be, but is not limited to, indicated according to the acquired configuration instruction.
  • the display style of the invitation card is used to lay out the live control information and the image code that match the target stream data, thereby achieving the purpose of generating the invitation card.
  • the client of the first application that initiates the live broadcast is taken as an example.
  • steps S302-S328 the client 302 of the first application obtains the first account to perform the live broadcast initiation operation.
  • the generated live broadcast initiating instruction and sending a live broadcast request to the server 304 of the first application according to the live broadcast initiating instruction, where the server 304 of the first application randomly configures a data identifier ID for uniquely identifying the target data to be broadcasted by the live broadcast request, and
  • the data identification ID is sent to the server 306 of the second application such that the server 306 of the second application can generate an image code that matches the target stream data based on the data identification.
  • the client 302 of the first application receives the image code sent by the server 306 of the second application and the live broadcast information related to the current live broadcast through the server 304 of the first application, and generates a matching match with the target stream data according to the acquired content.
  • invitation card After obtaining the sharing instruction of the sharing operation by the first client to the invitation card, the invitation card is sent to the server 304 of the first application, and the server 304 of the first application establishes a mapping relationship between the invitation card and the target stream data.
  • the invitation card is shared by the server 306 of the second application to the client 308 in the second application using the second account.
  • the client 308 using the second account in the second application will display the invitation card, and obtain an access request for performing an access operation on the invitation card, and then send the access request to the server of the first application through the server 306 of the second application. 304, so that the server 304 of the first application can share the target stream data to be broadcasted to the client 308 in the second application using the second account.
  • the client in the first application After obtaining the live broadcast initiation command generated by the first account to perform the live broadcast initiation operation, the client in the first application obtains the first account by using the server of the first application in response to the live broadcast initiation command.
  • the application performs display to invite the second account in the second application to synchronously share the first account live target stream data by using the invitation card.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the second obtaining unit 804 includes:
  • a receiving module configured to receive, by the server of the first application, an image code generated by a server of the second application, where the image code is a server of the second application that matches the target stream data according to the server of the first application. Generated by data identification.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the live broadcast request is sent to the background server of the live application app1, and the background server of the live application app1 receives the live broadcast request.
  • the live broadcast initiated by the anchor is assigned a unique data identification ID, and the ID is sent to the server of the social application app2, so that the social application app2 generates a scene image code matching the data identification ID, such as a two-dimensional code, and The scene image code is sent to the live application app1, so that the live application app1 generates an invitation card that matches the live broadcast according to the live broadcast control information (also called live broadcast information) and the scene image code combination.
  • live broadcast control information also called live broadcast information
  • an image code matching the target stream data is generated according to the data identifier sent by the server of the first application and matched with the target stream data, to utilize the image.
  • the code obtains an invitation card for inviting the associated account to play the target stream data, thereby simplifying the sharing operation of the target stream data and improving the data sharing efficiency.
  • the sharing unit 808 includes:
  • the first obtaining module is configured to obtain a sharing instruction generated by the client of the first application to perform a sharing operation on the invitation card;
  • a sending module configured to send the invitation card to the server of the first application in response to the sharing instruction, so that the server of the first application shares the invitation card to the client using the second account in the second application through the server of the second application
  • the display is performed, wherein the server of the first application stores the mapping relationship between the invitation card and the target stream data.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the sharing instruction generated by the anchor click initiation sharing button of the first account is acquired, and the invitation card is sent to the background server of the live application app1 in response to the sharing instruction, so that The background server of the live application app1 shares the invitation card to the social application app2 through the background server of the social application app2, so as to invite the second account of the social application app2 to focus on the first account to enter by identifying the image code on the invitation card.
  • the play interface of the target stream data is used to play the target stream data to realize data sharing.
  • the background server of the live application app1 stores the mapping relationship between the invitation card and the target stream data. Therefore, after receiving the access request generated by the second account in the second application by identifying the image code, the target stream data corresponding to the invitation card including the image code is pushed to the second account in the second application.
  • the sharing instruction generated by the client of the first application to perform the sharing operation on the invitation card is obtained, and the invitation card is sent to the server of the first application in response to the sharing instruction, so that the server of the first application passes
  • the server of the second application displays the client card to the client of the second application for display, so as to achieve the purpose of sharing the target stream data by using the social scope of the second application, and further, displaying the invitation card in the second application.
  • the client of the second account will also achieve the purpose of visually displaying the relevant content of the target stream data to be broadcasted, without having to obtain the jump link.
  • the generating unit 806 includes:
  • a second obtaining module configured to obtain a configuration instruction, where the configuration instruction is used to configure a display style of the invitation card
  • the generation module is set to layout the live control information and the image code according to the display style to generate an invitation card.
  • the live broadcast control information may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover picture of the target stream data, and summary indication information of the target stream data.
  • the live broadcast control information of the target stream data to be broadcasted in this time includes: a topic, a cover, a summary indication information, and the like, wherein the summary indication information includes: a live broadcast time and a live broadcast.
  • the anchor identification (for example, the identification A), further, assumes that the image code is a two-dimensional code.
  • the live application app1 may first obtain a configuration command, where the configuration command includes a display style for configuring the invitation card, and performs layout layout on the live control information and the image code according to the display style, to generate a corresponding invitation card, as shown in FIG. .
  • the live broadcast control information and the image code are configured to generate an invitation card according to the display style in the configuration instruction, so that the live broadcast content can be fully displayed, so as to improve the attention of the data to be shared and improve the data.
  • the sharing rate so that more users can share the target stream data of the above live broadcast.
  • a data sharing apparatus for implementing the data sharing method is further applied to a server side.
  • the apparatus includes:
  • the first obtaining unit 902 is configured to obtain a live broadcast request sent by the client that uses the first account in the first application, where the live broadcast request carries the target stream data that is to be broadcasted by the first account. Live control information;
  • the second obtaining unit 904 is configured to acquire an image code in response to the live broadcast request, where the image code is used to identify the target stream data to be broadcasted by the first account;
  • the first sending unit 906 is configured to send the image code to the client in the first application that uses the first account to generate an invitation card that matches the target stream data;
  • the third obtaining unit 908 is configured to obtain a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application;
  • the sharing unit 910 is configured to acquire an access request generated by the second account in the second application to perform an access operation on the invitation card, and use the first message in the second application in response to the access request.
  • the client of the second account shares the playing process of the target stream data broadcasted by the first account.
  • the data sharing method may be, but is not limited to, being applied to the process of sharing the target stream data in the live broadcast process, for example, being applied to a server of the live broadcast application to implement live broadcast stream data. Share efficiently.
  • the foregoing data sharing method may also be applied to a process of sharing data in servers of other platforms, for example, may also be applied to a server of a video playing application.
  • the foregoing is only an example of the playback resource in the application server. The foregoing is not limited in this embodiment.
  • the foregoing first application includes, but is not limited to, a live broadcast application, and may also include, but is not limited to, a webpage for live broadcast or other applications having a media play function.
  • the second application includes, but is not limited to, social applications, web forums, and the like with social functions or instant messaging.
  • the second application and the first application may be, but are not limited to, an associated application, such as the second application providing an authorization interface for the first application, to implement sharing the social application in the second application to share the first application. Messages or other content to achieve the purpose of expanding the scope of data sharing, and the application is not limited herein.
  • the server of the first application obtains the live broadcast request sent by the client of the first application that uses the first account
  • the image code for identifying the target stream data to be broadcasted by the first account is obtained in response to the live broadcast request, Then, the above image code is sent to the client of the first application, so that the client of the first application generates an invitation card that matches the target stream data.
  • the server of the first application obtains a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application, and the second application is associated with the first application; And acquiring, by the second account in the second application, a request generated by performing an access operation on the invitation card, and sharing the target stream data broadcasted by the first account with the second application in response to the access request.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the live broadcast control information carried in the live broadcast command and the image code used to identify the target flow data obtained from the server of the first application are used to generate an invitation card that matches the target flow data.
  • the target stream data in the live broadcast is shared to the associated account in the second application, where the invitation card may include but is not limited to at least one of the following format information: text, picture, audio, dynamic A picture (gif) or a short video, so that the user can intuitively view the content to be broadcasted by the first account through the invitation card, which is not limited in this embodiment.
  • the foregoing target stream data may be, but not limited to, used to indicate that the media stream data transmitted during the live broadcast process is performed after the anchor account (that is, the first account) initiates the live broadcast initiation operation.
  • the live control information that matches the target stream data to be broadcasted by the first account may include, but is not limited to, at least one of the following: a title of the target stream data, a live cover image of the target stream data, and a summary indication of the target stream data. information.
  • the summary indication information may include, but is not limited to, at least one of the following: a live broadcast period, an anchor identifier (ID), a live content introduction, and the like.
  • ID anchor identifier
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the client of the first application after obtaining the live broadcast initiation command, sends a live broadcast request to the server of the first application, and the server of the first application generates unique data for the target stream data to be broadcasted. Identifying, and transmitting the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier; and then receiving the image code generated by the server of the second application according to the data identifier.
  • the server of the second application generates an image code according to the data identifier matching the target stream data, to generate an invitation card for acquiring the target stream data by using the image code.
  • the foregoing image code may include, but is not limited to, a two-dimensional code, a three-dimensional code, and the like, and other image codes that are easily recognized by the application.
  • the above content is only an example, and in this embodiment, no limitation is imposed on this.
  • the sharing the invitation card to the second application for display may include, but is not limited to: acquiring a sharing instruction generated by the client of the first application to perform a sharing operation on the generated invitation card, in response to the The sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • the sharing instruction sends the invitation card to the server of the second application through the server of the first application, and then shares the invitation card to the second application for display.
  • an operation on the invitation card through the client such as performing an identification operation on the image code in the invitation card, performing access to the invitation card, thereby implementing target stream data matching the invitation card. Shared play.
  • the server of the first application may be, but is not limited to, a request time for obtaining an access request; and obtaining progress indication information that matches the request time, where the progress indication information is used to indicate that the target stream data is played. Progress; sharing target stream data matching the progress indication information to the second account in the second application.
  • sharing the target flow data that matches the progress indication information to the second account in the second application may include, but is not limited to:
  • the first prompt information is sent to the second account in the second application, where the progress indication information indicates that the target stream data does not start playing, wherein the first prompt information is used to prompt whether to reserve the target stream data;
  • the third prompt information is sent to the second account in the second application, where the third prompt information is used to prompt the target stream data to be played.
  • the target stream data matching the progress indication information may be shared with the second account in the second application according to the playing progress of the live target data.
  • the second account may be directly played from the playback screen corresponding to the progress indicated by the progress indication information; for example, the second account may be prompted by the example of not starting playback.
  • the target stream data to be broadcasted by the first account has not started playing yet, and is scheduled to be played. The above is only an example, and is not limited in this embodiment.
  • the client of the first application that initiates the live broadcast is taken as an example.
  • steps S302-S328 the client 302 of the first application obtains the first account to perform the live broadcast initiation operation.
  • the generated live broadcast initiating instruction and sending a live broadcast request to the server 304 of the first application according to the live broadcast initiating instruction, where the server 304 of the first application randomly configures a data identifier ID for uniquely identifying the target data to be broadcasted by the live broadcast request, and
  • the data identification ID is sent to the server 306 of the second application such that the server 306 of the second application can generate an image code that matches the target stream data based on the data identification.
  • the client 302 of the first application receives the image code sent by the server 306 of the second application and the live broadcast information related to the current live broadcast through the server 304 of the first application, and generates a matching match with the target stream data according to the acquired content.
  • invitation card After obtaining the sharing instruction of the sharing operation by the first client to the invitation card, the invitation card is sent to the server 304 of the first application, and the server 304 of the first application establishes a mapping relationship between the invitation card and the target stream data.
  • the invitation card is shared by the server 306 of the second application to the client 308 in the second application using the second account.
  • the client 308 using the second account in the second application will display the invitation card, and obtain an access request for performing an access operation on the invitation card, and then send the access request to the server of the first application through the server 306 of the second application. 304, so that the server 304 of the first application can share the target stream data to be broadcasted to the client 308 in the second application using the second account.
  • the server of the first application After the server of the first application obtains the live broadcast request sent by the client of the first application of the first account, the server of the first application obtains the target stream data for identifying the first account to be broadcasted in response to the live request.
  • the image code is then sent to the client of the first application to cause the client of the first application to generate an invitation card that matches the target stream data.
  • the server of the first application obtains a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application, and the second application is associated with the first application; And acquiring, by the second account in the second application, a request generated by performing an access operation on the invitation card, and sharing the target stream data broadcasted by the first account with the second application in response to the access request.
  • the second account in the second application is invited to directly view the target stream data by sharing the invitation card generated according to the live control information of the image code and the target stream data, wherein the invitation card can not only visually see and
  • the live broadcast control information related to the current live stream target data, and entering the live broadcast through the image code will greatly simplify the data sharing operation steps, without having to click the access link to jump, thereby reducing the waiting time in the sharing process, thereby To achieve the effect of improving data sharing efficiency, and thus overcome the problem of low data sharing efficiency in related technologies.
  • the second obtaining unit 904 includes:
  • a first generation module configured to generate a data identifier that matches the target stream data
  • the first sending module is configured to send the data identifier to the server of the second application, so that the server of the second application generates the image code according to the data identifier;
  • a receiving module configured to receive an image code sent by a server of the second application.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the live broadcast request is sent to the background server of the live application app1, and the background server of the live application app1 receives the live broadcast request.
  • the live broadcast initiated by the anchor is assigned a unique data identification ID, and the ID is sent to the server of the social application app2, so that the social application app2 generates a scene image code matching the data identification ID, such as a two-dimensional code, and The scene image code is sent to the live application app1, so that the live application app1 generates an invitation card that matches the live broadcast according to the live broadcast control information (also called live broadcast information) and the scene image code combination.
  • live broadcast control information also called live broadcast information
  • the data identifier is sent to the server of the second application, so that the server of the second application is configured according to the server of the first application.
  • the sent data identifier matching the target stream data is used to generate an image code that matches the target stream data, so that an invitation card for inviting the associated account to play the target stream data is obtained by using the image code, so as to simplify the target stream data. Share operations and improve the efficiency of data sharing.
  • a storage unit configured to store a mapping relationship between the invitation card carried in the sharing request and the target stream data after acquiring the sharing request for sharing the invitation card to the second application;
  • the second sending unit is configured to send the sharing request to the server of the second application.
  • the sharing unit includes: a first acquiring module, configured to obtain an access request sent by the second account in the second application, where the access request is the second account in the second application A request generated after the image code in the invitation card.
  • the device further includes: a fourth obtaining unit, configured to: after acquiring an access request generated by the second account in the second application to perform an access operation on the invitation card, acquiring, according to the mapping relationship, an invitation card that is requested to be accessed by the access request Target stream data. That is to say, the second account in the second application can identify the image code by scanning to generate an access request sent to the server of the first application.
  • the server of the first application may acquire, according to the mapping relationship, target stream data that matches the invitation card that is requested to be accessed by the access request, and share the target stream data to the second application.
  • the client that uses the second account.
  • the mapping relationship between the invitation card and the target stream data is stored in the server of the first application, so that after the access request sent by the second account in the second application is received, the The mapping relationship quickly acquires the corresponding target stream data for sharing, so as to reduce the time for searching for the shared content and improve the sharing efficiency.
  • the sharing unit 910 includes:
  • a second obtaining module configured to obtain a request time for an access request
  • the third obtaining module is configured to obtain progress indication information that matches the request time, where the progress indication information is used to indicate the playing progress of the target stream data;
  • the sharing module is configured to share the target stream data that matches the progress indication information to the client using the second account in the second application.
  • the sharing module includes:
  • the first prompt sub-module is configured to send the first prompt information to the client using the second account in the second application, where the progress indication information indicates that the target stream data does not start playing, wherein the first prompt information Used to prompt whether to reserve the target stream data; or
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the first prompt information is sent to the second account in the second application, and as shown in FIG. 6, the interface including the “reservation” button is displayed.
  • the second account is prompted to confirm whether the target stream data is scheduled to be played in advance.
  • a second prompting sub-module configured to send, to the second application, the second prompt information to the client in the second application, where the progress indication information indicates that the target flow data has been started but is not completed, wherein The second prompt information is used to prompt to start playing from the current play screen of the target stream data;
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the second prompt information is sent to the second account in the second application to prompt the second account to be current from the target stream data.
  • the play screen starts playing, and enters the current play screen to play the target stream data.
  • a third prompt sub-module configured to send a third prompt information to the client using the second account in the second application, where the progress indication information indicates that the target stream data has been played, wherein the third prompt information Used to prompt that the target stream data has finished playing.
  • the first application is taken as an example of the live application app1
  • the second application is described by taking the social application app2 as an example.
  • the third prompt information is sent to the second account in the second application, as shown in FIG. 7 to prompt the second account target stream data. Finish playing, such as "The live stream you requested is over.".
  • the target stream data matching the progress indication information is shared to the second account in the second application, so that the second account in the second application can synchronize the playback project of the target stream data, thereby realizing Share the effect of synchronization.
  • the second sending module is configured to: after transmitting the first prompt information to the second account in the second application, in the case that the second account confirms the reserved target stream data according to the first prompt information, the distance target data is
  • the fourth prompt information is sent by the third account of the second application, and the fourth prompt information is used to prompt the time when the target stream data starts playing, and the third account and the second account are associated accounts.
  • the second account may be, but not limited to, the third account, for example, the third account is a public account applied by the first application in the second application, and the second account is the second account.
  • the personal account in the application wherein the second account pays attention to the third account, so as to obtain the message pushed by the third account.
  • the predetermined time before the start of the target stream data is started.
  • the fifth prompt information is sent by the third account of the second application (for example, the social application app2 as an example) 5 minutes before the broadcast, to prompt the second account to start the live broadcast of the reservation.
  • the second account by prompting the second account in time, the time when the target stream data starts playing, so that the second account can obtain the reserved playing information in time, avoiding missing or missing the reserved target stream data, and ensuring The accuracy and effectiveness of sharing.
  • an electronic device wherein the electronic device comprises: a memory and a processor, the memory storing a computer program, the processor being configured to execute the data sharing method described above by a computer program.
  • the electronic device may be a data sharing terminal for the user to implement the data sharing scenario of the data sharing method described above.
  • the data sharing terminal includes:
  • the communication interface 1002 is configured to obtain a live broadcast initiation instruction generated by the first account to perform a live broadcast initiation operation in the client of the first application, where the live broadcast initiation instruction carries the target flow data to be broadcasted by the first account.
  • the matching live control information is further configured to: in response to the live broadcast initiation instruction, acquire the image code by using the server of the first application, where the image code is used to identify the target stream data to be broadcasted by the first account;
  • the processor 1004 is connected to the communication interface 1002, and is configured to generate an invitation card that matches the target stream data by using the image code and the live control information; and is further configured to share the invitation card to the second application for display, to invite the second application.
  • the second account in the account uses the invitation card to share the playing process of the target stream data broadcasted by the first account.
  • the memory 1006 is connected to the communication interface 1002 and the processor 1004, and is configured to store the invitation card and the live broadcast control information.
  • the foregoing processor may be configured to perform the following steps by using a computer program:
  • the invitation card is shared to the second application for display, so that the second account in the second application invites the invitation card to share the playing process of the target stream data broadcasted by the first account.
  • the structure shown in FIG. 10 is only illustrative, and the data sharing terminal can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device ( Mobile Internet Devices, MID), PAD and other terminal devices.
  • FIG. 10 does not limit the structure of the above data sharing terminal.
  • the electronic device may further include more or less components (such as display devices, etc.) than those shown in FIG. 10, or have a different configuration than that shown in FIG.
  • the memory 1006 can be used to store software programs and modules, such as program instructions/modules corresponding to the data sharing method in the embodiment of the present invention.
  • the processor 1004 executes various functions by running software programs and modules stored in the memory 1006. Application and data processing, that is, the above data sharing method is implemented.
  • Memory 1006 can include high speed random access memory, and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 1006 can further include memory remotely located relative to processor 1004, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the memory 1006 is configured to store content such as target stream data, live broadcast control information, and generated invitation cards.
  • an electronic device wherein the electronic device comprises: a memory and a processor, the memory storing a computer program, the processor being configured to execute the data sharing method described above by a computer program.
  • the electronic device may be a data sharing server for the user to implement the data sharing scenario of the data sharing method described above.
  • the data sharing server includes:
  • the communication interface 1102 is configured to obtain a live broadcast request sent by the client that uses the first account in the first application, where the live broadcast request carries the live broadcast control information that matches the target flow data to be broadcasted by the first account;
  • the image code is configured to obtain the image code in response to the live broadcast request, wherein the image code is used to identify the target stream data to be broadcasted by the first account, and is further configured to send the image code to the client in the first application using the first account to generate and target An invitation card that matches the stream data; and is configured to obtain a sharing request for sharing the invitation card to the second application, where the sharing request carries the invitation card and the application identifier of the second application; and is further configured to obtain the second application The access request generated by the second account to perform the access operation on the invitation card;
  • the processor 1104 is connected to the communication interface 1102, and configured to share, in response to the access request, a playback process of the target stream data broadcasted by the first account to the client using the second account in the second application;
  • the memory 1106 is connected to the communication interface 1102 and the processor 1104, and is configured to store the invitation card and the target stream data.
  • the foregoing processor may be configured to perform the following steps by using a computer program:
  • the sharing request for sharing the invitation card to the second application is obtained, where the sharing request carries the invitation card and the application identifier of the second application;
  • the structure shown in FIG. 11 is only illustrative, and the data sharing server can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, a palm computer, and a mobile Internet device ( Mobile Internet Devices, MID), PAD and other terminal devices.
  • FIG. 11 does not limit the structure of the above data sharing server.
  • the data sharing server may also include more or less components (such as a network interface or the like) than shown in FIG. 11, or have a different configuration than that shown in FIG.
  • the memory 1106 can be used to store software programs and modules, such as the data sharing method and the program instructions/modules corresponding to the device in the embodiment of the present invention.
  • the processor 1104 executes the software programs and modules stored in the memory 1106, thereby executing each A functional application and data processing, that is, the above data sharing method is implemented.
  • Memory 1106 can include high speed random access memory and can also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 1106 can further include memory remotely located relative to processor 1104, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the memory 1106 is configured to store content of the target stream to be broadcasted and the generated invitation card and the like.
  • a storage medium is also provided.
  • the foregoing storage medium may be located in at least one of the plurality of network devices in the network.
  • the storage medium is arranged to store program code for performing the following steps:
  • the invitation card is shared to the second application for display, so that the second account in the second application invites the invitation card to share the playing process of the target stream data broadcasted by the first account.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the sharing request for sharing the invitation card to the second application is obtained, where the sharing request carries the invitation card and the application identifier of the second application;
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the integrated unit in the above embodiment if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in the above-described computer readable storage medium.
  • the technical solution of the present application may be embodied in the form of a software product, or the whole or part of the technical solution, which is stored in the storage medium, including
  • the instructions are used to cause one or more computer devices (which may be a personal computer, server or network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
  • the disclosed client may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, unit or module, and may be electrical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the server in the first application obtains the first account by using the server of the first application.
  • the generated invitation card invites the second account in the second application to directly view the purpose of the target stream data.
  • the invitation card can not only visually see the live broadcast control information related to the current live target stream data, but also enter the live broadcast through the image code, which greatly simplifies the data sharing operation steps, reduces the waiting time in the sharing process, and improves the waiting time.
  • the data sharing efficiency further solves the problem of low data sharing efficiency in related technologies.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本申请公开了一种数据分享方法及装置、存储介质和电子装置。其中,该方法包括:获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;响应直播发起指令,通过第一应用的服务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。本申请解决了目前数据分享方法所存在的数据分享效率较低的技术问题。

Description

数据分享方法及装置、存储介质和电子装置
本申请要求于2017年4月25日提交中国专利局、优先权号为2017102798522、申请名称为“数据分享方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机领域,具体而言,涉及一种数据分享方法及装置、存储介质和电子装置。
背景技术
目前,相关技术中为了实现对媒体流数据的内容共享,往往会生成与媒体流数据的内容对应的访问链接,并直接将该访问链接分享到社区空间,以使好友在点击社区空间中所显示的访问链接后,通过跳转至上述访问链接对应的页面,方可实现对上述页面中所要分享的媒体流数据的分享播放。
也就是说,相关技术中是通过分享访问链接的形式,来邀请好友观看上述访问链接对应的页面中的媒体流数据。然而,由于这种通过访问链接来访问媒体流数据的方式,增加了链接跳转的访问门槛,可能使得很多用户为了避免不必要的等待,而放弃数据分享,从而导致媒体流数据的分享效率较低的问题。
针对上述的问题,目前尚未提出有效的解决方案。
发明内容
本申请实施例提供了一种数据分享方法及装置、存储介质和电子装置,以至少解决目前数据分享方法所存在的数据分享效率较低的技术问题。
根据本申请实施例的一个方面,提供了一种数据分享方法,包括:获 取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,上述直播发起指令中携带有与上述第一账号所要直播的目标流数据相匹配的直播控制信息;响应上述直播发起指令,通过上述第一应用的服务器获取图像码,其中,上述图像码用于标识上述第一账号所要直播的上述目标流数据;利用上述图像码及上述直播控制信息生成与上述目标流数据匹配的邀请卡;将上述邀请卡分享至第二应用进行显示,以邀请上述第二应用中的第二账号利用上述邀请卡分享上述第一账号所直播的上述目标流数据的播放过程。
根据本申请实施例的另一方面,还提供了一种数据分享方法,包括:获取第一应用中使用第一账号的客户端发送的直播请求,其中,上述直播请求中携带有与上述第一账号所要直播的目标流数据相匹配的直播控制信息;响应上述直播请求获取图像码,其中,上述图像码用于标识上述第一账号所要直播的上述目标流数据;将上述图像码发送至上述第一应用中使用上述第一账号的客户端,以生成与上述目标流数据匹配的邀请卡;获取将上述邀请卡分享至第二应用的分享请求,其中,上述分享请求中携带有上述邀请卡及上述第二应用的应用标识;获取上述第二应用中的第二账号对上述邀请卡执行访问操作所生成的访问请求,并响应上述访问请求向上述第二应用中使用上述第二账号的客户端分享上述第一账号所直播的上述目标流数据的播放过程。
根据本申请实施例的又一方面,还提供了一种数据分享装置,包括:第一获取单元,设置为获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,上述直播发起指令中携带有与上述第一账号所要直播的目标流数据相匹配的直播控制信息;第二获取单元,设置为响应上述直播发起指令,通过上述第一应用的服务器获取图像码,其中,上述图像码用于标识上述第一账号所要直播的上述目标流数据;生成单元,设置为利用上述图像码及上述直播控制信息生成与上述目标流数据匹配的邀请卡;分享单元,设置为将上述邀请卡分享至第二应用进行显示,以邀请上述第二应用中的第二账号利用上述邀请卡分享上述第一账号所 直播的上述目标流数据的播放过程。
根据本申请实施例的又一方面,还提供了一种数据分享装置,包括:第一获取单元,设置为获取第一应用中使用第一账号的客户端发送的直播请求,其中,上述直播请求中携带有与上述第一账号所要直播的目标流数据相匹配的直播控制信息;第二获取单元,设置为响应上述直播请求获取图像码,其中,上述图像码用于标识上述第一账号所要直播的上述目标流数据;第一发送单元,设置为将上述图像码发送至上述第一应用中使用上述第一账号的客户端,以生成与上述目标流数据匹配的邀请卡;第三获取单元,设置为获取将上述邀请卡分享至第二应用的分享请求,其中,上述分享请求中携带有上述邀请卡及上述第二应用的应用标识;分享单元,设置为获取上述第二应用中的第二账号对上述邀请卡执行访问操作所生成的访问请求,并响应上述访问请求向上述第二应用中使用上述第二账号的客户端分享上述第一账号所直播的上述目标流数据的播放过程。
根据本申请实施例的又一方面,还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述数据分享方法。
根据本申请实施例的又一方面,还提供了一种电子装置,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其中,上述处理器通过计算机程序执行上述数据分享方法。
在本申请实施例中,在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的与目标流数据相匹配的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目 标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1是根据本申请实施例的一种可选的数据分享方法的应用环境示意图;
图2是根据本申请实施例的一种可选的数据分享方法的流程图;
图3是根据本申请实施例的另一种可选的数据分享方法的流程图;
图4是根据本申请实施例的一种可选的数据分享方法的示意图;
图5是根据本申请实施例的又一种可选的数据分享方法的流程图;
图6是根据本申请实施例的另一种可选的数据分享方法的示意图;
图7是根据本申请实施例的又一种可选的数据分享方法的示意图;
图8是根据本申请实施例的一种可选的数据分享装置的示意图;
图9是根据本申请实施例的另一种可选的数据分享装置的示意图;
图10是根据本申请实施例的一种可选的数据分享终端的示意图;
图11是根据本申请实施例的一种可选的数据分享服务器的示意图。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述, 显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
根据本发明实施例的一个方面,提供了一种上述数据分享方法的实施例。作为一种可选的实施方式,该数据分享方法可以但不限于应用于如图1所示的应用环境中,终端102中安装有使用第一账号的第一应用的客户端,用于发起直播,终端108中安装有使用第二账号的第二应用的客户端。其中,上述第一账号用于作为主播发起直播,第二账号用于作为粉丝观看直播中的内容。终端102获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;响应直播发起指令,通过第一应用的服务器106获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;并利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;进一步,终端102通过网络104将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程,其中,第二应用与第一应用为关联应用。
在本实施例中,在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上 述图像码以及直播发起指令中携带的与目标流数据相匹配的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
可选地,在本实施例中,上述终端可以包括但不限于以下至少之一:手机、平板电脑、笔记本电脑、台式PC机、数字电视及其他用于直播分享的硬件设备。上述网络可以包括但不限于以下至少之一:广域网、城域网、局域网。上述只是一种示例,本实施例对此不做任何限定。
根据本申请实施例的一个方面,提供了一种数据分享方法,如图2所示,该方法包括:
S202,获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S204,响应直播发起指令,通过第一应用的服务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S206,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;
S208,将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。
可选地,在本实施例中,上述数据分享方法可以但不限于应用于对直播过程中的目标流数据进行分享的过程中,例如,应用于直播应用中,实现对直播流数据进行高效分享。需要说明的是,在本实施例中,上述数据 分享方法也可以但不限于应用于对其他平台中进行数据分享的过程中,例如,还可以应用于视频播放应用中,对上述应用中的播放资源进行分享,上述仅是一种示例,本实施例中在此不做任何限定。
应当说明的是,在本实施例中,上述第一应用包括但不限于直播应用,也可以包括但不限于用于直播的web网页或其他具有媒体播放功能的应用。第二应用包括但不限于社交应用、网页论坛等具备社交功能或即时通信的应用。还需要说明的是,第二应用与第一应用可以但不限于为关联应用,如第二应用为第一应用提供授权接口,以实现利用第二应用中的社交范围来分享第一应用中的消息或其他内容,从而达到扩大数据分享范围的目的,在此,本申请不做任何限定。
需要说明的是,在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的目标流数据的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账户利用该邀请卡同步分享第一账号直播目标流数据的过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
可选地,在本实施例中,利用直播发起指令中携带的直播控制信息,及从第一应用的服务器获取的用于标识目标流数据的图像码,来生成与目标流数据匹配的邀请卡,通过分享该邀请卡,以实现将直播中的目标流数据分享给第二应用中的关联账号,其中,该邀请卡可以包括但不限于以下 至少一种格式信息:文字、图片、音频、动态图片(gif)或短视频,从而使用户可以通过该邀请卡可以直观地观看第一账号所要直播内容,对此在本实施例中不做任何限定。
可选地,在本实施例中,上述目标流数据可以但不限于用于指示在主播账号(也就是第一账号)发起执行直播发起操作之后,进入直播过程中所传输的媒体流数据。其中,与第一账号所要直播的目标流数据相匹配的直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。其中,上述摘要指示信息可以包括但不限于以下至少之一:直播时间段、主播标识(ID)、直播内容简介等等。上述内容仅是一种示例,本实施例中,对此不做任何限定。
需要说明的是,在第一应用的客户端获取到直播发起指令之前,可以但不限于在第一应用的客户端获取上述第一账号所直播的目标流数据的标题、封面。将上述第一账号所直播的目标流数据的标题、封面发送给第一应用的服务器,以发起用于请求直播上述目标流数据的直播请求。
可选地,在本实施例中,第一应用的客户端在获取到直播发起指令后,向第一应用的服务器发送直播请求,第一应用的服务器为所要直播的目标流数据生成唯一的数据标识,并将该数据标识发送给第二应用的服务器,以使第二应用的服务器根据数据标识生成图像码;然后,接收第二应用的服务器根据该数据标识生成的图像码。需要说明的是,第二应用的服务器根据与目标流数据匹配的数据标识生成图像码,以利用该图像码生成用于获取目标流数据的邀请卡。
可选地,在本实施例中,上述图像码可以包括但不限于二维码、三维码等,以及其他易于被应用识别的图像码。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,将邀请卡分享至第二应用进行显示可以包括但不限于:获取第一应用的客户端对所生成的邀请卡执行分享操作所生成 的分享指令,响应该分享指令,将该邀请卡通过第一应用的服务器,发送至第二应用的服务器,然后,将邀请卡分享至第二应用进行显示。以使得第二应用中的第二账号通过客户端对邀请卡执行操作,如对邀请卡中的图像码进行识别操作,实现对邀请卡执行访问,进而实现对与邀请卡匹配的目标流数据进行共享播放。
可选地,在本实施例中,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡包括但不限于:第一应用的客户端可以但不限于根据获取到的配置指令所指示的邀请卡的显示样式,来布局与目标流数据匹配的直播控制信息及图像码,从而达到生成邀请卡的目的。
具体结合图3所示进行说明,以发起直播的第一应用的客户端为例进行说明,如图3所示步骤S302-S328,第一应用的客户端302获取第一账号执行直播发起操作所生成的直播发起指令,并根据该直播发起指令向第一应用的服务器304发送直播请求,第一应用的服务器304随机配置一个用于唯一标识该直播请求所要直播的目标数据的数据标识ID,并将该数据标识ID发送给第二应用的服务器306,以使第二应用的服务器306可以根据该数据标识生成与目标流数据匹配的图像码。第一应用的客户端302通过第一应用的服务器304接收第二应用的服务器306发送的图像码,及与当前直播相关的直播信息,并根据上述获取到的内容生成与目标流数据相匹配的邀请卡。在获取到第一客户端对邀请卡执行分享操作的分享指令后,将该邀请卡发送至第一应用的服务器304,第一应用的服务器304将建立该邀请卡与目标流数据的映射关系,并将该邀请卡通过第二应用的服务器306分享至第二应用中使用第二账号的客户端308。第二应用中使用第二账号的客户端308将显示该邀请卡,并获取对该邀请卡执行访问操作的访问请求,然后将该访问请求通过第二应用的服务器306发送至第一应用的服务器304,以使第一应用的服务器304可以将上述所要直播的目标流数据分享给第二应用中使用第二账号的客户端308。
通过本申请提供的实施例,在第一应用的客户端中获取第一账号执行 直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的目标流数据的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账户利用该邀请卡同步分享第一账号直播目标流数据的过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
作为一种可选的方案,响应直播发起指令,通过第一应用的服务器获取图像码包括:
S1,通过第一应用的服务器接收第二应用的服务器生成的图像码,其中,图像码为第二应用的服务器根据第一应用的服务器所发送的与目标流数据相匹配的数据标识而生成。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在使用第一账号的主播点击发起直播的直播按钮生成直播发起指令后,将向直播应用app1的后台服务器发送直播请求,直播应用app1的后台服务器在接收到上述直播请求后,将为该主播发起的直播分配一个唯一的数据标识ID,将该ID发送至社交应用app2的服务器,以使社交应用app2生成一个与该数据标识ID匹配的场景图像码,例如二维码,并将该场景图像码发送给直播应用app1,以使直播应用app1根据该直播的直播控制信息(也称直播信息)以及场景图像码组合生成一个与本次直播匹配的邀请卡。
通过本申请提供的实施例,在第二应用的服务器中,根据第一应用的 服务器所发送的与目标流数据相匹配的数据标识,来生成与目标流数据匹配的图像码,以利用该图像码得到用于邀请关联账号播放目标流数据的邀请卡,从而简化目标流数据的分享操作,提高数据分享效率。
作为一种可选的方案,将邀请卡分享至第二应用进行显示包括:
S1,获取在第一应用的客户端对邀请卡执行分享操作所生成的分享指令;
S2,响应分享指令将邀请卡发送至第一应用的服务器,以使第一应用的服务器通过第二应用的服务器,将邀请卡分享至第二应用中使用第二账号的客户端进行显示,其中,第一应用的服务器将存储邀请卡与目标流数据之间的映射关系。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在直播应用app1中生成邀请卡之后,获取使用第一账号的主播点击发起分享按钮生成的分享指令,并响应该分享指令将邀请卡发送至直播应用app1的后台服务器,以使直播应用app1的后台服务器通过社交应用app2的后台服务器,将上述邀请卡分享至社交应用app2进行显示,以邀请社交应用app2中关注第一账号的第二账号通过识别邀请卡上的图像码来进入目标流数据的播放界面,以播放该目标流数据,实现数据的分享。
需要说明的是,直播应用app1的后台服务器在接收到邀请卡之后,将存储邀请卡与目标流数据之间的映射关系。从而实现在接收到第二应用中的第二账号通过识别图像码所生成的访问请求后,将与包含该图像码的邀请卡对应的目标流数据推送给第二应用中的第二账号。
通过本申请提供的实施例,获取在第一应用的客户端对邀请卡执行分享操作所生成的分享指令,响应分享指令将邀请卡发送至第一应用的服务器,以使第一应用的服务器通过第二应用的服务器将邀请卡分享至第二应用的客户度进行显示,从而实现利用第二应用的社交范围达到对目标流数 据的分享目的,此外,将邀请卡显示在第二应用中使用第二账号的客户端中,还将达到直观展示所要直播的目标流数据的相关内容的目的,而无需再通过跳转链接获取。
作为一种可选的方案,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡包括:
S1,获取配置指令,其中,配置指令用于配置邀请卡的显示样式;
S2,按照显示样式布局直播控制信息及图像码,以生成邀请卡。
可选地,在本实施例中,上述直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,例如,如图4所示,假设本次所要直播的目标流数据的直播控制信息包括:主题、封面、摘要指示信息等,其中,摘要指示信息包括:直播时间及发起直播的主播标识(例如,标识A),进一步,假设图像码为二维码。直播应用app1可以先获取配置指令,该配置指令包含用于配置邀请卡的显示样式,根据该显示样式对上述直播控制信息以及图像码进行布局排版,以生成对应的邀请卡,如图4所示。
通过本申请提供的实施例,根据配置指令中的显示样式对直播控制信息以及图像码进行布局排版生成邀请卡,能够对直播内容进行充分的展示,以提高所要分享的数据的关注度,提升数据的分享率,从而达到使更多的用户来分享上述直播的目标流数据。
根据本申请实施例的另一方面,提供了一种数据分享方法,如图5所示,该方法包括:
S502,获取第一应用中使用第一账号的客户端发送的直播请求,其中,直播请求中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S504,响应直播请求获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S506,将图像码发送至第一应用中使用第一账号的客户端,以生成与目标流数据匹配的邀请卡;
S508,获取将邀请卡分享至第二应用的分享请求,其中,分享请求中携带有邀请卡及第二应用的应用标识;
S510,获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求,并响应访问请求向第二应用中使用第二账号的客户端分享第一账号所直播的目标流数据的播放过程。
可选地,在本实施例中,上述数据分享方法可以但不限于应用于对直播过程中的目标流数据进行分享的过程中,例如,应用于直播应用的服务器中,实现对直播流数据进行高效分享。需要说明的是,在本实施例中,上述数据分享方法也可以但不限于应用于对其他平台的服务器中进行数据分享的过程中,例如,还可以应用于视频播放应用的服务器中,对上述应用的服务器中的播放资源进行分享,上述仅是一种示例,本实施例中在此不做任何限定。
应当说明的是,在本实施例中,上述第一应用包括但不限于直播应用,也可以包括但不限于用于直播的web网页或其他具有媒体播放功能的应用。第二应用包括但不限于社交应用、网页论坛等具备社交功能或即时通信的应用。还需要说明的是,第二应用与第一应用可以但不限于为关联应用,如第二应用为第一应用提供授权接口,以实现利用第二应用中的社交范围来分享第一应用中的消息或其他内容,从而达到扩大数据分享范围的目的,在此,本申请不做任何限定。
需要说明的是,在第一应用的服务器获取使用第一账号的第一应用的客户端发送的直播请求之后,响应该直播请求获取用于标识第一账号所要直播的目标流数据的图像码,然后,将上述图像码发送至第一应用的客户端,以使第一应用的客户端生成与目标流数据匹配的邀请卡。进一步,第一应用的服务器将获取将上述邀请卡分享至第二应用的分享请求,其中,分享请求中携带邀请卡及第二应用的应用标识,第二应用与第一应用为关联应用;然后,获取第二应用中的第二账号对该邀请卡执行访问操作所生成的请求,并响应该访问请求向第二应用分享第一账号所直播的所述目标流数据。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
可选地,在本实施例中,利用直播发起指令中携带的直播控制信息,及从第一应用的服务器获取的用于标识目标流数据的图像码,来生成与目标流数据匹配的邀请卡,通过分享该邀请卡,以实现将直播中的目标流数据分享给第二应用中的关联账号,其中,该邀请卡可以包括但不限于以下至少一种格式信息:文字、图片、音频、动态图片(gif)或短视频,从而使用户可以通过该邀请卡可以直观地观看第一账号所要直播内容,对此在本实施例中不做任何限定。
可选地,在本实施例中,上述目标流数据可以但不限于用于指示在主播账号(也就是第一账号)发起执行直播发起操作之后,进入直播过程中所传输的媒体流数据。其中,与第一账号所要直播的目标流数据相匹配的直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。其中,上述摘要指示信息可以包括但不限于以下至少之一:直播时间段、主播标识(ID)、 直播内容简介等等。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,第一应用的客户端在获取到直播发起指令后,向第一应用的服务器发送直播请求,第一应用的服务器为所要直播的目标流数据生成唯一的数据标识,并将该数据标识发送给第二应用的服务器,以使第二应用的服务器根据数据标识生成图像码;然后,接收第二应用的服务器根据该数据标识生成的图像码。需要说明的是,第二应用的服务器根据与目标流数据匹配的数据标识生成图像码,以利用该图像码生成用于获取目标流数据的邀请卡。
可选地,在本实施例中,上述图像码可以包括但不限于二维码、三维码等,以及其他易于被应用识别的图像码。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,将邀请卡分享至第二应用进行显示可以包括但不限于:获取第一应用的客户端对所生成的邀请卡执行分享操作所生成的分享指令,响应该分享指令,将该邀请卡通过第一应用的服务器,发送至第二应用的服务器,然后,将邀请卡分享至第二应用进行显示。以使得第二应用中的第二账号通过客户端对邀请卡执行操作,如对邀请卡中的图像码进行识别操作,实现对邀请卡执行访问,进而实现对与邀请卡匹配的目标流数据进行共享播放。
可选地,在本实施例中,第一应用的服务器可以但不限于获取访问请求的请求时间;获取与请求时间相匹配的进度指示信息,其中,进度指示信息用于指示目标流数据的播放进度;向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据。
可选地,在本实施例中,向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据可以包括但不限于:
1)在进度指示信息指示目标流数据未开始播放的情况下,向第二应 用中使用第二账号的客户端发送第一提示信息,其中,第一提示信息用于提示是否预约播放目标流数据;
2)在进度指示信息指示目标流数据已开始、但未完成播放的情况下,向第二应用中使用第二账号的客户端发送第二提示信息,其中,第二提示信息用于提示从目标流数据的当前播放画面开始播放;
3)在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中使用第二账号的客户端发送第三提示信息,其中,第三提示信息用于提示目标流数据已完成播放。
也就是说,在本实施例中,可以根据直播的目标流数据的播放进度,向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据。例如,以开始播放,但未完成播放为例,可以使第二账号直接从进度指示信息所指示的进度对应的播放画面开始播放;又例如,以未开始播放为例,可以提示第二账号,第一账号所要直播的目标流数据还未开始播放,是否预约播放。上述仅是一种示例,本实施例中对此不做任何限定。
具体结合图3所示进行说明,以发起直播的第一应用的客户端为例进行说明,如图3所示步骤S302-S328,第一应用的客户端302获取第一账号执行直播发起操作所生成的直播发起指令,并根据该直播发起指令向第一应用的服务器304发送直播请求,第一应用的服务器304随机配置一个用于唯一标识该直播请求所要直播的目标数据的数据标识ID,并将该数据标识ID发送给第二应用的服务器306,以使第二应用的服务器306可以根据该数据标识生成与目标流数据匹配的图像码。第一应用的客户端302通过第一应用的服务器304接收第二应用的服务器306发送的图像码,及与当前直播相关的直播信息,并根据上述获取到的内容生成与目标流数据相匹配的邀请卡。在获取到第一客户端对邀请卡执行分享操作的分享指令后,将该邀请卡发送至第一应用的服务器304,第一应用的服务器304将建立该邀请卡与目标流数据的映射关系,并将该邀请卡通过第二应用的服务器306分享至第二应用中使用第二账号的客户端308。第二应用中使 用第二账号的客户端308将显示该邀请卡,并获取对该邀请卡执行访问操作的访问请求,然后将该访问请求通过第二应用的服务器306发送至第一应用的服务器304,以使第一应用的服务器304可以将上述所要直播的目标流数据分享给第二应用中使用第二账号的客户端308。
通过本申请提供的实施例,在第一应用的服务器获取使用第一账号的第一应用的客户端发送的直播请求之后,响应该直播请求获取用于标识第一账号所要直播的目标流数据的图像码,然后,将上述图像码发送至第一应用的客户端,以使第一应用的客户端生成与目标流数据匹配的邀请卡。进一步,第一应用的服务器将获取将上述邀请卡分享至第二应用的分享请求,其中,分享请求中携带邀请卡及第二应用的应用标识,第二应用与第一应用为关联应用;然后,获取第二应用中的第二账号对该邀请卡执行访问操作所生成的请求,并响应该访问请求向第二应用分享第一账号所直播的所述目标流数据。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
作为一种可选的方案,响应直播请求获取图像码包括:
S1,生成与目标流数据相匹配的数据标识;
S2,将数据标识发送给第二应用的服务器,以使第二应用的服务器根据数据标识生成图像码;
S3,接收第二应用的服务器发送的图像码。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在使用第一账号 的主播点击发起直播的直播按钮生成直播发起指令后,将向直播应用app1的后台服务器发送直播请求,直播应用app1的后台服务器在接收到上述直播请求后,将为该主播发起的直播分配一个唯一的数据标识ID,将该ID发送至社交应用app2的服务器,以使社交应用app2生成一个与该数据标识ID匹配的场景图像码,例如二维码,并将该场景图像码发送给直播应用app1,以使直播应用app1根据该直播的直播控制信息(也称直播信息)以及场景图像码组合生成一个与本次直播匹配的邀请卡。
通过本申请提供的实施例,在第一应用的服务器生成与目标流数据相匹配的数据标识后,将数据标识发送给第二应用的服务器,以使第二应用的服务器根据第一应用的服务器所发送的与目标流数据相匹配的数据标识,来生成与目标流数据匹配的图像码,从而实现利用该图像码得到用于邀请关联账号播放目标流数据的邀请卡,达到简化目标流数据的分享操作,提高数据分享效率的效果。
作为一种可选的方案,在获取将邀请卡分享至第二应用的分享请求之后,还包括:
S1,存储分享请求中所携带的邀请卡与目标流数据之间的映射关系;
S2,将分享请求发送至第二应用的服务器。
可选地,在本实施例中,获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求包括:获取第二应用中的第二账号发送的访问请求,其中,访问请求为第二应用中的第二账号通过识别邀请卡中的图像码后生成的请求。也就是说,第二应用中的第二账号可以通过扫描识别图像码,以生成向第一应用的服务器发送的访问请求。第一应用的服务器在接收到上述访问请求之后,可以根据映射关系获取与访问请求所请求访问的包含上述图像码的邀请卡相匹配的目标流数据,并将该目标流数据分享给第二应用中使用第二账号的客户端。
通过本申请提供的实施例,通过在第一应用的服务器存储邀请卡与目 标流数据之间的映射关系,以便于在接收到第二应用中的第二账号发送的访问请求后,可以利用该映射关系快速获取对应的目标流数据进行分享,以缩减查找分享内容的时间,提高分享效率。
作为一种可选的方案,响应访问请求向第二应用中使用第二账号的客户端分享第一账号所直播的目标流数据的播放过程包括:
S1,获取访问请求的请求时间;
S2,获取与请求时间相匹配的进度指示信息,其中,进度指示信息用于指示目标流数据的播放进度;
S3,向第二应用中使用第二账号的客户端分享与进度指示信息相匹配的目标流数据。
可选地,在本实施例中,向第二应用中使用第二账号的客户端分享与进度指示信息相匹配的目标流数据包括:
1)在进度指示信息指示目标流数据未开始播放的情况下,向第二应用中使用第二账号的客户端发送第一提示信息,其中,第一提示信息用于提示是否预约播放目标流数据;或者
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息指示目标流数据未开始播放的情况下,向第二应用中的第二账号发送第一提示信息,如图6所示,显示包含“预约”按钮的界面,以提示第二账号确认是否提前预约播放该目标流数据。
2)在进度指示信息指示目标流数据已开始、但未完成播放的情况下,向第二应用中使用第二账号的客户端发送第二提示信息,其中,第二提示信息用于提示从目标流数据的当前播放画面开始播放;或者
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息 指示目标流数据已开始、但未完成播放的情况下,向第二应用中的第二账号发送第二提示信息,以提示第二账号从目标流数据的当前播放画面开始播放,并进入该当前播放画面播放该目标流数据。
3)在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中使用第二账号的客户端发送第三提示信息,其中,第三提示信息用于提示目标流数据已完成播放。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中的第二账号发送第三提示信息,如图7所示,以提示第二账号目标流数据已完成播放,例如“您请求的直播已结束…”。
通过本申请提供的实施例,通过向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据,以使得第二应用中的第二账号可以同步目标流数据的播放工程,实现分享同步化的效果。
作为一种可选的方案,在向第二应用中使用第二账号的客户端发送第一提示信息之后,还包括:
S1,在第二账号根据第一提示信息确认预约播放目标流数据的情况下,在距离目标流数据开始播放之前的预定时刻,通过第二应用的第三账号发送第四提示信息,其中,第四提示信息用于提示目标流数据开始播放的时间,第三账号与第二账号为关联账号。
需要说明的是,在本实施例中,上述第二账号可以但不限于关注第三账号,例如,第三账号为第一应用在第二应用中申请的公众账号,而第二账号为第二应用中的个人账号,其中,该第二账号关注了第三账号,以便于获取第三账号推送的消息。
可选地,在本实施例中,在第二账号根据第一提示信息确认预约播放目标流数据的情况下,例如,点击了“预约”按钮,则在距离目标流数据 开始播放之前的预定时刻,例如,距离开播前5分钟,通过第二应用(以社交应用app2为例)的第三账号发送第四提示信息,以提示第二账号上述预约的直播即将开始。
通过本申请提供的实施例,通过及时提示第二账号,上述目标流数据开始播放的时间,以使得第二账号可以及时获取所预约的播放信息,避免遗漏或错过所预约的目标流数据,保证分享的准确性和有效性。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于可选实施例,所涉及的动作和模块并不一定是本申请所必须的。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例的方法。
根据本申请实施例的又一方面,还提供了一种用于实施上述数据分享方法的数据分享装置,应用于终端侧,如图8所示,该装置包括:
1)第一获取单元802,设置为获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
2)第二获取单元804,设置为响应直播发起指令,通过第一应用的服 务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
3)生成单元806,设置为利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;
4)分享单元808,设置为将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。
可选地,在本实施例中,上述数据分享装置可以但不限于应用于对直播过程中的目标流数据进行分享的过程中,例如,应用于直播应用中,实现对直播流数据进行高效分享。需要说明的是,在本实施例中,上述数据分享方法也可以但不限于应用于对其他平台中进行数据分享的过程中,例如,还可以应用于视频播放应用中,对上述应用中的播放资源进行分享,上述仅是一种示例,本实施例中在此不做任何限定。
应当说明的是,在本实施例中,上述第一应用包括但不限于直播应用,也可以包括但不限于用于直播的web网页或其他具有媒体播放功能的应用。第二应用包括但不限于社交应用、网页论坛等具备社交功能或即时通信的应用。还需要说明的是,第二应用与第一应用可以但不限于为关联应用,如第二应用为第一应用提供授权接口,以实现利用第二应用中的社交范围来分享第一应用中的消息或其他内容,从而达到扩大数据分享范围的目的,在此,本申请不做任何限定。
需要说明的是,在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的目标流数据的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账户利用该邀请卡同步分享第一账号直播目标流数据的过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中, 上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
可选地,在本实施例中,利用直播发起指令中携带的直播控制信息,及从第一应用的服务器获取的用于标识目标流数据的图像码,来生成与目标流数据匹配的邀请卡,通过分享该邀请卡,以实现将直播中的目标流数据分享给第二应用中的关联账号,其中,该邀请卡可以包括但不限于以下至少一种格式信息:文字、图片、音频、动态图片(gif)或短视频,从而使用户可以通过该邀请卡可以直观地观看第一账号所要直播内容,对此在本实施例中不做任何限定。
可选地,在本实施例中,上述目标流数据可以但不限于用于指示在主播账号(也就是第一账号)发起执行直播发起操作之后,进入直播过程中所传输的媒体流数据。其中,与第一账号所要直播的目标流数据相匹配的直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。其中,上述摘要指示信息可以包括但不限于以下至少之一:直播时间段、主播标识(ID)、直播内容简介等等。上述内容仅是一种示例,本实施例中,对此不做任何限定。
需要说明的是,在第一应用的客户端获取到直播发起指令之前,可以但不限于在第一应用的客户端获取上述第一账号所直播的目标流数据的标题、封面。将上述第一账号所直播的目标流数据的标题、封面发送给第一应用的服务器,以发起用于请求直播上述目标流数据的直播请求。
可选地,在本实施例中,第一应用的客户端在获取到直播发起指令后,向第一应用的服务器发送直播请求,第一应用的服务器为所要直播的目标流数据生成唯一的数据标识,并将该数据标识发送给第二应用的服务器, 以使第二应用的服务器根据数据标识生成图像码;然后,接收第二应用的服务器根据该数据标识生成的图像码。需要说明的是,第二应用的服务器根据与目标流数据匹配的数据标识生成图像码,以利用该图像码生成用于获取目标流数据的邀请卡。
可选地,在本实施例中,上述图像码可以包括但不限于二维码、三维码等,以及其他易于被应用识别的图像码。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,将邀请卡分享至第二应用进行显示可以包括但不限于:获取第一应用的客户端对所生成的邀请卡执行分享操作所生成的分享指令,响应该分享指令,将该邀请卡通过第一应用的服务器,发送至第二应用的服务器,然后,将邀请卡分享至第二应用进行显示。以使得第二应用中的第二账号通过客户端对邀请卡执行操作,如对邀请卡中的图像码进行识别操作,实现对邀请卡执行访问,进而实现对与邀请卡匹配的目标流数据进行共享播放。
可选地,在本实施例中,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡包括但不限于:第一应用的客户端可以但不限于根据获取到的配置指令所指示的邀请卡的显示样式,来布局与目标流数据匹配的直播控制信息及图像码,从而达到生成邀请卡的目的。
具体结合图3所示进行说明,以发起直播的第一应用的客户端为例进行说明,如图3所示步骤S302-S328,第一应用的客户端302获取第一账号执行直播发起操作所生成的直播发起指令,并根据该直播发起指令向第一应用的服务器304发送直播请求,第一应用的服务器304随机配置一个用于唯一标识该直播请求所要直播的目标数据的数据标识ID,并将该数据标识ID发送给第二应用的服务器306,以使第二应用的服务器306可以根据该数据标识生成与目标流数据匹配的图像码。第一应用的客户端302通过第一应用的服务器304接收第二应用的服务器306发送的图像码,及与当前直播相关的直播信息,并根据上述获取到的内容生成与目标流数 据相匹配的邀请卡。在获取到第一客户端对邀请卡执行分享操作的分享指令后,将该邀请卡发送至第一应用的服务器304,第一应用的服务器304将建立该邀请卡与目标流数据的映射关系,并将该邀请卡通过第二应用的服务器306分享至第二应用中使用第二账号的客户端308。第二应用中使用第二账号的客户端308将显示该邀请卡,并获取对该邀请卡执行访问操作的访问请求,然后将该访问请求通过第二应用的服务器306发送至第一应用的服务器304,以使第一应用的服务器304可以将上述所要直播的目标流数据分享给第二应用中使用第二账号的客户端308。
通过本申请提供的实施例,在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的目标流数据的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账户利用该邀请卡同步分享第一账号直播目标流数据的过程。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
作为一种可选的方案,第二获取单元804包括:
1)接收模块,设置为通过第一应用的服务器接收第二应用的服务器生成的图像码,其中,图像码为第二应用的服务器根据第一应用的服务器所发送的与目标流数据相匹配的数据标识而生成。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在使用第一账号 的主播点击发起直播的直播按钮生成直播发起指令后,将向直播应用app1的后台服务器发送直播请求,直播应用app1的后台服务器在接收到上述直播请求后,将为该主播发起的直播分配一个唯一的数据标识ID,将该ID发送至社交应用app2的服务器,以使社交应用app2生成一个与该数据标识ID匹配的场景图像码,例如二维码,并将该场景图像码发送给直播应用app1,以使直播应用app1根据该直播的直播控制信息(也称直播信息)以及场景图像码组合生成一个与本次直播匹配的邀请卡。
通过本申请提供的实施例,在第二应用的服务器中,根据第一应用的服务器所发送的与目标流数据相匹配的数据标识,来生成与目标流数据匹配的图像码,以利用该图像码得到用于邀请关联账号播放目标流数据的邀请卡,从而简化目标流数据的分享操作,提高数据分享效率。
作为一种可选的方案,分享单元808包括:
1)第一获取模块,设置为获取在第一应用的客户端对邀请卡执行分享操作所生成的分享指令;
2)发送模块,设置为响应分享指令将邀请卡发送至第一应用的服务器,以使第一应用的服务器通过第二应用的服务器,将邀请卡分享至第二应用中使用第二账号的客户端进行显示,其中,第一应用的服务器将存储邀请卡与目标流数据之间的映射关系。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在直播应用app1中生成邀请卡之后,获取使用第一账号的主播点击发起分享按钮生成的分享指令,并响应该分享指令将邀请卡发送至直播应用app1的后台服务器,以使直播应用app1的后台服务器通过社交应用app2的后台服务器,将上述邀请卡分享至社交应用app2进行显示,以邀请社交应用app2中关注第一账号的第二账号通过识别邀请卡上的图像码来进入目标流数据的播放界面,以播放该目标流数据,实现数据的分享。
需要说明的是,直播应用app1的后台服务器在接收到邀请卡之后,将存储邀请卡与目标流数据之间的映射关系。从而实现在接收到第二应用中的第二账号通过识别图像码所生成的访问请求后,将与包含该图像码的邀请卡对应的目标流数据推送给第二应用中的第二账号。
通过本申请提供的实施例,获取在第一应用的客户端对邀请卡执行分享操作所生成的分享指令,响应分享指令将邀请卡发送至第一应用的服务器,以使第一应用的服务器通过第二应用的服务器将邀请卡分享至第二应用的客户度进行显示,从而实现利用第二应用的社交范围达到对目标流数据的分享目的,此外,将邀请卡显示在第二应用中使用第二账号的客户端中,还将达到直观展示所要直播的目标流数据的相关内容的目的,而无需再通过跳转链接获取。
作为一种可选的方案,生成单元806包括:
1)第二获取模块,设置为获取配置指令,其中,配置指令用于配置邀请卡的显示样式;
2)生成模块,设置为按照显示样式布局直播控制信息及图像码,以生成邀请卡。
可选地,在本实施例中,上述直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,例如,如图4所示,假设本次所要直播的目标流数据的直播控制信息包括:主题、封面、摘要指示信息等,其中,摘要指示信息包括:直播时间及发起直播的主播标识(例如,标识A),进一步,假设图像码为二维码。直播应用app1可以先获取配置指令,该配置指令包含用于配置邀请卡的显示样式,根据该显示样式对上述直播控制信息以及图像码进行布局排版,以生成对应的邀 请卡,如图4所示。
通过本申请提供的实施例,根据配置指令中的显示样式对直播控制信息以及图像码进行布局排版生成邀请卡,能够对直播内容进行充分的展示,以提高所要分享的数据的关注度,提升数据的分享率,从而达到使更多的用户来分享上述直播的目标流数据。
根据本申请实施例的又一方面,还提供了一种用于实施上述数据分享方法的数据分享装置,应用于服务器侧,如图9所示,该装置包括:
1)第一获取单元902,设置为获取第一应用中使用第一账号的客户端发送的直播请求,其中,所述直播请求中携带有与所述第一账号所要直播的目标流数据相匹配的直播控制信息;
2)第二获取单元904,设置为响应所述直播请求获取图像码,其中,所述图像码用于标识所述第一账号所要直播的所述目标流数据;
3)第一发送单元906,设置为将所述图像码发送至所述第一应用中使用所述第一账号的客户端,以生成与所述目标流数据匹配的邀请卡;
4)第三获取单元908,设置为获取将所述邀请卡分享至第二应用的分享请求,其中,所述分享请求中携带有所述邀请卡及所述第二应用的应用标识;
5)分享单元910,设置为获取所述第二应用中的第二账号对所述邀请卡执行访问操作所生成的访问请求,并响应所述访问请求向所述第二应用中使用所述第二账号的客户端分享所述第一账号所直播的所述目标流数据的播放过程。
可选地,在本实施例中,上述数据分享方法可以但不限于应用于对直播过程中的目标流数据进行分享的过程中,例如,应用于直播应用的服务器中,实现对直播流数据进行高效分享。需要说明的是,在本实施例中, 上述数据分享方法也可以但不限于应用于对其他平台的服务器中进行数据分享的过程中,例如,还可以应用于视频播放应用的服务器中,对上述应用的服务器中的播放资源进行分享,上述仅是一种示例,本实施例中在此不做任何限定。
应当说明的是,在本实施例中,上述第一应用包括但不限于直播应用,也可以包括但不限于用于直播的web网页或其他具有媒体播放功能的应用。第二应用包括但不限于社交应用、网页论坛等具备社交功能或即时通信的应用。还需要说明的是,第二应用与第一应用可以但不限于为关联应用,如第二应用为第一应用提供授权接口,以实现利用第二应用中的社交范围来分享第一应用中的消息或其他内容,从而达到扩大数据分享范围的目的,在此,本申请不做任何限定。
需要说明的是,在第一应用的服务器获取使用第一账号的第一应用的客户端发送的直播请求之后,响应该直播请求获取用于标识第一账号所要直播的目标流数据的图像码,然后,将上述图像码发送至第一应用的客户端,以使第一应用的客户端生成与目标流数据匹配的邀请卡。进一步,第一应用的服务器将获取将上述邀请卡分享至第二应用的分享请求,其中,分享请求中携带邀请卡及第二应用的应用标识,第二应用与第一应用为关联应用;然后,获取第二应用中的第二账号对该邀请卡执行访问操作所生成的请求,并响应该访问请求向第二应用分享第一账号所直播的所述目标流数据。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
可选地,在本实施例中,利用直播发起指令中携带的直播控制信息, 及从第一应用的服务器获取的用于标识目标流数据的图像码,来生成与目标流数据匹配的邀请卡,通过分享该邀请卡,以实现将直播中的目标流数据分享给第二应用中的关联账号,其中,该邀请卡可以包括但不限于以下至少一种格式信息:文字、图片、音频、动态图片(gif)或短视频,从而使用户可以通过该邀请卡可以直观地观看第一账号所要直播内容,对此在本实施例中不做任何限定。
可选地,在本实施例中,上述目标流数据可以但不限于用于指示在主播账号(也就是第一账号)发起执行直播发起操作之后,进入直播过程中所传输的媒体流数据。其中,与第一账号所要直播的目标流数据相匹配的直播控制信息中可以包括但不限于以下至少之一:目标流数据的标题、目标流数据的直播封面图片、及目标流数据的摘要指示信息。其中,上述摘要指示信息可以包括但不限于以下至少之一:直播时间段、主播标识(ID)、直播内容简介等等。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,第一应用的客户端在获取到直播发起指令后,向第一应用的服务器发送直播请求,第一应用的服务器为所要直播的目标流数据生成唯一的数据标识,并将该数据标识发送给第二应用的服务器,以使第二应用的服务器根据数据标识生成图像码;然后,接收第二应用的服务器根据该数据标识生成的图像码。需要说明的是,第二应用的服务器根据与目标流数据匹配的数据标识生成图像码,以利用该图像码生成用于获取目标流数据的邀请卡。
可选地,在本实施例中,上述图像码可以包括但不限于二维码、三维码等,以及其他易于被应用识别的图像码。上述内容仅是一种示例,本实施例中,对此不做任何限定。
可选地,在本实施例中,将邀请卡分享至第二应用进行显示可以包括但不限于:获取第一应用的客户端对所生成的邀请卡执行分享操作所生成的分享指令,响应该分享指令,将该邀请卡通过第一应用的服务器,发送 至第二应用的服务器,然后,将邀请卡分享至第二应用进行显示。以使得第二应用中的第二账号通过客户端对邀请卡执行操作,如对邀请卡中的图像码进行识别操作,实现对邀请卡执行访问,进而实现对与邀请卡匹配的目标流数据进行共享播放。
可选地,在本实施例中,第一应用的服务器可以但不限于获取访问请求的请求时间;获取与请求时间相匹配的进度指示信息,其中,进度指示信息用于指示目标流数据的播放进度;向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据。
可选地,在本实施例中,向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据可以包括但不限于:
1)在进度指示信息指示目标流数据未开始播放的情况下,向第二应用中的第二账号发送第一提示信息,其中,第一提示信息用于提示是否预约播放目标流数据;
2)在进度指示信息指示目标流数据已开始、但未完成播放的情况下,向第二应用中的第二账号发送第二提示信息,其中,第二提示信息用于提示从目标流数据的当前播放画面开始播放;
3)在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中的第二账号发送第三提示信息,其中,第三提示信息用于提示目标流数据已完成播放。
也就是说,在本实施例中,可以根据直播的目标流数据的播放进度,向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据。例如,以开始播放,但未完成播放为例,可以使第二账号直接从进度指示信息所指示的进度对应的播放画面开始播放;又例如,以未开始播放为例,可以提示第二账号,第一账号所要直播的目标流数据还未开始播放,是否预约播放。上述仅是一种示例,本实施例中对此不做任何限定。
具体结合图3所示进行说明,以发起直播的第一应用的客户端为例进 行说明,如图3所示步骤S302-S328,第一应用的客户端302获取第一账号执行直播发起操作所生成的直播发起指令,并根据该直播发起指令向第一应用的服务器304发送直播请求,第一应用的服务器304随机配置一个用于唯一标识该直播请求所要直播的目标数据的数据标识ID,并将该数据标识ID发送给第二应用的服务器306,以使第二应用的服务器306可以根据该数据标识生成与目标流数据匹配的图像码。第一应用的客户端302通过第一应用的服务器304接收第二应用的服务器306发送的图像码,及与当前直播相关的直播信息,并根据上述获取到的内容生成与目标流数据相匹配的邀请卡。在获取到第一客户端对邀请卡执行分享操作的分享指令后,将该邀请卡发送至第一应用的服务器304,第一应用的服务器304将建立该邀请卡与目标流数据的映射关系,并将该邀请卡通过第二应用的服务器306分享至第二应用中使用第二账号的客户端308。第二应用中使用第二账号的客户端308将显示该邀请卡,并获取对该邀请卡执行访问操作的访问请求,然后将该访问请求通过第二应用的服务器306发送至第一应用的服务器304,以使第一应用的服务器304可以将上述所要直播的目标流数据分享给第二应用中使用第二账号的客户端308。
通过本申请提供的实施例,在第一应用的服务器获取使用第一账号的第一应用的客户端发送的直播请求之后,响应该直播请求获取用于标识第一账号所要直播的目标流数据的图像码,然后,将上述图像码发送至第一应用的客户端,以使第一应用的客户端生成与目标流数据匹配的邀请卡。进一步,第一应用的服务器将获取将上述邀请卡分享至第二应用的分享请求,其中,分享请求中携带邀请卡及第二应用的应用标识,第二应用与第一应用为关联应用;然后,获取第二应用中的第二账号对该邀请卡执行访问操作所生成的请求,并响应该访问请求向第二应用分享第一账号所直播的所述目标流数据。从而实现通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据,其中,上述邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操 作步骤,而无需再通过点击访问链接进行跳转,从而缩减了分享过程中的等待时间,以达到提高数据分享效率的效果,进而克服了相关技术中存在的数据分享效率较低的问题。
作为一种可选的方案,第二获取单元904包括:
1)第一生成模块,设置为生成与目标流数据相匹配的数据标识;
2)第一发送模块,设置为将数据标识发送给第二应用的服务器,以使第二应用的服务器根据数据标识生成图像码;
3)接收模块,设置为接收第二应用的服务器发送的图像码。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在使用第一账号的主播点击发起直播的直播按钮生成直播发起指令后,将向直播应用app1的后台服务器发送直播请求,直播应用app1的后台服务器在接收到上述直播请求后,将为该主播发起的直播分配一个唯一的数据标识ID,将该ID发送至社交应用app2的服务器,以使社交应用app2生成一个与该数据标识ID匹配的场景图像码,例如二维码,并将该场景图像码发送给直播应用app1,以使直播应用app1根据该直播的直播控制信息(也称直播信息)以及场景图像码组合生成一个与本次直播匹配的邀请卡。
通过本申请提供的实施例,在第一应用的服务器生成与目标流数据相匹配的数据标识后,将数据标识发送给第二应用的服务器,以使第二应用的服务器根据第一应用的服务器所发送的与目标流数据相匹配的数据标识,来生成与目标流数据匹配的图像码,从而实现利用该图像码得到用于邀请关联账号播放目标流数据的邀请卡,达到简化目标流数据的分享操作,提高数据分享效率的效果。
作为一种可选的方案,还包括:
1)存储单元,设置为在获取将邀请卡分享至第二应用的分享请求之后,存储分享请求中所携带的邀请卡与目标流数据之间的映射关系;
2)第二发送单元,设置为将分享请求发送至第二应用的服务器。
可选地,在本实施例中,分享单元包括:第一获取模块,设置为获取第二应用中的第二账号发送的访问请求,其中,访问请求为第二应用中的第二账号通过识别邀请卡中的图像码后生成的请求。上述装置还包括:第四获取单元,设置为在获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求之后,根据映射关系获取与访问请求所请求访问的邀请卡匹配的目标流数据。也就是说,第二应用中的第二账号可以通过扫描识别图像码,以生成向第一应用的服务器发送的访问请求。第一应用的服务器在接收到上述访问请求之后,可以根据映射关系获取与访问请求所请求访问的包含上述图像码的邀请卡相匹配的目标流数据,并将该目标流数据分享给第二应用中使用第二账号的客户端。
通过本申请提供的实施例,通过在第一应用的服务器存储邀请卡与目标流数据之间的映射关系,以便于在接收到第二应用中的第二账号发送的访问请求后,可以利用该映射关系快速获取对应的目标流数据进行分享,以缩减查找分享内容的时间,提高分享效率。
可选地,在本实施例中,分享单元910包括:
1)第二获取模块,设置为获取访问请求的请求时间;
2)第三获取模块,设置为获取与请求时间相匹配的进度指示信息,其中,进度指示信息用于指示目标流数据的播放进度;
3)分享模块,设置为向第二应用中使用第二账号的客户端分享与进度指示信息相匹配的目标流数据。
可选地,在本实施例中,分享模块包括:
(1)第一提示子模块,设置为在进度指示信息指示目标流数据未开始播放的情况下,向第二应用中使用第二账号的客户端发送第一提示信息,其中,第一提示信息用于提示是否预约播放目标流数据;或者
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息指示目标流数据未开始播放的情况下,向第二应用中的第二账号发送第一提示信息,如图6所示,显示包含“预约”按钮的界面,以提示第二账号确认是否提前预约播放该目标流数据。
(2)第二提示子模块,设置为在进度指示信息指示目标流数据已开始、但未完成播放的情况下,向第二应用中使用第二账号的客户端发送第二提示信息,其中,第二提示信息用于提示从目标流数据的当前播放画面开始播放;或者
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息指示目标流数据已开始、但未完成播放的情况下,向第二应用中的第二账号发送第二提示信息,以提示第二账号从目标流数据的当前播放画面开始播放,并进入该当前播放画面播放该目标流数据。
(3)第三提示子模块,设置为在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中使用第二账号的客户端发送第三提示信息,其中,第三提示信息用于提示目标流数据已完成播放。
具体结合以下示例进行说明,假设第一应用以直播应用app1为例,第二应用以社交应用app2为例进行说明。在本示例中,在进度指示信息指示目标流数据已完成播放的情况下,向第二应用中的第二账号发送第三提示信息,如图7所示,以提示第二账号目标流数据已完成播放,例如“您请求的直播已结束…”。
通过本申请提供的实施例,通过向第二应用中的第二账号分享与进度指示信息相匹配的目标流数据,以使得第二应用中的第二账号可以同步目标流数据的播放工程,实现分享同步化的效果。
作为一种可选的方案,还包括:
1)第二发送模块,设置为在向第二应用中的第二账号发送第一提示信息之后,在第二账号根据第一提示信息确认预约播放目标流数据的情况下,在距离目标流数据开始播放之前的预定时刻,通过第二应用的第三账号发送第四提示信息,其中,第四提示信息用于提示目标流数据开始播放的时间,第三账号与第二账号为关联账号。
需要说明的是,在本实施例中,上述第二账号可以但不限于关注第三账号,例如,第三账号为第一应用在第二应用中申请的公众账号,而第二账号为第二应用中的个人账号,其中,该第二账号关注了第三账号,以便于获取第三账号推送的消息。
可选地,在本实施例中,在第二账号根据第一提示信息确认预约播放目标流数据的情况下,例如,点击了“预约”按钮,则在距离目标流数据开始播放之前的预定时刻,例如,距离开播前5分钟,通过第二应用(以社交应用app2为例)的第三账号发送第四提示信息,以提示第二账号上述预约的直播即将开始。
通过本申请提供的实施例,通过及时提示第二账号,上述目标流数据开始播放的时间,以使得第二账号可以及时获取所预约的播放信息,避免遗漏或错过所预约的目标流数据,保证分享的准确性和有效性。
根据本申请实施例的又一方面,还提供了一种电子装置,其中该电子装置包括:存储器和处理器,存储器存储有计算机程序,处理器被设置为通过计算机程序执行上述的数据分享方法。例如,电子装置可以为用户实现上述数据分享方法的数据分享场景的数据分享终端。作为一种可选的实施方式,如图10所示,该数据分享终端包括:
1)通讯接口1002,设置为获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;还设置为响应直播 发起指令,通过第一应用的服务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
2)处理器1004,与通讯接口1002连接,设置为利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;还设置为将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。
3)存储器1006,与通讯接口1002及处理器1004连接,设置为存储上述邀请卡及上述直播控制信息。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S2,响应直播发起指令,通过第一应用的服务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S3,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;
S4,将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。
可选地,本领域普通技术人员可以理解,图10所示的结构仅为示意,数据分享终端也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图10其并不对上述数据分享终端的结构造成限定。例如,电子装置还可包括比图10中所示更多或者更少的组件(如显示装置等),或者具有与图10所示不同的配置。
其中,存储器1006可用于存储软件程序以及模块,如本发明实施例 中的数据分享方法对应的程序指令/模块,处理器1004通过运行存储在存储器1006内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的数据分享方法。存储器1006可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1006可进一步包括相对于处理器1004远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
其中,具体地,存储器1006用于存储目标流数据与直播控制信息及生成的邀请卡等内容。
根据本申请实施例的又一方面,还提供了一种电子装置,其中该电子装置包括:存储器和处理器,存储器存储有计算机程序,处理器被设置为通过计算机程序执行上述的数据分享方法。例如,电子装置可以为用户实现上述数据分享方法的数据分享场景的数据分享服务器。作为一种可选的实施方式,如图11所示,该数据分享服务器包括:
1)通讯接口1102,设置为获取第一应用中使用第一账号的客户端发送的直播请求,其中,直播请求中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;还设置为响应直播请求获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;还设置为将图像码发送至第一应用中使用第一账号的客户端,以生成与目标流数据匹配的邀请卡;还设置为获取将邀请卡分享至第二应用的分享请求,其中,分享请求中携带有邀请卡及第二应用的应用标识;还设置为获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求;
2)处理器1104,与通讯接口1102连接,设置为响应访问请求向第二应用中使用第二账号的客户端分享第一账号所直播的目标流数据的播放过程;
3)存储器1106,与通讯接口1102及处理器1104连接,设置为存储上述邀请卡及目标流数据。
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:
S1,获取第一应用中使用第一账号的客户端发送的直播请求,其中,直播请求中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S2,响应直播请求获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S3,将图像码发送至第一应用中使用第一账号的客户端,以生成与目标流数据匹配的邀请卡;
S4,获取将邀请卡分享至第二应用的分享请求,其中,分享请求中携带有邀请卡及第二应用的应用标识;
S5,获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求,并响应访问请求向第二应用中使用第二账号的客户端分享第一账号所直播的目标流数据的播放过程。
可选地,本领域普通技术人员可以理解,图11所示的结构仅为示意,数据分享服务器也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌上电脑以及移动互联网设备(Mobile Internet Devices,MID)、PAD等终端设备。图11其并不对上述数据分享服务器的结构造成限定。例如,数据分享服务器还可包括比图11中所示更多或者更少的组件(如网络接口等),或者具有与图11所示不同的配置。
其中,存储器1106可用于存储软件程序以及模块,如本发明实施例中的数据分享方法与装置对应的程序指令/模块,处理器1104通过运行存储在存储器1106内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的数据分享方法。存储器1106可包括高速随机存储 器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器1106可进一步包括相对于处理器1104远程设置的存储器,这些远程存储器可以通过网络连接至终端。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
其中,具体地,存储器1106用于存储所要直播的目标流数据与生成的邀请卡等内容。
可选地,本实施例中的具体示例可以参考上述实施例1和实施例2中所描述的示例,本实施例在此不再赘述。
根据本申请实施例的又一方面,还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以位于网络中的多个网络设备中的至少一个网络设备。
可选地,在本实施例中,存储介质被设置为存储用于执行以下步骤的程序代码:
S1,获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,直播发起指令中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S2,响应直播发起指令,通过第一应用的服务器获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S3,利用图像码及直播控制信息生成与目标流数据匹配的邀请卡;
S4,将邀请卡分享至第二应用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,获取第一应用中使用第一账号的客户端发送的直播请求,其中, 直播请求中携带有与第一账号所要直播的目标流数据相匹配的直播控制信息;
S2,响应直播请求获取图像码,其中,图像码用于标识第一账号所要直播的目标流数据;
S3,将图像码发送至第一应用中使用第一账号的客户端,以生成与目标流数据匹配的邀请卡;
S4,获取将邀请卡分享至第二应用的分享请求,其中,分享请求中携带有邀请卡及第二应用的应用标识;
S5,获取第二应用中的第二账号对邀请卡执行访问操作所生成的访问请求,并响应访问请求向第二应用中使用第二账号的客户端分享第一账号所直播的目标流数据的播放过程。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的具体示例可以参考上述实施例1和实施例2中所描述的示例,本实施例在此不再赘述。
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。
上述实施例中的集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在上述计算机可读取的存储介质中。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在存储介质中,包括若干指令用以使得一台或多台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的客户端,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
以上所述仅是本申请的可选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。
工业实用性
在本申请实施例中,通过在第一应用的客户端中获取第一账号执行直播发起操作所生成的直播发起指令之后,响应该直播发起指令通过第一应用的服务器获取用于标识第一账号所要直播的目标流数据的图像码,然后,利用上述图像码以及直播发起指令中携带的与目标流数据相匹配的直播控制信息,生成与目标流数据匹配的邀请卡,并将该邀请卡分享至第二应 用进行显示,以邀请第二应用中的第二账号利用邀请卡分享第一账号所直播的目标流数据的播放过程,从而实现了通过分享根据图像码及目标流数据的直播控制信息生成的邀请卡,来邀请第二应用中的第二账号来直接观看目标流数据的目的。此外,邀请卡中不仅可以直观地看到与当前直播的目标流数据相关的直播控制信息,而且通过图像码进入直播,将大大简化数据分享的操作步骤,缩减了分享过程中的等待时间,提高了数据分享效率,进而解决了相关技术中存在的数据分享效率低的问题。

Claims (23)

  1. 一种数据分享方法,包括:
    获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,所述直播发起指令中携带有与所述第一账号所要直播的目标流数据相匹配的直播控制信息;
    响应所述直播发起指令,通过所述第一应用的服务器获取图像码,其中,所述图像码用于标识所述第一账号所要直播的所述目标流数据;
    利用所述图像码及所述直播控制信息生成与所述目标流数据匹配的邀请卡;
    将所述邀请卡分享至第二应用进行显示,以邀请所述第二应用中的第二账号利用所述邀请卡分享所述第一账号所直播的所述目标流数据的播放过程。
  2. 根据权利要求1所述的方法,其中,所述响应所述直播发起指令,通过所述第一应用的服务器获取图像码包括:
    通过所述第一应用的服务器接收所述第二应用的服务器生成的所述图像码,其中,所述图像码为所述第二应用的服务器根据所述第一应用的服务器所发送的与所述目标流数据相匹配的数据标识而生成。
  3. 根据权利要求1所述的方法,其中,所述将所述邀请卡分享至第二应用进行显示包括:
    获取在所述第一应用的客户端对所述邀请卡执行分享操作所生成的分享指令;
    响应所述分享指令将所述邀请卡发送至所述第一应用的服务器,以使所述第一应用的服务器通过所述第二应用的服务器,将所述邀请卡分享至所述第二应用中使用所述第二账号的客户端进行显示,其中,所述第一应用的服务器将存储所述邀请卡与所述目标流数据之间的 映射关系。
  4. 根据权利要求1所述的方法,其中,所述利用所述图像码及所述直播控制信息生成与所述目标流数据匹配的邀请卡包括:
    获取配置指令,其中,所述配置指令用于配置所述邀请卡的显示样式;
    按照所述显示样式布局所述直播控制信息及所述图像码,以生成所述邀请卡。
  5. 根据权利要求1至4中任一项所述的方法,其中,所述直播控制信息中包括以下至少之一:所述目标流数据的标题、所述目标流数据的直播封面图片、及所述目标流数据的摘要指示信息。
  6. 根据权利要求1至4中任一项所述的方法,其中,所述图像码包括二维码。
  7. 一种数据分享方法,包括:
    获取第一应用中使用第一账号的客户端发送的直播请求,其中,所述直播请求中携带有与所述第一账号所要直播的目标流数据相匹配的直播控制信息;
    响应所述直播请求获取图像码,其中,所述图像码用于标识所述第一账号所要直播的所述目标流数据;
    将所述图像码发送至所述第一应用中使用所述第一账号的客户端,以生成与所述目标流数据匹配的邀请卡;
    获取将所述邀请卡分享至第二应用的分享请求,其中,所述分享请求中携带有所述邀请卡及所述第二应用的应用标识;
    获取所述第二应用中的第二账号对所述邀请卡执行访问操作所生成的访问请求,并响应所述访问请求向所述第二应用中使用所述第二账号的客户端分享所述第一账号所直播的所述目标流数据的播放过程。
  8. 根据权利要求7所述的方法,其中,所述响应所述直播请求获取图像码包括:
    生成与所述目标流数据相匹配的数据标识;
    将所述数据标识发送给所述第二应用的服务器,以使所述第二应用的服务器根据所述数据标识生成所述图像码;
    接收所述第二应用的服务器发送的所述图像码。
  9. 根据权利要求7所述的方法,其中,在所述获取将所述邀请卡分享至第二应用的分享请求之后,还包括:
    存储所述分享请求中所携带的所述邀请卡与所述目标流数据之间的映射关系;
    将所述分享请求发送至所述第二应用的服务器。
  10. 根据权利要求9所述的方法,其中,
    所述获取所述第二应用中的第二账号对所述邀请卡执行访问操作所生成的访问请求包括:获取所述第二应用中的所述第二账号发送的所述访问请求,其中,所述访问请求为所述第二应用中的所述第二账号通过识别所述邀请卡中的所述图像码后生成的请求;
    在所述获取所述第二应用中的第二账号对所述邀请卡执行访问操作所生成的访问请求之后,还包括:根据所述映射关系获取与所述访问请求所请求访问的所述邀请卡匹配的所述目标流数据。
  11. 根据权利要求7所述的方法,其中,所述响应所述访问请求向所述第二应用中使用所述第二账号的客户端分享所述第一账号所直播的所述目标流数据的播放过程包括:
    获取所述访问请求的请求时间;
    获取与所述请求时间相匹配的进度指示信息,其中,所述进度指示信息用于指示所述目标流数据的播放进度;
    向所述第二应用中使用所述第二账号的客户端分享与所述进度指示信息相匹配的所述目标流数据。
  12. 根据权利要求11所述的方法,其中,所述向所述第二应用中使用所述第二账号的客户端分享与所述进度指示信息相匹配的所述目标流数据包括:
    在所述进度指示信息指示所述目标流数据未开始播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第一提示信息,其中,所述第一提示信息用于提示是否预约播放所述目标流数据;或者
    在所述进度指示信息指示所述目标流数据已开始、但未完成播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第二提示信息,其中,所述第二提示信息用于提示从所述目标流数据的当前播放画面开始播放;或者
    在所述进度指示信息指示所述目标流数据已完成播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第三提示信息,其中,所述第三提示信息用于提示所述目标流数据已完成播放。
  13. 根据权利要求12所述的方法,其中,在向所述第二应用中使用所述第二账号的客户端发送所述第一提示信息之后,还包括:
    在所述第二账号根据所述第一提示信息确认预约播放所述目标流数据的情况下,在距离所述目标流数据开始播放之前的预定时刻,通过所述第二应用的第三账号发送第四提示信息,其中,所述第四提示信息用于提示所述目标流数据开始播放的时间,所述第三账号与所述第二账号为关联账号。
  14. 一种数据分享装置,包括:
    第一获取单元,设置为获取第一账号在第一应用的客户端中执行直播发起操作所生成的直播发起指令,其中,所述直播发起指令中携带有与所述第一账号所要直播的目标流数据相匹配的直播控制信息;
    第二获取单元,设置为响应所述直播发起指令,通过所述第一应用的服务器获取图像码,其中,所述图像码用于标识所述第一账号所要直播的所述目标流数据;
    生成单元,设置为利用所述图像码及所述直播控制信息生成与所述目标流数据匹配的邀请卡;
    分享单元,设置为将所述邀请卡分享至第二应用进行显示,以邀请所述第二应用中的第二账号利用所述邀请卡分享所述第一账号所直播的所述目标流数据的播放过程。
  15. 根据权利要求14所述的装置,其中,所述第二获取单元包括:
    接收模块,设置为通过所述第一应用的服务器接收所述第二应用的服务器生成的所述图像码,其中,所述图像码为所述第二应用的服务器根据所述第一应用的服务器所发送的与所述目标流数据相匹配的数据标识而生成。
  16. 根据权利要求14所述的装置,其中,所述分享单元包括:
    第一获取模块,设置为获取在所述第一应用的客户端对所述邀请卡执行分享操作所生成的分享指令;
    发送模块,设置为响应所述分享指令将所述邀请卡发送至所述第一应用的服务器,以使所述第一应用的服务器通过所述第二应用的服务器,将所述邀请卡分享至所述第二应用中使用所述第二账号的客户端进行显示,其中,所述第一应用的服务器将存储所述邀请卡与所述目标流数据之间的映射关系。
  17. 根据权利要求14所述的装置,其中,所述生成单元包括:
    第二获取模块,设置为获取配置指令,其中,所述配置指令用于配置所述邀请卡的显示样式;
    生成模块,设置为按照所述显示样式布局所述直播控制信息及所述图像码,以生成所述邀请卡。
  18. 一种数据分享装置,包括:
    第一获取单元,设置为获取第一应用中使用第一账号的客户端发送的直播请求,其中,所述直播请求中携带有与所述第一账号所要直 播的目标流数据相匹配的直播控制信息;
    第二获取单元,设置为响应所述直播请求获取图像码,其中,所述图像码用于标识所述第一账号所要直播的所述目标流数据;
    第一发送单元,设置为将所述图像码发送至所述第一应用中使用所述第一账号的客户端,以生成与所述目标流数据匹配的邀请卡;
    第三获取单元,设置为获取将所述邀请卡分享至第二应用的分享请求,其中,所述分享请求中携带有所述邀请卡及所述第二应用的应用标识;
    分享单元,设置为获取所述第二应用中的第二账号对所述邀请卡执行访问操作所生成的访问请求,并响应所述访问请求向所述第二应用中使用所述第二账号的客户端分享所述第一账号所直播的所述目标流数据的播放过程。
  19. 根据权利要求18所述的装置,其中,所述第二获取单元包括:
    第一生成模块,设置为生成与所述目标流数据相匹配的数据标识;
    第一发送模块,设置为将所述数据标识发送给所述第二应用的服务器,以使所述第二应用的服务器根据所述数据标识生成所述图像码;
    接收模块,设置为接收所述第二应用的服务器发送的所述图像码。
  20. 根据权利要求18所述的装置,其中,所述分享单元包括:
    第二获取模块,设置为获取所述访问请求的请求时间;
    第三获取模块,设置为获取与所述请求时间相匹配的进度指示信息,其中,所述进度指示信息用于指示所述目标流数据的播放进度;
    分享模块,设置为向所述第二应用中使用所述第二账号的客户端分享与所述进度指示信息相匹配的所述目标流数据。
  21. 根据权利要求20所述的装置,其中,所述分享模块包括:
    第一提示子模块,设置为在所述进度指示信息指示所述目标流数据未开始播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第一提示信息,其中,所述第一提示信息用于提示是否预约播 放所述目标流数据;或者
    第二提示子模块,设置为在所述进度指示信息指示所述目标流数据已开始、但未完成播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第二提示信息,其中,所述第二提示信息用于提示从所述目标流数据的当前播放画面开始播放;或者
    第三提示子模块,设置为在所述进度指示信息指示所述目标流数据已完成播放的情况下,向所述第二应用中使用所述第二账号的客户端发送第三提示信息,其中,所述第三提示信息用于提示所述目标流数据已完成播放。
  22. 一种存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至6或7至13任一项中所述的方法。
  23. 一种电子装置,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为通过所述计算机程序执行所述权利要求1至6或7至13任一项中所述的方法。
PCT/CN2018/084209 2017-04-25 2018-04-24 数据分享方法及装置、存储介质和电子装置 Ceased WO2018196733A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710279852.2A CN107690085B (zh) 2017-04-25 2017-04-25 数据分享方法及装置
CN201710279852.2 2017-04-25

Publications (1)

Publication Number Publication Date
WO2018196733A1 true WO2018196733A1 (zh) 2018-11-01

Family

ID=61152384

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/084209 Ceased WO2018196733A1 (zh) 2017-04-25 2018-04-24 数据分享方法及装置、存储介质和电子装置

Country Status (2)

Country Link
CN (1) CN107690085B (zh)
WO (1) WO2018196733A1 (zh)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690085B (zh) * 2017-04-25 2019-06-07 腾讯科技(深圳)有限公司 数据分享方法及装置
CN110536178B (zh) * 2018-05-25 2021-08-20 视联动力信息技术股份有限公司 一种直播控制方法和系统
CN110769184A (zh) * 2018-07-27 2020-02-07 视联动力信息技术股份有限公司 一种业务处理的方法和装置
CN111414560B (zh) * 2019-01-04 2024-05-24 腾讯科技(深圳)有限公司 一种分享信息处理方法、装置、以及相关设备及存储介质
CN110245304B (zh) * 2019-04-16 2021-09-03 创新先进技术有限公司 数据分享方法、设备以及计算机可读介质
US10984206B2 (en) 2019-04-16 2021-04-20 Advanced New Technologies Co., Ltd. Data storing and sharing using two-dimensional codes
CN113992619B (zh) * 2020-07-10 2024-03-08 腾讯科技(深圳)有限公司 直播信息的处理方法、装置、设备及计算机可读存储介质
CN112104884A (zh) * 2020-08-31 2020-12-18 广州华多网络科技有限公司 消息推送方法、装置及电子设备
CN114666613B (zh) * 2020-12-22 2024-01-05 华为终端有限公司 一种网络直播方法及电子设备
CN115378901B (zh) * 2022-08-23 2024-03-26 北京达佳互联信息技术有限公司 作品发送方法、显示方法、终端和服务器

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120317592A1 (en) * 2011-06-09 2012-12-13 Samsung Electronics Co., Ltd. Method and system for providing additional information of contents
US20130139191A1 (en) * 2011-11-30 2013-05-30 Verizon Patent And Licensing Inc. Content recommendation for a unified catalog
CN105163193A (zh) * 2015-08-28 2015-12-16 北京奇艺世纪科技有限公司 针对智能电视所播放点播视频的评论信息共享方法及装置
CN106302086A (zh) * 2015-05-19 2017-01-04 努比亚技术有限公司 一种不同移动终端进行内容同步的方法、装置及系统
CN106341408A (zh) * 2016-09-20 2017-01-18 武汉斗鱼网络科技有限公司 一种tv设备局域网内直播分享方法及系统
CN107690085A (zh) * 2017-04-25 2018-02-13 腾讯科技(深圳)有限公司 数据分享方法及装置

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272298B1 (en) * 1998-05-06 2007-09-18 Burst.Com, Inc. System and method for time-shifted program viewing
US9900662B2 (en) * 2011-05-03 2018-02-20 Vmtv, Inc. Social data associated with bookmarks to multimedia content
US8358903B1 (en) * 2011-10-31 2013-01-22 iQuest, Inc. Systems and methods for recording information on a mobile computing device
CN104639985B (zh) * 2013-11-14 2018-04-06 深圳市快播科技有限公司 多媒体播放控制方法及系统
CN104093067B (zh) * 2014-06-23 2017-08-25 广州三星通信技术研究有限公司 在终端中分享、播放视听片段的设备和方法
CN104168517B (zh) * 2014-08-04 2017-10-13 广州华多网络科技有限公司 进入直播频道的方法及系统
CN104703041A (zh) * 2015-03-13 2015-06-10 天脉聚源(北京)传媒科技有限公司 一种分享视频的方法及装置
CN104703039A (zh) * 2015-03-13 2015-06-10 天脉聚源(北京)传媒科技有限公司 一种视频信息获取方法及装置
CN105704502B (zh) * 2016-01-19 2018-11-20 丁一 视频直播交互方法及装置
CN106331881B (zh) * 2016-09-20 2019-08-06 福建星网锐捷通讯股份有限公司 一种基于微信协助管理视频直播的方法及系统
CN106488326A (zh) * 2016-11-28 2017-03-08 暴风集团股份有限公司 根据二维码对视频进行续播的方法及系统

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120317592A1 (en) * 2011-06-09 2012-12-13 Samsung Electronics Co., Ltd. Method and system for providing additional information of contents
US20130139191A1 (en) * 2011-11-30 2013-05-30 Verizon Patent And Licensing Inc. Content recommendation for a unified catalog
CN106302086A (zh) * 2015-05-19 2017-01-04 努比亚技术有限公司 一种不同移动终端进行内容同步的方法、装置及系统
CN105163193A (zh) * 2015-08-28 2015-12-16 北京奇艺世纪科技有限公司 针对智能电视所播放点播视频的评论信息共享方法及装置
CN106341408A (zh) * 2016-09-20 2017-01-18 武汉斗鱼网络科技有限公司 一种tv设备局域网内直播分享方法及系统
CN107690085A (zh) * 2017-04-25 2018-02-13 腾讯科技(深圳)有限公司 数据分享方法及装置

Also Published As

Publication number Publication date
CN107690085B (zh) 2019-06-07
CN107690085A (zh) 2018-02-13

Similar Documents

Publication Publication Date Title
WO2018196733A1 (zh) 数据分享方法及装置、存储介质和电子装置
CN109922377B (zh) 播放控制方法和装置、存储介质及电子装置
CN106658200B (zh) 直播视频分享和获取的方法、装置及其终端设备
CN109525851B (zh) 直播方法、装置和存储介质
US9925465B2 (en) Game accessing method and processing method, server, terminal, and system
CN109224456B (zh) 直播间游戏组队方法、基于直播的游戏交互系统及服务器
CN112714330B (zh) 基于连麦直播的礼物赠送方法、装置及电子设备
US11025967B2 (en) Method for inserting information push into live video streaming, server, and terminal
US20170289090A1 (en) Information processing method, client, server, and computer storage medium
US20170311039A1 (en) Interaction information processing method, client, service platform, and storage medium
US20180255359A1 (en) Method for sharing a captured video clip and electronic device
CN108989609A (zh) 视频封面生成方法、装置、终端设备及计算机存储介质
WO2016202128A1 (zh) 一种消息共享方法及客户端、计算机存储介质
WO2018077214A1 (zh) 信息搜索方法和装置
CN112929678B (zh) 直播方法、装置、服务端及计算机可读存储介质
CN109274979B (zh) 直播间跳转方法、装置、存储介质和服务器
CN107517399B (zh) 一种媒体信息同步的方法以及服务器
CN108429918A (zh) 视频直播的方法和装置
WO2017032268A1 (zh) 实现跨平台交互的方法、终端设备和应用平台
CN114257833B (zh) 直播间推荐和进入方法、系统、装置、设备及存储介质
CN113613029B (zh) 直播画面显示方法、装置和存储介质及电子设备
CN111185012A (zh) 游戏组队方法和装置、电子设备、直播系统及存储介质
WO2023222112A1 (zh) 一种直播方法、装置、设备、介质及程序产品
WO2017101309A1 (zh) 一种推送预约消息的方法及装置
CN105744338B (zh) 一种视频处理方法及其设备

Legal Events

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

Ref document number: 18792007

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18792007

Country of ref document: EP

Kind code of ref document: A1