SERVER, METHOD AND COMPUTER PROGAM
A server for managing streams in a live streaming platform, comprising one or a plurality of processors, wherein the one or plurality of processors execute a machine-readable instruction to perform: receiving a first stream from a user terminal of a user; determining whether the first stream satisfied a first category; and adding the first stream into the first category in response to the first stream matching the first category. According to the embodiments, it is easier to generate and maintain the category of the stream. Moreover, the category of streams may be added, updated, modified or removed dynamically without complicated procedure. Therefore, the quality of streams in the live streaming platform may be improved.
1 . A server for managing streams in a live streaming platform, comprising one or a plurality of processors, wherein the one or plurality of processors execute a machine-readable instruction to perform:
receiving a first stream from a user terminal of a user;
determining whether the first stream satisfied a first category; and
adding the first stream into the first category in response to the first stream matching the first category.
2 . The server according to claim 1 , further comprising:
generating a category link corresponding to the first stream and the first category; and
storing the category link at the first stream.
3 . The server according to claim 2 , wherein:
the category link is a linked list in format and links the first stream to the first category; and
the first category is accessed from the first stream according to the category link.
4 . The server according to claim 2 , further comprising:
updating the first stream via the category link; wherein
updating the first stream includes removing the first stream from the first category and/or adding the first stream to a second category.
5 . The server according to claim 1 , further comprising:
adding the first stream to a third category in response to the first stream not matching to any categories.
6 . The server according to claim 1 , further comprising:
generating a first filter of the first category; and
hooking the first filter with the first stream; wherein
the first filter and the first stream are hooked by long-polling.
7 . The server according to claim 1 , further comprising:
retrieving information of the user in response to receiving the first stream; wherein
the information of the user includes unique key, gender, first live stream time, region, hashtag of the user.
8 . The server according to claim 1 , wherein:
the first stream in the first category includes a parameter of TTL (time to live) identifying a lifespan or lifetime of the first stream in the first category.
9 . A method for managing streams in a live streaming platform, comprising:
receiving a first stream from a user terminal of a user;
determining whether the first stream satisfied a first category; and
adding the first stream into the first category in response to the first stream matching the first category.
10 . A non-transitory computer-readable medium including program instructions, that when executed by one or more processors, cause the one or more processors to execute:
receiving a first stream from a user terminal of a user;
determining whether the first stream satisfied a first category; and
adding the first stream into the first category in response to the first stream matching the first category.