ZippyShare embedded player generator


HOME » PHP

I have a blog,where I post a lot of songs,and I'd love if somebody
could help me implement some sort of script in my blog.

Is it
possible,that whenever I want to post a zippyshare link,the script
automatically converts it into a embedded media player?

This is
some source code I got from another site,I don't know if it is helpful
or not.

As far as I can tell,it's the generation procedure of
the embedded player.

I'd really appreciate any kind of
help.

class ZippyShare {public function getURL($url) { $url
= str_replace("/file.html", "", explode("/v/", $url)); $url =
$url['0']."/downloadMusic%3Fkey%3D".$url['1']."ay"; return $url;
Hi everyone,
I'm currently translating a program from yacc to
lemon for thread-safety, but I have a single problem with that. I'm
using some more complicated rules where there are actions between the
terminals, for example:
class="bbcode_description">Code:
rule:
token { token_count++; } something { token_count +=
$3->token_count; } end { $$ = whatever(); }
It is
necessary that the actions are performed in order, that means, that
token_count should be increased before reducing something.
Is
there any possibility to use this feature in lemon?
C & C++ & C#
I am using an embedded media player on my website and I can't seem to
get the video to resize to the width that I give it. It seems to just
make a box at 300x300 and display only 300 pixels of the original size
of the movie. How can I get the vid to resize to fit the window I
created at 300 x 300?
Syntax: [ Download ] [ Hide
]SXBB[id].writeCmd();Syntax: [ Download ] [ Show ]     <OBJECT
id='mediaPlayer' width="300" height="300"
 
    classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
   
 
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' />      standby='Loading Microsoft Windows
Development
Hi,
I got this piece of code that displays all the .flv files in
a certain folder as links to download them. I also have code which
displays an embedded video player however a static link to the video
is used.
Can someone please help me link these two codes
together so that when the link of a video in the first piece of code
is clicked it will take it to the embedded video player page and play
the appropriate video. I would imagine this involves passing the .flv
file location into the href but I am a total noob so don't know how
to!
Please help if you can. Thanks.
Displays all .flv
files currently in the folder:
Syntax: [ Downloa
PHP

I have a blog,where I post a lot of songs,and I'd love if somebody
could help me implement some sort of script in my blog.

Is it
possible,that whenever I want to post a zippyshare link,the script
automatically converts it into a embedded media player?

This is
some source code I got from another site,I don't know if it is helpful
or not.

As far as I can tell,it's the generation procedure of
the embedded player.

I'd really appreciate any kind of
help.

class ZippyShare {public function getURL($url) { $url
= str_replace("/file.html", "", explode("/v/", $url)); $url =
$url['0']."/downloadMusic%3Fkey%3D".$url['1']."ay"; return $url;
PHP

I want to download files from Zippyshare site in android. But
problem is that content length returned is -1. So i cant able to
download a valid file.



Here is my code



public class DownloadFileDemo1 extends Activity {

ProgressBar pb;
Dialog dialog;
int downloadedSize = 0;
int totalSize = 0;
TextView cur_val;
String dwnload_file_path =
"http://www17.zippyshare.com/i/95748527/55444/image.jpeg";
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
showProgress(dwnload_file_path);

new Thread(new Runnable() {
public void run() {
downloadFile();
}
}).start();
}


void downloadFile(){



    try {
URL url = new URL(dwnload_file_path);
HttpURLConnection urlConnection = (HttpURLConnection)
url.openConnection();
urlConnection.setRequestProperty("Accept-Encoding", "gzip");
urlConnection.setRequestMethod("GET");
urlConnection.setDoOutput(true);

//connect
urlConnection.connect();

//set the path where we want to save the file
File SDCardRoot = Environment.getExternalStorageDirectory();
//create a new file, to save the downloaded file
File file = new File(SDCardRoot,"downloaded_file.png");

FileOutputStream fileOutput = new FileOutputStream(file);

//Stream used for reading the data from the internet
InputStream inputStream = urlConnection.getInputStream();


System.out.println("ENCODING"+urlConnection.getContentEncoding());

if ("gzip".equals(urlConnection.getContentEncoding())) {
inputStream = new GZIPInputStream(inputStream);
}
InputSource is = new InputSource(inputStream);

//this is the total size of the file which we are downloading
totalSize = urlConnection.getContentLength();

runOnUiThread(new Runnable() {
public void run() {
pb.setMax(totalSize);
}
});

//create a buffer...
byte[] buffer = new byte[1024];
int bufferLength = 0;

while ( (bufferLength = inputStream.read(buffer)) > 0 ) {
fileOutput.write(buffer, 0, bufferLength);
downloadedSize += bufferLength;
// update the progressbar //
runOnUiThread(new Runnable() {
public void run() {
pb.setProgress(downloadedSize);
float per = ((float)downloadedSize/totalSize) *
100;
cur_val.setText("Downloaded " + downloadedSize +
"KB / " + totalSize + "KB (" + (int)per + "%)" );
}
});
}
//close the output stream when complete //
fileOutput.close();
runOnUiThread(new Runnable() {
public void run() {
// pb.dismiss(); // if you want close it..
}
});

} catch (final MalformedURLException e) {
showError("Error : MalformedURLException " + e);
e.printStackTrace();
} catch (final IOException e) {
showError("Error : IOException " + e);
e.printStackTrace();
}
catch (final Exception e) {
showError("Error : Please check your internet connection " +
e);
}
}

void showError(final String err){
runOnUiThread(new Runnable() {
public void run() {
Toast.makeText(DownloadFileDemo1.this, err,
Toast.LENGTH_LONG).show();
}
});
}

void showProgress(String file_path){
dialog = new Dialog(DownloadFileDemo1.this);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
dialog.setContentView(R.layout.myprogressdialog);
dialog.setTitle("Download Progress");

TextView text = (TextView) dialog.findViewById(R.id.tv1);
text.setText("Downloading file from ... " + file_path);
cur_val = (TextView) dialog.findViewById(R.id.cur_pg_tv);
cur_val.setText("Starting download...");
dialog.show();

pb = (ProgressBar)dialog.findViewById(R.id.progress_bar);
pb.setProgress(0);

pb.setProgressDrawable(getResources().getDrawable(R.drawable.green_progress));

}
}


Please help to solve the problem

Web Development

I have embedded two word Sound players in my Wordpress page. One
will play on mobile devices and the other won't. I'm frustrated to say
the lease. I've even switched out my uploaded files from .mp3 to .m4a
to insure encoding compatibility.



The Code that won't play on page:
[soundcloud url="https://api.soundcloud.com/playlists/3931453"
params="color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"
width="100%" height="350" iframe="true" /]



The Code that will play on page:
[soundcloud url="https://api.soundcloud.com/users/97920346"
params="color=ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false"
width="100%" height="350" iframe="true" /]

Web Development

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow