Normal
I will just implement an API and you can decide if you are happy with it or not What I have for now:GetOnlineVideosSitesThis returns all available sites with their Description and an IdGetOnlineVideosSiteCategoriesThis gives you a list with all available categories and the infomration if these categories have SubCategories + LastUpdate time + DescriptionGetOnlineVideosSubCategoriesThis gives you the subCategories of a categoryGetOnlineVideosCategoryVideosThis will return the Videos in a selected CategoryNormally it is a ClientPlugin but I foreced it into an Serverplugin. How OnlineVideos Work:There is a library called OnlineVideos.dll which provides all the functionallity of OnlineVideos.The ClientPlugins reference this dll and just make the needed Api calls to get the information to present it in the GUI (+ a bit more).I now took this dll and make the same api calls, but from the server side and cache all the sites on the server side instead of the client side. Does that make sense? There are just a few problems:I needed to create my own version of the dll to make it work and there is no Nuget Package yet.Right now you get all available sites. But we can think about a functions like "SetFavorites" and "GetFavorites". The other api calls mentioned above will stay the same So this is up to your needs.I have no idea right now^^ I will probably just return a URL to the Video and the Client has to do the playback.
I will just implement an API and you can decide if you are happy with it or not
What I have for now:
GetOnlineVideosSites
This returns all available sites with their Description and an Id
GetOnlineVideosSiteCategories
This gives you a list with all available categories and the infomration if these categories have SubCategories + LastUpdate time + Description
GetOnlineVideosSubCategories
This gives you the subCategories of a category
GetOnlineVideosCategoryVideos
This will return the Videos in a selected Category
Normally it is a ClientPlugin but I foreced it into an Serverplugin. How OnlineVideos Work:
There is a library called OnlineVideos.dll which provides all the functionallity of OnlineVideos.
The ClientPlugins reference this dll and just make the needed Api calls to get the information to present it in the GUI (+ a bit more).
I now took this dll and make the same api calls, but from the server side and cache all the sites on the server side instead of the client side. Does that make sense? There are just a few problems:
I needed to create my own version of the dll to make it work and there is no Nuget Package yet.
Right now you get all available sites. But we can think about a functions like "SetFavorites" and "GetFavorites". The other api calls mentioned above will stay the same So this is up to your needs.
I have no idea right now^^ I will probably just return a URL to the Video and the Client has to do the playback.