Re: Loading clips into a player

2014-09-15 Thread Mark Wieder
Beat-

Monday, September 15, 2014, 12:59:09 PM, you wrote:

> Nice link, Richmond. I've always been a fan of the Bonzo Dog Band
> and Vivian Stanshall, but I did't know this one. :-)

There are some wonderful Viv Stanshall post-Bonzos clips on youtube,
including, of course, the absolutely outrageous Rawlinson End series.
An acquired taste, no doubt, but well worth the effort.

-- 
-Mark Wieder
 ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Beat Cornaz
Thanks for all suggestions. I'll go with solution which was offered by Francis.

Nice link, Richmond. I've always been a fan of the Bonzo Dog Band and Vivian 
Stanshall, but I did't know this one. :-)

Cheers , Beat
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread J. Landman Gay

On 9/15/2014, 7:13 AM, Beat Cornaz wrote:

I want to have the clip inside a visible player. In that way I have
more control over how to play the clip. E.g. visibly nudging back a
bit, changing the play speed, seeing at what time the clip is so I
can mark it, etc. So I need to load the clip into a player, but not
from disc, but from inside my stack.


There's no way to play an embedded video in a player object, but there 
is a way to work around it. Delete the imported videos from your stack 
and then load them into custom properties instead. You can store binary 
data in custom properties this way:


 set the cThisMovie of this stack to url ("binfile:" & path/to/file)

When you are ready to play a video, write it to the temp folder. You can 
get a unique temporary file name using the tempName function. Then set 
the player filename to that:


 put tempname() into tFilePath
 put the cThisMovie of this stack into url ("binfile:" & tFilePath)
 set the filename of player 1 to tFilePath

The temp folder content is deleted automatically by the OS during 
routine maintenance, but if you want to remove the file yourself 
immediately after playback you can:


  if there is a file tFilePath then delete file tFilePath

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software   | http://www.hyperactivesw.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Richmond

http://www.youtube.com/watch?v=OhgLOv0YSeo

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Peter Haworth
You will have to come up with your own player controls to do this, buttons
that execute the various commands for playing a clip.

Pete
lcSQL Software 
Home of lcStackBrowser  and
SQLiteAdmin 

On Mon, Sep 15, 2014 at 5:13 AM, Beat Cornaz  wrote:

> on  Sun, 14 Sep 2014 Richmond wrote :
>
> > So, you have imported your audioClip / videoClip into your stacks.
>
> > play audioClip "myJazz.aiff"
>
> Thanks for your reply, Richmond. The thing is that I want to have the clip
> inside a visible player. In that way I have more control over how to play
> the clip. E.g. visibly nudging back a bit, changing the play speed, seeing
> at what time the clip is so I can mark it, etc. So I need to load the clip
> into a player, but not from disc, but from inside my stack.
>
>
> So my question is still open. Anyone?
>
> Thanks, Beat
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Colin Holgate
What is your use case where you need to have videos inside a stack? If you’re 
wanting to give someone a single file that has all the needed media, can you do 
a standalone instead? With those you can copy the media files in to the app in 
the Copy Files section of the standalone settings, and then load the media into 
a player this way:

 set the filename of player 1 to specialfolderpath("engine") & “/videoname.mp4"
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Klaus major-k
Hi Beat,

Am 15.09.2014 um 14:13 schrieb Beat Cornaz :

> on  Sun, 14 Sep 2014 Richmond wrote :
>> So, you have imported your audioClip / videoClip into your stacks.
>> play audioClip "myJazz.aiff"
> 
> Thanks for your reply, Richmond. The thing is that I want to have the clip 
> inside a visible player. In that way I have more control over how to play the 
> clip. E.g. visibly nudging back a bit, changing the play speed, seeing at 
> what time the clip is so I can mark it, etc. So I need to load the clip into 
> a player, but not from disc, but from inside my stack.
> 
> So my question is still open. Anyone?

You can't put internal sounds/videos into a player object!***
If you need to, you MUST keep the files outside of the stack.

*** You cannot even export or save-to-file any of the internal sounds/videos! 
:-/

> Thanks, Beat

Best

Klaus

--
Klaus Major
http://www.major-k.de
kl...@major-k.de


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-15 Thread Beat Cornaz
on  Sun, 14 Sep 2014 Richmond wrote :

> So, you have imported your audioClip / videoClip into your stacks.

> play audioClip "myJazz.aiff"

Thanks for your reply, Richmond. The thing is that I want to have the clip 
inside a visible player. In that way I have more control over how to play the 
clip. E.g. visibly nudging back a bit, changing the play speed, seeing at what 
time the clip is so I can mark it, etc. So I need to load the clip into a 
player, but not from disc, but from inside my stack.


So my question is still open. Anyone?

Thanks, Beat
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Loading clips into a player

2014-09-15 Thread Francis Nugent Dixon
Hi from Beautiful Brittany,

Beat,

Although it is your choice to include the videos in the stack,
it all depends on how many, and their sizes. Your stack could get
“rather” large, and you have to recompile and save for each addition.

I put my video clips in an external sub-folder that my stack can find.
The stack is never modified, because it reads the file list of the sub-
folder and you just click on the line of the required clip from the list.
Just add the new videos to the sub-folder, and the clip is automatically
available. I use F1 and F2 function keys to get in and out of full-screen mode.
I use this stack to contain my favourite clips from YouTube. Great Fun !!

I can mail you a copy of my stack if you want it. PC and Mac compatible.

Best Regards

-Francis


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Loading clips into a player

2014-09-14 Thread Richmond

On 14/09/14 21:11, Beat Cornaz wrote:

How can I load an already imported audio- or video clip into a player. The Clip 
is already in the stack.
I want to have the audio- and video clips residing in my stack, but through a 
popUp menu being able to load them into a player.

set the filename of player "Player 1" to myClipName - this does not work.
It only works if myClipName is a file path to the wanted file on disc. Not if 
the file is inside my stack.

There is no info on this anywhere in the LC user guide (5.1).

Thanks, Beat




So, you have imported your audioClip / videoClip into your stacks.

play audioClip "myJazz.aiff"

play videoClip "myNonsense.mov"

Richmond.

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Loading clips into a player

2014-09-14 Thread Beat Cornaz
How can I load an already imported audio- or video clip into a player. The Clip 
is already in the stack.
I want to have the audio- and video clips residing in my stack, but through a 
popUp menu being able to load them into a player.

set the filename of player "Player 1" to myClipName - this does not work. 
It only works if myClipName is a file path to the wanted file on disc. Not if 
the file is inside my stack.

There is no info on this anywhere in the LC user guide (5.1).

Thanks, Beat

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode