Leaving fullscreen mode movie, it breaks navigation bar - fullscreen

I don't find solution to this problem.
I have tabgroup, on button click I open new window with movie. If I click fullscreen mode button, when I exit from this mode my navigation bar is broken (look attachment).
I have checked all my code but I don't understand what is the problem.
I think that I have this problem from sdk 5.0.0, before it worked fine.
On kitchen sink app works fine, but I'm not able to replicate it on my app.
function Video(_args) {
var self = Ti.UI.createWindow();
var activeMovie = Titanium.Media.createVideoPlayer({
url: _args.url,
backgroundColor:'#111',
mediaControlStyle:Titanium.Media.VIDEO_CONTROL_DEFAULT,
scalingMode:Titanium.Media.VIDEO_SCALING_ASPECT_FIT
});
self.add(activeMovie);
activeMovie.play();
self.addEventListener('close', function() {
LOG.info("Window closed");
activeMovie.stop();
});
return self;
};
module.exports = Video;
Open movie window
var Video = require('common/Video');
var winVideo = Video({url: videourl});
self.containingTab.open(winVideo);
before fullscreen mode
after fullscreen mode
Best regards

It's a known bug. Check the jira ticket here

Related

How to debug chrome extension at such part of code?

The code below is the JavaScript file works with popup.html from a small project.
I use it for chrome extension development learning.
The first part of this code piece is getting two variable from chrome storage, let's call it part1.
The second part is a button-click event function,Let's call it part2.
The button is on popup page and called "spend".
In part2, I can set a breakpoint2 on chrome debugger DevTools,when I click the button on popup page, it will stop at breakpoint2.
But when I place a Breakpoint1 at part1,the code will not stop at that line, even I add one more line "debugger;", the program will not stop there.
So my problem is how to make the debugger stop at places like breakpoint1?
The source code for the extension:https://drive.google.com/file/d/1odxJy9pGnovzox2yXH-6MDO03_T7QIDE/view?usp=sharing
//popup.js
$(function(){
chrome.storage.sync.get(['total','limit'],function(budget){
//Breakpoint1
$('#total').text(budget.total);
$('#limit').text(budget.limit);
});
$('#spendAmount').click(function(){
//Breakpoint2
chrome.storage.sync.get(['total', 'limit'],function(budget){
var newTotal = 0;
if (budget.total){
newTotal += parseInt(budget.total);
}
var amount = $('#amount').val();
if (amount){
newTotal += parseInt(amount);
}
chrome.storage.sync.set({'total': newTotal}, function(){
bla();
bla();
}
});
$('#total').text(newTotal);
$('#amount').val('');
});
});
});
Any assistance is highly appreciated,Thanks in advance.

Web browser with no title / windows bars

I've been looking into this for awhile now as I have created a client I would love to be able to run in a separate window (In a similar design to the Blizzard launcher or the old Ijji reactor). I was wondering if this was possible. Last week I created a web browser within Visual Basic but I was not happy with the final result at the bars where still stationed around the window. Any helpful tips or advice would be appreciated!
You didn't specify language, so you get it in c#. This might work. Starts chrome in app mode. here is the argument list
http://peter.sh/experiments/chromium-command-line-switches/
url = "--app=http://google.com";
Process[] pname = Process.GetProcessesByName("chrome");
if (pname.Length == 0)
{
chrome = false;
}
else // if chrome is running
{
if (!chrome)
{
Process process = new Process();
process.StartInfo.FileName = "chrome";
process.StartInfo.Arguments = url;
process.StartInfo.WindowStyle = ProcessWindowStyle.Normal;
process.Start();
//Process.Start("chrome", url);
}
chrome = true;
}

Haxe check which button is pressed (DOM Event)

I recently started programming in Haxe, because I don't like JavaScript too much. I made an EventHandler and wanted to check which button is pressed at this time. In the documentation I found Event.button, but that doesn't work (I think because of browser compatibility, it compiles to e.button in JavaScript which doesn't work).
How else can I check which button is pressed in my event?
To listen to an event you can do:
static function main(){
Browser.document.getElementById('myButton').onClick = clickHandler;
}
function clickHandler(e : Dynamic){
var target : Element = e.target;
}
This is will get the pressed element.

Catching jPlayer full screen event

I'm trying to catch jPlayer full screen event using the following code:
mainPlayer.bind($.jPlayer.event.resize, function(event) {
alert("size changed");
});
But the event isn't fired neither when I press full screen button nor when I press ESC to exit full screen mode.
Check your mainPlayer variable and make sure it references the jQuery jPlayer object. For troubleshooting, try:
$('#yourJPlayerID').bind($.jPlayer.event.resize, function(event) {
alert("size changed");
});

load sound dynamically in as2 having problem

I want to load sound placed in sounds folder.
Code is
var my_sound = new Sound();
my_sound.loadSound("sounds/sound1.mp3");
my_sound.onLoad = function(success:boolean){
if(success){
my_sound.start();
}
}
This plays sound when flash is open and pressing CTRL+ENTER(Test Movie).
but when we plays the swf it won't play sound.
for this problem i found one solution.
i made off onLoad function. and the Test Movie. Now the opposite things happend.
It dosen't play when press CTRL+ENTER (TestMovie);
but it plays when swf is playing.
Is there any other way of loading sound.
Try:
var my_sound:Sound = new Sound();
my_sound.onLoad = function(success:Boolean)
{
if (success)
{
my_sound.stop();
}
};
my_sound.loadSound("sounds/sound1.mp3", true);
This will stop the sound as soon as it's loaded.
Whenever you want to start the sound, just call this function:
my_sound.start();

Resources