1 /* ------------------------------------------------------------------ 2 * Copyright (C) 1998-2009 PacketVideo 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either 13 * express or implied. 14 * See the License for the specific language governing permissions 15 * and limitations under the License. 16 * ------------------------------------------------------------------- 17 */ 18 #ifndef PVMF_SM_RTSP_UNICAST_CAPANDCONFIG_H 19 #define PVMF_SM_RTSP_UNICAST_CAPANDCONFIG_H 20 /////////////////////////////////////////////////////////////////////////////// 21 // 22 // Capability and config interface related constants and definitions 23 // - based on pv_player_engine.h 24 // 25 /////////////////////////////////////////////////////////////////////////////// 26 struct StreamingManagerKeyStringData 27 { 28 char iString[64]; 29 PvmiKvpType iType; 30 PvmiKvpValueType iValueType; 31 }; 32 // The number of characters to allocate for the key string 33 #define SMCONFIG_KEYSTRING_SIZE 128 34 35 static const StreamingManagerKeyStringData StreamingManagerConfig_BaseKeys[] = 36 { 37 {"delay", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 38 {"jitterBufferNumResize", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 39 {"jitterBufferResizeSize", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 40 {"jitterbuffer-inactivity-duration", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 41 {"user-agent", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_WCHARPTR}, 42 {"keep-alive-interval", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 43 {"keep-alive-during-play", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_BOOL}, 44 {"rtsp-timeout", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 45 {"rebuffering-threshold", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_UINT32}, 46 {"disable-firewall-packets", PVMI_KVPTYPE_VALUE, PVMI_KVPVALTYPE_BOOL} 47 }; 48 49 static const uint StreamingManagerConfig_NumBaseKeys = 50 (sizeof(StreamingManagerConfig_BaseKeys) / 51 sizeof(StreamingManagerKeyStringData)); 52 53 enum BaseKeys_IndexMapType 54 { 55 BASEKEY_DELAY = 0, 56 BASEKEY_JITTERBUFFER_NUMRESIZE, 57 BASEKEY_JITTERBUFFER_RESIZESIZE, 58 BASEKEY_JITTERBUFFER_MAX_INACTIVITY_DURATION, 59 BASEKEY_SESSION_CONTROLLER_USER_AGENT, 60 BASEKEY_SESSION_CONTROLLER_KEEP_ALIVE_INTERVAL, 61 BASEKEY_SESSION_CONTROLLER_KEEP_ALIVE_DURING_PLAY, 62 BASEKEY_SESSION_CONTROLLER_RTSP_TIMEOUT, 63 BASEKEY_REBUFFERING_THRESHOLD, 64 BASEKEY_DISABLE_FIREWALL_PACKETS 65 }; 66 67 typedef struct tagPVMFSMClientParams 68 { 69 OSCL_wHeapString<OsclMemAllocator> _userAgent; 70 OSCL_wHeapString<OsclMemAllocator> _userNetwork; 71 OSCL_wHeapString<OsclMemAllocator> _deviceInfo; 72 } PVMFSMClientParams; 73 74 #endif 75