321 - adds a preferred tuner option to the channel's source configuration

so that on startup, the application attempts to source the channel from
the preferred tuner.

If the tuner is currently not available, or if the tuner cannot source
the channel, then the next available tuner is selected.
This commit is contained in:
Denny
2018-02-09 07:11:38 -05:00
parent 1c06c4382f
commit c2fcc9e85d
6 changed files with 324 additions and 66 deletions

View File

@@ -69,6 +69,15 @@ public class SourceConfigTuner extends SourceConfiguration
return mPreferredTuner;
}
/**
* Indicates if this configuration has a specified preferred tuner
*/
@JsonIgnore
public boolean hasPreferredTuner()
{
return mPreferredTuner != null;
}
/**
* Specifies the preferred tuner to use for this configuration
* @param preferredTuner to use, if available