check buffering events #952

Merged
akinwale merged 5 commits from buffer-events into master 2020-07-21 20:30:46 +02:00
Showing only changes of commit c737b750fc - Show all commits

View file

@ -300,7 +300,7 @@ public class FileViewFragment extends BaseFragment implements
// TODO: Determine a hash for the userId
String userIdHash = Lbryio.currentUser != null ? String.valueOf(Lbryio.currentUser.getId()) : "0";
if (mediaSourceUrl.startsWith(CDN_PREFIX)) {
BufferEventTask bufferEvent = new BufferEventTask(getStreamingUrl(), duration, position, userIdHash);
BufferEventTask bufferEvent = new BufferEventTask(claim.getPermanentUrl(), duration, position, userIdHash);
bufferEvent.executeOnExecutor(AsyncTask.SERIAL_EXECUTOR);
} else {
// sdk stream buffer events should be handled differently