How to play video with Xamarin forms? -
i have implemented examples here: https://github.com/xlabs/xamarin-forms-labs/wiki/camera , able image camera successfully.
additionally have implemented select video - have no way play video...
i ended putting browser window , playing video off remove page after uploading it. however, not idea, want play video in app after choosing file system or camera itself.
has managed xamarin forms/forms labs without having implement in every single platform manually?
and if way it, examples of this? thank much!
you can check out video player component on xamarin forms component store. allows render native video player on ios, android, , windows phone. code snippet below shows simplest example of dropping in , using it. have ability hook events playing, paused, stopped, completed, etc. can control volume, autoplay, , repeat among other things.
<?xml version="1.0" encoding="utf-8" ?> <contentpage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:o="clr-namespace:octane.xam.videoplayer;assembly=octane.xam.videoplayer" x:class="videoplayersamples.videoplayerbasicexamplepage" title="basic video player"> <o:videoplayer source="http://vjs.zencdn.net/v/oceans.mp4" /> </contentpage>
disclaimer: component.
Comments
Post a Comment