VLC Android Beta (8df83e47 / 2019-12-23) fails to open mp3 stream sent via Intent
Description
Expected behavior
Selecting files in a different android app for play with VLC will open them in VLC.
Actual behavior
VLC will only show a error message. Very strange since the launching app checks the file availability as precondition before launching the intent. Possibly a URL encoding or permission issue.
Steps to reproduce
- Select a media file in a third party app (e.g. RcloneExplorer)
- Select VLC for playback
- VLC will only show "The location http://127.0.0.1:8080/25.%20Sonic.mp3 cannot be played
Logcat
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: Setting last chosen activity org.videolan.vlc/.StartActivity for user 0:
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: Action: "android.intent.action.VIEW"
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: Category: "android.intent.category.DEFAULT"
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: Scheme: "http"
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: Type: "audio"
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: mPriority=0, mHasPartialTypes=true
2019-12-30 16:00:51.557 1443-2512/? I/PackageManager: AutoVerify=false
2019-12-30 16:00:51.559 1443-2578/? I/ActivityManager: START u0 {act=android.intent.action.VIEW dat=http://127.0.0.1:8080/... typ=audio/* flg=0x3000000 cmp=org.videolan.vlc/.StartActivity} from uid 10505 on display 0
2019-12-30 16:00:51.567 1443-2578/? V/WindowManager: Changing focus from Window{e79c4ec u0 android/com.android.internal.app.ResolverActivity} to null Callers=com.android.server.wm.WindowManagerService.setFocusedApp:4003 com.android.server.am.ActivityManagerService.setFocusedActivityLocked:3182 com.android.server.am.ActivityStarter.startActivityUnchecked:1357 com.android.server.am.ActivityStarter.startActivityLocked:657
2019-12-30 16:00:51.568 1443-1464/? I/WindowManager: Losing focus: Window{e79c4ec u0 android/com.android.internal.app.ResolverActivity}
2019-12-30 16:00:51.568 1443-2578/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2019-12-30 16:00:51.579 1857-1857/? D/PhoneStatusBar: setSystemUiVisibility vis=708 mask=ffffffff oldVal=608 newVal=708 diff=100
2019-12-30 16:00:51.606 1818-1818/? I/Typeface: setThemeFont(): sThemeFontPath = ,fontPath =
2019-12-30 16:00:51.606 1818-1818/? W/Typeface: setThemeFont(): FontPath Not Changed!
2019-12-30 16:00:51.622 1443-2098/? V/WindowManager: Changing focus from null to Window{df4c6ea u0 ca.pkay.rcloneexplorer.x0b/ca.pkay.rcloneexplorer.MainActivity} Callers=com.android.server.wm.WindowManagerService.setFocusedApp:4003 com.android.server.am.ActivityManagerService.setFocusedActivityLocked:3182 com.android.server.am.ActivityStack.adjustFocusedActivityLocked:3307 com.android.server.am.ActivityStack.finishActivityLocked:3585
2019-12-30 16:00:51.623 1443-1464/? I/WindowManager: Gaining focus: Window{df4c6ea u0 ca.pkay.rcloneexplorer.x0b/ca.pkay.rcloneexplorer.MainActivity}
2019-12-30 16:00:51.623 1443-2098/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2019-12-30 16:00:51.626 1443-2470/? W/InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@115c584 attribute=null, token = android.os.BinderProxy@bbceed5
2019-12-30 16:00:51.692 1818-1818/? D/VLC: [0000007f78d75c90/71a] libvlc input: Creating an input for '25. Sonic.mp3'
2019-12-30 16:00:51.694 1818-2735/? D/VLC: [0000007f78d75c90/aaf] libvlc input: using timeshift granularity of 50 MiB
2019-12-30 16:00:51.694 1818-2735/? D/VLC: [0000007f78d75c90/aaf] libvlc input: using default timeshift path
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f78d75c90/aaf] libvlc input: `http://127.0.0.1:8080/25.%20Sonic.mp3' gives access `http' demux `any' path `127.0.0.1:8080/25.%20Sonic.mp3'
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b1210d0/aaf] libvlc input source: creating demux: access='http' demux='any' location='127.0.0.1:8080/25.%20Sonic.mp3' file='(null)'
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b121490/aaf] libvlc demux: looking for access_demux module matching "http": 7 candidates
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b121490/aaf] libvlc demux: no access_demux modules matched
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: creating access: http://127.0.0.1:8080/25.%20Sonic.mp3
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: looking for access module matching "http": 24 candidates
2019-12-30 16:00:51.695 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] http stream: resolving 127.0.0.1 ...
2019-12-30 16:00:51.696 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] http stream: outgoing request:
GET /25.%20Sonic.mp3 HTTP/1.1
Host: 127.0.0.1:8080
Accept: */*
Accept-Language: en_US
User-Agent: VLC/3.0.9 LibVLC/3.0.9
Range: bytes=0-
2019-12-30 16:00:51.705 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] http stream: connection failed
2019-12-30 16:00:51.705 1818-2735/? E/VLC: [0000007f7b0c8d10/aaf] libvlc stream: HTTP connection failure
2019-12-30 16:00:51.705 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: querying proxy for http://127.0.0.1:8080/25.%20Sonic.mp3
2019-12-30 16:00:51.705 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: no proxy
2019-12-30 16:00:51.705 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: http: server='127.0.0.1' port=8080 file='/25.%20Sonic.mp3'
2019-12-30 16:00:51.705 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: net: connecting to 127.0.0.1 port 8080
2019-12-30 16:00:51.707 1818-2735/? E/VLC: [0000007f7b0c8d10/aaf] libvlc stream: connection failed: Connection refused
2019-12-30 16:00:51.707 1818-2735/? E/VLC: [0000007f7b0c8d10/aaf] libvlc stream: cannot connect to 127.0.0.1:8080
2019-12-30 16:00:51.707 1818-2735/? D/VLC: [0000007f7b0c8d10/aaf] libvlc stream: no access modules matched
2019-12-30 16:00:51.708 1818-1818/? W/VLC/VLCApplication: ErrorMessage VLC is unable to open the MRL 'http://127.0.0.1:8080/25.%20Sonic.mp3'. Check the log for details.
2019-12-30 16:00:51.709 1818-1818/? W/VLC/PlaylistManager: Warning: invalid next index, aborted !
2019-12-30 16:00:51.709 1818-1818/? D/VLC: [0000007f99d0f850/71a] libvlc generic: creating audio output
2019-12-30 16:00:51.709 1818-1818/? D/VLC: [0000007f98a33490/71a] libvlc audio output: looking for audio output module matching "android_audiotrack": 4 candidates
2019-12-30 16:00:51.709 1818-1818/? D/VLC: [0000007f98a33490/71a] libvlc audio output: using audio output module "android_audiotrack"
2019-12-30 16:00:51.710 1818-1818/? D/VLC: [0000007f99d0f850/71a] libvlc generic: keeping audio output
2019-12-30 16:00:51.710 1857-1857/? V/PhoneStatusBar: DEBUG_MEDIA: updating album art for notification null metadata=null metaDataChanged=false state=0
2019-12-30 16:00:51.712 1818-1843/? D/VLC: [0000007f98a32590/733] libvlc audio output: removing module "android_audiotrack"
2019-12-30 16:00:51.720 1818-1818/? W/VLC/VLCApplication: onTrimMemory, level: 20
Context
App version
8df83e47 / 2019-12-23
Android version
7.0
Device model
(any)
App mode
Smartphone
TV
Auto (probably)