Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
59 user(s) are online (51 user(s) are browsing Forums)

Members: 1
Guests: 58

emeck, more...

Support us!

Headlines

 
  Register To Post  

YouTube from YAM under OS4
Just can't stay away
Just can't stay away


See User information
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

Go to top
Re: YouTube from YAM under OS4
Quite a regular
Quite a regular


See User information
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++
Go to top
Re: YouTube from YAM under OS4
Home away from home
Home away from home


See User information
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.
Go to top

  Register To Post

 




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




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project