Friday, 15 February 2013

How to play video with Xamarin forms? -


I've applied examples here: and I'm able to successfully get an image from the camera.

In addition to this I have applied the selected video - but there is no way to play the video ...

I ended up by putting a browser window and after uploading it one Play video on the removed page. However, this is not the idea, after selecting it from the file system or camera, I want to play the video in the app.

Has anyone managed to labels xamarin forms / forms without manually applying it to every single platform?

And if this is the only way to do this, then is there any example of this? Thank you very much!

You can see the Video Player component on the XMarine Form Component Store. It allows to present the original video player on iOS, Android and Windows Phone. The easiest example of using it except in the code snippet given below is shown. You also have the ability to hook into events like playing, paused, paused, completed, etc. You can control the volume, autoplay and repeat between other things.

  & lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Content page xmlns = "http://xamarin.com/schemas/2014/forms" xmlns: x = "http://schemas.microsoft.com/winfx/2009/xaml" xmlns: o = "clr- namespace: octane .xx Videoplayer; assembly = octane.xmplayer "x: class =" video player.Simple playerBasic example page "title =" original video player "& gt; & Lt; O: VideoPlayer source = "http://vjs.zencdn.net/v/oceans.mp4" /> & Lt; / ContentPage & gt;  

Disclaimer: This is my component.


No comments:

Post a Comment