XWidgetSoft Forum
https://xwidget.com/bbs/

video Widget
https://xwidget.com/bbs/viewtopic.php?f=8&t=4360
Page 1 of 1

Author:  astroganger [ April 11th, 2014, 6:42 am ]
Post subject:  video Widget

Hello everybody.

Is there any widget that can display a video clip :?: ? :ugeek:

regards

Author:  Jimking [ April 11th, 2014, 8:30 am ]
Post subject:  Re: video Widget

No astroganger... XWidget supports only music files though the XWidget's player widgets.

Author:  astroganger [ April 11th, 2014, 8:53 am ]
Post subject:  Re: video Widget

thank you jimking for reply

i want your help with this cod


what is the right line to make this work >>>>> htmlpanel1(url); <<<<<<


Code:


function edit1OnKeyDown(Sender,Key,KeyChar,Shift)
{
  if(Key==13)
  {
    button1(Sender);
  }
}

function image1OnMouseUp(Sender,Button,Shift,X,Y)
{
    edit1.SetFocus;
}


function button1OnClick(Sender)
{
    var url = "http://www.google.com/search?q=" + encodeURIComponent(edit1.text) + "&ie=UTF-8&oe=UTF-8";
    htmlpanel1(url);
}




Image

Author:  Jimking [ April 11th, 2014, 9:32 am ]
Post subject:  Re: video Widget

If you want to make Google search widget, you can use the script of this one:

Attachments:
google_search_vista_gadget.xwp [14.91 KiB]
Downloaded 387 times

Author:  astroganger [ April 11th, 2014, 9:51 am ]
Post subject:  Re: video Widget

no jimking

i want the html panel in my widget open the page , not open it on windows browser

Author:  astroganger [ April 11th, 2014, 9:53 am ]
Post subject:  Re: video Widget

this line >>>> htmlpanel1(url); is wrong . and i want to correct it . anyone can help with it

Author:  Jimking [ April 11th, 2014, 2:47 pm ]
Post subject:  Re: video Widget

So you want to reproduce the browser's function/url space?
If yes, you need to change more things in the code. Here is the script from a "Google Search" widget :
Quote:
function image6OnClick(Sender)
{
if(google.text=="") return;
var url = "http://www.google.com.hk/search?q=" + encodeURIComponent(google.text) + "&ie=UTF-8&oe=UTF-8";
openURL(url);
google.Setfocus;
}

function googleOnKeyDown(Sender,Key,KeyChar,Shift)
{
if(Key==13)
{
image6OnClick(null);
}
}


If you compare the two scripts, you keep almost the same script! You need to change the "edit" function.

Author:  hamid [ April 11th, 2014, 4:31 pm ]
Post subject:  Re: video Widget

this will open the url in browser and not htmlpanel
i don't think he want it that way

the problem is:
there is no command in autocomplete available to change the htmlpanel's url through script code,
so maybe there is no command exist to do so
so the code can't be fix yet.



i think there is also another problem in the code:
i think [button1(Sender);] should be [button1OnClick(Sender);] to execute the button1OnClick function. (if you don't have a [button1()] function in your code)

Author:  meme [ April 11th, 2014, 4:46 pm ]
Post subject:  Re: video Widget

If something like htmlpanel1.link = ??? or htmlpanel1.url = ??? or htmlpanel1.code = ??? does not exist, should it be added ?

Author:  astroganger [ April 11th, 2014, 9:52 pm ]
Post subject:  Re: video Widget

hamid you are right .... i want to make widget browser , and open the page in my html widget

something else , the animated xwidget when i opend it in my andriod phone didnot works any one can
confirm that the animated widgets not working on andriod os

regards

Author:  Jimking [ April 12th, 2014, 3:04 am ]
Post subject:  Re: video Widget

astroganger wrote:
hamid you are right .... i want to make widget browser , and open the page in my html widget

something else , the animated xwidget when i opend it in my andriod phone didnot works any one can
confirm that the animated widgets not working on andriod os

regards

Animations are not supported on XWidget Android app.
1) For memory/battery consumption
2) Not support for script code (yet?)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/