View Full Version : how to run video on mac..
arisha
04-01-2005, 08:26 AM
i'm developing interactive cdrom using multiplatform operating system..then when i run the cd on mac..all the videos can't run..if anyone have some ideas..please help me to solve this problems..tq in advance.
arisha
04-01-2005, 08:29 AM
1 more thing..i'm used flv format for that video..compiled with flash mx 2004..sorry if my english was very bad..:(
arisha
04-05-2005, 02:44 AM
i'm developing interactive cdrom using flash mx 2004 for multiplatform operating system..the problems occur when we want to run video on mac platform..i can't run the video..hope anyone have any solution for this matter..tq in advance
Bosworth
04-05-2005, 06:45 AM
how are u "running the video"?
is it embedded?
is it a streaming flv?
i have used the netStream/netConnection classes to stream flvs and has worked perfectly on mac and pc... never could make the mediadisplay component work correctly... so that may be your problem (if that is what you are using)...
b([])x
arisha
04-05-2005, 07:58 AM
tq very much..
yes..i'm embedded the video to browser and using flv format to run it..
if u have any sample or coding to share with me don't hesitate to send it..i'm really appreciate it..
one more thing, i have used the netStream before this but still have problem with it..still can't run the video
Bosworth
04-05-2005, 04:49 PM
K -
"embed" and "stream" are two mutually exclusive methods (either or). to stream (which i think is what u want to do unless its a very small file) just follow the recipe - - -
in this case - you are going to stream an FLV called yourVideo.flv from your host server and use netStream/netConnection to do it... (again - as opposed to the mediaDisplay components which i have had no luck with).
go to components (?) and drag a "new video object" onto the stage = give it an id "myVideo"
then place the following code on the actions layer of your timeline:
// Create a NetConnection object
var netConn:NetConnection = new NetConnection();
// Create a local streaming connection
netConn.connect(null);
// Create a NetStream object and define an onStatus() function
var netStream:NetStream = new NetStream(netConn);
netStream.onStatus = function(infoObject) {
status_txt.text += "Status (NetStream)" + newline;
status_txt.text += "Level: "+infoObject.level + newline;
status_txt.text += "Code: "+infoObject.code + newline;
};
// Attach the NetStream video feed to the Video object
myVideo.attachVideo(netStream);
// Set the buffer time
netStream.setBufferTime(10);
// Begin playing the FLV file
netStream.play("http://www.yoursite.com/video/yourVideo.flv");
and be sure to update the id and path variables to fit your specs.
this is direct from the flash help files on the subject and has worked nicely for me on both mac and pc...
hope that helps!
b([])x
arisha
04-08-2005, 03:59 AM
sorry..actually i don't called flv file from host server.. i called directly from the cdrom..do you have any idea of that matter???..please reply me so soon
tq in advance..
Bosworth
04-08-2005, 05:45 AM
oh - so this is for a standalone cd project?
well - it works exactly the same way :)
just call the file at its folder location ("video/your_video.flv")
i just published a cd project that i pull this code from = so you should be in business.
note that video control is nill with this method. (unless you build that functionality into it).
b([])x
arisha
04-08-2005, 08:08 AM
yup..absolutely..
but i'm still can't run the video on mac n linux platform..
on windows platform the video worked nicely..
i'm follow ur coding exactly..pity me..:(
Bosworth
04-08-2005, 10:23 PM
don't know a thing about linux - other than it uses the opensource Unix codebase that mac draws upon for its OS's. that being said - this code works perfectly on my testbed mac (OSX). Flash was developed to run identically on both mac and pc - so i don't have a clue what would be still causing you problems...
hmmmm
all i can think of is your path to the video itself. I know that mac uses a colon ":" where pc uses a slash "/" and that messed with me for a little while.
anyone else have good ideas?
fvalerio22
04-08-2005, 10:56 PM
If you can afford it, try using Roxio Toast Titanium, not sure if you heard of it but it's a cd burning software that burns for both Mac and PC. The is an option that you can specifically select to burn for both Mac and PC. Hope this helps
arisha
04-11-2005, 07:22 AM
is that bcoz of the browser or flash player on mac platform..i can't run that video??..now we using safari browser on mac..i don't know if different browser have different function..just except the video can't run on mac..other function can run smoothly like background sound and ect....anyone else have any ideas..please help me..
Bosworth
04-11-2005, 05:22 PM
I use toast to create my hybrid discs - cheap and works well enough (though maybe a bit limited in capacity).
Arisha - if you are distributing on cd WHY would you still go through the browser? create a self-executing projector and your troubles should go away. shouldn't have to rework your project (much, anyway)...
b([])x
j.le.conte
12-19-2006, 10:14 PM
I have the same problem on a mac.
I have a netconnection/netstream but it is not working.
var nc:NetConnection = New NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
theVideo.attachVideo(ns);
ns.play("movie.flv");
The .fla and the .flv file are in the same folder.
I get the error:
**Error** Scene=Scene 1, layer=actions, frame=1:Line 1: Syntax error.
var nc:NetConnection = New NetConnection();
Total ActionScript Errors: 1 Reported Errors: 1
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.