Starting VLC Beta by Intent...

VLC for Android and Chrome OS specific usage questions
RobNCD
New Cone
New Cone
Posts: 4
Joined: 25 Jun 2013 17:23

Re: Starting VLC Beta by Intent...

Postby RobNCD » 25 Jun 2013 23:21

I got this figured out.

ActivityStarter.ActivityClass --------> org.videolan.vlc.gui.video.VideoPlayerActivity

Now it loads.

Is there anyway to hide the address that is loaded so that VLC doesnt display it while playing?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 26 Jun 2013 04:40

Is there anyway to hide the address that is loaded so that VLC doesnt display it while playing?
That is part of the VLC UI.

kamilos
New Cone
New Cone
Posts: 4
Joined: 30 Jul 2013 10:59

Re: Starting VLC Beta by Intent...

Postby kamilos » 30 Jul 2013 11:10

I have trouble to play file on sd card located on sdcard/videokit/in.mp4

I did the following :

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);
Then if I choose vlc, I got the error : vlc encountered an error with this media. Please try refreshing the media library.

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?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 30 Jul 2013 14:28

I have trouble to play file on sd card located on sdcard/videokit/in.mp4

I did the following :

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);
Then if I choose vlc, I got the error : vlc encountered an error with this media. Please try refreshing the media library.

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?
What does the logcat say?

kamilos
New Cone
New Cone
Posts: 4
Joined: 30 Jul 2013 10:59

Re: Starting VLC Beta by Intent...

Postby kamilos » 30 Jul 2013 18:59

I have trouble to play file on sd card located on sdcard/videokit/in.mp4

I did the following :

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);
Then if I choose vlc, I got the error : vlc encountered an error with this media. Please try refreshing the media library.

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?
What does the logcat say?
Here it comes :

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}

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 31 Jul 2013 12:18

@kamilos:

Could you try:

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);

kamilos
New Cone
New Cone
Posts: 4
Joined: 30 Jul 2013 10:59

Re: Starting VLC Beta by Intent...

Postby kamilos » 31 Jul 2013 18:21

@edwardw:

Well done ! Now it works, thank you very much :D

kamilos
New Cone
New Cone
Posts: 4
Joined: 30 Jul 2013 10:59

Re: Starting VLC Beta by Intent...

Postby kamilos » 01 Aug 2013 10:27

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 ?

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 01 Aug 2013 14:14

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 ?
No, there is no way to know right now, as the control has left your application.

XenoDawn
New Cone
New Cone
Posts: 5
Joined: 01 Dec 2013 12:52
VLC version: 2.0.8
Operating System: Windows

Re: Starting VLC Beta by Intent...

Postby XenoDawn » 01 Dec 2013 12:57

I use desktop VLC to stream a playlist and VLC for Android to play it. The loop option must be set for the recieving VLC for Android to continue playing when track changes.

Is it possible to set loop on when launching VLC for Android via Intent? Alternatively, is there a way to process VLC for Android being done playing, e.g. via Intent result?

giaitri321
New Cone
New Cone
Posts: 1
Joined: 19 Apr 2014 03:11

Re: Starting VLC Beta by Intent...

Postby giaitri321 » 19 Apr 2014 03:14

I did as instructed but still not: (

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 19 Apr 2014 19:52

I did as instructed but still not: (
What is the question here?

cat_baxter
Blank Cone
Blank Cone
Posts: 24
Joined: 07 Sep 2014 19:00

Re: Starting VLC Beta by Intent...

Postby cat_baxter » 15 Oct 2014 17:41

How to change VLC title - now it shows URL , but it's better to set intent.putExtra("itemTitle", "Title") or intent.putExtra("title", "Title") like in MX Player.

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 15 Oct 2014 18:02

Probably not supported right now.

cat_baxter
Blank Cone
Blank Cone
Posts: 24
Joined: 07 Sep 2014 19:00

Re: Starting VLC Beta by Intent...

Postby cat_baxter » 22 Oct 2014 12:24

You're right - if VLC is started from external application 'content', it shows URL as a title - and it looks ugly :) In order to show the external "itemTitle" we need to make some changes in org\videolan\vlc\gui\video\VideoPlayerActivity.java:

1.

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"); }
2.

Code: Select all

} else if(itemTitle != null) { title = itemTitle; }
->

Code: Select all

} if (itemTitle != null) { title = itemTitle; }
and result is:

Image

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 22 Oct 2014 16:30

If you can send a patch that would be nice. See http://wiki.videolan.org/Sending_Patches_VLC

pamalyshev
New Cone
New Cone
Posts: 1
Joined: 04 Feb 2015 11:56

Re: Starting VLC Beta by Intent...

Postby pamalyshev » 04 Feb 2015 13:10

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);
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"?
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 ?
No, there is no way to know right now, as the control has left your application.
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.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Starting VLC Beta by Intent...

Postby Jean-Baptiste Kempf » 04 Feb 2015 14:04

[
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)
Yes.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

multimesut
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Jan 2015 22:14

Re: Starting VLC Beta by Intent...

Postby multimesut » 18 Feb 2015 11:25

I did build. I tried to do Intent. I received the following error. What could be the problem?

02-18 12:20:37.188: E/AndroidRuntime(8054): android.content.ActivityNotFoundException: Unable to find explicit activity class {org.videolan.vlc/org.videolan.vlc.gui.video.VideoPlayerActivity}; have you declared this activity in your AndroidManifest.xml?

Intent Code

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);
AndroidManifest.xml

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>

multimesut
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Jan 2015 22:14

Re: Starting VLC Beta by Intent...

Postby multimesut » 20 Feb 2015 10:55

problem solved. Packet Name "org.videolan.vlc.debug". Thank you.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Starting VLC Beta by Intent...

Postby Jean-Baptiste Kempf » 20 Feb 2015 10:58

THis is not the release package name!
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

multimesut
Blank Cone
Blank Cone
Posts: 14
Joined: 22 Jan 2015 22:14

Re: Starting VLC Beta by Intent...

Postby multimesut » 20 Feb 2015 14:09

yes my fault. I did not do release. :)
this one setNetworkCaching run? I was not successful in the following code.

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); }

edwardw
Big Cone-huna
Big Cone-huna
Posts: 2346
Joined: 24 Jun 2012 23:36
VLC version: 3.0.0-git

Re: Starting VLC Beta by Intent...

Postby edwardw » 01 Mar 2015 02:40

THis is not the release package name!
Well, basically ^ this means that it will only work if the user has installed the debug build...

Unfortunately you must use both if you want it to work with your testing builds.

Gurzo
New Cone
New Cone
Posts: 1
Joined: 02 Mar 2015 21:11

Re: Starting VLC Beta by Intent...

Postby Gurzo » 02 Mar 2015 21:48

where can i download a debug apk that support itemTile param from startActivity?

sangeetha
New Cone
New Cone
Posts: 1
Joined: 07 Feb 2017 07:08

Re: Open network stream with VLC from my app

Postby sangeetha » 07 Feb 2017 07:17

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

Hi,
U can use the following code

Intent vlcIntent = new Intent(Intent.ACTION_VIEW);
vlcIntent .setDataAndTypeAndNormalize(Uri.parse(ur url),"video/*");
vlcIntent.putExtra("title", "");
vlcIntent.putExtra("from_start", false);
vlcIntent.putExtra("position", 90000l);
startActivity(vlcIntent);


Return to “VLC for Android and Chrome OS”

Who is online

Users browsing this forum: No registered users and 32 guests