Home > Forum > Maui player open stream

Maui player open stream

Oct 10 (2 months ago)
Walter Grimm wrote
HI,

I am lookign at the samples from Git, and it loads with an option below:
I run it in Maui windows, and it will ask me to open a local file, which works.

I tried adding the defaultfilename for Windows, so open the stream in the player. This has not been working and crashed the APP.

Can please someone help and suggest a solution on how to open up a stream on Windows Player.

I am not able to open the Android app since it fails in the Emulator with this errormessage:
Java.Lang.UnsupportedOperationException: 'TextureView doesn't support displaying a background drawable'

any help to get my demos running are appreciated

thanx

Walter

--------------------------------

#if __ANDROID__
private const string DEFAULT_FILENAME = "http://test.visioforge.com/video.mp4";
#else
private const string DEFAULT_FILENAME = @"c:\samples\!video.mp4";
#endif
Reply
32 Answers
Oct 10 (2 months ago)
Roman Miniailov agent wrote
Hi

Please tell me the sample used and the SDK version.
Oct 10 (2 months ago)
Walter Grimm wrote
HI,

the sample was VisioForge.MediaPlayer.X.Demos.CS.MAUI net8.sln

It was doenloaded last week from The github samples

ON VS emulator I am using the SDK version 34.Android 14


I have seen that there aresome many more features in the player, I am sure there are many more sample that show a small hello world on the function of these features, could you please point me to where I can find them please.
Oct 10 (2 months ago)
Roman Miniailov agent wrote
Please try the latest update. We resolved a few Android issues yesterday.
Oct 10 (2 months ago)
Walter Grimm wrote
ok, thanx will check.

1. How can I play the stream in the windows Maui version, it does not let me take a stream and play i t when i chaneg the name to the sample used for Android.

2. Do you have more sample for all the player features avaulable.

thanx

Oct 10 (2 months ago)
Roman Miniailov agent wrote
1. Stream?
2. Yes, but for WinForms/WPF. The API of MediaPlayerCoreX is the same for all platforms.
Oct 10 (2 months ago)
Walter Grimm wrote
HI,

yes, in the MAui sample you have these lines below : I would like to play a video from a videostream provided from a Server, works in AVL and html players.

http://ccc-manager-dev.q-prox.com:8989/vod/walter_thailand.mp4

I would like to play this path in my windows Maui, when i change the URI to the URLS it crashes (they both work in VLC Win desktop player)
:
http://test.visioforge.com/video.mp4
http://ccc-manager-dev.q-prox.com:8989/vod/walter_thailand.mp4

BTW: in your email the link to the support chat misses the http

#if __ANDROID__
private const string DEFAULT_FILENAME = "http://test.visioforge.com/video.mp4";
#else
private const string DEFAULT_FILENAME = @"c:\samples\!video.mp4";
#endif
Oct 10 (2 months ago)
Walter Grimm wrote
HI,

still getting this Error also on my pixel6 phone, Android V 14

Java.Lang.UnsupportedOperationException: 'TextureView doesn't support displaying a background drawable'


I have not managed to to get runnign with new Git, giving me errors
Oct 10 (2 months ago)
Walter Grimm wrote
HI,

with the new GIT version I am now also not able to open the Windows APP. It crashes, asking to disconnect the current debugger and launch a new one

Delete bin obj, cleaned rebooted and rebuilt

Looking forward to it working

regards

Walter
Oct 11 (2 months ago)
Walter Grimm wrote
Hi,

Do you have any info on this issue please

Thanx

Walter
Oct 11 (2 months ago)
Roman Miniailov agent wrote
Yes.

The MAUI Windows issue is resolved and should be released today.
The HTTP playback issue was also resolved.
TextureView resolved, too.

But, we have another Android+MAUI issue that we have to fix. If it is not ready today, we'll release an update with other problem fixes.
Oct 11 (2 months ago)
Walter Grimm wrote
ok,

just for me to know thats its not on my pc, glad to help you test whenever you are ready

regards

Walter
Oct 11 (2 months ago)
Roman Miniailov agent wrote
Please check the v15.10.25 update or pull new GitHub samples.
Oct 11 (2 months ago)
Walter Grimm wrote
HI,

getting this now, tried recompile clean del binobj etc, but always gets back here

Severity Code Description Project File Line Suppression State
Error (active) NU1102 Unable to find package VisioForge.CrossPlatform.Core.Android with version (>= 15.10.24)
- Found 6 version(s) in nuget.org [ Nearest version: 15.9.45 ]
- Found 0 version(s) in Microsoft Visual Studio Offline Packages
- Found 0 version(s) in C:\Program Files\dotnet\library-packs QRReader8 (net8.0-android), QRReader8 (net8.0-maccatalyst), QRReader8 (net8.0-windows10.0.19041.0) C:\demo\Visioforge\Net-SDK-s-samples-master (1)\.Net-SDK-s-samples-master\Video Capture SDK X (crossplatform)\MAUI\QRReader\QRReader8.csproj 1
Oct 11 (2 months ago)
Roman Miniailov agent wrote
Please check again in 5-10-20 minutes. Sometimes, the NuGet cache works very slowly and needs some time to be available in all regions.
Oct 11 (2 months ago)
Walter Grimm wrote
HI,

windows Maui is running, and stream of Video too !!

Android ist starting up on my Pixel6 Android 14, but I cannot play a local video or a stream one

regards

Walter
Oct 11 (2 months ago)
Walter Grimm wrote
Hi,

Sorry , it does play local video files, but not the stream video, which it does in Windows

regards

