NAME
WWW::Rediff::iShare - get ishare.rediff.com audio and video stream URL and download it to your system
SYNOPSIS
## Stream types are
## for audio : audio
## for video : video
use WWW::Rediff::iShare;
use Data::Dumper;
my $iShare = WWW::Rediff::iShare->new();
my $stream_data = $iShare->search( '<SONG NAME>', '<STREAM TYPE>' );
if ( ref($stream_data) eq 'ARRAY' ) {
foreach my $song ( @{$stream_data} ) {
print "Song Title " . $song->{comment}, "\n";
print "Song ID " . $song->{file_id}, "\n";
print "Download path " . $song->{path}, "\n";
}
}
else {
print $stream_data;
}
## To Download song
$iShare->download('<song id>');
## To Get HTML code to embedded this song to your webpage
my $html_code = $iShare->get_player_embedded_code('<song id>');
DESCRIPTION
Get Audio and Video Streaming url form Rediff iShare and download it. Audio file will be download as .MP3 and Video file will be download as .flv
The following functions are provided by this module:
- new()
-
Constructor.
- search($song_name, $stream_type)
-
The search() function will search the given song based on specified stream type and return you and array of songs found. It returns
No result found
if it nothing found. The $stream_type argument can be eitheraudio
orvideo
. - get_stream_url($song_name, $stream_type)
-
The search() function will search the given song based on specified stream type and return you and array of songs found. It returns
No result found
if it nothing found. The $stream_type argument can be eitheraudio
orvideo
. - download($song_id)
-
Download the given song id. If the song stream is audio it download a mp3 file otherwise it will download .flv file. Song id can get from Search function.
- get_player_embedded_code($song_id)
-
This function will get you html code to embedded this song to you webpage.
AUTHOR
Rakesh Kumar Shardiwal, <shardiwal at cpan.org>
BUGS
Please report any bugs or feature requests to bug-www-rediff-ishare at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Rediff-iShare. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc WWW::Rediff::iShare
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
COPYRIGHT & LICENSE
Copyright 2008 Rakesh Kumar Shardiwal, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.