Xamarin forms embed youtube video for cross platform - android

Is there a cross-platform solution for Xamarin Forms for Webview to implement a youtube video to an activity.
(Inb4 Adam Fisher spams his $50 nuget package solution, I'm not interested)

I'd suggest taking look at here for android: Playing youtube video in Android app
Just add the renderer with the right view for both platforms and afterwards you can use the API
PS: Who is Adam Fisher
EDIT: link for IOS: https://forums.xamarin.com/discussion/59329/playing-an-youtube-video-from-ios-app

Related

How to play Youtube Video in my app without using Webview

I cant use WebView, please help me
I will try my best & I hope I can solve it here.
check out official release of YouTube Android Player API, which plays yt videos natively, without any web-side
and if you want/need web player, but you can't use WebView - you may implement "FirefoxView", web engine used by Mozilla in their Android software, not related to Chromium at all, called GeckoView
You can use lib from opensource: link

Play YouTube video in app

I am developing an app for a client to get all the videos from a YouTube channel and I paint all of these videos into a table, showing the thumbnail and the description, so that when the user tap the row, the video will be played.
I am using the Titanium.Platform.openURL(...) but the client wants
the video to open inside the app like Twitter and other apps.
Is there any module to do it?
Any help would be appreciated.
iPhone | Android
Titanium Appcelerator SDK: 7.1.0
Thanks in advance.
Try the examples in this post: Embeded Youtube video to WebView (Appcelerator) doesn't show (black screen)
They use a webview solution. But you can also try to use Hyperloop and implement e.g. https://github.com/PierfrancescoSoffritti/Android-YouTube-Player on Android.
Yes, for iOS you can play in WebView and for Android there is a immersive module present.

Dailymotion Video in listview Android

How do I show the list of "DAILYMOTION" videos in android?
Also how do I play them?
I am able to play single video, but I now want to show more than 25 videos in a list.
How can I do this?
This is more works than supposed to be on a simple stackoverflow question!
You can:
list videos using Dailymotion API (documentation here https://developer.dailymotion.com/api)
and then play them using the Dailymotion video player. Here you'll find the documentation about the Android Player SDK: https://developer.dailymotion.com/tools/sdks#sdk-android that is a thin wrapper around a WebView that allows to easily embed Dailymotion videos into your Android application. You can check the source code, documentation and sample app on the GitHub repo: https://github.com/dailymotion/dailymotion-sdk-android/tree/master.
There even is a sample app that may help you get started! https://github.com/dailymotion/dailymotion-sdk-android/tree/master/SampleApp

Embed playlist in an Android app?

We're currently developing a mobile app for our business, which includes a music player. We would like to embed our Soundcloud playlist but we have issues as there only is a SDK for iOS but not Android
What would be a workaround for this ?
Thanks for your help,
Antoine
There is a Java Wrapper for the Soundcloud API you can use (Github). It is no longer maintained but it works.

How can I open a YouTube link with youtube app in Android (using Dreamweaver CS6)?

I'm using adobe dreamweaver CS6 and jQuery Mobile to develop Android applications. After developing, my apps are put together by phonegap. Here I have the following problem: I have some buttons related to YouTube links, but I want them to open in the YouTube app. I'd like to work only in Dreamweaver, and use plug-ins only if necessary. I've already read about "intents" and "URL-s", but I don't know how to use them and how they work in dreamweaver. I haven't found any good tutorials on it yet.
Please be detailed if you can.
Normally you can simply link to youtube. The youtube app will handle the request and will start if the user allows that.
The youtube app has a special intent handler where the urls to youtube will be catched. So normally on the first link to youtube the user will be asked if the youtube app should be started or the browser(s).
Such a link what works in a native android application would be: http://www.youtube.com/watch?v=xxxx
So in dreamweaver/html it should look like this:
Some Video

Categories

Resources