public override NexPlayerTrack[] GetTracks() { int count = NEXPLAYERUnity_GetTrackCount(); Log(" NexPlayerTrack count : " + count); NexPlayerTrack[] tracks = null; if (count > 0) { tracks = new NexPlayerTrack[count]; for (int i = 0; i < count; i++) { Log("NexPlayerTrack call to index count : " + i); tracks[i].id = NEXPLAYERUnity_GetTrackID(i); tracks[i].bitrate = NEXPLAYERUnity_GetTrackBitrate(i); tracks[i].width = NEXPLAYERUnity_GetTrackWidth(i); tracks[i].height = NEXPLAYERUnity_GetTrackHeight(i); } } return(tracks); }
public override void SetTrack(NexPlayerTrack trackToUse) { int bitrate = trackToUse.bitrate; NEXPLAYERUnity_SetTrack(bitrate); }
/// <summary> /// Set a tack to be used. Using this disables ABR. The possible tracks can be obtained from the method GetTracks. This method is not available for all the platforms /// </summary> public virtual void SetTrack(NexPlayerTrack trackToUse) { Debug.Log("Unsupported platform"); }