Skip to content

Commit 82224c4

Browse files
authored
Update docs to indicate we handle URLs. (#531)
1 parent 086da03 commit 82224c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/torchcodec/decoders/_video_decoder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ class VideoDecoder:
2626
Args:
2727
source (str, ``Pathlib.path``, ``torch.Tensor``, or bytes): The source of the video.
2828
29-
- If ``str`` or ``Pathlib.path``: a path to a local video file.
29+
- If ``str``: a local path or a URL to a video file.
30+
- If ``Pathlib.path``: a path to a local video file.
3031
- If ``bytes`` object or ``torch.Tensor``: the raw encoded video data.
3132
stream_index (int, optional): Specifies which stream in the video to decode frames from.
3233
Note that this index is absolute across all media types. If left unspecified, then

0 commit comments

Comments
 (0)