VideoUnplayableException.unplayable constructor

VideoUnplayableException.unplayable(
  1. VideoId videoId, {
  2. String reason = '',
})

Initializes an instance of VideoUnplayableException with a VideoId

Implementation

VideoUnplayableException.unplayable(VideoId videoId, {String reason = ''})
    : super("Video '$videoId' is unplayable.\n"
          'Streams are not available for this video.\n'
          'In most cases, this error indicates that there are \n'
          'some restrictions in place that prevent watching this video.\n'
          'Reason: $reason');