That is part of the VLC UI.Is there anyway to hide the address that is loaded so that VLC doesnt display it while playing?
Code: Select all
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() + "/videokit/in.mp4");
Intent intent = new Intent("android.intent.action.VIEW");
intent.setDataAndType(uri, "video/*");
startActivity(intent);
What does the logcat say?I have trouble to play file on sd card located on sdcard/videokit/in.mp4
I did the following :
Then if I choose vlc, I got the error : vlc encountered an error with this media. Please try refreshing the media library.Code: Select all
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() + "/videokit/in.mp4"); Intent intent = new Intent("android.intent.action.VIEW"); intent.setDataAndType(uri, "video/*"); startActivity(intent);
Note : I can play this file if I select mx player instead or if I launch the vlc app and play it or even with Astro manager, it proposes me to play it with vlc and it works !
So what am I missing?
Here it comes :What does the logcat say?I have trouble to play file on sd card located on sdcard/videokit/in.mp4
I did the following :
Then if I choose vlc, I got the error : vlc encountered an error with this media. Please try refreshing the media library.Code: Select all
Uri uri = Uri.parse(Environment.getExternalStorageDirectory().getAbsolutePath() + "/videokit/in.mp4"); Intent intent = new Intent("android.intent.action.VIEW"); intent.setDataAndType(uri, "video/*"); startActivity(intent);
Note : I can play this file if I select mx player instead or if I launch the vlc app and play it or even with Astro manager, it proposes me to play it with vlc and it works !
So what am I missing?
Code: Select all
07-30 18:53:42.620 I/ActivityManager(250): Displayed android/com.android.internal.app.ResolverActivity: +395ms
07-30 18:53:42.740 D/dalvikvm(18210): GC_CONCURRENT freed 447K, 53% free 3089K/6471K, external 944K/1456K, paused 2ms+3ms
07-30 18:53:43.400 I/ActivityManager(250): Starting: Intent { act=android.intent.action.VIEW dat=/mnt/sdcard/videokit/in.mp4 typ=video/* flg=0x3800000 cmp=org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity } from pid 250
07-30 18:53:43.580 D/dalvikvm(18256): GC_CONCURRENT freed 145K, 46% free 3051K/5639K, external 2406K/2606K, paused 2ms+6ms
07-30 18:53:43.600 V/VLC/LibVLC(18256): Reading /mnt/sdcard/videokit/in.mp4
07-30 18:53:43.600 D/VLC (18256): main input: Creating an input for 'in.mp4'
07-30 18:53:43.600 D/VLC (18256): main input: using timeshift granularity of 50 MiB, in path '/tmp'
07-30 18:53:43.600 D/VLC (18256): main input: `/mnt/sdcard/videokit/in.mp4' gives access `' demux `mnt/sdcard/videokit/in.mp4' path `'
07-30 18:53:43.600 D/VLC (18256): main input: creating demux: access='' demux='mnt/sdcard/videokit/in.mp4' location='' file='(null)'
07-30 18:53:43.600 D/VLC (18256): main demux: looking for access_demux module matching "any": 4 candidates
07-30 18:53:43.600 D/VLC (18256): main demux: no access_demux modules matched
07-30 18:53:43.600 D/VLC (18256): main input: creating access '' location='', path='(null)'
07-30 18:53:43.600 D/VLC (18256): main access: looking for access module matching "any": 14 candidates
07-30 18:53:43.600 D/VLC (18256): main access: no access modules matched
07-30 18:53:43.600 E/VLC (18256): main input: open of `/mnt/sdcard/videokit/in.mp4' failed
07-30 18:53:43.600 E/VLC (18256): main input: Your input can't be opened
07-30 18:53:43.600 E/VLC (18256): main input: VLC is unable to open the MRL '/mnt/sdcard/videokit/in.mp4'. Check the log for details.
07-30 18:53:43.640 E/VLC/VideoPlayerActivity(18256): Event not handled (0x200)
07-30 18:53:43.640 I/VLC/VideoPlayerActivity(18256): MediaPlayerEncounteredError
07-30 18:53:43.720 D/dalvikvm(18210): GC_CONCURRENT freed 498K, 53% free 3102K/6471K, external 944K/1456K, paused 2ms+3ms
07-30 18:53:43.760 D/VLC/AudioServiceContoller(18256): Service Connected
07-30 18:53:43.780 E/SkLayout_wtle(18256): ellipsis failed line number does not match 1 0
07-30 18:53:43.780 E/SkLayout_wtle(18256): ellipsis failed line number does not match 1 0
07-30 18:53:43.820 E/SkLayout_wtle(18256): ellipsis failed line number does not match 1 0
07-30 18:53:43.850 D/VLC/VideoPlayerActivity(18256): Pixel format is RGBX_8888
07-30 18:53:43.850 D/dalvikvm(18256): GetFieldID: unable to find field Landroid/view/Surface;.mSurface:I
07-30 18:53:44.040 D/dalvikvm(18210): GC_CONCURRENT freed 408K, 53% free 3096K/6471K, external 944K/1456K, paused 2ms+2ms
07-30 18:53:44.060 I/ActivityManager(250): Displayed org.videolan.vlc.betav7neon/.gui.video.VideoPlayerActivity: +649ms
07-30 18:53:45.360 I/VLC/VideoPlayerActivity(18256): MediaPlayerStopped
07-30 18:53:45.370 D/VLC/AudioService(18256): Updating widget
07-30 18:53:45.380 I/AudioService(250): AudioFocus abandonAudioFocus() from android.media.AudioManager@2b01dd90org.videolan.vlc.betav7neon.AudioService$1@2b01dd80
07-30 18:53:45.380 W/InputManagerService(250): Got RemoteException sending setActive(false) notification to pid 18268 uid 10121
07-30 18:53:45.400 W/AppWidgetService(250): updateAppWidgetProvider: provider doesn't exist: ComponentInfo{org.videolan.vlc.betav7neon/org.videolan.vlc.betav7neon.widget.VLCAppWidgetProvider}
Code: Select all
Uri uri = Uri.fromFile(new File(Environment.getExternalStorageDirectory().getAbsolutePath() + "/videokit/in.mp4"));
Intent intent = new Intent("android.intent.action.VIEW");
intent.setDataAndType(uri, "video/*");
startActivity(intent);
No, there is no way to know right now, as the control has left your application.Just one last thing : is there a way to know that vlc (after being launched by the intent) has played completely the file or the user has clicked on the return button ?
What is the question here?I did as instructed but still not: (
Code: Select all
// Try to get the position
if(getIntent().getExtras() != null)
intentPosition = getIntent().getExtras().getLong("position", -1);
Code: Select all
// Try to get the position
if(getIntent().getExtras() != null){
intentPosition = getIntent().getExtras().getLong("position", -1);
itemTitle = getIntent().getExtras().getString("itemTitle");
}
Code: Select all
} else if(itemTitle != null) {
title = itemTitle;
}
Code: Select all
}
if (itemTitle != null) {
title = itemTitle;
}
Will package be changed from org.videolan.vlc.betav7neon to org.videolan.vlc in play market for future releases (e.g. for 1.0 release)? Can i rely on an explicit intent with setPackage("org.videolan.vlc.betav7neon") or should i somehow dynamically query packages that begin with "org.videolan.vlc"?Mod edit and stickied, as this is a very common request.
To start VLC for Android with an intent, you should use Intent.ACTION_VIEW and call VLC with a valid multimedia URI and/or type, like so:
Code: Select all
Intent intent = new Intent(Intent.ACTION_VIEW); intent.setPackage("org.videolan.vlc.betav7neon"); // Use org.videolan.vlc for nightly builds intent.setDataAndType(Uri.parse("http://example.com/media/test.mp4"), "application/mp4"); startActivity(intent);
Is there any plans to implement this? It would be nice to know if playback of a stream failed. I think this can be done by starting VLC with startActivityForResult and using setResult in VideoPlayerActivity.No, there is no way to know right now, as the control has left your application.Just one last thing : is there a way to know that vlc (after being launched by the intent) has played completely the file or the user has clicked on the return button ?
Yes.[
Will package be changed from org.videolan.vlc.betav7neon to org.videolan.vlc in play market for future releases (e.g. for 1.0 release)
Code: Select all
Intent intent = new Intent("org.videolan.vlc");
Uri uri = Uri.parse("http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4");
intent.setDataAndType(uri, "video/*");
intent.setClassName("org.videolan.vlc", "org.videolan.vlc.gui.video.VideoPlayerActivity");
startActivity(intent);
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.videolan.vlc"
android:installLocation="auto"
android:versionCode="01010000"
android:versionName="1.1.0-git" >
<!--
versionCode scheme is T M NN RR AA
T: Target/Flavour (0 for Android, 1 for ATV, 2 for Chrome?)
M: Major version from 0 to 9
NN: Minor version from 00 to 99
RR: Micro/Revision version from 00 to 99
AA: ABI from 0 to 99
0 is dev
1 is ARMv5
2 is ARMv6-nofpu
3 is ARMv6-fpu
4 is ARMv7-A
5 is x86
6 is MIPS
7 is ARMv8
8 is x86_64
9 is MIPS64
-->
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:name="org.videolan.vlc.VLCApplication"
android:hardwareAccelerated="true"
android:largeHeap="true"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:logo="@drawable/ic_logo_w"
android:theme="@style/Theme.VLC.NoTitleBar" >
<activity
android:name=".gui.MainActivity"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:launchMode="singleTask"
android:theme="@style/Theme.VLC" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".gui.CompatErrorActivity" />
<activity android:name=".gui.PreferencesActivity" />
<activity
android:name=".gui.BrowserActivity"
android:label="@string/mediafiles"
android:theme="@style/Theme.VLC.NoTitleBar" />
<activity android:name=".gui.DebugLogActivity"
android:launchMode="singleTop" />
<service android:name=".gui.DebugLogService"
android:process=":logger" />
<activity
android:name=".gui.NativeCrashActivity"
android:process=":NativeCrashActivity"
android:stateNotNeeded="true"
android:theme="@style/Theme.VLC" />
<activity
android:name=".gui.video.VideoPlayerActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.VLC.Player" >
<!-- This filter captures protocols without type info -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="rtmp" />
<data android:scheme="rtmpe" />
<data android:scheme="rtmps" />
<data android:scheme="rtp" />
<data android:scheme="rtsp" />
<data android:scheme="mms" />
<data android:scheme="mmsh" />
<data android:scheme="icyx" />
<data android:scheme="httplive" />
<data android:scheme="udp" />
<data android:scheme="vlc" />
</intent-filter>
<!-- This filter captures protocols with type info -->
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:scheme="rtmp" />
<data android:scheme="rtmpe" />
<data android:scheme="rtmps" />
<data android:scheme="rtp" />
<data android:scheme="rtsp" />
<data android:scheme="mms" />
<data android:scheme="mmsh" />
<data android:scheme="icyx" />
<data android:scheme="httplive" />
<data android:scheme="udp" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="" />
<data android:scheme="file" />
<data android:scheme="ftp" />
<data android:scheme="content" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:mimeType="video/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="*/rmvb" />
<data android:mimeType="*/avi" />
<data android:mimeType="*/mkv" />
<data android:mimeType="application/3gpp*" />
<data android:mimeType="application/mp4" />
<data android:mimeType="application/mpeg*" />
<data android:mimeType="application/ogg" />
<data android:mimeType="application/sdp" />
<data android:mimeType="application/vnd.3gp*" />
<data android:mimeType="application/vnd.apple.mpegurl" />
<data android:mimeType="application/vnd.dvd*" />
<data android:mimeType="application/vnd.dolby*" />
<data android:mimeType="application/vnd.rn-realmedia*" />
<data android:mimeType="application/x-iso9660-image" />
<data android:mimeType="application/x-extension-mp4" />
<data android:mimeType="application/x-flac" />
<data android:mimeType="application/x-matroska" />
<data android:mimeType="application/x-mpegURL" />
<data android:mimeType="application/x-ogg" />
<data android:mimeType="application/x-quicktimeplayer" />
<data android:mimeType="application/x-shockwave-flash" />
<data android:mimeType="application/xspf+xml" />
<data android:mimeType="misc/ultravox" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="" />
<data android:scheme="file" />
<data android:scheme="ftp" />
<data android:scheme="content" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="*" />
<!-- video -->
<data android:pathPattern=".*\\.3g2" />
<data android:pathPattern=".*\\.3gp" />
<data android:pathPattern=".*\\.3gp2" />
<data android:pathPattern=".*\\.3gpp" />
<data android:pathPattern=".*\\.amv" />
<data android:pathPattern=".*\\.asf" />
<data android:pathPattern=".*\\.avi" />
<data android:pathPattern=".*\\.divx" />
<data android:pathPattern=".*\\.drc" />
<data android:pathPattern=".*\\.dv" />
<data android:pathPattern=".*\\.f4v" />
<data android:pathPattern=".*\\.flv" />
<data android:pathPattern=".*\\.gvi" />
<data android:pathPattern=".*\\.gxf" />
<data android:pathPattern=".*\\.ismv" />
<data android:pathPattern=".*\\.iso" />
<data android:pathPattern=".*\\.m1v" />
<data android:pathPattern=".*\\.m2v" />
<data android:pathPattern=".*\\.m2t" />
<data android:pathPattern=".*\\.m2ts" />
<!-- <data android:pathPattern=".*\\.m3u" /> -->
<data android:pathPattern=".*\\.m3u8" />
<data android:pathPattern=".*\\.mkv" />
<data android:pathPattern=".*\\.mov" />
<data android:pathPattern=".*\\.mp2" />
<data android:pathPattern=".*\\.mp2v" />
<data android:pathPattern=".*\\.mp4" />
<data android:pathPattern=".*\\.mp4v" />
<data android:pathPattern=".*\\.mpe" />
<data android:pathPattern=".*\\.mpeg" />
<data android:pathPattern=".*\\.mpeg1" />
<data android:pathPattern=".*\\.mpeg2" />
<data android:pathPattern=".*\\.mpeg4" />
<data android:pathPattern=".*\\.mpg" />
<data android:pathPattern=".*\\.mpv2" />
<data android:pathPattern=".*\\.mts" />
<data android:pathPattern=".*\\.mtv" />
<data android:pathPattern=".*\\.mxf" />
<data android:pathPattern=".*\\.mxg" />
<data android:pathPattern=".*\\.nsv" />
<data android:pathPattern=".*\\.nut" />
<data android:pathPattern=".*\\.nuv" />
<data android:pathPattern=".*\\.ogm" />
<data android:pathPattern=".*\\.ogv" />
<data android:pathPattern=".*\\.ogx" />
<data android:pathPattern=".*\\.ps" />
<data android:pathPattern=".*\\.rec" />
<data android:pathPattern=".*\\.rm" />
<data android:pathPattern=".*\\.rmvb" />
<data android:pathPattern=".*\\.tod" />
<data android:pathPattern=".*\\.ts" />
<data android:pathPattern=".*\\.tts" />
<data android:pathPattern=".*\\.vob" />
<data android:pathPattern=".*\\.vro" />
<data android:pathPattern=".*\\.webm" />
<data android:pathPattern=".*\\.wm" />
<data android:pathPattern=".*\\.wmv" />
<data android:pathPattern=".*\\.wtv" />
<data android:pathPattern=".*\\.xesc" />
<data android:pathPattern=".*\\.3G2" />
<data android:pathPattern=".*\\.3GP" />
<data android:pathPattern=".*\\.3GP2" />
<data android:pathPattern=".*\\.3GPP" />
<data android:pathPattern=".*\\.AMV" />
<data android:pathPattern=".*\\.ASF" />
<data android:pathPattern=".*\\.AVI" />
<data android:pathPattern=".*\\.DIVX" />
<data android:pathPattern=".*\\.DRC" />
<data android:pathPattern=".*\\.DV" />
<data android:pathPattern=".*\\.F4V" />
<data android:pathPattern=".*\\.FLV" />
<data android:pathPattern=".*\\.GVI" />
<data android:pathPattern=".*\\.GXF" />
<data android:pathPattern=".*\\.ISMV" />
<data android:pathPattern=".*\\.ISO" />
<data android:pathPattern=".*\\.M1V" />
<data android:pathPattern=".*\\.M2V" />
<data android:pathPattern=".*\\.M2T" />
<data android:pathPattern=".*\\.M2TS" />
<!-- <data android:pathPattern=".*\\.M3U" /> -->
<data android:pathPattern=".*\\.M3U8" />
<data android:pathPattern=".*\\.MKV" />
<data android:pathPattern=".*\\.MOV" />
<data android:pathPattern=".*\\.MP2" />
<data android:pathPattern=".*\\.MP2V" />
<data android:pathPattern=".*\\.MP4" />
<data android:pathPattern=".*\\.MP4V" />
<data android:pathPattern=".*\\.MPE" />
<data android:pathPattern=".*\\.MPEG" />
<data android:pathPattern=".*\\.MPEG1" />
<data android:pathPattern=".*\\.MPEG2" />
<data android:pathPattern=".*\\.MPEG4" />
<data android:pathPattern=".*\\.MPG" />
<data android:pathPattern=".*\\.MPV2" />
<data android:pathPattern=".*\\.MTS" />
<data android:pathPattern=".*\\.MTV" />
<data android:pathPattern=".*\\.MXF" />
<data android:pathPattern=".*\\.MXG" />
<data android:pathPattern=".*\\.NSV" />
<data android:pathPattern=".*\\.NUT" />
<data android:pathPattern=".*\\.NUV" />
<data android:pathPattern=".*\\.OGM" />
<data android:pathPattern=".*\\.OGV" />
<data android:pathPattern=".*\\.OGX" />
<data android:pathPattern=".*\\.PS" />
<data android:pathPattern=".*\\.REC" />
<data android:pathPattern=".*\\.RM" />
<data android:pathPattern=".*\\.RMVB" />
<data android:pathPattern=".*\\.TOD" />
<data android:pathPattern=".*\\.TS" />
<data android:pathPattern=".*\\.TTS" />
<data android:pathPattern=".*\\.VOB" />
<data android:pathPattern=".*\\.VRO" />
<data android:pathPattern=".*\\.WEBM" />
<data android:pathPattern=".*\\.WM" />
<data android:pathPattern=".*\\.WMV" />
<data android:pathPattern=".*\\.WTV" />
<data android:pathPattern=".*\\.XESC" />
<!-- audio -->
<data android:pathPattern=".*\\.3ga" />
<data android:pathPattern=".*\\.a52" />
<data android:pathPattern=".*\\.aac" />
<data android:pathPattern=".*\\.ac3" />
<data android:pathPattern=".*\\.adt" />
<data android:pathPattern=".*\\.adts" />
<data android:pathPattern=".*\\.aif" />
<data android:pathPattern=".*\\.aifc" />
<data android:pathPattern=".*\\.aiff" />
<data android:pathPattern=".*\\.amr" />
<data android:pathPattern=".*\\.aob" />
<data android:pathPattern=".*\\.ape" />
<data android:pathPattern=".*\\.awb" />
<data android:pathPattern=".*\\.caf" />
<data android:pathPattern=".*\\.dts" />
<data android:pathPattern=".*\\.flac" />
<data android:pathPattern=".*\\.it" />
<data android:pathPattern=".*\\.m4a" />
<data android:pathPattern=".*\\.m4b" />
<data android:pathPattern=".*\\.m4p" />
<data android:pathPattern=".*\\.mid" />
<data android:pathPattern=".*\\.mka" />
<data android:pathPattern=".*\\.mlp" />
<data android:pathPattern=".*\\.mod" />
<data android:pathPattern=".*\\.mpa" />
<data android:pathPattern=".*\\.mp1" />
<data android:pathPattern=".*\\.mp2" />
<data android:pathPattern=".*\\.mp3" />
<data android:pathPattern=".*\\.mpc" />
<data android:pathPattern=".*\\.mpga" />
<data android:pathPattern=".*\\.oga" />
<data android:pathPattern=".*\\.ogg" />
<data android:pathPattern=".*\\.oma" />
<data android:pathPattern=".*\\.opus" />
<data android:pathPattern=".*\\.ra" />
<data android:pathPattern=".*\\.ram" />
<data android:pathPattern=".*\\.rmi" />
<data android:pathPattern=".*\\.s3m" />
<data android:pathPattern=".*\\.spx" />
<data android:pathPattern=".*\\.tta" />
<data android:pathPattern=".*\\.voc" />
<data android:pathPattern=".*\\.vqf" />
<data android:pathPattern=".*\\.w64" />
<data android:pathPattern=".*\\.wav" />
<data android:pathPattern=".*\\.wma" />
<data android:pathPattern=".*\\.wv" />
<data android:pathPattern=".*\\.xa" />
<data android:pathPattern=".*\\.xm" />
<data android:pathPattern=".*\\.3GA" />
<data android:pathPattern=".*\\.A52" />
<data android:pathPattern=".*\\.AAC" />
<data android:pathPattern=".*\\.AC3" />
<data android:pathPattern=".*\\.ADT" />
<data android:pathPattern=".*\\.ADTS" />
<data android:pathPattern=".*\\.AIF" />
<data android:pathPattern=".*\\.AIFC" />
<data android:pathPattern=".*\\.AIFF" />
<data android:pathPattern=".*\\.AMR" />
<data android:pathPattern=".*\\.AOB" />
<data android:pathPattern=".*\\.APE" />
<data android:pathPattern=".*\\.AWB" />
<data android:pathPattern=".*\\.CAF" />
<data android:pathPattern=".*\\.DTS" />
<data android:pathPattern=".*\\.FLAC" />
<data android:pathPattern=".*\\.IT" />
<data android:pathPattern=".*\\.M4A" />
<data android:pathPattern=".*\\.M4B" />
<data android:pathPattern=".*\\.M4P" />
<data android:pathPattern=".*\\.MID" />
<data android:pathPattern=".*\\.MKA" />
<data android:pathPattern=".*\\.MLP" />
<data android:pathPattern=".*\\.MOD" />
<data android:pathPattern=".*\\.MPA" />
<data android:pathPattern=".*\\.MP1" />
<data android:pathPattern=".*\\.MP2" />
<data android:pathPattern=".*\\.MP3" />
<data android:pathPattern=".*\\.MPC" />
<data android:pathPattern=".*\\.MPGA" />
<data android:pathPattern=".*\\.OGA" />
<data android:pathPattern=".*\\.OGG" />
<data android:pathPattern=".*\\.OMA" />
<data android:pathPattern=".*\\.OPUS" />
<data android:pathPattern=".*\\.RA" />
<data android:pathPattern=".*\\.RAM" />
<data android:pathPattern=".*\\.RMI" />
<data android:pathPattern=".*\\.S3M" />
<data android:pathPattern=".*\\.SPX" />
<data android:pathPattern=".*\\.TTA" />
<data android:pathPattern=".*\\.VOC" />
<data android:pathPattern=".*\\.VQF" />
<data android:pathPattern=".*\\.W64" />
<data android:pathPattern=".*\\.WAV" />
<data android:pathPattern=".*\\.WMA" />
<data android:pathPattern=".*\\.WV" />
<data android:pathPattern=".*\\.XA" />
<data android:pathPattern=".*\\.XM" />
</intent-filter>
</activity>
<service android:name="org.videolan.vlc.audio.AudioService" />
<receiver android:name=".PhoneStateReceiver" >
<intent-filter>
<action android:name="android.intent.action.PHONE_STATE" />
</intent-filter>
</receiver>
<receiver
android:name=".widget.VLCAppWidgetProvider"
android:exported="false"
android:label="VLC mini player" >
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/vlcwidget" />
</receiver>
<receiver android:name=".RemoteControlClientReceiver" >
<intent-filter>
<action android:name="android.intent.action.MEDIA_BUTTON" />
<action android:name="org.videolan.vlc.remote.PlayPause" />
</intent-filter>
</receiver>
</application>
</manifest>
Code: Select all
// Try to get the position
if(getIntent().getExtras() != null){
intentPosition = getIntent().getExtras().getLong("position", -1);
mstCache = getIntent().getExtras().getInt("cache", 0);
itemTitle = getIntent().getExtras().getString("itemTitle");
itemTitle = itemTitle + " - Cache: " + Integer.toString(mstCache);
mLibVLC.setNetworkCaching(mstCache);
}
Well, basically ^ this means that it will only work if the user has installed the debug build...THis is not the release package name!
Hi guys,
How can I read a network stream with VLC from my app?
I already know how to launch VLC. The only problem is how to send the network stream (url).
Thanks
Lucas
Return to “VLC for Android and Chrome OS”
Users browsing this forum: No registered users and 12 guests