Walter
Oct 11 (2 months ago)
Walter Grimm wrote
In Android I can start playing one video, but when I choose another one it wont play it any more.
Oct 11 (2 months ago)
Walter Grimm wrote
Here an error, it is also not able to show all mp4, some just dont load
System.Exception: 'Unable to read file info. Set the ignoreMediaInfoReader parameter to true to ignore.'
Oct 11 (2 months ago)
Walter Grimm wrote
In capture on android 14 , switching between front and back camera really takes very long, front camera to user looks fine and sharp, back camera does nto focus and just shows blurry image,
Oct 14 (2 months ago)
Roman Miniailov agent wrote
Please check updated MAUI samples and SDK.
Oct 14 (2 months ago)
Walter Grimm wrote
HI,

Android and Win working well, we will check IOS and Macios today

thanx

Walter
Oct 14 (2 months ago)
Walter Grimm wrote
Hi, I can only play one video, after trying to play again, or open another video does not work

Thanx
Oct 14 (2 months ago)
Roman Miniailov agent wrote
iOS or macOS?
Oct 14 (2 months ago)
Walter Grimm wrote
On droid, windows checking later, iOS and Mac not checked yet
Oct 14 (2 months ago)
Walter Grimm wrote
Hi,

I am little unclear about the regular license and the lifetime,

Does lifetime mean, I buy the software once, and receive lifetime updates?

With regular purchase Prof, do you have a scheme to purchase yearly updates.


Regards

Walter
Oct 14 (2 months ago)
Roman Miniailov agent wrote
Hi

Using LIFETIME license updates and support a free forever. For regular license after one year - no updates and support. But software will work the same as before.
Oct 14 (2 months ago)
Walter Grimm wrote
HI Roman,

Well thats nice, how do you want to finance yourself in 10 years, well not my problem, just thinking of realiable long term updates, would not a 30% price of normal yearly be better for client reliability.

to the Mac; friend revieved this MSG (we works prof with Maui ) - his question was why is there x86 if all macs are arm64 - will check IOS as well

0>Xamarin.Shared.Sdk.targets(1564,3): Error : clang++ exited with code 1:
ld: warning: ignoring file obj/Debug/net8.0-maccatalyst/maccatalyst-arm64/nativelibraries/Contents/MonoBundle/libgstvulkan-1.0.0.dylib, file is universal (x86_64) but does not contain the arm64 architecture: obj/Debug/net8.0-maccatalyst/maccatalyst-arm64/nativelibraries/Contents/MonoBundle/libgstvulkan-1.0.0.dylib
ld: building for Mac Catalyst, but linking in dylib built for macOS, file 'obj/Debug/net8.0-maccatalyst/maccatalyst-arm64/nativelibraries/Contents/MonoBundle/libavfilter.9.dylib'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Oct 15 (2 months ago)
Walter Grimm wrote
HI,

open issue:

1. When I run the video on windows and droid V14, it will run the video stream till the end, but than I cannot run it again.
Oct 15 (2 months ago)
Walter Grimm wrote
Open issue MAC: giving this error in Simple player MAUI Net8

(<unknown>:5193): GStreamer-WARNING **: 09:12:10.893: External plugin loader failed. This most likely means that the plugin loader helper binary was not found or could not be run. You might need to set the GST_PLUGIN_SCANNER environment variable if your setup is unusual. This should normally not be required though.

(<unknown>:5193): GStreamer-WARNING **: 09:12:11.232: Failed to load plugin '/Users/bohdanbenetskyi/projects/Visioforge-SimplePlayer-Demo/Avalonia/Simple Media Player/bin/Debug/net8.0-macos14.0/osx-arm64/Simple Media Player.app/Contents/MonoBundle/libgstvulkan-1.0.0.dylib': dlopen(/Users/bohdanbenetskyi/projects/Visioforge-SimplePlayer-Demo/Avalonia/Simple Media Player/bin/Debug/net8.0-macos14.0/osx-arm64/Simple Media Player.app/Contents/MonoBundle/libgstvulkan-1.0.0.dylib, 0x0002): tried: '/Users/bohdanbenetskyi/projects/Visioforge-SimplePlayer-Demo/Avalonia/Simple Media Player/bin/Debug/net8.0-macos14.0/osx-arm64/Simple Media Player.app/Contents/MonoBundle/libgstvulkan-1.0.0.dylib' (fat file, but missing compatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/bohdanbenetskyi/projects/Visioforge-SimplePlayer-Demo/Avalonia/Simple Media Player/bin/Debug/net8.0-macos14.0/osx-arm64/Simple Media Player.app/Contents/MonoBundle/libgstvulkan-1.0.0.dylib' (no such file), '/Users/bohdanbenetskyi/projects/Visioforge-SimplePlayer-Demo/Avalonia/Simple Media Player/bin/Debug/net8.0-macos14.0/osx-arm64/Simple Media Player.app/Contents/MonoBundle/libgstvulkan-1.0.0.dylib' (fat file, but missing compatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
Unhandled exception. System.Exception: File not found.
Oct 15 (2 months ago)
Walter Grimm wrote
Error:

compiling Video Player in MAui Net 8 release

Severity Code Description Project File Line Suppression State
Error (active) XA1030 The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration. SimplePlayer8 (net8.0-android) C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\34.0.113\tools\Xamarin.Android.Common.targets 552
Oct 28 (59 days ago)
Roman Miniailov agent wrote
Oct 28 (59 days ago)
Walter Grimm wrote
for Android i am usign the latest Android 14 SDK 34, VS and the SDK packages are all latest version

Colleague will try to see if IOS and MAc are running (he has another job, so can onyl check in evening)