Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
81 user(s) are online (65 user(s) are browsing Forums)

Members: 0
Guests: 81

more...

Headlines

 
  Register To Post  

(1) 2 3 4 ... 19 »
SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
SMTube 2.1 svn6227

* In short, added some switchs to call SMTube from CLI

* [AmigaOS4] Fixed the start from CLI by lowering the Stack (???)

* [AmigaOS4] Now, options from CLI are working

APPDIR:SMTube "search string" -lang xx

allows to call SMTube from CLI with a search string and to specify a different language.

ex : APPDIR:SMTube "AmigaOS X1000" -lang fr

* [AmigaOS4] When started by CLI, tabs changes are disabled because it made a CPU loop (???)

* Added a new CLI switch "-url http://www.youtube.com/watch?v=XXXXXXXX" to directly download a video by his url.

ex : APPDIR:SMTube -url http://www.youtube.com/watch?v=XXXXXXXX

Unfortunately, on AmigaOS, a new SMTube instance will be started for each "-url xxx" request.

The QtSingleApplication.isRunning() function doesn't seems to work to detect if another instance is still running. (Alfkill if you are around ?)

http://os4depot.net/?function=showfile&file=video/play/smtube.lha


Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
Nice job! This project continues to impress me! Thank you.

I nearly headed off to the computer room to download it. Then, sadly I remembered all of my stuff is boxed away! Aarghhhh!!!

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: SMTube : new version on OS4Depot
Quite a regular
Quite a regular


See User information
@zzd10h
Thank you, i use it very often

Amiga600/Vampire2/PrismaMegaMix​/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Go to top
Re: SMTube : new version on OS4Depot
Not too shy to talk
Not too shy to talk


See User information
@zzd10h

great work, looking forward too test it when im off work..

thank you:)

Go to top
Re: SMTube : new version on OS4Depot
Home away from home
Home away from home


See User information
@zzd10h

Thanks Guillaume

Go to top
Re: SMTube : new version on OS4Depot
Home away from home
Home away from home


See User information
@zzd10h

Quote:
Unfortunately, on AmigaOS, a new SMTube instance will be started for each "-url xxx" request.


This can be solved by creating a Amiga MsgPort.

If port found send the URL to running SMTube and quit, if port not found run application like you normally do.


Struct MsgPort *smport;

BOOL msgport_startup()
{
    
Forbid();
    
smport FindPort(“smtube”);
    
Permit();

    if (
smport == NULL)
    {
        
smport AllocSysObject(ASOT_PORT ASOPORT_Name“smtube”TAG_END);
        Return 
True;
    }
    else
    {
        Return 
False;
    }
}

void msgport_shutdown()
{
    if (
smportFreeSysObject(smport);
    
smport NULL;
}

void send_msg(char *value)
{
    
struct smtube_msg *msg;

    if (
msg AllocSysObject(ASOT_MESSAGEASOMSG_Sizesizeof(struct smtube_msg) ,TAG_END))
    {
        
msg -> opt strdup(-url”);
        
msg -> value strdup(value);
        
PutMsg(smport,msg);
    }
}

void get_msg()
{
    
struct smtube_msg *msg;

    while (
msg GetMsg(smport))
    {
        
// 1. DO SOME THING
        // 2. Then clean up.
        
free(msg -> opt);
        
free(msg -> value);
        
ReplyMsg(msg);
    }
}


Edited by LiveForIt on 2014/6/2 20:39:32
Edited by LiveForIt on 2014/6/2 20:47:18
Edited by LiveForIt on 2014/6/2 20:49:38
Edited by LiveForIt on 2014/6/2 23:28:38
(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
@LiveForIt
Thank you for the advices.

@all,
you are welcome.

Go to top
Re: SMTube : new version on OS4Depot
Home away from home
Home away from home


See User information
ddniQuote:
Nice job! This project continues to impress me! Thank you. I nearly headed off to the computer room to download it. Then, sadly I remembered all of my stuff is boxed away! Aarghhhh!!!


+ 1 & let me fix that last sentence for you..."then, sadly I remembered all of my stuff is boxes away! DH0 !


Edited by 328gts on 2014/6/2 21:08:50
_______________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Catweasel MK4+= Amazing
! My Master Miggies-Amiga1000 & AmigaONE X1000 !
mancave-ramblings

Go to top
Re: SMTube : new version on OS4Depot
Home away from home
Home away from home


See User information
@zzd10h

Quote:
Thank you for the advice.


Fixed some errors in example code in case you want to use it.

(NutsAboutAmiga)

Basilisk II for AmigaOS4
AmigaInputAnywhere
Excalibur
and other tools and apps.
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
@328gts

LoL

AmigaOne X1000.
Radeon RX550

http://www.tinylife.org.uk/
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
@LiveForIt
Thanks again,
I will investigate / try to implement if somebody find that really useful to start multiples SMTube downloads by CLI.
I doubt ;)

Go to top
Re: SMTube : new version on OS4Depot
Quite a regular
Quite a regular


See User information
@zzd10h

The buttons "Newest" and "most viewed" seems to be broken.
I can`t use them in your latest version

Amiga600/Vampire2/PrismaMegaMix​/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
By CLI or in normal way ?

If by CLI, it's normal.

"* [AmigaOS4] When started by CLI, tabs changes are disabled because it made a CPU loop (???) "

Otherwise, in a normal way, it works for me

Go to top
Re: SMTube : new version on OS4Depot
Quite a regular
Quite a regular


See User information
@zzd10h

Not over CLI
I started SMTube over the icon
I deleted the old version completly and installed then the new version

Amiga600/Vampire2/PrismaMegaMix​/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
I will recheck this evening

Is somebody encounters the same issue with Tabs in "normal" start mode ?
Thank you


Edited by zzd10h on 2014/6/3 9:29:07
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
Great work, good to have have cli commands to be able to use with web browsers etc.

Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
"Most recent" and "most viewed" work as expected here. Maybe there is a settings file somewhere that you didn't delete? Try your Qt home folder.

Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
Kicko & Alfkill :
Thank you for confirmation, it works well for me too.

TommySammy :
Are you sure that you use the original .info icon (yours) ?

Because, I can reproduce your problem if I use "Shell" as default program instead of predefined "Workbench".

Go to top
Re: SMTube : new version on OS4Depot
Quite a regular
Quite a regular


See User information
@zzd10h
I deleted SM Tube again and deleted from Qt/home/conf/SMTube too.
Then i downloaded it again and installed it .
I can`t use "Music" and "Sports" "Newest" and "Most Viewed".
I use the original icon which are included
More tests to do....

Amiga600/Vampire2/PrismaMegaMix​/32GB CF Card/2x Rys Mk2/A604n/IndivisionECS/Gotek
Go to top
Re: SMTube : new version on OS4Depot
Just can't stay away
Just can't stay away


See User information
Nothing happens here when i press on any of the buttons on top like sports, music, and the most buttons.... i tried from the icon (reinstalled)

Go to top

  Register To Post
(1) 2 3 4 ... 19 »

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project