[vlc-devel] [PATCH] VLC: play youtube URLs

yann LE HIR yann.lehir at gmail.com
Mon Jan 23 08:29:13 CET 2012


Hi,

I don't know about Android, but using libvlc_media_list_player instead
of simply libvlc_media_player solved this issue on my program.


Regards,
Yann Le Hir

On Mon, Jan 23, 2012 at 6:09 AM, Rafaël Carré <funman at videolan.org> wrote:
> ---
> Hello,
>
> This lets VLC open Youtube URLs.
>
> With LUA built in, and config_GetAppDir() hacked to return a path to a
> folder containing share/lua; the URL is parsed correctly.
>
> However, after having parsed it, the media ends and the real Youtube
> movie is not played.
>
> "playlist" demuxers indeed use the VLC playlist which is not available
> in libvlc ...
>
> Any idea?
>
> Fixing this would let m3u etc work too
>
>  vlc-android/AndroidManifest.xml |    6 ++++++
>  1 files changed, 6 insertions(+), 0 deletions(-)
>
> diff --git a/vlc-android/AndroidManifest.xml b/vlc-android/AndroidManifest.xml
> index 617da32..95eb58e 100644
> --- a/vlc-android/AndroidManifest.xml
> +++ b/vlc-android/AndroidManifest.xml
> @@ -48,6 +48,12 @@
>             android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
>             android:configChanges="orientation">
>             <intent-filter>
> +                <data android:scheme="http" android:host="www.youtube.com" />
> +                <action android:name="android.intent.action.VIEW" />
> +                <category android:name="android.intent.category.BROWSABLE" />
> +                <category android:name="android.intent.category.DEFAULT" />
> +            </intent-filter>
> +            <intent-filter>
>                 <data android:scheme="http" />
>                 <action android:name="android.intent.action.VIEW" />
>                 <category android:name="android.intent.category.DEFAULT" />
> --
> 1.7.8.3
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel



More information about the vlc-devel mailing list