mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-26 22:20:24 +00:00
pass Event and Recording to ExoPlayerFragment
This commit is contained in:
parent
aa0d5eee14
commit
0a41ca87e7
1 changed files with 2 additions and 2 deletions
|
@ -156,7 +156,7 @@ public class Event extends SugarRecord implements Parcelable, Comparable<Event>
|
|||
}
|
||||
}
|
||||
|
||||
public String getOptimalStream() {
|
||||
public Recording getOptimalStream() {
|
||||
List<Recording> result = new ArrayList<>();
|
||||
for(Recording r : getRecordings()){
|
||||
if(r.isHighQuality() && r.getMimeType().equals("video/mp4"))
|
||||
|
@ -164,7 +164,7 @@ public class Event extends SugarRecord implements Parcelable, Comparable<Event>
|
|||
}
|
||||
// sort by length of language-string in decending order, so first item has most languages
|
||||
Collections.sort(result,(o1, o2) -> o2.getLanguage().length() - o1.getLanguage().length());
|
||||
return result.get(0).getRecordingUrl();
|
||||
return result.get(0);
|
||||
}
|
||||
|
||||
public String getExtendedDescription(){
|
||||
|
|
Loading…
Reference in a new issue