Skip to content

RTMPS (RTMP over TLS) doesn't work on Android

Description

When trying to open an RTMPS stream on Android VLC does not work and instantly errors. It would seem a network connection is not even attempted. I am not sure if RTMPS is supported on Android and cannot find anything anywhere to indicate that it is or is not.

Normal unencrypted RTMP works perfectly fine.

Expected behavior

RTMPS streams to work in the same way as RTMP.

Actual behavior

RTMPS streams do not open. RTMP streams work well.

Steps to reproduce

  1. Open VLC.
  2. More
  3. New Stream
  4. rtmps://valid.rtmps.url/stream/key

Screenshot / video (/ logs)

Toast disappears to quickly. The toast just says something like: The stream cannot be played.

The logs are as follows:

01-14 22:21:14.372 E/VLC     (31137): [0000007788c5fa20/406f] libvlc stream: Failed to open rtmps://(url redacted): Unknown error 1330794744
01-14 22:21:14.372 D/VLC/medialibrary(31137): [T#508103027904] ../src/MediaLibrary.cpp:651 media Fetching media from mrl: rtmps://(url redacted)
01-14 22:21:14.373 D/VLC/medialibrary(31137): [T#508103027904] ../src/File.cpp:445 fromMrl Failed to find folder containing rtmps://(url redacted)
01-14 22:21:14.382 W/VLC/PlaylistManager(31137): Warning: invalid next index, aborted !
01-14 22:21:14.383 W/libOpenSLES(31137): class OutputMix interface 0 requested but unavailable MPH=43

Context

App version: 3.4.2

Android version: 11

Device model: Oneplus 8T (Kebab)

App mode

Smartphone