News

Uno Platform 4.9 Highlights Cross-Platform Media Player, WebView2

A cross-platform media player highlights the new Uno Platform 4.9, the latest edition of the cross-platform application framework that lets developers write an application once in XAML and C# and deploy it to any target platform.

The open source Uno Platform is a dev tooling partner of Microsoft, claiming the only offering that enables development of single-codebase applications for Windows, WebAssembly, iOS, macOS, Android and Linux, targeting all OSes and browsers. It has also teamed up with Redmond on various projects and has sometimes implemented new tech before Microsoft itself.

Uno Platform
[Click on image for larger view.] Uno Platform (source: Uno Platform).

The new release sports two major features, one of which is a broader reach for the MediaPlayerElement control, which can now be used for all supported platforms, having previously been available only for iOS, Android and Mac Catalyst apps. With Uno Platform 4.9, the company pointed it to web and Linux targets, with the latter using libVLC under the hood to render media.

"As of today, you can easily create single-codebase solutions for cross-platform applications and reuse the rich and robust Media Player Element from Windows UI," the company said in a June 5 announcement. "It's another example of how the existing component ecosystem can be brought forward and significantly improve your developer velocity."

[Click on image for larger view.] Media Player Element (source: Uno Platform).

More about the MediaPlayerElement can be found in the control's documentation.

The second major feature of v4.9 as identified by Uno Platform is WebView2 for cross-platform applications, with the team adding support for Android, iOS and Mac Catalyst.

"This control allows you to navigate to external web content as well as to load and display arbitrary HTML content -- for example, if you want to embed your company website's contact form or display the latest news articles," Uno Platform said. "WebView2 even supports C# to JavaScript communication via the ExecuteScriptAsync method and JavaScript to C# messaging via the WebMessageReceived event, which opens doors to powerful embedding scenarios like interacting with a rich JavaScript charting or data grid component."

The company also announced native host support for Skia, an open source 2D graphics library that provides common APIs that work across a variety of hardware and software platforms. Uno Platform said leveraging native controls on Skia targets may be useful in some scenarios, providing deeper integration with the platform.

Other items of note in the new release include:

  • Indexer and MVVM toolkit support for x:Bind expressions
  • UIElement.ActualOffset support
  • ms-appdata support for SvgImageSource, to load app packaged SVGs
  • Many performance improvements for WebAssembly using JSImport/JSExport
  • Many performance and memory improvements in the XAML Generator
  • Performance improvements in TextBlock rendering for Skia heads
  • DEPRECATING Uno Platform Solution Templates for Visual Studio 2019

About the Author

David Ramel is an editor and writer for Converge360.

comments powered by Disqus

Featured

  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube