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.
Related
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
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
Is it possible to cast a video from YouTube player SDK form android?
Please let me know steps to do it.
Refer the below link for you tube integration
Open Chromecast youtube video from android application
https://github.com/jlmcdonald/yt-chromecast-demo
I endup creating an webapp with iframe for chromecast device
And for android app, sending message like "load,play,pause" by alerting code in https://github.com/googlecast/CastHelloText-android
I used this code to play youtube video using native youtube app.
startActivity(new Intent(Intent.ACTION_VIEW,Uri.parse("vnd.youtube:zAhzo0JCbFY")).putExtra("force_fullscreen",true));
It works fine. But thing is its a clickable video like this:
http://www.youtube.com/watch?v=zAhzo0JCbFY
Youtube app doesn't allow the links to be clicked. Is there anything to be done(only with native youtube app)?
SORRY
The only thing you can do is to wait for the YouTube app to implement this.
BUT
You can find some alternative, including showing the video in a webview (if you manage), showing the links natively (if you have them), or just using the browser.
In all these cases, it is not the Youtube app.
You can do this by using <intent-filter>. I do not now the exact procedure but this explains it well.
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