Android module that plays videos from YouTube.
This module create an Android activity that allows developers to play videos that are hosted on YouTube. This module is based on Android YouTube player library.
The original code was created by KeyesLabs (www.keyeslabs.com) as part of the Screebl project. The developers wanted the ability to play YouTube-hosted help videos, and wanted those videos to be able to play on any device, even those that didn't have the stock YouTube player app.
NOTE: If module unable to get the RTSP url from YouTube server, then video cannot be played.
Features:
Module: https://marketplace.appcelerator.com/apps/6223?942520925
Source code: https://github.com/railskarthi/YoutubePlayer-Android
Screenshot:
This module create an Android activity that allows developers to play videos that are hosted on YouTube. This module is based on Android YouTube player library.
The original code was created by KeyesLabs (www.keyeslabs.com) as part of the Screebl project. The developers wanted the ability to play YouTube-hosted help videos, and wanted those videos to be able to play on any device, even those that didn't have the stock YouTube player app.
NOTE: If module unable to get the RTSP url from YouTube server, then video cannot be played.
Features:
- Higher Bandwidth Video
This module plays higher bandwidth video from YouTube server as new Activity. - Auto Play
Without user interaction, video will will play automatically in landscape mode once it is loaded from YouTube server. - Video Player Controls
YouTube video player comes with default controls like play, pause, SeekForward, SeekBackward. - Play by Video Id and Playlist Id
playVideo method takes video id as input parameter and plays video automatcally.
playPlayListVideo method takes playlist id as input parameter then it will play the latest video added to a YouTube playlist.
var win = Ti.UI.createWindow({
backgroundColor : "#fff",
layout : "vertical"
});
var youtubePlayer = require('titutorial.youtubeplayer');
Ti.API.info("module is => " + youtubePlayer);
/*
* Play video by videoId
*/
var playVideo = Ti.UI.createButton({
title : 'Play video',
height : '40dp',
width : Ti.UI.SIZE,
top : '100dp'
});
win.add(playVideo);
playVideo.addEventListener('click', function() {
youtubePlayer.playVideo("FjMs_imWkFM");
});
/*
* Play video by playListId
*/
var playPlayListVideo = Ti.UI.createButton({
title : 'Play playlist video',
height : '40dp',
width : Ti.UI.SIZE,
top : '100dp'
});
playPlayListVideo.addEventListener('click', function() {
youtubePlayer.playPlayListVideo("PLB03EA9545DD188C3");
});
win.add(playPlayListVideo);
win.open();
Download:Module: https://marketplace.appcelerator.com/apps/6223?942520925
Source code: https://github.com/railskarthi/YoutubePlayer-Android
Screenshot:
![]() |
| Android YouTube Player |




