| 1 | package Win32::WindowsMedia::BaseVariables; | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Win32::WindowsMedia::BaseVariables - The control module for Windows Media | ||
| 9 | |||
| 10 | =head1 VERSION | ||
| 11 | |||
| 12 | Version 0.05 | ||
| 13 | |||
| 14 | =cut | ||
| 15 | |||
| 16 | our $VERSION = '0.05'; | ||
| 17 | |||
| 18 | =head1 SYNOPSIS | ||
| 19 | |||
| 20 | use Win32::WindowsMedia::BaseVariables; | ||
| 21 | |||
| 22 | =head1 FUNCTIONS | ||
| 23 | |||
| 24 | =head2 ServerType | ||
| 25 | |||
| 26 | This function returns types and values for possible Windows Media Servers | ||
| 27 | |||
| 28 | The possible values are | ||
| 29 | |||
| 30 | Standard/Server | ||
| 31 | Advanced/Enterprise | ||
| 32 | |||
| 33 | =head2 PublishingPointLimits | ||
| 34 | |||
| 35 | This returns the Publishing Point limit variable names that can be used to set | ||
| 36 | the limits on the publishing point. Provided are the names of the internal references | ||
| 37 | used by Windows Media Services, and those displayed on the Windows Media Services management | ||
| 38 | console. | ||
| 39 | |||
| 40 | Windows Media Services Management variables names | ||
| 41 | |||
| 42 | LimitPlayerConnections | ||
| 43 | LimitOutgoingDistributionBandwidth(kbps) | ||
| 44 | LimitOutgoingDistributionConnections | ||
| 45 | LimitBandwidthPerOutgoingDistributionStream(kbps) | ||
| 46 | LimitAggregatePlayerBandwidth(kbps) | ||
| 47 | LimitBandwidthPerStreamPerPlayer(kbps) | ||
| 48 | LimitFastStartBandwidthPerPlayer(kbps) | ||
| 49 | |||
| 50 | Windows Media Services internal variables names | ||
| 51 | |||
| 52 | ConnectedPlayers | ||
| 53 | OutgoingDistributionBandwidth | ||
| 54 | OutgoingDistributionConnections | ||
| 55 | PerOutgoingDistributionConnectionBandwidth | ||
| 56 | PlayerBandwidth | ||
| 57 | PerPlayerConnectionBandwidth | ||
| 58 | PlayerCacheDeliveryRate* | ||
| 59 | FECPacketSpan* | ||
| 60 | PerPlayerRapidStartBandwidth | ||
| 61 | |||
| 62 | *These variables are not show on the management console and should | ||
| 63 | be changed/set with care. | ||
| 64 | |||
| 65 | The returned hash contains a mapping of external/internal name to internal name. | ||
| 66 | |||
| 67 | =head2 PublishingPointGeneral | ||
| 68 | |||
| 69 | This returns the Publihsing Point general variable names that can be used to set | ||
| 70 | certain properties of the stream. | ||
| 71 | |||
| 72 | Windows Media Services Management variables names | ||
| 73 | |||
| 74 | EnableFastCached | ||
| 75 | EnableStreamSplitting | ||
| 76 | StartPublishingPointWhenFirstClientConnects | ||
| 77 | EnableBroadcastAutoStart | ||
| 78 | EnableAdvancedFastStart | ||
| 79 | |||
| 80 | Windows Media Services internal variables names | ||
| 81 | |||
| 82 | AllowPlayerSideDiskCaching | ||
| 83 | AllowStreamSplitting | ||
| 84 | AllowClientToStartAndStop | ||
| 85 | EnableStartVRootOnServiceStart | ||
| 86 | AllowStartupProfile | ||
| 87 | AllowClientsToConnect | ||
| 88 | MonikerName | ||
| 89 | Name | ||
| 90 | Path | ||
| 91 | Type | ||
| 92 | Status | ||
| 93 | EnableWrapperPath | ||
| 94 | DistributionUserName | ||
| 95 | CacheProxyExpiration | ||
| 96 | IsDistributionPasswordSet | ||
| 97 | AllowStreamSplitting | ||
| 98 | AllowClientToStartAndStop | ||
| 99 | BroadcastStatus | ||
| 100 | UpTime | ||
| 101 | BufferSetting | ||
| 102 | |||
| 103 | The returned hash contains a mapping of external/internal name to internal name. | ||
| 104 | |||
| 105 | =head2 PlayerStatus | ||
| 106 | |||
| 107 | This function returns the possible player conditions | ||
| 108 | |||
| 109 | Disconnected | ||
| 110 | Idle | ||
| 111 | Open | ||
| 112 | Streaming | ||
| 113 | |||
| 114 | =head2 UserAccessSettings | ||
| 115 | |||
| 116 | This function returns the values and states available for users that are configured | ||
| 117 | for access control to the publishing point. | ||
| 118 | |||
| 119 | The possible states are | ||
| 120 | |||
| 121 | ACCESSINIT | ||
| 122 | ReadDeny | ||
| 123 | WriteDeny | ||
| 124 | CreateDeny | ||
| 125 | AllDeny | ||
| 126 | UNKNOWN | ||
| 127 | ReadAllow | ||
| 128 | WriteAllow | ||
| 129 | CreateAllow | ||
| 130 | AllAllow | ||
| 131 | |||
| 132 | =head2 ServerLogCycle | ||
| 133 | |||
| 134 | This function returns the values and states for the automatic log file cycler. | ||
| 135 | |||
| 136 | The possible states are | ||
| 137 | |||
| 138 | None | ||
| 139 | Size | ||
| 140 | Month | ||
| 141 | Week | ||
| 142 | Day | ||
| 143 | Hour | ||
| 144 | |||
| 145 | =head2 PublishingPointType | ||
| 146 | |||
| 147 | This function returns the values and types for a publishing point | ||
| 148 | |||
| 149 | The possible states are | ||
| 150 | |||
| 151 | OnDemand | ||
| 152 | Broadcast | ||
| 153 | CacheProxyOnDemand | ||
| 154 | CacheProxyBroadcast | ||
| 155 | |||
| 156 | =head2 PublishingPointBroadCastStatus | ||
| 157 | |||
| 158 | This function returns the values and states available for a publishing point | ||
| 159 | |||
| 160 | The possible states are | ||
| 161 | |||
| 162 | Stopped | ||
| 163 | Started No Data | ||
| 164 | Started | ||
| 165 | Archiving | ||
| 166 | Change In Progress | ||
| 167 | |||
| 168 | =head2 ActiveStreamType | ||
| 169 | |||
| 170 | This function returns the values and types for a stream | ||
| 171 | |||
| 172 | The possible states are | ||
| 173 | |||
| 174 | Video | ||
| 175 | Audio | ||
| 176 | Other | ||
| 177 | |||
| 178 | =head2 DefaultAvailableSubSystems | ||
| 179 | |||
| 180 | This function returns the names of some of the default sub systems within | ||
| 181 | Windows Media Services. | ||
| 182 | |||
| 183 | WMS IP Address Authorization | ||
| 184 | WMS Anonymous User Authentication | ||
| 185 | WMS Negotiate Authentication | ||
| 186 | WMS Digest Authentication | ||
| 187 | WMS Publishing Points ACL Authorization | ||
| 188 | WMS Client Logging | ||
| 189 | WMS Playlist Transform | ||
| 190 | |||
| 191 | This is not a definitive list and it appears can not be pulled dynamically as | ||
| 192 | they operate at different levels within Windows Media Services. | ||
| 193 | |||
| 194 | =head2 CoreVariableNames | ||
| 195 | |||
| 196 | This function returns the name of the variables at the top level of the server | ||
| 197 | instance. It also returns the variable type, so pointer to the next level down or | ||
| 198 | if it is directly read/writable. | ||
| 199 | |||
| 200 | AllowClientsToConnect | ||
| 201 | Authenticators | ||
| 202 | CacheProxy | ||
| 203 | ControlProtocols | ||
| 204 | CurrentCounters | ||
| 205 | DataSources | ||
| 206 | EventHandlers | ||
| 207 | Limits | ||
| 208 | FileDescriptions | ||
| 209 | MediaParsers | ||
| 210 | MonikerName | ||
| 211 | Name | ||
| 212 | PeakCounters | ||
| 213 | PlaylistParsers | ||
| 214 | Properties | ||
| 215 | PublishingPoints | ||
| 216 | TotalCounters | ||
| 217 | UnicastDataSinks | ||
| 218 | Players | ||
| 219 | Status | ||
| 220 | StartTime | ||
| 221 | OutgoingDistributionConnections | ||
| 222 | CPUUtilization | ||
| 223 | StreamFilters | ||
| 224 | Version | ||
| 225 | DefaultPluginLoadType | ||
| 226 | AvailableIPAddresses | ||
| 227 | RootDirectories | ||
| 228 | DiagnosticEvents | ||
| 229 | EnableReverseProxyMode | ||
| 230 | FileType | ||
| 231 | DefaultPath | ||
| 232 | OSProductType | ||
| 233 | |||
| 234 | =cut | ||
| 235 | |||
| 236 | sub new { | ||
| 237 | |||
| 238 | my $self = {}; | ||
| 239 | bless $self; | ||
| 240 | |||
| 241 | my ( $class , $attr ) =@_; | ||
| 242 | |||
| 243 | while (my($field, $val) = splice(@{$attr}, 0, 2)) | ||
| 244 | { $self->{_GLOBAL}{$field}=$val; } | ||
| 245 | |||
| 246 | $self->{_GLOBAL}{'STATUS'}="OK"; | ||
| 247 | |||
| 248 | return $self; | ||
| 249 | } | ||
| 250 | |||
| 251 | sub Return_Yes_No | ||
| 252 | { | ||
| 253 | my %Yes_No = | ||
| 254 | ( | ||
| 255 | "Yes" => 1, | ||
| 256 | "No" => 0 | ||
| 257 | ); | ||
| 258 | |||
| 259 | return \%Yes_No; | ||
| 260 | } | ||
| 261 | |||
| 262 | sub ServerType | ||
| 263 | { | ||
| 264 | my %ServerType = | ||
| 265 | ( | ||
| 266 | 1 => 'Standard/Server', | ||
| 267 | 2 => 'Advanced/Enterprise' | ||
| 268 | ); | ||
| 269 | return \%ServerType; | ||
| 270 | } | ||
| 271 | |||
| 272 | |||
| 273 | sub PublishingPointGeneral | ||
| 274 | { | ||
| 275 | |||
| 276 | my %publishing_point_general = | ||
| 277 | ( | ||
| 278 | 'AllowClientsToConnect' => 'AllowClientsToConnect', | ||
| 279 | 'MonikerName' => 'MonikerName', | ||
| 280 | 'Name' => 'Name', | ||
| 281 | 'Path' => 'Path', | ||
| 282 | 'Type' => 'WrapperPath', | ||
| 283 | 'Status' => 'Status', | ||
| 284 | 'EnableWrapperPath' => 'EnableWrapperPath', | ||
| 285 | 'DistributionUserName' => 'DistributionUserName', | ||
| 286 | 'CacheProxyExpiration' => 'CacheProxyExpiration', | ||
| 287 | 'IsDistributionPasswordSet' => 'IsDistributionPasswordSet', | ||
| 288 | 'AllowPlayerSideDiskCaching' => 'AllowPlayerSideDiskCaching', | ||
| 289 | 'EnableFEC' => 'EnableFEC', | ||
| 290 | 'AllowStreamSplitting' => 'AllowStreamSplitting', | ||
| 291 | 'AllowClientToStartAndStop' => 'AllowClientToStartAndStop', | ||
| 292 | 'BroadcastStatus' => 'BroadcastStatus', | ||
| 293 | 'UpTime' => 'UpTime', | ||
| 294 | 'BufferSetting' => 'BufferSetting', | ||
| 295 | 'AllowStartupProfile' => 'AllowStartupProfile', | ||
| 296 | 'EnableStartVRootOnServiceStart'=> 'EnableStartVRootOnServiceStart', | ||
| 297 | # mappings from console start here | ||
| 298 | 'EnableFastCache' => 'AllowPlayerSideDiskCaching', | ||
| 299 | 'EnableStreamSplitting' => 'AllowStreamSplitting', | ||
| 300 | 'StartPublishingPointWhenFirstClientConnects' => 'AllowClientToStartAndStop', | ||
| 301 | 'EnableBroadcastAutoStart' => 'EnableStartVRootOnServiceStart', | ||
| 302 | 'EnableAdvancedFastStart' => 'AllowStartupProfile' | ||
| 303 | ); | ||
| 304 | |||
| 305 | return \%publishing_point_general; | ||
| 306 | } | ||
| 307 | |||
| 308 | sub PublishingPointLimits | ||
| 309 | { | ||
| 310 | my %publishing_point_limits = | ||
| 311 | ( | ||
| 312 | 'LimitPlayerConnections' => 'ConnectedPlayers', | ||
| 313 | 'LimitOutgoingDistributionBandwidth(kbps)' => 'OutgoingDistributionBandwidth', | ||
| 314 | 'LimitOutgoingDistributionConnections' => 'OutgoingDistributionConnections', | ||
| 315 | 'LimitBandwidthPerOutgoingDistributionStream(kbps)' => 'PerOutgoingDistributionConnectionBandwidth', | ||
| 316 | 'LimitAggregatePlayerBandwidth(kbps)' => 'PlayerBandwidth', | ||
| 317 | 'LimitBandwidthPerStreamPerPlayer(kbps)' => 'PerPlayerConnectionBandwidth', | ||
| 318 | 'PlayerCacheDeliveryRate' => 'PlayerCacheDeliveryRate', | ||
| 319 | 'FECPacketSpan' => 'FECPacketSpan', | ||
| 320 | 'LimitFastStartBandwidthPerPlayer(kbps)' => 'PerPlayerRapidStartBandwidth', | ||
| 321 | 'ConnectedPlayers' => 'ConnectedPlayers', | ||
| 322 | 'OutgoingDistributionBandwidth' => 'OutgoingDistributionBandwidth', | ||
| 323 | 'OutgoingDistributionConnections' => 'OutgoingDistributionConnections', | ||
| 324 | 'PerOutgoingDistributionConnectionBandwidth' => 'PerOutgoingDistributionConnectionBandwidth', | ||
| 325 | 'PlayerBandwidth' => 'PlayerBandwidth', | ||
| 326 | 'PerPlayerConnectionBandwidth' => 'PerPlayerConnectionBandwidth', | ||
| 327 | 'PlayerCacheDeliveryRate' => 'PlayerCacheDeliveryRate', | ||
| 328 | 'FECPacketSpan' => 'FECPacketSpan', | ||
| 329 | 'PerPlayerRapidStartBandwidth' => 'PerPlayerRapidStartBandwidth' | ||
| 330 | ); | ||
| 331 | |||
| 332 | return \%publishing_point_limits; | ||
| 333 | } | ||
| 334 | |||
| 335 | sub PlayerStatus | ||
| 336 | { | ||
| 337 | my %PlayerStatus = | ||
| 338 | ( | ||
| 339 | 0 => 'Disconnected', | ||
| 340 | 1 => 'Idle', | ||
| 341 | 2 => 'Open', | ||
| 342 | 3 => 'Streaming' | ||
| 343 | ); | ||
| 344 | return \%PlayerStatus; | ||
| 345 | } | ||
| 346 | |||
| 347 | sub UserAccessSettings | ||
| 348 | { | ||
| 349 | my %UserAccessSettings = | ||
| 350 | ( | ||
| 351 | 0 => 'ACCESSINIT', | ||
| 352 | 1 => 'ReadDeny', | ||
| 353 | 2 => 'WriteDeny', | ||
| 354 | 4 => 'CreateDeny', | ||
| 355 | 7 => 'AllDeny', | ||
| 356 | 8 => 'UNKNOWN', | ||
| 357 | 16 => 'ReadAllow', | ||
| 358 | 32 => 'WriteAllow', | ||
| 359 | 64 => 'CreateAllow', | ||
| 360 | 112 => 'AllAllow' | ||
| 361 | ); | ||
| 362 | return \%UserAccessSettings; | ||
| 363 | } | ||
| 364 | |||
| 365 | sub ServerLogType | ||
| 366 | { | ||
| 367 | my %ServerLogType = | ||
| 368 | ( | ||
| 369 | 0 => 'None', | ||
| 370 | 1 => 'Player', | ||
| 371 | 2 => 'Distribution', | ||
| 372 | 4 => 'Local', | ||
| 373 | 8 => 'Remote', | ||
| 374 | 16 => 'Filter' | ||
| 375 | ); | ||
| 376 | return \%ServerLogType; | ||
| 377 | } | ||
| 378 | |||
| 379 | sub ServerLogCycle | ||
| 380 | { | ||
| 381 | my %ServerLogCycle = | ||
| 382 | ( | ||
| 383 | 0 => 'None', | ||
| 384 | 1 => 'Size', | ||
| 385 | 2 => 'Month', | ||
| 386 | 3 => 'Week', | ||
| 387 | 4 => 'Day', | ||
| 388 | 5 => 'Hour' | ||
| 389 | ); | ||
| 390 | |||
| 391 | return \%ServerLogCycle; | ||
| 392 | } | ||
| 393 | |||
| 394 | sub PublishingPointType | ||
| 395 | { | ||
| 396 | my %PublishingPointType = | ||
| 397 | ( | ||
| 398 | 1 => 'OnDemand', | ||
| 399 | 2 => 'Broadcast', | ||
| 400 | 3 => 'CacheProxyOnDemand', | ||
| 401 | 4 => 'CacheProxyBroadcast' | ||
| 402 | ); | ||
| 403 | return \%PublishingPointType; | ||
| 404 | } | ||
| 405 | |||
| 406 | sub PublishingPointBroadCastStatus | ||
| 407 | { | ||
| 408 | my %PublishingPointBroadCastStatus = | ||
| 409 | ( | ||
| 410 | 0 => 'Stopped', | ||
| 411 | 1 => 'Started No Data', | ||
| 412 | 2 => 'Started', | ||
| 413 | 3 => 'Archiving', | ||
| 414 | 4 => 'Change In Progress' | ||
| 415 | ); | ||
| 416 | return \%PublishingPointBroadCastStatus; | ||
| 417 | } | ||
| 418 | |||
| 419 | sub ActiveStreamType | ||
| 420 | { | ||
| 421 | my %StreamType = | ||
| 422 | ( | ||
| 423 | 0 => 'Video', | ||
| 424 | 1 => 'Audio', | ||
| 425 | 2 => 'Other' | ||
| 426 | ); | ||
| 427 | |||
| 428 | return \%StreamType; | ||
| 429 | } | ||
| 430 | |||
| 431 | sub DefaultAvailableEventHandlerSubSystems | ||
| 432 | { | ||
| 433 | my %EventHandlerSubSystems = | ||
| 434 | ( | ||
| 435 | 'WMS Client Logging' => 1, | ||
| 436 | 'WMS NTFS ACL Authorization' => 1, | ||
| 437 | 'WMS WMI Event Handler' => 1, | ||
| 438 | 'WMS IP Address Authorization' => 1, | ||
| 439 | 'WMS Publishing Points ACL Authorization' => 1, | ||
| 440 | 'WMS Playlist Transform' => 1, | ||
| 441 | 'WMS Active Script Event Handler' => 1 | ||
| 442 | ); | ||
| 443 | return \%EventHandlerSubSystems; | ||
| 444 | } | ||
| 445 | |||
| 446 | sub DefaultAvailableAuthenticators | ||
| 447 | { | ||
| 448 | my %AuthenticatorSubSystems = | ||
| 449 | ( | ||
| 450 | 'WMS Anonymous User Authentication' => 1, | ||
| 451 | 'WMS Negotiate Authentication' => 1, | ||
| 452 | 'WMS Digest Authentication' => 1 | ||
| 453 | ); | ||
| 454 | return \%AuthenticatorSubSystems; | ||
| 455 | } | ||
| 456 | |||
| 457 | sub CoreVariableNames | ||
| 458 | { | ||
| 459 | my %corenames = ( | ||
| 460 | 'AllowClientsToConnect' => 'ReadWrite', | ||
| 461 | 'Authenticators' => 'Pointer', | ||
| 462 | 'CacheProxy' => 'Pointer', | ||
| 463 | 'ControlProtocols' => 'Pointer', | ||
| 464 | 'CurrentCounters' => 'Pointer', | ||
| 465 | 'DataSources' => 'Pointer', | ||
| 466 | 'EventHandlers' => 'Pointer', | ||
| 467 | 'Limits' => 'Pointer', | ||
| 468 | 'FileDescriptions' => 'Read', | ||
| 469 | 'MediaParsers' => 'Pointer', | ||
| 470 | 'MonikerName' => 'Read', | ||
| 471 | 'Name' => 'Read', | ||
| 472 | 'PeakCounters' => 'Pointer', | ||
| 473 | 'PlaylistParsers' => 'Pointer', | ||
| 474 | 'Properties' => 'Pointer', | ||
| 475 | 'PublishingPoints' => 'Pointer', | ||
| 476 | 'TotalCounters' => 'Pointer', | ||
| 477 | 'UnicastDataSinks' => 'Pointer', | ||
| 478 | 'Players' => 'Pointer', | ||
| 479 | 'Status' => 'Pointer', | ||
| 480 | 'StartTime' => 'Pointer', | ||
| 481 | 'OutgoingDistributionConnections' => 'Pointer', | ||
| 482 | 'CPUUtilization' => 'Read', | ||
| 483 | 'StreamFilters' => 'Pointer', | ||
| 484 | 'Version' => 'Read', | ||
| 485 | 'DefaultPluginLoadType' => 'ReadWrite', | ||
| 486 | 'AvailableIPAddresses' => 'Pointer', | ||
| 487 | 'RootDirectories' => 'Pointer', | ||
| 488 | 'DiagnosticEvents' => 'Pointer', | ||
| 489 | 'EnableReverseProxyMode' => 'ReadWrite', | ||
| 490 | 'FileType' => 'Read', | ||
| 491 | 'DefaultPath' => 'Read', | ||
| 492 | 'OSProductType' => 'Read' | ||
| 493 | ); | ||
| 494 | return \%corenames; | ||
| 495 | } | ||
| 496 | |||
| 497 | sub PubPointVariableNames | ||
| 498 | { | ||
| 499 | my %PubPointNames = ( | ||
| 500 | 'AllowClientsToConnect' => 'ReadWrite', | ||
| 501 | 'CurrentCounters' => 'Pointer', | ||
| 502 | 'EventHandlers' => 'Pointer', | ||
| 503 | 'ID' => 'Read', | ||
| 504 | 'Limits' => 'Pointer', | ||
| 505 | 'FileDescriptions' => 'Pointer', | ||
| 506 | 'MonikerName' => 'Read', | ||
| 507 | 'Name' => 'Read', | ||
| 508 | 'OutgoingDistributionConnections' => 'Pointer', | ||
| 509 | 'Path' => 'Read', | ||
| 510 | 'PeakCounters' => 'Pointer', | ||
| 511 | 'Players' => 'Pointer', | ||
| 512 | 'Properties' => 'Pointer', | ||
| 513 | 'TotalCounters' => 'Pointer', | ||
| 514 | 'Type' => 'Read', | ||
| 515 | 'WrapperPath' => 'Read', | ||
| 516 | 'Authenticators' => 'Pointer', | ||
| 517 | 'Status' => 'Read', | ||
| 518 | 'EnableWrapperPath' => 'ReadWrite', | ||
| 519 | 'StreamFilters' => 'Pointer', | ||
| 520 | 'DistributionUserName' => 'ReadWrite', | ||
| 521 | 'CacheProxyExpiration' => 'ReadWrite', | ||
| 522 | 'IsDistributionPasswordSet' => 'ReadWrite', | ||
| 523 | 'AllowPlayerSideDiskCaching' => 'ReadWrite', | ||
| 524 | 'EnableFEC' => 'ReadWrite', | ||
| 525 | 'AllowStreamSplitting' => 'ReadWrite', | ||
| 526 | 'AllowClientToStartAndStop' => 'ReadWrite', | ||
| 527 | 'BroadcastDataSinks' => 'Pointer', | ||
| 528 | 'SharedPlaylist' => 'Read', | ||
| 529 | 'BroadcastStatus' => 'Read', | ||
| 530 | 'UpTime' => 'Read', | ||
| 531 | 'AnnouncementStreamFormats' => 'Pointer', | ||
| 532 | 'BufferSetting' => 'ReadWrite', | ||
| 533 | 'AllowStartupProfile' => 'ReadWrite', | ||
| 534 | 'EnableStartVRootOnServiceStart' => 'ReadWrite' | ||
| 535 | ); | ||
| 536 | return \%PubPointNames; | ||
| 537 | } | ||
| 538 | |||
| 539 | sub PubPointLimitNames | ||
| 540 | { | ||
| 541 | my %PubPointLimits = ( | ||
| 542 | 'ConnectedPlayers' => 'Read', | ||
| 543 | 'OutgoingDistributionBandwidth' => 'ReadWrite', | ||
| 544 | 'OutgoingDistributionConnections' => 'ReadWrite', | ||
| 545 | 'PerOutgoingDistributionConnectionBandwidth' => 'ReadWrite', | ||
| 546 | 'PlayerBandwidth' => 'ReadWrite', | ||
| 547 | 'PerPlayerConnectionBandwidth' => 'ReadWrite', | ||
| 548 | 'PlayerCacheDeliveryRate' => 'ReadWrite', | ||
| 549 | 'FECPacketSpan' => 'ReadWrite', | ||
| 550 | 'PerPlayerRapidStartBandwidth' => 'ReadWrite' | ||
| 551 | ); | ||
| 552 | |||
| 553 | return \%PubPointLimits; | ||
| 554 | } | ||
| 555 | |||
| 556 | sub PubPointTotalCounters | ||
| 557 | { | ||
| 558 | my %PubPointTotalCounters = ( | ||
| 559 | 'ConnectedPlayers' => 'Read', | ||
| 560 | 'OutgoingDistributionConnections' => 'Read', | ||
| 561 | 'LateReads' => 'Read', | ||
| 562 | 'OutgoingDistributionBytesSent' => 'Read', | ||
| 563 | 'PlayerBytesSent' => 'Read', | ||
| 564 | 'CountersStartTime' => 'Pointer', | ||
| 565 | 'StreamDenials' => 'Read', | ||
| 566 | 'StreamErrors' => 'Read', | ||
| 567 | 'StreamingPlayers' => 'Read', | ||
| 568 | 'StreamTerminations' => 'Read', | ||
| 569 | 'UDPResendRequests' => 'Read', | ||
| 570 | 'UDPResendsSent' => 'Read', | ||
| 571 | 'LateSends' => 'Read', | ||
| 572 | 'Advertisements' => 'Read' | ||
| 573 | ); | ||
| 574 | return \%PubPointTotalCounters; | ||
| 575 | } | ||
| 576 | |||
| 577 | sub PubPointPeakNames | ||
| 578 | { | ||
| 579 | my %PubPointPeakName = ( | ||
| 580 | 'ConnectedPlayers' => 'Read', | ||
| 581 | 'OutgoingDistributionConnections' => 'Read', | ||
| 582 | 'OutgoingDistributionAllocatedBandwidth'=> 'Read', | ||
| 583 | 'PlayerAllocatedBandwidth' => 'Read', | ||
| 584 | 'CountersStartTime' => 'Read', | ||
| 585 | 'StreamingPlayers' => 'Read', | ||
| 586 | 'AllCounters' => 'PointerArray' | ||
| 587 | ); | ||
| 588 | return \%PubPointPeakName; | ||
| 589 | } | ||
| 590 | |||
| 591 | =cut | ||
| 592 | |||
| 593 | =head1 AUTHOR | ||
| 594 | |||
| 595 | Andrew S. Kennedy, C<< <shamrock at cpan.org> >> | ||
| 596 | |||
| 597 | =head1 BUGS | ||
| 598 | |||
| 599 | =head1 SUPPORT | ||
| 600 | |||
| 601 | L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Win32-WindowsMedia-Provision> | ||
| 602 | |||
| 603 | =item * Search CPAN | ||
| 604 | |||
| 605 | L<http://search.cpan.org/dist/Win32-WindowsMedia-Provision> | ||
| 606 | |||
| 607 | =head1 ACKNOWLEDGEMENTS | ||
| 608 | |||
| 609 | =head1 COPYRIGHT & LICENSE | ||
| 610 | |||
| 611 | Copyright 2008 Andrew S. Kennedy, all rights reserved. | ||
| 612 | |||
| 613 | This program is free software; you can redistribute it and/or modify it | ||
| 614 | under the same terms as Perl itself. | ||
| 615 | |||
| 616 | =cut | ||
| 617 | |||
| 618 | 1; # End of Win32::WindowsMedia::Control |