own3D(); } public function own3D() { $this->endpoint = 'http://api.own3d.tv/api.php'; } private function makeQuery() { if (isset($this->videoId) && is_numeric($this->videoId)) { $this->search_options="single_video_id=".$this->videoId; } else { $options_uri['search']=$this->searchText; $options_uri['sort']=$this->sortOrder; $options_uri['time']=$this->timeFilter; $options_uri['search_game']=$this->searchGame; $options_uri['sort_duration']=$this->minDuration; $options_uri['system_id']=$this->systemId; $options_uri['search_cat']=$this->categoryId; $options_uri['genre_id']=$this->genreId; $options_uri['limit']=$this->resultLimit; $options_uri['channel']=$this->channelName; $options_uri['favorites']=$this->channelFavorites; $this->search_options=http_build_query($options_uri); } return $this->search_options; } public function Execute() { if ($this->outputType=="array") { $this->data=simplexml_load_file($this->endpoint."?".$this->makeQuery(),'SimpleXMLElement', LIBXML_NOCDATA); foreach ($this->data->channel->item as $item) { foreach (get_object_vars($item) as $key=>$val) { if ($key=="misc") { $misc=get_object_vars($val->attributes()); $val=$misc['@attributes']; } $arr[$key]=$val; } $this->itemsArray[]=$arr; } if (empty($this->itemsArray)) $this->error="No Video Results"; return $this->itemsArray; } elseif ($this->outputType=="xml") { $this->XML=file_get_contents($this->endpoint."?".$this->makeQuery()); return $this->XML; } return false; } public function ErrorMsg() { return $this->error; } } ?> GoT - League of Legends Players
Twitch/Justin.tv Support! by Jeffroiscool (12-11-2011 2:10:53)
Hallo allemaal, 

Het is een tijdje geleden maar ik heb zojuist Twitch.tv/Justin.tv support ingebouwd voor de livestreams. 

Dit omdat de own3d videos al een ruime tijd bij mij gewoon weigeren te recorden, zelfs met support ben ik maar overgestapt naar Twitch.tv en ik moet zeggen. 

Werkt heerlijk :)

~Jeffro








© Thanks to Jeffro & SaphuA 2011 - 2012