Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

where shall I write the code  given by you.

 

what is videoplayer.htm

 

 

videoplayer.htm contains what ?

 

Yes I will implemnt ur code  .

 

Please tell me How to implemnt.

 

 

R u on skype  etc?

 

Regular Contributor
Posts: 65
Registered: ‎01-03-2013
My Device: 9810
My Carrier: Tmobile

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

make a new html file name it videoplayer.html and add this code 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<!-- this is for the video player -->

<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>

</head>
<body>

</div><div class="ui-category-list" id="accordian" >
</div>
</div>

<!-- I am adding the video player in here but you can change the place --> 
<div>
<video id="my_video_1" class="video-js vjs-default-skin" controls
  preload="auto" width="640" height="264" poster="my_video_poster.png"
  data-setup="{}">
  <source src=http://techslides.com/demos/sample-videos/small.webm type=video/webm>
</video>
</div>

</div>
</body>
</html>

  in your page 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>YuppTV</title>
<link href="s40-theme/css/s40-theme.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/jquery-latest.pack.js"></script>
<script language="javascript" type="text/javascript" src="s40-theme/js/screensize.js"></script>
<script language="javascript" type="text/javascript" src="js/main.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="mwl-2.0.js"></script>


<!-- this is for the video player -->


<link href="http://vjs.zencdn.net/c/video-js.css" rel="stylesheet">
<script src="http://vjs.zencdn.net/c/video.js"></script>


<script>
$(document).ready(function() {
$(".tab_one").click(function (e) {
e.preventDefault();
$(".tab_one").addClass("selected").not(this).removeClass("selected");
});
});
</script>
</head>
<body onload="xmlDataSource.init(),setTimeout(function() { window.scrollTo(0, window.innerHeight) }, 100);" >
<div class="ui-page">
<!-- header -->
<div class="ui-header" id='test'>
<table class="header_table" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="header_table_td_height"><div class='ui-title'><img src="logo.png" width="200" height="60"></div></td>
</tr>
<tr>
<td class="header_table_td_height" ><div class='ui_text_show' id="headertext" style="display: block;">Please select your desired Language. </div></td>
</tr>
</table>
</div>
<div class="ui-content" >
<div id="tabs" style="display:none;">
<table>
<tr>
<td width="33%"><div onclick="LoadParser('2g');" class="tab_one selected">2G : Low</div></td>
<td width="33%"><div onclick="LoadParser('3g');" class="tab_one">3G : MEDIUM</div></td>
<td width="34%"><div onclick="LoadParser('wifi');" class="tab_one">WIFI : HIGH</div></td>
</tr>
</table>
<!--<ul>
<li><div onclick="bandtype='Low';test_fn('2g');" class="">2G : Low</div></li>
<li><div onclick="bandtype='Medium';test_fn('3g');">3G : MEDIUM</div></li>
<li><div onclick="bandtype='High';test_fn('wifi');">WIFI : HIGH</div></li>
</ul>-->
</div>

</div><div class="ui-category-list" id="accordian" >
</div>
</div>

<!-- I am adding the video player in here but you can change the place --> 
<div>
<frameset>
  <frame src="videoplayer.htm">
</frameset>
</div>


<div id="back" onclick="xmlDataSource.init();hideTab();">
<span class='back_btn'>Back</span>
</div>
</body>
</html>

 

-----
Please press the like button to thank the user that helped you.
Accept as a solution if it solved the problem.
Cheers
Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

Ok I have copied the code given  and created a videoplayer.html and included in my app folder  and changed my index.html  to as u have said.

 

 

I will update u after running on the device .Pls wait. Thank u for ur continued support.

 

 

 

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

Iam seeing that the video player tag is implemented and an external video player has opned , but it has shown the browser with my url earlier to that , which I want to avoid .

 

 

I heard that iframe  code works  to hide the url as below:

 

 

If you want to hide all actual url in your website. Just include the below code into your home page(i.e index.php or index.html)

Code: Select all<iframe src="index.html" width="100%" height="100%" frameborder="0" scrolling="no" />

 

 

 

Now Iam implementing that into the present  at

 

<div>
<frameset>
<frame src="videoplayer.html" width="100%" height="100%" frameborder="0" scrolling="no" />>
</frameset>
</div>

 

Let me check and update u soon.

 

 

 

 

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

No even though I used   <frame src="videoplayer.html" width="100%" height="100%" frameborder="0" scrolling="no" />>       

 

 

I is showing my url and address bar as well.

 

 

And Iam see ing the video frame rate has  become slow , video is playing very slowly like bit by bit.

 

 

 

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

Your frameset code is also not working . i have implemnted just as you said only.

 

 

Find out any othermethods in js  or browser arguments etc in .xml  

Developer
Posts: 672
Registered: ‎12-04-2012
My Device: BlackBerry 8520
My Carrier: Airtel

Re: please guide How to hide teh address bar and URL if possible in the browser in a web app for BB 7.0 OS mobiles

Hi yamafarroq

 

 

Can I   show a image or wallpaper  on the front when the browser is oping in the background and they play the vidoe then

 

 

if we are unable to hide the url  or  the address bar ?