P2pConfig class

The configuration of p2p engine.

Constructors

P2pConfig.new({P2pLogLevel logLevel = P2pLogLevel.warn, String? signalConfig, String? announce, int? diskCacheLimit, int? memoryCacheCountLimit, bool p2pEnabled = true, Duration? downloadTimeout, Duration? dcDownloadTimeout, String? tag = "flutter-$version", int localPortHls = 0, int localPortDash = 0, int? maxPeerConnections, bool useHttpRange = true, bool wifiOnly = false, bool prefetchOnly = false, bool downloadOnly = false, Map<String, String>? httpHeadersForHls, Map<String, String>? httpHeadersForDash, bool isSetTopBox = false, bool logEnabled = false, bool logPersistent = false, bool sharePlaylist = false, List<String>? dashMediaFiles, TrackerZone? trackerZone, double? playlistTimeOffset, int? maxMediaFilesInPlaylist, bool? fastStartup, bool? geoIpPreflight, bool? useStrictHlsSegmentId})
P2pConfig.byDefault()

Properties

announce String?
final
dashMediaFiles List<String>?
final
dcDownloadTimeout Duration?
final
diskCacheLimit int?
final
downloadOnly bool
final
downloadTimeout Duration?
final
fastStartup bool?
final
geoIpPreflight bool?
final
hashCode int
The hash code for this object.
no setterinherited
httpHeadersForDash Map<String, String>?
final
httpHeadersForHls Map<String, String>?
final
isSetTopBox bool
final
localPortDash int
final
localPortHls int
final
logEnabled bool
final
logLevel P2pLogLevel
final
logPersistent bool
final
maxMediaFilesInPlaylist int?
final
maxPeerConnections int?
final
memoryCacheCountLimit int?
final
p2pEnabled bool
final
playlistTimeOffset double?
final
prefetchOnly bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sharePlaylist bool
final
signalConfig String?
final
tag String?
final
toMap Map<String, dynamic>
no setter
trackerZone TrackerZone?
final
useHttpRange bool
final
useStrictHlsSegmentId bool?
final
wifiOnly bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited