LibVLCSharp issueshttps://code.videolan.org/videolan/LibVLCSharp/-/issues2020-02-10T02:43:41Zhttps://code.videolan.org/videolan/LibVLCSharp/-/issues/279MediaPlayer_EndReached Android app Crashing after end2020-02-10T02:43:41ZMurtuja AliMediaPlayer_EndReached Android app Crashing after end<!-- Please complete the following information. -->
- OS: [Android]
- Version [28]
- Device: [MI Note 5 Pro]
- LibVLC version and architecture [3.3.1, x64]
- LibVLCSharp version <!-- [3.3.1] -->
### Possible fixes
private voi...<!-- Please complete the following information. -->
- OS: [Android]
- Version [28]
- Device: [MI Note 5 Pro]
- LibVLC version and architecture [3.3.1, x64]
- LibVLCSharp version <!-- [3.3.1] -->
### Possible fixes
private void MediaPlayer_EndReached(object sender, EventArgs e)
{
vlcLive.MediaPlayer.Play();
}
App crashing after media end in xamarin forms vlc androidhttps://code.videolan.org/videolan/LibVLCSharp/-/issues/286Playback stops when using bluetooth android2020-01-30T05:06:34ZJose SantosPlayback stops when using bluetooth android<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by "bug" label and verify the issue you're about to submit isn't a duplicate.
If this is a question please ask on StackOverflow...<!---
Please read this!
Before opening a new issue, make sure to search for keywords in the issues
filtered by "bug" label and verify the issue you're about to submit isn't a duplicate.
If this is a question please ask on StackOverflow: https://stackoverflow.com/questions/tagged/libvlcsharp.
--->
### Summary
When the device is connected to a bluetooth speaker, playback stops at 4-5 minutes
<!-- Summarize the bug encountered concisely -->
### Minimal project and steps to reproduce
A Xamarin.Android project
var url = "http://someaudiourl.xxx";
Core.Initialize();
var libvlc = new LibVLC();
var player = new MediaPlayer(libvlc);
var media = new Media(libvlc, url, FromType.FromLocation);
player.Play(media);
<!-- How one can reproduce the issue - this is very important
Provide a Minimal, Complete, and Verifiable example (https://stackoverflow.com/help/mcve) through a git hosting platform
and post the URL here. Do NOT paste parts of your code in the GitLab issue, share your full (but minimal) code through a git repository.
If you don't provide this, we may not be able to help and may close the issue.
Please also provide the functional steps to reproduce the behavior (if necessary):
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
-->
### What is the current *bug* behavior?
Playback stops 4-5 minutes after the device is connected via bluetooth
<!-- What actually happens -->
### What is the expected *correct* behavior?
Playback does not stop
<!-- What you should see instead -->
### Does it work on other plaforms? Does it work with the official VLC apps?
I've only tried the previous code on android
<!-- Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise. -->
### Relevant logs and/or screenshots
<!-- Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise. -->
### Environment
<!-- Please complete the following information. -->
- OS: Android
- Version 7.0
- Device: Samsung Galaxy A5 (2016)
- LibVLC version and architecture <!-- [e.g. 3.0.6, x64] -->
- LibVLCSharp version 3.4.1
### Possible fixes
<!-- If you can, link to the line of code that might be responsible for the problem -->https://code.videolan.org/videolan/LibVLCSharp/-/issues/266Keep chromecast alive when app goes into background2020-01-27T10:48:51ZAnders BlomqvistKeep chromecast alive when app goes into background### Problem to solve
When chromecasting in mobile apps (ex Xamarin forms), keep chromecasting in background.Right now chromecasting is stopped when app goes to background
### Intended users
All users who chromecast are used to that it...### Problem to solve
When chromecasting in mobile apps (ex Xamarin forms), keep chromecasting in background.Right now chromecasting is stopped when app goes to background
### Intended users
All users who chromecast are used to that it is possible to go to other apps and still keep chromecasting alive.
### Proposal
Use background services or similar or create api for continue chromecast in a background service on iOS and Android
Users can use there devices for other things while chromecasting.
Other chromecast apps can do this and users expect it.
### Documentation
We need a sample or written documentation on how to achieve this.
Here are a link for a git repo for testing on android.
https://github.com/blombas/VlcChromecast.git
on my phone chromecast will continue for around 10 minutes, then it will be disconnected https://code.videolan.org/videolan/LibVLCSharp/-/issues/217Chromecast/Chromecast.Android will crash on startup on real device in Release...2020-01-22T03:22:43ZAndreiChromecast/Chromecast.Android will crash on startup on real device in Release mode compiledThis project will crash on startup if deployed on a real device (on my side Samsung Galaxy S6, Android 7.0) in Release mode configuration
In Debug mode it works!
https://code.videolan.org/mfkl/libvlcsharp-samples/tree/master/Chromecast...This project will crash on startup if deployed on a real device (on my side Samsung Galaxy S6, Android 7.0) in Release mode configuration
In Debug mode it works!
https://code.videolan.org/mfkl/libvlcsharp-samples/tree/master/Chromecast/Chromecast.Android
Problematic line is
`_libVLC.RendererList.FirstOrDefault(r => r.Name.Equals("microdns_renderer"));`
Can't get any debug logs or other useful information. It just crashes without any output.
It doesn't depend on using Xamarin.Forms or not. I'm experiencing the same bug in my Xamarin.Android project.
If I comment problematic line and put "microdns_renderer" directly in
`_rendererDiscoverer = new RendererDiscoverer(_libVLC, "microdns_renderer");`
everything works fine
P.S. Sorry for not using the template here. No debug output to post. The project was just cloned and started.https://code.videolan.org/videolan/LibVLCSharp/-/issues/258For Android, individually disable GPU acceleration for Media instance2020-01-20T17:49:42ZAndreiFor Android, individually disable GPU acceleration for Media instance### Problem to solve
For Android, individually disable GPU acceleration for Media if global GPU option `--codec=mediacodec_ndk` for LibVLC was provided.
If we set GPU acceleration option individually for Media instance before starting...### Problem to solve
For Android, individually disable GPU acceleration for Media if global GPU option `--codec=mediacodec_ndk` for LibVLC was provided.
If we set GPU acceleration option individually for Media instance before starting to play it, sometimes acceleration does not turn on. Playback restart of Media is needed to start GPU acceleration. To prevent this behavior, the option is to enable GPU acceleration globally for LibVLC and disable it individually for a particular Media instance if needed (if requested by a user).
### Intended users
Android users
### Proposal
Provide the same type options like for Apple `:no-videotoolbox` and for Windows `:avcodec-hw=none`https://code.videolan.org/videolan/LibVLCSharp/-/issues/278In xamarin forms ios audio delay for a few seconds when resume play2020-01-13T03:26:08Zmanuel gomarIn xamarin forms ios audio delay for a few seconds when resume play### Summary
in xamarin forms ios audio delay for a few seconds when resume
### Minimal project and steps to reproduce
Reproduces on Media Element Xamarin Forms Sample (iOS),
### What is the current *bug* behavior?
Play video for a fe...### Summary
in xamarin forms ios audio delay for a few seconds when resume
### Minimal project and steps to reproduce
Reproduces on Media Element Xamarin Forms Sample (iOS),
### What is the current *bug* behavior?
Play video for a few seconds, then hit pause, and then hit play button, video begins and no audio for a few seconds.
### What is the expected *correct* behavior?
Play video for a few seconds, then hit pause, and then hit play button, video and audio begins simultaneously.
### Does it work on other plaforms? Does it work with the official VLC apps?
In the android sample works just fine
### Relevant logs and/or screenshots
<!-- Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise. -->
### Environment
- OS: iOs
- Version 13.3
- Device: iphone XR 64 gbs
- LibVLCSharp version 3.4.0>
### Possible fixes
Its not a fix, but maybe you can enable a back 5s playback so you don't miss the audio when its delayedhttps://code.videolan.org/videolan/LibVLCSharp/-/issues/77Readme CI update2019-12-30T04:13:23ZMartin FinkelReadme CI updateAs CI setup is getting finalized, readme needs to be updated. Badge suggestions welcome.
- nuget version (all packages),
- nuget downloads (all packages),
- first time contributor friendly,
- macOS, Windows, Linux builds,
- Samples build...As CI setup is getting finalized, readme needs to be updated. Badge suggestions welcome.
- nuget version (all packages),
- nuget downloads (all packages),
- first time contributor friendly,
- macOS, Windows, Linux builds,
- Samples builds,
- develop and master brancheshttps://code.videolan.org/videolan/LibVLCSharp/-/issues/259RendererDiscovererEventManager.OnItemAdded exception on Android (Xamarin.Forms)2019-12-24T10:18:47ZGeorgina DiffeyRendererDiscovererEventManager.OnItemAdded exception on Android (Xamarin.Forms)When using the MediaPlayerElement in a Xamarin.Forms app running on android, we have occasionally getting the following error when navigating to the page containing the MediaPlayerElement.
*RendererDiscovererEventManager.OnItemAdded (Sy...When using the MediaPlayerElement in a Xamarin.Forms app running on android, we have occasionally getting the following error when navigating to the page containing the MediaPlayerElement.
*RendererDiscovererEventManager.OnItemAdded (System.IntPtr args)
System.NullReferenceException: Object reference not set to an instance of an object*
We assume this is related to the casting functionality, when it is searching for available casting devices. This error does not happen consistently and we have only been able to reproduce on a Samsung Galaxy S6 and Pixel 1 device. Our video implementation is based on the example project, where the only difference is we dispose of the MediaPlayer and LibVLC objects in the viewmodel when navigating away from the page.
Xamarin.Forms 4.3.0.947036
LibVlc.Forms 3.3.0
VideoLAN.LibVlc.Android 3.1.2.1https://code.videolan.org/videolan/LibVLCSharp/-/issues/273Enable samples CI build2019-12-24T10:18:21ZMartin FinkelEnable samples CI build### Problem to solve
We need to add a CI step to build the samples from this repository. This would have allowed us to catch https://code.videolan.org/videolan/LibVLCSharp/issues/269 before releasing 3.4.0
### Intended users
LibVLCSha...### Problem to solve
We need to add a CI step to build the samples from this repository. This would have allowed us to catch https://code.videolan.org/videolan/LibVLCSharp/issues/269 before releasing 3.4.0
### Intended users
LibVLCSharp devs.
### Proposal
Currently blocked by these issues which will fail the build:
- https://code.videolan.org/videolan/LibVLCSharp/issues/269
- https://code.videolan.org/videolan/LibVLCSharp/issues/249
Would be nice to use my initial work on Cake as well https://code.videolan.org/mfkl/LibVLCSharp/tree/cake-cihttps://code.videolan.org/videolan/LibVLCSharp/-/issues/191Add extract frame sample to libvlcsharp-samples2019-12-23T08:27:31ZMartin FinkelAdd extract frame sample to libvlcsharp-samples### Problem to solve
Add sample for users looking to extract frames
### Intended users
new users looking to extract frames
### Proposal
Extract and adapt https://github.com/ZeBobo5/Vlc.DotNet/blob/develop/src/Vlc.DotNet.Wpf/VlcVideo...### Problem to solve
Add sample for users looking to extract frames
### Intended users
new users looking to extract frames
### Proposal
Extract and adapt https://github.com/ZeBobo5/Vlc.DotNet/blob/develop/src/Vlc.DotNet.Wpf/VlcVideoSourceProvider.cs
### Documentation
Add it to libvlcsharp-samples repohttps://code.videolan.org/videolan/LibVLCSharp/-/issues/200Add support for Picture-in-picture2019-12-23T07:02:44ZDiego StamigniAdd support for Picture-in-picture### Problem to solve
Native Picture-In-Picture support.
PiP mode can be in-app or external.
### Intended users
Allow PiP for external-app video watching.
### Documentation
* https://developer.apple.com/documentation/avkit/adopting_...### Problem to solve
Native Picture-In-Picture support.
PiP mode can be in-app or external.
### Intended users
Allow PiP for external-app video watching.
### Documentation
* https://developer.apple.com/documentation/avkit/adopting_picture_in_picture_in_a_custom_player
* https://developer.android.com/guide/topics/ui/picture-in-picture
* https://developer.xamarin.com/samples/monotouch/ios9/PictureInPicture/
* https://github.com/escamoteur/RxMediaPlayer/blob/e405c6a14e839574654ded04a8d79ad9d59b36e5/Player.iOS/VideoView.cshttps://code.videolan.org/videolan/LibVLCSharp/-/issues/274Document where is MediaPlayerElement available2019-12-19T07:37:20ZMartin FinkelDocument where is MediaPlayerElement available### Problem to solve
Document on which platforms/framework is the MediaPlayerElement available in a table.
For now, it is available on:
- Uno (UWP, Android, iOS),
- Xamarin.Forms (Android, iOS, macOS, WPF, GTK)
It is currently NOT avai...### Problem to solve
Document on which platforms/framework is the MediaPlayerElement available in a table.
For now, it is available on:
- Uno (UWP, Android, iOS),
- Xamarin.Forms (Android, iOS, macOS, WPF, GTK)
It is currently NOT available on standalone platforms:
- Xamarin.Android,
- Xamarin.iOS,
- Xamarin.tvOS,
- UWP,
- WPF,
- WinForms,
- GTK,
- macOS.
### Intended users
LibVLCSharp consumers.
### Proposal
Make a table.https://code.videolan.org/videolan/LibVLCSharp/-/issues/261LibVLCSharp on UWP crashes with null pointer when Visibility of VideoView is ...2019-12-11T04:20:57ZMartin TirionLibVLCSharp on UWP crashes with null pointer when Visibility of VideoView is set to Collapsed### Summary
When a VideoView is added to a XAML page with `Visibility=Collapsed` the runtime crashes with a null pointer reference.
### Minimal project and steps to reproduce
1. Clone https://github.com/mtirion/VLCinUWPTest
2. Add `Vi...### Summary
When a VideoView is added to a XAML page with `Visibility=Collapsed` the runtime crashes with a null pointer reference.
### Minimal project and steps to reproduce
1. Clone https://github.com/mtirion/VLCinUWPTest
2. Add `Visibility=Collapsed` to the VideoView in the MainPage.xaml
3. Switch to x64 or x86, compile and run the app.
### What is the current *bug* behavior?
On launch of the app:
System.NullReferenceException: Object reference not set to an instance of an object.\r\n
at LibVLCSharp.Platforms.UWP.VideoViewBase.CreateSwapChain()"
### What is the expected *correct* behavior?
No crash
### Environment
* Windows 10 (1903 / 18362.476)
* Windows SDK (UWP) 17134
* LibVLCSharp 3.3.1 x64
* VideoLAN.LibVLC.UWP 3.1.1.1 x64https://code.videolan.org/videolan/LibVLCSharp/-/issues/41Set up docs with Doxygen on Azure DevOps and GitLab Pages2019-12-11T04:17:16ZMartin FinkelSet up docs with Doxygen on Azure DevOps and GitLab PagesSince Doxygen can generate HTML doc pages from C# source, we need to automate it to build docs on Azure DevOps and push them to GitLab Pages, on each commit.
Providing access to versioned docs would be cherry on cake...Since Doxygen can generate HTML doc pages from C# source, we need to automate it to build docs on Azure DevOps and push them to GitLab Pages, on each commit.
Providing access to versioned docs would be cherry on cake...https://code.videolan.org/videolan/LibVLCSharp/-/issues/189Add MediaElement sample to snppts2019-12-11T04:05:37ZMartin FinkelAdd MediaElement sample to snpptshttps://www.snppts.dev/https://www.snppts.dev/Xamarin.Forms MediaElement controlhttps://code.videolan.org/videolan/LibVLCSharp/-/issues/240extract .wav audio from video using libvlcsharp for xamarin forms2019-12-11T04:01:28ZPREM PRAKASH PATTNAIKextract .wav audio from video using libvlcsharp for xamarin forms### Problem to solve
<!-- What problem do we solve? -->
extract .wav audio from video with parameters to set samplerate, bitrate etc.... using libvlcsharp in xamarin forms and save to local disk
### Intended users
<!-- Who will use th...### Problem to solve
<!-- What problem do we solve? -->
extract .wav audio from video with parameters to set samplerate, bitrate etc.... using libvlcsharp in xamarin forms and save to local disk
### Intended users
<!-- Who will use this feature? -->
All Xamarin crossplatform app developers will use this feature.
### Proposal
<!-- How are we going to solve the problem? -->
<!-- Include use cases, benefits, and/or goals -->
This will be beneficial for xamarin crossplatform app developers as no other crossplatform library exists for xamarin forms for audio extraction.
### Documentation
<!-- What kind of documentation is needed for this feature? -->
A sample Xamarin cross platform code for android and ios in documentation will be good.https://code.videolan.org/videolan/LibVLCSharp/-/issues/247Playing video from intranet sites2019-12-11T03:58:18ZduindainPlaying video from intranet sitesHi,
I'm trying to play a video from an intranet site, I have SSL certs installed for this site and I can play the video through the Android emulators browser with no issues
When I try to run the same video through the VLCSharp library I...Hi,
I'm trying to play a video from an intranet site, I have SSL certs installed for this site and I can play the video through the Android emulators browser with no issues
When I try to run the same video through the VLCSharp library I get an error
Is there a setting to enable an intranet link since it works from the device in a browser I would imagine it should work through the library?
Log message when playing the video
```
[VLC] [bc586c10/4161] libvlc tls client: cannot resolve myintranetdomain port 443: No address associated with hostname
[VLC] [d7b15650/4161] libvlc stream: HTTP connection failure
[VLC] [bc647630/4161] libvlc input: Your input can't be opened
[VLC] [bc647630/4161] libvlc input: VLC is unable to open the MRL 'https://myintranetdomain/some/nested/path/avideofile_1280x720.mp4'. Check the log for details.
```
LogCat for the emulator filtered by VLC
```
Error (15570) / VLC: [bc587f10/3d08] libvlc tls client: cannot resolve myintranetdomain port 443: No address associated with hostname
Error (15570) / VLC: [d7b15150/3d08] libvlc stream: HTTP connection failure
Error (15570) / VLC: [d7bdb630/3d08] libvlc input: Your input can't be opened
Error (15570) / VLC: [d7bdb630/3d08] libvlc input: VLC is unable to open the MRL 'https://myintranetdomain/some/nested/path/avideofile_1280x720.mp4'. Check the log for details.
Error (16691) / VLC: [bc586c10/4161] libvlc tls client: cannot resolve myintranetdomain port 443: No address associated with hostname
Error (16691) / VLC: [d7b15650/4161] libvlc stream: HTTP connection failure
Error (16691) / VLC: [bc647630/4161] libvlc input: Your input can't be opened
Error (16691) / VLC: [bc647630/4161] libvlc input: VLC is unable to open the MRL 'https://myintranetdomain/some/nested/path/avideofile_1280x720.mp4'. Check the log for details.
```
My code is very basic as this was a test to see if the video functionality was suitable for an app we already have released
```
public class VideoViewModel : INotifyPropertyChanged
{
public event PropertyChangedEventHandler PropertyChanged;
public VideoViewModel()
{
Task.Run((Action)Initialize);
}
private LibVLC LibVLC { get; set; }
private MediaPlayer _mediaPlayer;
public MediaPlayer MediaPlayer
{
get => _mediaPlayer;
private set => Set(nameof(MediaPlayer), ref _mediaPlayer, value);
}
private void Initialize()
{
Core.Initialize();
LibVLC = new LibVLC();
MediaPlayer = new MediaPlayer(LibVLC)
{//http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4
Media = new Media(LibVLC, "https://myintranetdomain/some/nested/path/avideofile_1280x720.mp4", FromType.FromLocation),
EnableHardwareDecoding = true
};
MediaPlayer.Play();
}
private void Set<T>(string propertyName, ref T field, T value)
{
if (field == null && value != null || field != null && !field.Equals(value))
{
field = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
}
}
}
```
Thanks for any help and for releasing the library
Cheershttps://code.videolan.org/videolan/LibVLCSharp/-/issues/265Distort video2019-12-11T03:56:48ZEkin DamDistort videoHi,
Is it me or the LibVLCSharp.WPF.Sample project video is distorted? I am testing with .netcore 3.0.
![LibVlcSharp](/uploads/0c9814a30bf9c33889eda84de0fcbbde/LibVlcSharp.PNG)Hi,
Is it me or the LibVLCSharp.WPF.Sample project video is distorted? I am testing with .netcore 3.0.
![LibVlcSharp](/uploads/0c9814a30bf9c33889eda84de0fcbbde/LibVlcSharp.PNG)https://code.videolan.org/videolan/LibVLCSharp/-/issues/243[UWP] VideoView control induces application crash if VerticalAlignment/Horizo...2019-12-11T03:24:44Zrudoc[UWP] VideoView control induces application crash if VerticalAlignment/HorizontalAlignment Layout settings used### Summary
Using VerticalAlignment/HorizontalAlignment Layout settings for VideoView control induces application crash
### Minimal project and steps to reproduce
1. Use Sample project [LibVLCSharp.UWP.Sample] and add VerticalAlignment...### Summary
Using VerticalAlignment/HorizontalAlignment Layout settings for VideoView control induces application crash
### Minimal project and steps to reproduce
1. Use Sample project [LibVLCSharp.UWP.Sample] and add VerticalAlignment Layout to VideoView MediaPlayer
2. Install NuGet package LibVLCSharp 3.3.0 instead of local library
3. Run the Project
4. See the error (VS2019): SharpDX.SharpDXException: "HRESULT: [0x887A0001], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_INVALID_CALL/InvalidCall].
### What is the current *bug* behavior?
Sample is compiled normally, but side loaded UWP crashes upon start.
Debugging in IDE is being stopped with Unhandled exception
### What is the expected *correct* behavior?
Original Sample project [LibVLCSharp.UWP.Sample] running nicely showing BigBuckBunny adventures.
### Environment
<!-- Please complete the following information. -->
- OS: Windows 10 x64
- Version LTSC 17763.805
- Device: DELL XPS 15 9560
- LibVLCSharp version 3.3.0
### Possible fixes
<!-- If you can, link to the line of code that might be responsible for the problem -->
<lvs:VideoView MediaPlayer="{Binding MediaPlayer}" **VerticalAlignment="Bottom"**>https://code.videolan.org/videolan/LibVLCSharp/-/issues/248Uno support for MediaElement2019-12-10T10:45:25ZMartin FinkelUno support for MediaElement### Problem to solve
MediaElement control for Uno Platform users to allow rapid prototyping and development
In continuation of https://code.videolan.org/videolan/LibVLCSharp/issues/232
### Intended users
Uno Platform users
### Propo...### Problem to solve
MediaElement control for Uno Platform users to allow rapid prototyping and development
In continuation of https://code.videolan.org/videolan/LibVLCSharp/issues/232
### Intended users
Uno Platform users
### Proposal
Re-use most of the code from the XF MediaElement
### Documentation
A doc page regarding usage and customization and differences for both media element.