Playing QT in Revlet, & saving changes made by viewers

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Playing QT in Revlet, & saving changes made by viewers

Post by Ron Zellner » Mon Jul 27, 2009 5:55 pm

(I have edited the title of a previous posting)
I have two questions about Revolution Media

1.A. I have a stack that plays a QT movie. I have a copy of the movie on the server and I set the player path directly to that copy. When I convert the stack and play it on the web I get audio, but no video from the player. Is it a codec problem or something like that? My browser plays the movies fine in regular html embed files.

1.B. Normally I would create the path to the movie (which would be in the same folder), but it does not seem to work in the web version:

Code: Select all

   put (item 1 to -2 of the effective filename of this stack) into SN
   --substitute the movie name and set the player filename
   put field "Movie Name" into MN
   set the filename of Player "MovieScreen" to SN &"/" & MN
That's why I made the direct link. Is this process different when accessed via the web?

2. I want to create stacks where the students each interact with the display. I record their actions and expect that the SQL data storage that monitors their activities will still work properly in the web version. However, I also want the student to interact with the graphic components (alter, move, create new ones, draw, etc.) Will they be able to save their changes and see them the next time they log on? If so, would I need a separate stack on the server for each student?

Would the changes/saves need to be on a server with read/write access, or can the changes be on the client side?

Thanks.
Last edited by Ron Zellner on Tue Jul 28, 2009 7:15 pm, edited 2 times in total.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon Jul 27, 2009 9:33 pm

Dear Ron,

If your movie play fine on your computer in QuickTime, but doesn't play on your computer in a player object of a stack inside the Revolution web plugin, you have probably encountered a bug in the web plugin.

I wonder whether the stack running in the browser plugin is looking for a file on the local computer rather than on the server. Perhaps, you need to set the filename to a url (just experiment with it).

Probably, you need to save student data in files. Your stack should save the data either locally or on the server. Next time when the student runs the stack, the stacks should read the previously saved file.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

SparkOut
Posts: 2944
Joined: Sun Sep 23, 2007 4:58 pm

Post by SparkOut » Mon Jul 27, 2009 10:43 pm

Mark wrote:I wonder whether the stack running in the browser plugin is looking for a file on the local computer rather than on the server. Perhaps, you need to set the filename to a url (just experiment with it).
I posted here because I thought at first it was the same issue, but seems to be rather different - I see you get sound but not visual in the movie, Ron.
Only I just started playing with sound files in a revlet today, and was looking for some info about how to specify the filename.
I found my stack worked in the IDE no problem at all, but I could not get a revlet to work with relative paths in any form. I'm testing on a WAMP setup so the server address is "localhost" but I found that specifying the full http:// path to the sound file on the server worked no problem, but I could not discover any combination of methods that made it work.

So

Code: Select all

set the filename of player "myPlayer" to "http://localhost/myAudioFile.mp3"
worked. Is there any information anywhere about how addressing of included media (or other) files should work?

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

That's the way it is in part 1A

Post by Ron Zellner » Tue Jul 28, 2009 2:55 am

Yes, I put the full path to the movie in my first example:

Code: Select all

set the filename of player "MovieScreen" to "http://myServer/myMovie.mov"
That URL finds the movie with no problems, but only the audio plays, not the video. The audio and video of the movie plays fine in the regular .rev file, and in a standard HTML embed web page.

In the second part (1.B.) I was describing a different attempt to play the movie by creating the path to a file in the same folder. This works fine in the .rev file but cannot find the movie in the web version.

Ron Zellner
Posts: 106
Joined: Wed May 31, 2006 9:56 pm
Contact:

Re: saving data

Post by Ron Zellner » Tue Jul 28, 2009 3:05 am

Saving data (e.g. text input, variables, calculations, etc.) to files isn't a problem. What I'm needing is for the student to change the card visually (e.g. move objects, link objects, create graphic & text objects, complete drawings, change colors, etc.) and then find the changes still there the next time he opens the revlet.

Post Reply