DefaultMediaNameFactory

Default implementation of MediaNameFactory which follows these steps:

  1. If video exists and has an ID property as identified by Video.Fields.ID, use it
  2. Otherwise if given a Source object, presumably the one chosen by the current SourceSelector implementation, use the URL from that Source
  3. Otherwise fall back to the DEFAULT_MEDIA_NAME constant value

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val DEFAULT_MEDIA_NAME: String = "--video name unknown--"
Link copied to clipboard
val TAG: String

Functions

Link copied to clipboard
open fun build(video: Video): String
open fun build(video: Video, source: Source): String