Xamarin Formo & vimeo video

This forum is about all development around libVLC.
mkgitalia
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2019 18:19

Xamarin Formo & vimeo video

Postby mkgitalia » 11 Nov 2019 18:26

I follow your instractions and works perfect with "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4", but when I try to use vimeo video (for example "https://vimeo.com/370732261") nothing happens.
I tried also
var libVLC = new LibVLC();
var media = new Media(libVLC, "https://www.youtube.com/watch?v=foyufD52aog", FromType.FromLocation);
await media.Parse(MediaParseOptions.ParseNetwork);
var MediaPlayer = new MediaPlayer(media.SubItems.First());
MediaPlayer.Play();
with same black screen.
Can you help me?

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Xamarin Formo & vimeo video

Postby Rémi Denis-Courmont » 12 Nov 2019 04:48

Open the video file, not some HTML.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

mkgitalia
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2019 18:19

Re: Xamarin Formo & vimeo video

Postby mkgitalia » 12 Nov 2019 10:44

I do not know what you mean

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Xamarin Formo & vimeo video

Postby mfkl » 14 Nov 2019 03:33

He means that https://vimeo.com/370732261 points to a webpage, not the video itself, so it cannot work.
https://mfkl.github.io

mkgitalia
New Cone
New Cone
Posts: 3
Joined: 11 Nov 2019 18:19

Re: Xamarin Formo & vimeo video

Postby mkgitalia » 14 Nov 2019 09:08

How I can do to play a Vimeo video ? What is the correct URL ?

mfkl
Developer
Developer
Posts: 739
Joined: 13 Jun 2017 10:41

Re: Xamarin Formo & vimeo video

Postby mfkl » 18 Nov 2019 04:02

For Vimeo videos, it seems you need to parse an additional layer of subitems. Try this:

Code: Select all

static async Task Main(string[] args) { Core.Initialize(); using(var libVLC = new LibVLC()) { var media = new Media(libVLC, "https://vimeo.com/370732261", FromType.FromLocation); await media.Parse(MediaParseOptions.ParseNetwork); var subItem = media.SubItems.First(); await subItem.Parse(MediaParseOptions.ParseNetwork); var actualVideo = subItem.SubItems.First(); using (var mp = new MediaPlayer(actualVideo)) { media.Dispose(); subItem.Dispose(); actualVideo.Dispose(); mp.Play(); Console.ReadKey(); } } }
https://mfkl.github.io


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests