Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
UPnPInternal.cpp File Reference
#include "UPnPInternal.h"
#include "FileItem.h"
#include "ServiceBroker.h"
#include "TextureCache.h"
#include "ThumbLoader.h"
#include "UPnPServer.h"
#include "URL.h"
#include "Util.h"
#include "filesystem/MusicDatabaseDirectory.h"
#include "filesystem/StackDirectory.h"
#include "filesystem/VideoDatabaseDirectory.h"
#include "imagefiles/ImageFileURL.h"
#include "music/MusicFileItemClassify.h"
#include "music/tags/MusicInfoTag.h"
#include "playlists/PlayListFileItemClassify.h"
#include "settings/AdvancedSettings.h"
#include "settings/Settings.h"
#include "settings/SettingsComponent.h"
#include "settings/lib/Setting.h"
#include "utils/Base64.h"
#include "utils/ContentUtils.h"
#include "utils/LangCodeExpander.h"
#include "utils/StringUtils.h"
#include "utils/URIUtils.h"
#include "utils/log.h"
#include "video/VideoFileItemClassify.h"
#include "video/VideoInfoTag.h"
#include <algorithm>
#include <array>
#include <memory>
#include <optional>
#include <string_view>
#include <Platinum/Source/Platinum/Platinum.h>

Classes

struct  UPNP::ResourcePrioritySort
 

Namespaces

namespace  UPNP
 

Functions

EClientQuirks UPNP::GetClientQuirks (const PLT_HttpRequestContext *context)
 
EMediaControllerQuirks UPNP::GetMediaControllerQuirks (const PLT_DeviceData *device)
 
NPT_String UPNP::GetMimeType (const char *filename, const PLT_HttpRequestContext *context)
 
NPT_String UPNP::GetMimeType (const CFileItem &item, const PLT_HttpRequestContext *context)
 
const NPT_String UPNP::GetProtocolInfo (const CFileItem &item, const char *protocol, const PLT_HttpRequestContext *context)
 
NPT_Result UPNP::PopulateObjectFromTag (CMusicInfoTag &tag, PLT_MediaObject &object, NPT_String *file_path, PLT_MediaItemResource *resource, EClientQuirks quirks, UPnPService service)
 
NPT_Result UPNP::PopulateObjectFromTag (CVideoInfoTag &tag, PLT_MediaObject &object, NPT_String *file_path, PLT_MediaItemResource *resource, EClientQuirks quirks, UPnPService service)
 
PLT_MediaObject * UPNP::BuildObject (CFileItem &item, NPT_String &file_path, bool with_count, NPT_Reference< CThumbLoader > &thumb_loader, const PLT_HttpRequestContext *context, CUPnPServer *upnp_server, UPnPService upnp_service)
 
const std::string & UPNP::CorrectAllItemsSortHack (const std::string &item)
 
int UPNP::PopulateTagFromObject (CMusicInfoTag &tag, PLT_MediaObject &object, PLT_MediaItemResource *resource, UPnPService service)
 
int UPNP::PopulateTagFromObject (CVideoInfoTag &tag, PLT_MediaObject &object, PLT_MediaItemResource *resource, UPnPService service)
 
std::shared_ptr< CFileItemUPNP::BuildObject (PLT_MediaObject *entry, UPnPService upnp_service)
 
bool UPNP::GetResource (const PLT_MediaObject *entry, CFileItem &item)
 
std::shared_ptr< CFileItemUPNP::GetFileItem (const NPT_String &uri, const NPT_String &meta)
 
NPT_String UPNP::EncodeObjectId (const std::string &id)
 Provided a given object id, encode it into a safe format to provide to UPnP clients @Note base64 is currently used as the safe format.
 
NPT_String UPNP::DecodeObjectId (const std::string &id)
 Provided a given encoded object id, decode it into a format known by the application @Note base64 is currently used as the expected input format.
 

Variables

constexpr std::array< std::string_view, 9 > UPNP::SupportedSubFormats
 
constexpr NPT_HttpFileRequestHandler_DefaultFileTypeMapEntry UPNP::kodiPlatinumMimeTypeExtensions []