Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
67 user(s) are online (54 user(s) are browsing Forums)

Members: 1
Guests: 66

jap, more...

Headlines






YouTube from YAM under OS4
Just can't stay away
Joined:
2009/2/9 19:32
From Brussels Belgium
Posts: 1121
This DOS script can be used with YAM.
If in a mail an URL is given , a double click will either open the URL in muiOWB or if it points to a YouTube video, will play it.
I installed it in sys:utilities getvideo drawer. You may have to edit for your system.
.KEY url/A
;called from YAM "on clicking URL"  sys:Utilities/getVideo/PlayYTube %p

set metube 
`cut  "<url>" char -28`
cd sys:Utilities/getVideo
IF  $metube EQ "http://www.youtube.com/watch"
    
Requestchoice video  "<url>" ok
    Getvideo
.rexx "<url>" play
ELSE
    
cd datas:muiowb  datas:muiowb/owblauncher does nothing 
    waitforport OWB.1 timeout 0
returns 0 if found if not
    
IF WARN
        RUN owblauncher 
        waitforport OWB.1 timeout 10
        
IF WARN
            
echo "waited not long enough or OWBlauncher problem"
        
ELSE
            
wait 3 the rexx command  below will not work without it
            
            RX 
"address OWB.1 'OPEN  NAME ""<url>"" '"
        
ENDIF
    ELSE
        
RX "address OWB.1 'OPEN  NAME ""<url>"" '"
    
ENDIF
ENDIF
cd sys:Utilities/getVideo



If you solved this in other way would be interested in knowing how

   Report Go to top

Re: YouTube from YAM under OS4
Quite a regular
Joined:
2008/5/2 13:14
From Sweden
Posts: 509
Appears noone has a better solution

Myself I rarely get youtube links in e-mails, but sometimes over chat, like IRC or MSN. It can probably be connected to those too.

_________________
Software developer for Amiga OS3 and OS4.
Develops for OnyxSoft and the Amiga using E and C and occasionally C++
   Report Go to top

Re: YouTube from YAM under OS4
Home away from home
Joined:
2007/5/19 14:23
From England
Posts: 3564
An alternative would be to copy the URL into the clipboard (I assume YAM can do that!), and then use ClipDown to view the video.

I already have ClipDown run when OWB is run (thanks to a little script), and it wouldn't be any harder to do that with YAM, SimpleMail, etc. (But same as Deniil, I rarely get YouTube links in email, so I haven't bothered.)

_________________
Author of the PortablE programming language.
I love using Amiga OS4.1
It is pitch black. You are likely to be eaten by a grue...
   Report Go to top





[Advanced Search]



Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project