Exemplo n.º 1
0
 public PacketStream(StreamType streamType, IPlayer player, IDrmManager drmManager, ICodecExtraDataHandler handler)
 {
     this.streamType = streamType;
     this.drmManager = drmManager ??
                       throw new ArgumentNullException(nameof(drmManager), "drmManager cannot be null");
     this.player   = player ?? throw new ArgumentNullException(nameof(player), "player cannot be null");
     _codecHandler = handler ?? throw new ArgumentNullException(nameof(handler), "handler cannot be null");
 }
Exemplo n.º 2
0
 protected virtual IPacketStream CreatePacketStream(StreamType streamType, IPlayer player, IDrmManager drmManager, ICodecExtraDataHandler codecExtraDataHandler)
 {
     return(new PacketStream(streamType, player, drmManager, codecExtraDataHandler));
 }