The content resolution on Android is wrong
I was told to report it here, so here we are:
My answering machine sends me messages as attachment to an email. This is a .wav attachment. If I click the attachment in GMail app and select VLC, VLC says that it cannot open the URL. If I first download the attachment and play the local file in VLC, it works fine. If I do not select VLC, but Total Commander Queue, the playback works fine without intermediate local saving. Winamp seems to have the same problem as VLC here.
Here you have the according logcat output:
build.board: smdk4x12
build.bootloader: I9305XXBMD5
build.brand: samsung
build.cpu_abi: armeabi-v7a
build.cpu_abi2: armeabi
build.device: m3
build.display: cm_i9305-userdebug 4.2.2 JDQ39E eng.jenkins.20130716.010319 test-keys
build.fingerprint: samsung/m3xx/m3:4.1.2/JZO54K/I9305XXBMA6:user/release-keys
build.hardware: smdk4x12
build.host: cyanogenmod
build.id: JDQ39E
build.manufacturer: samsung
build.model: GT-I9305
build.product: m3xx
build.radio: unknown
build.serial: 42f7191da8479f83
build.tags: test-keys
build.time: 1373961843000
build.type: userdebug
build.user: jenkins
version.codename: REL
version.incremental: eng.jenkins.20130716.010319
version.release: 4.2.2
version.sdk_int: 17
07-19 20:16:12.870 I/ActivityManager(2585): START u0 {act=android.intent.action.VIEW dat=content://gmail-ls/vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false typ=audio/x-wav flg=0x3080001 cmp=org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity} from pid 8222
07-19 20:16:12.945 I/ActivityManager(2585): Start proc org.videolan.vlc.betav7neon for activity org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity: pid=9317 uid=10235 gids={50235, 3003, 1015, 1028}
07-19 20:16:12.950 D/dalvikvm(9317): Late-enabling CheckJNI
07-19 20:16:13.010 E/Trace (9317): error opening trace file: No such file or directory (2)
07-19 20:16:13.130 D/dalvikvm(9317): Trying to load lib /data/app-lib/org.videolan.vlc.betav7neon-1/libiomx-ics.so 0x40e7b810
07-19 20:16:13.135 D/dalvikvm(9317): Added shared lib /data/app-lib/org.videolan.vlc.betav7neon-1/libiomx-ics.so 0x40e7b810
07-19 20:16:13.135 D/dalvikvm(9317): No JNI_OnLoad found in /data/app-lib/org.videolan.vlc.betav7neon-1/libiomx-ics.so 0x40e7b810, skipping init
07-19 20:16:13.135 D/dalvikvm(9317): Trying to load lib /data/app-lib/org.videolan.vlc.betav7neon-1/libvlcjni.so 0x40e7b810
07-19 20:16:13.140 D/dalvikvm(9317): Added shared lib /data/app-lib/org.videolan.vlc.betav7neon-1/libvlcjni.so 0x40e7b810
07-19 20:16:13.140 V/VLC/LibVLC(9317): Initializing LibVLC
07-19 20:16:13.145 I/VLC/LibVLC/Util(9317): machine = arm
07-19 20:16:13.145 I/VLC/LibVLC/Util(9317): arch = v7
07-19 20:16:13.145 I/VLC/LibVLC/Util(9317): fpu = true
07-19 20:16:13.155 I/VLC/JNI/main(9317): LibVLC initialized: 0x59c078f8
07-19 20:16:13.155 D/VLC (9317): main libvlc: VLC media player - 2.1.0-pre1 Rincewind
07-19 20:16:13.155 D/VLC (9317): main libvlc: Copyright © 1996-2013 the VideoLAN team
07-19 20:16:13.155 D/VLC (9317): main libvlc: revision 1.3.0-git-6598-g41edeb7
07-19 20:16:13.155 D/VLC (9317): main libvlc: configured with ../configure '--host=arm-linux-androideabi' '--build=x86_64-unknown-linux' '--enable-neon' '--enable-live555' '--enable-realrtsp' '--enable-avformat' '--enable-swscale' '--enable-avcodec' '--enable-opus' '--enable-opensles' '--enable-android-surface' '--enable-mkv' '--enable-taglib' '--enable-dvbpsi' '--disable-vlc' '--disable-shared' '--disable-update-check' '--disable-vlm' '--disable-dbus' '--disable-lua' '--disable-vcd' '--disable-v4l2' '--disable-gnomevfs' '--disable-dvdread' '--disable-dvdnav' '--disable-bluray' '--disable-linsys' '--disable-decklink' '--disable-libva' '--disable-dv1394' '--disable-mod' '--disable-sid' '--disable-gme' '--disable-tremor' '--disable-mad' '--disable-dca' '--disable-sdl-image' '--disable-zvbi' '--disable-fluidsynth' '--disable-jack' '--disable-pulse' '--disable-alsa' '--disable-samplerate' '--disable-sdl' '--disable-xcb' '--disable-atmo' '--disable-qt' '--disable-skins2' '--disable-mtp' '--disable-notify' '--enable-libass' '--disable-svg' '--di
07-19 20:16:13.170 V/VLC/LibVLC(9317): Reading /vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false
07-19 20:16:13.170 D/VLC (9317): main input: Creating an input for 'false'
07-19 20:16:13.170 D/VLC (9317): main input: using timeshift granularity of 50 MiB, in path '/tmp'
07-19 20:16:13.170 D/VLC (9317): main input: `/vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false' gives access `' demux `vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false' path `'
07-19 20:16:13.170 D/VLC (9317): main input: creating demux: access='' demux='vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false' location='' file='(null)'
07-19 20:16:13.170 D/VLC (9317): main demux: looking for access_demux module matching "any": 4 candidates
07-19 20:16:13.170 D/VLC (9317): main demux: no access_demux modules matched
07-19 20:16:13.170 D/VLC (9317): main input: creating access '' location='', path='(null)'
07-19 20:16:13.170 D/VLC (9317): main access: looking for access module matching "any": 13 candidates
07-19 20:16:13.170 D/VLC (9317): main access: no access modules matched
07-19 20:16:13.170 E/VLC (9317): main input: open of `/vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false' failed
07-19 20:16:13.170 E/VLC (9317): main input: Your input can't be opened
07-19 20:16:13.170 E/VLC (9317): main input: VLC is unable to open the MRL '/vampire0@gmail.com/messages/5415/attachments/0.1/BEST/false'. Check the log for details.
07-19 20:16:13.195 E/VLC/VideoPlayerActivity(9317): Event not handled (0x200)
07-19 20:16:13.195 I/VLC/VideoPlayerActivity(9317): MediaPlayerEncounteredError
07-19 20:16:13.275 D/libEGL (9317): loaded /system/lib/egl/libEGL_mali.so
07-19 20:16:13.275 D/libEGL (9317): loaded /system/lib/egl/libGLESv1_CM_mali.so
07-19 20:16:13.280 D/libEGL (9317): loaded /system/lib/egl/libGLESv2_mali.so
07-19 20:16:13.280 E/ (9317): Device driver API match
07-19 20:16:13.280 E/ (9317): Device driver API version: 17
07-19 20:16:13.280 E/ (9317): User space API version: 17
07-19 20:16:13.280 E/ (9317): mali: REVISION=Linux-r3p1-01rel1 BUILD_DATE=Tue Jul 2 15:06:24 KST 2013
07-19 20:16:13.300 D/OpenGLRenderer(9317): Enabling debug mode 0
07-19 20:16:13.310 D/VLC/VideoPlayerActivity(9317): Pixel format is RGBX_8888
07-19 20:16:13.350 D/VLC/AudioServiceContoller(9317): Service Connected
07-19 20:16:13.440 I/ActivityManager(2585): Displayed org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity: +505ms
07-19 20:16:13.495 D/dalvikvm(8222): GC_EXPLICIT freed 225K, 62% free 4180K/10904K, paused 1ms+2ms, total 19ms
07-19 20:16:14.760 I/VLC/VideoPlayerActivity(9317): MediaPlayerStopped
07-19 20:16:14.775 D/VLC/AudioService(9317): Updating widget
07-19 20:16:14.780 I/AudioService(2585): AudioFocus abandonAudioFocus() from android.media.AudioManager@4148d3f8org.videolan.vlc.betav7neon.AudioService$1@4148d3e8