From 717e8b13d8ec26202ebec6841ad275175bfb9c07 Mon Sep 17 00:00:00 2001 From: Alen Vrecko <332217+avrecko@users.noreply.github.com> Date: Tue, 12 May 2020 13:29:28 +0200 Subject: [PATCH] Expose internal channel for IsoViewer MetaBox parsing. --- .../java/org/mp4parser/RewindableReadableByteChannel.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/isoparser/src/main/java/org/mp4parser/RewindableReadableByteChannel.java b/isoparser/src/main/java/org/mp4parser/RewindableReadableByteChannel.java index 10d10da4d..1bf7945de 100644 --- a/isoparser/src/main/java/org/mp4parser/RewindableReadableByteChannel.java +++ b/isoparser/src/main/java/org/mp4parser/RewindableReadableByteChannel.java @@ -78,6 +78,12 @@ public void rewind() { nextBufferReadPosition = 0; } + // for isoviewer + public ReadableByteChannel underlyingChannel() + { + return readableByteChannel; + } + /** * @see ReadableByteChannel#isOpen() */