Local videos not playing in Flash/Dreamweaver Air app
Hi there. I am having trouble playing local video from an Air app created from Dreamweaver. I have found many similar [posts, but most are about Flex and so on. I need some help getting this working form Flash and Dreamweaver.
What I did wat create a jQuery site that uses Flash to play videos. It will be packaged as a desktop Air app using the Dreamweaver Air plugin.
From advice that I got here (http://soenkerohde.com/2008/06/playing-local-files-with-air/)
I started a new Air Project in Flash as suggested. Using an Air flash app makes more sence I guess, but I still need to imbed it into an HTML framework.
Here is the code I am using:
import flash.filesystem.File;
var myVideo:Video = new Video(stage.stageWidth, stage.stageHeight);
addChild(myVideo);
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
var client:Object = new Object();
client.onMetaData = function(metadata:Object):void {
trace(metadata.duration);
ns.client = client;
myVideo.attachNetStream(ns);
var f:File = new File("Special_Assignment_Title.flv");
ns.play(f.url);
When I run this I get the following error:
<blockquote cite="">ArgumentError: Error #2004: One of the parameters is invalid.
at Error$/throwError()
at flash.filesystem::File/set nativePath()
at flash.filesystem::File()
at videoPlayer_fla::MainTimeline/frame1()[videoPlayer_fla.MainTimeline::frame1:17]</blockquo te>
Any suggestions on how to fix my problem? Any help would be greatly appreciated
Instead of using the File object, try URLRequest instead:
var urlReq:URLRequest = new URLRequest("Special_Assignment_Title.flv");
ns.play(urlReq.url);
Chris
Similar Messages
-
CER files not working in Flash (iOS AIR app)
I'm trying to test a flash project on my iPhone 5, but flash won't let it compile and opens the AIR pref pannel instead with the "certificates" field highlited.
I don't know why it would want that, but I searced for it on the apple developer website and found mine and downloaded it. But it's a CER file, and Flash wants a P12 file. I looked it up in the Adobe documentation (every bit of which sucks by-the-way) and it says I can convert with OpenSSL.
So I downloaded that from the OpenSSL website, but all I got was a bunch of seemingly random files. Fortunatly i'm good at digging through seemingly random files, so I did, and found 3 things: 1. It's not 64-bit compatible, 2. It's not Windows 8 compatible, and 3. It's not COMPILED! I'm pretty good at just about everything that involes computers, but if theres one thing I'm bad at it's COMPILING THINGS!
So this is my question(s):
1. Why doesn't Adobe Flash support CER files when that's all that Apple has for certificates?
2. Is there an online converter for CER to P12 files?
3. Why is OpenSSL not compiled?
4. Is there any other way to convert the files that works on Windows 8 Pro 64-bit?
5. Why is it so hard for anyone make a good Elecro song?
6. Would this work better on another platform?
7. What's up with Adobe's documentation?Found an online converter!
https://www.sslshopper.com/ssl-converter.html
Unfortunatly, it needs a "PFX Password" and a "Private Key File".
This is too much security. I don't even like security.
I WOULD RATHER WALK AROUND WITH MY S.S.N. ON MY SHIRT!
Also, I think Adobe is just trying to be anoying, because all I had to do to set up Xcode was type in my username and password, then click "add device to portal" in the device managment window. -
Facebook videos not playing on iPad Air(safari browser)
Why do my Facebook videos not play in iPad Air(safari browser) but same video play nicely on iPhone 4(safari browser). It asks me to download flash player to play on iPad but plays fine on iPhone without giving any prompt to download flash player.
You should not have trouble playing using the FaceBook app.
-
My itune music videos will not play through my soundlink air
Why do my itune music videos not play through my Bose Soundlink Air? My downloaded music plays fine. Also my music videos play through my iTouch its just through my Mac computer they won't.
I have had a almost identical problem but with windows 8 and with the internal speakers because i am using a laptop
-
Embedded MP4 videos not playing in iOS Safari
Hi everyone,
I'm having a problem with embedded MP4 videos (e.g. YouTube videos) not playing correctly in Safari. When I try to play one, I get one of two problems:
1. On my (first gen) iPad, Safari usually crashes.
2. On my iPhone 4, videos will load but only play audio, not video, though when I tap on the screen the "play" and "pause" symbols appear.
Has anyone else run into this problem? Or know how to fix it?
Thanks,
MikeOk, I fixed it. Go to some embedded Flash video, click to run and then right click to get Global Settings for Flash. Go into Storage and make sure you aren't blocking any data from being stored on your computer. At the very least choose the "ask me" setting. (For good measure I also went into Advanced and clicked to Delete All Data associated with Flash. But when I restored Block for data storage the videos stopped working, so that seems to be the answer.) I'd be interested to hear if this works for others.
-
Compressed videos not playing in IPAD
Hi,
I am using flash professional cs6 .my project is depends upon Multimedia.mainly my Application for iPad.
I am using some videos which are in .flv . Those flv files are too large so that i compressed all videos and loaded into my application.After building application those compressed videos are playing fine in my application.
But after published my application into .ipa file. and installed in IPad.but videos are not playing.
Please if any faced this problem suggest me.
I have done In My application with Videos
1.Compressed all videos into .MP4
2.Runed my application and tested ,Status: All videos are playing good
3.Published my App into .ipa
4..ipa file installed in IPAD, Status: Videos are not visible
Advance Thanks
Narsi
Message was edited by: Ak NarsiPlease post the codec details of your videos. MP4 is a container that supports a variety of audio and video codecs. Chances are you may have used a codec iPad doesn't support.
All my MP4s for iPad are using good old MainConcept H.264 for video and AAC stereo for audio. All playback is fine. Are you using something like x264 or something non-H.264? -
Yahoo video and other video not playing
Yahoo and other video not playing in firefox 37.0.2
They played automatically 5 days ago....since then video screen is blank...no 'play' button
I have updated Flash several times
Tried to play these videos on IE....don't play there either.
Thanks for your help!Note that your System Details List shows multiple Flash plugins.
# Shockwave Flash 15.0 r0
#Shockwave Flash 17.0 r0
You can find the installation path of all plugins on the <b>about:plugins</b> page.
*http://kb.mozillazine.org/Issues_related_to_plugins#Identifying_installed_plugins
You can check the Flash player installation folder for multiple Flash player plugins and remove older version(s) of the plugin (NPSWF32) and possibly (re)install the latest Flash player.
*(32 bit Windows) C:\Windows\System32\Macromed\Flash\
*(64 bit Windows) C:\Windows\SysWOW64\Macromed\Flash\
You can find the latest Flash player versions for Firefox on this page:
*http://www.adobe.com/special/products/flashplayer/fp_distribution3.html -
You tube videos not playing on safari, my flash player is up to date, i tried to refresh, quit safari, again tried to play, but every time it shows "an error has occurred, please try again later". I did almost everything to make it work but its not working... help needed
Try deleting the cache and cookies for YouTube.
-
When using ipad4, why do videos not play on Google? Audio works fine
WWhen using ipad,why do videos not play on Google? Audio still plays. I have reset the Google app and it will be ok for short time but then reverts back to not playing videos.
Hi Vernon70,
Welcome to the Apple Support Communities!
I understand that an application you downloaded from the App Store, Google, is not functioning as you would expect. In this situation, I would recommend following the troubleshooting steps outlined in the attached article.
If an app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
Best regards,
Joe -
Why are my videos not playing the right way up
Why are my videos not playing the right way up
I took four video clips while on a trip this week. Two are oriented the right way (playing wide on the device and imported correctly). The other two are Tall and not oriented right. Orientation is 90 degrees to the right. I don't know why this is happening on occasions. Even some pictures I took did the same **** thing. It's weird. And I can't figure it out. The camera is held the way I want the pictures and videos to be recorded and played but something internal is turning these videos and pictures 90 degrees clockwise.
-
Mp3 play but video not play my phone
my Email add. [email protected]
Moderator's note: E-mail address was removed. Please don't publish your personal contact information on a public forum.sharankumar1, which phone model do you use? Nokia phones are a bit picky about the file content, the codec. If you tell me your model, I tell you the available codecs. In the meantime, you have to convert your videos …
-
U310 Touch - Videos not playing after 8.1 Update
Hello,
I have updated from Windows 8 to 8.1 and updated all my drivers on my U310 Touch.
However, I seem to have a problem with web based videos not playing videos on the internet.
This seems to happen on every kind of web browser, including IE, Firefox, Chrome, and even Steam.
If anybody knows how to fix this problem, that'll be great.
Thanks in advance.Since the upgrade to 8.1.1 my iPhone 6 stopped recognising the fingers I had stored. I've deleted and addrd them again (which went as norma) and it still has problems recognising them. Seems very intermittent now, whereas before this upgrade was very reliable.
I've reverted to a pin code :-( -
In Windows how can I save a video just played by Flash Player?
In Windows how can I save a video just played by Flash Player?
This is what I ended up doing. I put the FLVPlayback inside a movieclip and put this on the first frame:
stop();
var vidTime:Number=0;
on the frame that the video plays on I have the video and a close button (which is a movieclip) and I put the following script:
if(vidTime>0)
htMeasVid.seek(vidTime);
close_btn.addEventListener(Event.ENTER_FRAME, seekCount);
close_btn.addEventListener(MouseEvent.MOUSE_UP, closeBtnUp);
function seekCount(e:Event):void
vidTime=htMeasVid.playheadTime;
function closeBtnUp(e:MouseEvent):void
e.currentTarget.parent.play();
on the following frame I have this code:
close_btn.removeEventListener(Event.ENTER_FRAME, seekCount);
htMeasVid.stop();
and then on the last frame I have this:
gotoAndStop(2);
so that it doesn't reset the vidTime variable to 0.
Thanks again for the help. -
Video not playing in Viewer during some assets, only audio until paused. once you hit the space bar or pause, the video shows up in viewer? same results when burnd to disc.
when dragging cursor through out timeline (track 1) video shows up in viewer fine too.
any advice on what could be wrong?
at first i was thinking this was a memory problem, i added another Gig of ram and the problem still exhists.
thanks!Hi Crazy Dan:
It's a kind of bug in DVDSP Simulator. If you build your project in your hard drive and test it with DVD Player all video will play fine.
I would like to tell you where exactly the problem is located, but it's just a Simulator problem.
Try building your project.
Hope that helps !
Alberto -
. I'm running Windows XP and FF 8.0. I'm having more trouble than ever with intermittent streaming and videos not playing all the way through. What is the easiest way to fix this?
That may be a problem with the VLC plugin. VLC has never worked for me properly on the occasions that I've tried it on Windows and Linux, so I have stop using it. There are usually other plugins or media players available that work better.
What kind of media files are that?
For WMP files you can install the new Windows Media Player plugin you can also try RealPlayer and QuickTime if it is about media that those programs can handle to see if that works better.
* https://support.mozilla.com/kb/Using+the+Windows+Media+Player+plugin+with+Firefox
* http://kb.mozillazine.org/Windows_Media_Player#Missing_plugin
* http://www.interoperabilitybridges.com/windows-media-player-firefox-plugin-download
Maybe you are looking for
-
Error while exporting to excel from a JSP page on Win XP
Hi, I have used the below code to output the content from jsp to excel file, its working fine until we noticed an error on computers with Windows XP installed. The application is working fine on Win 2k systems. Please help. response.setContentType("a
-
How a PR/PO will be link to fund center in case of plant purchase
hello all How we can linkt the purchase order or purchase requisition with the fund center in case of plant purchases i.e there is no account assignment in the PR/PO. Thanks alok gupta
-
Connecting imac to macbook. "No devices detected"
I'm attempting to share screens betwee my MacBook and my iMac. I'm using a 18Pin DIGITAL SINGLE LINK DVI-I CABLE to conect them. Both devices are reading "No devices detected". Any suggestions for my next step?
-
my widget thing is missing its not in application and i carnt find it in spotlight? its not been there for a while? it still comes up if i press f4
-
How acceed to docs in icloud drive
Is it possible to see the content of Icloud drive on m iphone and ipad (ios8.1.3) like I can do on explorateur windows.