baiju
-
Posts
28 -
Joined
-
Last visited
Never
Posts posted by baiju
-
-
any body know about php streaming in JW player.
i tried to implement but always am getting 0% in player.
i have gone through this url.
http://www.jeroenwijering.com/?thread=6523
but not getting the o/p
here is my code
<?php
$file = "C:/xampp/htdocs/ref/video.flv";
header("Content-Type: video/x-flv");
header('Content-Length: ' . filesize($file));
$pos = 2346;
if($pos > 0) {
print("FLV");
print(pack('C',1));
print(pack('C',1));
print(pack('N',9));
print(pack('N',9));
}
$fh = fopen($file,"rb");
fseek($fh, $pos);
while (!feof($fh))
{
print(fread($fh, 8192));
}
fclose($fh);
?>
i tried in both way means in javascript as well as html
1.
<script type="text/javascript">
// <![CDATA[
var s1 = new SWFObject("http://localhost/ref/mediaplayer.swf","iwflash","560","260","9");
// for ExpressInstall
s1.useExpressInstall("playerProductInstall.swf");
//s1.setAttribute("xiRedirectUrl", window.location.href);
// the video file or the playlist file
s1.addVariable("file","/ref/video.flv");
// the PHP script
s1.addVariable("allowscriptaccess","true");
s1.addVariable("streamscript","http://localhost/ref/streaming.php");
s1.addVariable("bufferlength","1.2");
// for playlist
s1.addVariable("thumbsinplaylist","true");
s1.addVariable("shuffle","false");
//s1.addVariable("thumbimagewidth","60");
s1.addVariable("thumbimageheight","40");
// the width and the height of the video
//s1.addVariable("displaywidth","320");
s1.addVariable("displayheight","240");
s1.addVariable("autostart","true");
s1.addVariable("showdigits","true");
// for fullscreen
s1.addParam("allowfullscreen","true");
s1.addVariable("showfsbutton","true");
s1.write("player");
// ]]>
</script>
2.
<embed
width="640"
height="380"
flashvars="streamscript=http://localhost/ref/streaming.php&file=/ref/video.flv&backcolor=0x333333&frontcolor=0xBBCCDD&lightcolor=0xCCDDEE&autostart=true&type=flv"
allowfullscreen="true"
quality="high"
name="video"
id="video"
style=""
src="http://localhost/ref/mediaplayer.swf"
type="application/x-shockwave-flash"/>
-
Hi,
how to change upload_max_filesize dynamically. its not possible to change ini_set.
So please help me.
-
Hi,
how to change max_upload_size dynamically. its not possible to change ini_set.
So please help me.
-
Hi
any body know how to do DRM (digital rights management).
if any body knows plz help me.
its very urgent
thanks -
any body know fedex integration with php.
-
This is my coding, but i cant accept value
<?
for ($i=0; $i<=$count; $i++)
{
$record=db_fetch_object($rs);
?>
<input type="hidden" name="id[<? echo $i; ?>]" value="<? echo $record->linx_id; ?>">
<tr>
<td width="50%"><input type="text" value= "<? echo $record->title ?>" name="title[<? echo $i ?>]" size="31"></td>
<td width="50%"><input type="text" value= "<? echo $record->url ?>" name="url[<? echo $i ?>]" size="31"></td>
</tr>
<?
}
?> -
Hi
Is it possible to make text field as array.
If possible how we can retrive the values from form.
-
hi
I have different database. Both having same tables.
I want to insert all datas from first database to second database.
-
Hi
I done a login form. User name and password checking ajax script.
If password is wrong it showing correctly.
My prob is user name and password is correct, i want to redirect the page to members area -
then show your db coonection file
-
you assigning data in opp direction
$_POST['cartId'] = $cartId;
$_POST['AdultQuantity'] = $AdultQuantity;
it should be
$cartId = $_POST['cartId'] ;
$AdultQuantity=$_POST['AdultQuantity'] ; -
that value contain not only commas may be character also will come
that is problem.. -
hi
how to retrive a only number from string..
$val='3157100325,878042,379,1';
i need only numbers
out shoul be 31571003258780423791;
that means i need only integer values
please help me out -
if you are using in iis. it wont work. it will work in online
-
Hi
how to use rss in php..
how to read xml file into php..
-
hi
i have submenu using javascript. in one page i have list box also..
my prob is this is appearing behind the list box..
so we cant able to see the menu... -
hi
i have submenu using javascript. in one page i have list box also..
my prob is this is appearing behind the list box..
so we cant able to see the menu... -
hi
i have submenu using javascript. in one page i have list box also..
my prob is this is appearing behind the list box..
so we cant able to see the menu... -
my prob is ajax not working in morzilla firefox..
but this same code having no prob with internet explorer..
here is my javascript code
function createRequestObject()
{
if (window.XMLHttpRequest) { // Mozilla, Safari, Opera...
var xmlhttp = new XMLHttpRequest();
if (xmlhttp.overrideMimeType)
xmlhttp.overrideMimeType('text/xml');
}
else if (window.ActiveXObject)
{ // IE
try {
var xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
if (!xmlhttp) {
alert('Giving up :( Cannot create an XMLHTTP instance');
return false;
}
return xmlhttp;
}
var http = createRequestObject();
function sendRequest() {
var name = document.getElementById('name').value;
var email = document.getElementById('email').value;
var ph = document.getElementById('ph').value;
var addr = document.getElementById('addr').value;
var descr = document.getElementById('descr').value;
http.open('post', 'mail.php');
http.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
//alert('field='+field+'&field1'=field1);
http.send('name='+name+'&email='+email+'&ph='+ph+'&addr='+addr+'&descr='+descr);
//http.send('field1='+field1);
http.onreadystatechange = handleDetails;
}
function handleDetails() {
if (http.readyState == 4) {
var response = http.responseText;
document.getElementById('test').innerHTML = response;
}
}
-
Hi
i want to change the content without page refresh.
content will come from database.
is it possible with iframe / ajax?
so please help me with your ideas -
Hi
How to work with ajax, php and mysql.
its very urgent 4 me
-
In my php page only one data showing. while clicking on the next button it will show next data. For that am sending value to url . while sending the value to url it refreshing the page and make more time .
Is there any other way show next data without sending value to url.
-
Hi
Style sheet are not working in Mozilla Firefox. But no problem with internet explorer.
Style sheet saved as text.htm and calling by <link rel="stylesheet" href="text.htm">..
please give me solution -
Hi
now am currently working with mysql and php.
from where i can download postgre sql and how to install
and how to connect it with php
php streaming
in PHP Coding Help
Posted
i given like tht only--- http://localhost/ref/mediaplayer.swf