Radio Stream Playlist

  HTML5 MP3 Player with Playlist Windows Playlist: playlist.asx <asx version = “3.0”> <Title>Radio Title</Title> <Author>https://www.svnlabs.com</Author> <Copyright>SVN Labs</Copyright> <PARAM name=”HTMLView” value=”https://www.svnlabs.com” /> <MoreInfo href=”https://www.svnlabs.com” /> <entry> <ref href=”http://stream-ip:port/stream” /> <Title>Radio Title</Title> <Author>https://www.svnlabs.com</Author> </entry> </asx>   Quicktime Playlist: playlist.qtl <?xmlversion=”1.0″?> <?quicktime type=”application/x-quicktime-media-link”?> <embed src=”icy://stream-ip:port/stream” autoplay=”true” />   Winamp Playlist: playlist.pls numberofentries=1 File1=http://stream-ip:port/stream Title1=Radio Title Length1=-1 version=2 … Read more

Install ionCube Loader

1. Download ionCube loaders # wget http://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86.tar.gz 2. Extract # tar zxvf ioncube_loaders_lin_x86.tar.gz 3. Move to /usr/local # mv ioncube /usr/local/ 4. Add reference to php.ini file Depending on PHP version select ioncube_loader_lin_5.x.so and ioncube_loader_lin_5.x_ts.so files # ls /usr/local/ioncube/ ioncube_loader_lin_4.1.so ioncube_loader_lin_4.4.so ioncube_loader_lin_5.1.so ioncube_loader_lin_5.3.so ioncube_loader_lin_4.2.so ioncube_loader_lin_4.4_ts.so ioncube_loader_lin_5.1_ts.so ioncube_loader_lin_5.3_ts.so ioncube_loader_lin_4.3.so ioncube_loader_lin_5.0.so ioncube_loader_lin_5.2.so ioncube_loader_lin_5.4.so ioncube_loader_lin_4.3_ts.so ioncube_loader_lin_5.0_ts.so ioncube_loader_lin_5.2_ts.so ioncube_loader_lin_5.4_ts.so … Read more

PHP Find Duplicate Strings in String

PHP Find Duplicate Strings in String. This demo is useful when PHP users need to find phrases in a PHP String $phrases = find_similar_phrases($string);   The function find_similar_phrases() will find the duplicate phrases in the PHP String and return an array containing duplicate phrases / strings. levenshtein — Calculate Levenshtein distance between two strings similar_text … Read more

Twitter OAuth PHP

Create applications that integrate Twitter https://dev.twitter.com/apps Basic authentication is not supported by Twitter API The first PHP Library to support OAuth for Twitter’s REST API. https://github.com/abraham/twitteroauth Read-only application cannot POST Twitter Demo http://demo.svnlabs.com/twitter/

Data Transfer from Amazon S3 to Web Server

We can transfer / copy Amazon S3 bucket with GB of data to EC2 machine and then transfer the data to the dedicated server. We need Amazon S3 details: Access Key: ? Secret Key: ? We need Web Server details: Host: ? User: ? Password: ? One option would be to run an Amazon EC2 … Read more

Image Matrix Using ImageMagick

ImageMagick create, edit, compose, or convert bitmap images. It can read and write images in different formats including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Image Operations * Resize * Flip * Mirror * Rotate * Distort * Shear * Transform * Adjust image colors * Special Effects * Draw … Read more

Install OpenMeetings

OpenMeetings – An Open Source Web Conferencing Solution that share microphone or webcam, share documents on a white board, share your screen or record meetings. Install Development Tools # yum groupinstall “Development Libraries” -y # yum groupinstall “Development Tools” -y IPTables – Make sure the following firewall ports are open 1935 (RTMP), 8088 (RTMP-Over HTTP), … Read more

VLC is not supposed to be run as root. Sorry

Today I need to install VLC Media player on CentOS 5.x to capture remote live event from VLC client as HTTP stream. So, I have installed that using # yum install vlc But VLC can not be run as root privileged user 🙁 # vlc VLC is not supposed to be run as root. Sorry. … Read more

Remote Secure Token

Remote Secure Token Wowza Token We already compiled FlowPlayer & JWPlayer for remote secure token in flex / flash files 😉 https://www.svnlabs.com/blogs/compile-or-build-flowplayer-or-jwplayer-to-create-secure-token-for-wowza-server/ https://www.svnlabs.com/blogs/wowza-mediasecurity-addon-package/ https://www.svnlabs.com/blogs/how-to-prevent-downloading-and-leeching-media-files/ (hotlink protection) Local Media Files We already protected local files using .htaccess file media hiding logic 😉 https://www.svnlabs.com/blogs/secure-token-plugin-with-php/ https://www.svnlabs.com/blogs/how-to-prevent-downloading-and-leeching-media-files/ (hotlink protection) External Media Files File can be protected both on server … Read more

SoundCloud Application

Connect the World of Sound * Share : http://developers.soundcloud.com/blog/sharing-sounds * Stream : http://developers.soundcloud.com/blog/stream-and-download * Customize : http://developers.soundcloud.com/blog/custom-players SoundCloud Widgets http://soundcloud.com/pages/widgets http://soundcloud.com/svnlabs API | Javascript SDK | Widget | Custom Player | oEmbed API Wrapper for SoundCloud written in PHP with support for authentication using OAuth 2.0 <?php try {     $response = json_decode($soundcloud->get(‘me’), true); } catch … Read more