Skip to content

Instantly share code, notes, and snippets.

View LHIOUI's full-sized avatar

Hamza Lhioui LHIOUI

  • @relentlessco
View GitHub Profile
@LHIOUI
LHIOUI / tiVimeo.js
Last active August 29, 2015 14:07
Titanium commonJS module to play vimeo video on Ti.Media.VideoPlayer.
//
// tiVimeo.js
//
// Created by Coyote on 2014-10-08.
// Copyright 2014 Coyote. All rights reserved.
//
var VimeoVideo = function(id, callback) {
var client = Ti.Network.createHTTPClient();
client.onload = function(response) {
@LHIOUI
LHIOUI / tiYoutube.js
Last active April 3, 2018 08:20
Titanium commonJS module to play youtube video on Ti.Media.VideoPlayer many thanks to The Endless Hack https://github.com/endlesshack/youtube-video
//
// tiYoutube.js
//
// Created by Coyote on 2014-10-07.
// Copyright 2014 Coyote. All rights reserved.
//
var YoutubeVideo = function(id, callback) {
var client = Ti.Network.createHTTPClient();
client.onload = function(video_info) {
Ti.API.debug('on load');