Hi Rohit, hope I can be of help.. As Mark said, you need to use a more recent version of jPlayer than 2.0.0 so download that first..
I use jQuery so I have an onReady function like so..
$(document).ready(onReady);
I also set up some global variables which contain the width and height of the browser window for you to resize to fullscreen. I also have a variable which will be true
when it is fullscreen and false when it isn't...
//global variables to hold browser window width and height infovar windowWidth;var windowHeight;//global boolean variable to hold whether you are in fullscreen or not. Set to false to begin with..var isFullscreen = false;
function onReady () {//here you set your variables above with the window width and heightwindowWidth = $(window).width() + "px";windowHeight = $(window).height() + "px";//this listens for a window resize event and then handles by using the onWindowResize function$(window).resize(onWindowResize);//this is the jPlayer constructor where you will also set the media etc.. Here I am just showing the relevant bits for fullscreen/resize$('#videoPlayer').jPlayer({//Size you want jPlayer to start with - I used 640px by 360px but obviously you can choose your own
size: {width: "640px",height: "360px"},
//Size of jPlayer when you go fullscreensizeFull: {width: windowWidth,height: windowHeight}});}
http://benalman.com/projects/jquery-resize-plugin/
function onWindowResize() {//only one event fired per resize due to the resize script being added//reset the windowWidth and windowHeight variables to the new width/height of the windowwindowWidth =$(window).width() + "px";windowHeight = $(window).height() + "px";if (isFullscreen === true){//resizing whilst in fullscreen//this is the important bit, you are telling jPlayer to redefine the fullscreen dimensions and then change to these new fullscreen dimensions
$("#videoPlayer").jPlayer("option", {"fullScreen": true});
$("#videoPlayer").jPlayer({//redefines the jPlayer fullscreen dimension (width and height)sizeFull: {width: windowWidth, height: windowHeight},//change to the new fullscreen dimensionsoption: {"fullscreen": true}});}else{//if you are not in fullscreen then you don't care about the resize event}}
function onFullscreen () {if (this.isFullscreen === false){//not fullscreen so going to fullscreen
//this is the important bit, you are telling jPlayer to change to the fullscreen dimensions you defined earlier in the constructor
$("#videoPlayer").jPlayer("option", {"fullScreen": true});
//Note: you will also have to use css to resize any divs which jPlayer is inside of. I use jQuery to do this by using either the addClass or css functions. Check the jQuery documentation for these if you don't know them
//as you are now fullscreen set the isFullscreen variable to trueisFullscreen = true;}else{//fullscreen already so going to come out of fullscreen//again this is the important bit you are telling jplayer to come out of fullscreen back to the original size//as you are no longer in fullscreen set the isFullscreen variable to falseisFullscreen = false;}}