Confused over video sizing and positioning
I'm using FB 4.5.1 to create a mobile app and having a bit of trouble figuring out what's happening with sizing. My stage is 480x800 so that's what I set my container to but no change in video size. So I size the video but I have to use 320x240 to get the full width and aspect ratio... why?
mps = new MediaPlayerSprite();
var container:UIComponent = new UIComponent();
container.width = stage.stageWidth;
container.height = stage.stageHeight;
addElement( container );
container.addChild(mps);
mps.width = 320;
mps.height = 240;
I tried using mps.ScaleMode = "letterbox"; but that didn't do anything and x,y is still 0,0.
I'm using an .flv file to test. I've also tried a .mp4 but I only get audio with that and no video. Suggestions greatly appreciated.
Took a look and tried a number of approaches but still the same thing. However, the example uses MediaContainers and LayoutMetadata and I was using the MediaPlayerSprite. So, I took the entire project and put it into my program. Different results, but not necessarily good. The video is about 4x the size of the original (160x120) and its top is halfway down the screen. I messed with StageScaleMode.NO_SCALE a little and got varying results, none of which are close.
I'm wondering should I be using the sprite or do I need the full controls? Is the fact that my project is for a mobile device a problem? As such, I wasn't able to add the child to the stage, I had to create a UIComponent add that to the stage and then the MediaContainer to that.
Similar Messages
-
Confusion over nested tables and system generated nested tables
Hi,
I have been reading other threads about nested tables, naming and updating them etc, but I have what seems
to me some odd behaviour.
I modified my schema to set the attribute xdb:maintainDom to be false for a collection and then registered
the schema with the generate tables option defaulted to true. The result was that I had to add xdb:tableProps
attributes specifying nested table storage at each element above the collection element, this was because Oracle
was creating tables at each level. So I have this kind of thing:
<xsd:element name="BibPt" xdb:SQLType="BIBPT_T"
xdb:defaultTable="BIBPT"
xdb:tableProps="NESTED TABLE XMLDATA.PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
NESTED TABLE XMLDATA.INVS.INV STORE AS NESTED_INV_BIBPT TABLESPACE BIBLIO">
<xsd:element name="Ptees" xdb:SQLType="PTEES_T" xdb:tableProps="NESTED TABLE
XMLDATA.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC2">When I did this the nested tables were created, but when I loaded data never had anything in them. Instead
I found that nestes tables with systems generated names like "SYSNTxxxxxxxxx" has been created that contained
the data.
When I registered the schema without the tables being generated, I created a table with this syntax:
create table poc_wip2 of xmltype
xmlschema "http://www.derwent.co.uk/wpi.xsd" element "WPI"
NESTED TABLE XMLDATA."BibPt".PTEES.PTEE_SEC.PTEE STORE AS NESTED_PTEE_SEC
NESTED TABLE XMLDATA."BibPt".INVS.INV STORE AS NESTED_INV_BIBPT(Thanks to a posting by Sam Monsarrat which showed me this was possible).
Now I had my named nested tables, which contained the data after it was loaded and no system named
nested tables.
So why the difference?
In the first instance why do my named nested tables stay empty and why does the data go into system
generated tables I have no control over as regards tablespace placement?
Is it possible to have a XML schema registered that only generates tables that I have named with the defaultTable
attribute, rather than all or nothing?
And last but not least, what's the best approach for this, since I want to be able to access the data via indexes
on the nested tables.
Thanks
PeteHi Pete
Would you please publish the schema you are using?
Thanks,
Tobias -
Confused over Activation Date and Engineer Visit D...
Placed an order for the full lot, phone, internet, TV. This is for a new development, with "BT lines pre-installed" (but not activated).
I will recieve the equipment tommorow and the (estimated) activated is also tommorow, however I have just come to realised the scheduled engineer visit is not tommorow but the day after (Monday), this was moved/changed without notifying me.
I gave BT a call, the kind gentleman on the phone suggested to me because it is a new development, chances of work needing to be carried out inside or anywhere within my property is extremely slim, maybe just to test. I agree here as it seems my neighbours all have working phone lines very quick with minimal hassle.
For fun, I decided to give my own phone number a ring. It connects fine, but because there's no dial tone my phone didn't ring on the line; I assume the activation hasn't been carried out yet.
So my query here is the activation carried out elsewhere or by another team, while the engineer just comes and checks if everything is ok? Best case scenario is that I recieve my equipment tommorow, mainly the phone/router and my phone and internet works when I whack it in, I could care less for the TV right now.
Just to reiterate this is a new development/block of flats and the developers have done everything to make it as easy as possible, as initially they said "just give BT a call and they will activate it for you". I haven't questioned my neighbours yet on how they got their's so fast yet as due to my awkward working hours I can't easily get hold of them without disturbance.Hi there,
The activation is usually done automatically (may take upto midnight on the day of activation) and then the engineer who will run tests on the line to check that it is stable will make sure it is in running order.
Hope this helps. -
Confusion over Skype numbers and forwarding
I must be getting old because I cannot figure this out. I have a Skype number in USA, one in Japan and one in UK. I also have a worldwide call subscription. (I can call any landline, mobile or Skype account anywhere in the world free of charge (aside from the yearly charge I pay to Skype)) In addition, my business has a US/Can. toll free number. OK? Here is what I want to do. I want all calls to any of these numbers forwarded to my mobile iPhone in Japan. Can anyone help with a step-by-step on how to do this in the cheapest manner with the best call quality. I am assuming I can do this without any per call charges using my subscriptions above. Your help is greatly appreciated.
editfast wrote: I also have a worldwide call subscription. (I can call any landline, mobile or Skype account anywhere in the world free of charge (aside from the yearly charge I pay to Skype))
Hello,
To answer your query we would need to know which Subscription you have. (The Unlimited World Subscription does not include everything which you state above).
TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
I recommend that you always run the latest Skype version: Windows & Mac
If my advice helped to fix your issue please mark it as a solution to help others.
Please note that I generally don't respond to unsolicited Private Messages. Thank you. -
Confusion over Context.list and listBindings
Sorry for this newbie question.
How do I list all the bindings I have created? Working on Windows, the JNDI service creates a file called .bindings, which holds all the bindings. I can bind, unbind, rebind and lookup fine. But I cannot list the bindings.
Here is sample code to illustrate what I mean.
import java.util.*;
import javax.naming.*;
import sun.jdbc.odbc.ee.DataSource;
public class Test {
public static void main(String[] arg) throws NamingException {
final DataSource ds1 = new DataSource();
final DataSource ds2;
final Hashtable env = new Hashtable(2);
final Context ctx;
// Bind a DataSource to the name "MyTest". The ".bindings" file
// goes into "C:\My Documents".
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL, "file:C:/My Documents");
ctx = new InitialContext(env);
ds1.setDatabaseName(";FILEDSN=MyTest");
ctx.bind("jdbc/MyTest", ds1);
// Verify that the DataSource was saved where we can look it up.
// I have used this method in several programs and it works
// perfectly.
ds2 = (DataSource) ctx.lookup("jdbc/MyTest");
// Look up the current bindings.
// This is the part where I'm doing something wrong.
LookUpCurrentBindings :
for (final NamingEnumeration ne = ctx.list(""); ne.hasMore(); ) {
final NameClassPair ncp = (NameClassPair) ne.next();
// I expect the following to show "jdbc/MyTest", but instead
// it lists the files in the directory "C:\My Documents".
// For example, "desktop.ini" and ".bindings".
System.out.println(ncp.getName());
}Thanks for your help!Aha! I found out what the problem was. It was indeed to do with my "newbie" status in JNDI, not understanding some basics. If the .binding file is in a directory of its own, in this case jdbc, it works! Specifically:
(1) Create the context jdbc within the directory (this creates the directory C:/My Documents/jdbc).
(2) Bind the names within that directory (e.g. MyTest instead of jdbc/MyTest).
(3) The list() and listBindings() functions list both the .binding file (class java.io.File) and the bound objects (their correct classes, in this case sun.jdbc.odbc.ee.DataSource).
Here is the code that I used.
import java.util.*;
import javax.naming.*;
import sun.jdbc.odbc.ee.DataSource;
public class Test2 {
public static void main(String[] arg) throws NamingException {
final DataSource ds1 = new DataSource();
final DataSource ds2;
final Hashtable env = new Hashtable(2);
Context ctx;
// Create a context called "jdbc" within the base directory.
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL, "file:C:/My Documents");
ctx = new InitialContext(env);
try {
// Find the "jdbc" directory as a Context.
ctx = (Context) ctx.lookup("jdbc");
} catch (NamingException e) {
// Create the "jdbc" directory as a Context.
ctx = ctx.createSubcontext("jdbc");
// Bind the new DataSource in the context to the name MyTest.
ds1.setDatabaseName(";FILEDSN=MyTest");
ctx.bind("MyTest", ds1);
// Verify that the DataSource was saved where we can look it up.
ds2 = (DataSource) ctx.lookup("MyTest");
if (! ds1.getDatabaseName().equals(ds2.getDatabaseName())) {
throw new IllegalStateException("Oops, something funny happened.");
// Add another binding, just for fun.
ctx.bind("ForGoodMeasure", ds2);
// Look up the current bindings. This displays the file .bindings
// (class java.io.File) and the bindings within that file (class
// sun.jdbc.odbc.ee.DataSource).
LookUpCurrentBindings :
for (final NamingEnumeration ne = ctx.list(""); ne.hasMore(); ) {
final NameClassPair ncp = (NameClassPair) ne.next();
System.out.println(ncp.getName() + "\t\t" + ncp.getClassName());
ctx.close();
}And here is the output.
.bindings java.io.File
ForGoodMeasure sun.jdbc.odbc.ee.DataSource
MyTest sun.jdbc.odbc.ee.DataSourceBala, thank you so much for your input, which led me to the right answer. I shall pass a couple of Dukes your way.
Paddy -
Confusion over script and how to make video play
Hi folks,
I have created a SWF file that includes video, audio and
text. All three parts work fine when I play the SWF file, although
I would like to know what code I should put to be able to stop the
audio from playing.
But my main problem is once I have the SWF file uploaded to
my site. The audio and text part works fine, but the video of a
robot comedy performance will not play. I am not sure why this is,
but when I uploaded the file to Dreamweaver there was a Script file
called AC_RunActiveContent.js that automatically downloaded along
with a file called .htaccess. I uploaded both these files too, but
the video part of the SWF file still would not play. I have tried
the SWF file in Mozilla, IE7 and Flock, but no luck. I also tried
pasting the AC_RunActiveContent.js into my Dreamweaver page and
uploaded that, but that did not work either. I just got all the
code showing. For those who want to see the SWF file for themselves
the link is
http://www.marykingmedia.com/manga2/index.htm
For those curious about the AC_RunActiveContent.js code, I
will paste below. I am not sure if this is Actionscript or not. If
it is, I do not know which Actionscript it is.
But I have absolutely no idea what the problem is, or what I
am supposed to do here. I would be grateful for any help you can
give me. Keep explanation as simple as you can because I am not
terribly tech savvy.
Thanking you all.
Mary
p.s./ I am using Dreamweaver CS3, if that means anythingIf you're playing the video from Videos and TV application then it should work.
640K Should be enough for everybody
El_Loco Nokia Video Blog -
Graphics issue: vertical lines over videos and photoshop files!
Hi,
I´ve notice a very annoying thing on a Power Mac G4, using 10.4.9
There appeared some verticall green lines over web videos (flash), but then appeared on a photoshop image. The lines look like those nasty stains that appear on you monitor when your running out of ram (you know, dots and lines of different colors) The thing ir, the g4 has 2gb of ram... so i guess the ram issue is discarded. Hoping it was a system error, the image was printed and led to a big surprise, the image had the lines in it.
here are some images:
http://flickr.com/photos/87085177@N00/500938008/
http://flickr.com/photos/87085177@N00/500938012/
The lines over the photoshop image looked alike, but in green.
anyone knows about this issue?
thanx in advance
Intel Imac 17" Mac OS X (10.4.8) I hope Adobe would speed up.I run Maximized, so the window fills the available space (you can set the shortcut properties to open that way so you don't have to do it each time), or you could resize the window from the top, then grabe the title bar and drag it upward on the screen. Windows should remember the size and position, but it may not, being Windows, after all.
-
FPC wont let me render! I'm a video editor and have over 70 gb worth of videos on the imac which all need to be kept for various clients/backup/original versons but now beloved imac is full, only had it for 5 months! Will Ineed external hard drive every 5 months?? This can't be I've already resorted to getting rid of unsed applications such as garage band, iTunes,address book ect. I've trashed everything I could. what next ???
My video files are massive, converting them to a different format doesn't reduce the size of them it just turns them into mp4 or apple pro res ect
This iMac is for work only so there's no pictures, no music, no conacts, no messenger, no games, nonothing but videos!!Have a look at this: http://grandperspectiv.sourceforge.net/
It will show you exactly what is taking up all of your space.
You also may want to consider some kind of external storage just for your video projects. -
I got my wisdom teeth out and my sister has a couple videos of me I wanted. When she sent them from her iPod to my iphone I didn't get them. I turned my phone on and off and my data is even on but it's been over an hour and I haven't got a thing
How did she send them?
-
I use my PowerPC Quicksilver G4 (2.1), 867 MHz, 1.5 GB standart video card system 10.4.11 to scan (lack of driver for my Mac Pro 10.6.8)
The G4 has been running flawless, now I get kernel panics every time (shut down your computer). When it stays on I get blotched video
left-over spots, tearig and then shut down your computer...
I did all recommended software tests Diskutility, rebuild with DiskWarrior and Apples full Hardware test. Everything comes out fine!
I am at the end of my know how. Thank you for any help
W.W.
I am attaching the latest crashreport:
Unresolved kernel trap(cpu 0): 0x300 - Data access DAR=0x0000000047AC834E PC=0x0000000000821D3C
Latest crash info for cpu 0:
Exception state (sv=0x37D2EA00)
PC=0x00821D3C; MSR=0x00009030; DAR=0x47AC834E; DSISR=0x40000000; LR=0x00821D24; R1=0x21E23B40; XCP=0x0000000C (0x300 - Data access)
Backtrace:
0x00032E98 0x0081AB20 0x0080AC74 0x002E9A80 0x002EB94C 0x0008C248
0x00029234 0x000233F8 0x000ABEAC 0x5038514E
Kernel loadable modules in backtrace (with dependencies):
com.apple.GeForce(4.1.8)@0x7ff000
dependency: com.apple.iokit.IOPCIFamily(1.7)@0x491000
dependency: com.apple.iokit.IOGraphicsFamily(1.4.2)@0x5fc000
dependency: com.apple.iokit.IONDRVSupport(1.4.2)@0x620000
dependency: com.apple.NVDAResman(4.1.8)@0x636000
Proceeding back via exception chain:
Exception state (sv=0x37D2EA00)
previously dumped as "Latest" state. skipping...
Exception state (sv=0x38A98780)
PC=0x9000B348; MSR=0x0200F030; DAR=0x01785000; DSISR=0x42000000; LR=0x9000B29C; R1=0xF0202F20; XCP=0x00000030 (0xC00 - System call)
Kernel version:
Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
panic(cpu 0 caller 0xFFFF0003): 0x300 - Data access
Latest stack backtrace for cpu 0:
Backtrace:
0x000954F8 0x00095A10 0x00026898 0x000A8204 0x000ABB80
Proceeding back via exception chain:
Exception state (sv=0x37D2EA00)
PC=0x00821D3C; MSR=0x00009030; DAR=0x47AC834E; DSISR=0x40000000; LR=0x00821D24; R1=0x21E23B40; XCP=0x0000000C (0x300 - Data access)
Backtrace:
0x00032E98 0x0081AB20 0x0080AC74 0x002E9A80 0x002EB94C 0x0008C248
0x00029234 0x000233F8 0x000ABEAC 0x5038514E
Kernel loadable modules in backtrace (with dependencies):
com.apple.GeForce(4.1.8)@0x7ff000
dependency: com.apple.iokit.IOPCIFamily(1.7)@0x491000
dependency: com.apple.iokit.IOGraphicsFamily(1.4.2)@0x5fc000
dependency: com.apple.iokit.IONDRVSupport(1.4.2)@0x620000
dependency: com.apple.NVDAResman(4.1.8)@0x636000
Exception state (sv=0x38A98780)
PC=0x9000B348; MSR=0x0200F030; DAR=0x01785000; DSISR=0x42000000; LR=0x9000B29C; R1=0xF0202F20; XCP=0x00000030 (0xC00 - System call)
Kernel version:
Darwin Kernel Version 8 Model: PowerMac3,5, BootROM 4.2.5f1, 1 processors, PowerPC G4 (2.1), 867 MHz, 1.5 GB
Graphics: NVIDIA GeForce2 MX, GeForce2 MX, AGP, 32 MB
Memory Module: DIMM0/J21, 512 MB, SDRAM, PC133-333
Memory Module: DIMM1/J22, 512 MB, SDRAM, PC133-333
Memory Module: DIMM2/J23, 512 MB, SDRAM, PC133-333
Modem: Spring, UCJ, V.90, 7.0F, á¸
Network Service: Built-in Ethernet, Ethernet, en0
Parallel ATA Device: WDC WD1200JB-00GVA0, 111.79 GB
Parallel ATA Device: ST3120814A, 111.79 GB
Parallel ATA Device: PIONEER DVD-RW DVR-103
USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA
USB Device: Apple Optical USB Mouse, Fujitsu Takamisawa Component, Up to 1.5 Mb/sec, 100 mA
USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mAThank you for your reply BDAqua.
Yes I ran short and the Extended Test. All pass. One of the first things I did is Safe Boot several times I also repaired permissions. Safe boot takes no longer than before the crashes and as long as I stay in safe boot mode it won't crash. What does that mean?I also ran MacJanitor and removed the SCCUZI card Apple put in when I bought the G4 as well as an M-Audio Delta 66 card which I do not use (both) anymore. I also started up on an external firewire drive 10.4.6. It also (crashes) does the same thing.
I was hoping somebody understands the crash report I enclosed? Isn't that suppose to say what went wrong?
Thank you again for your input BDAqua
W.W. -
I have over 300 photos and 87 videos. When I recharge the battery I am geting the message to buy more storage to because not enough icloud space. So I did yesterday. That went ok, but the new message tells me it will take 83 hours. Perplexed I went thru the settings and turned off apps and their data that I didn't realize where on. Now I'm not sure if I needed to purchase more storage but it is still taking forever to complete the task. Am I on the right track with this, meaning will take forever to store all my photos or what ? The only other item I have on to store is contacts. Can you assist me ? Thanks - emoslim
Welcome to the Apple Community.
The first back up to iCloud may take some considerable time. Just how long isn't really possible to say without knowing how much is in your back up and your connection speed.
What many people don't realise is that upload speeds are often significantly less than download speeds, so for example a user may have a download speed of 40 Mbps, but only 1 Mbps for uploading. As a rough guide it will take around 2 ¼ hours to upload 1 GB of data at 1 Mbps. -
How do I transfer my content on my ipod touch to a new pc. My old pc crashed and the ipod does not recognize the reboot. Content includes old music cds that I got rid of and itunes purchases that I could not transfer to my new pc, (ALL PAID FOR). I've been unable to sync because I do not want to lose over 465 songs and videos. Please help.
joeThe following user tip is worth checking through:
Recovering your iTunes library from your iPod or iOS device -
I am making a graduation video for my cousin using Final Cut Pro. I have photos layered over videos, and I was wanted to find out how you can add a border around the photos so they stand off of the video. Anyone know what I could do?
You would need an image editor to edit the images and add a border to the image first before importing them into Final Cut.
Cheapest and very good image editor?
PIxelmator.
Located in the Mac App Store. $14.99 USD.
Here is the Pixelmator website to give you an overview of the app.
http://www.pixelmator.com/
Good Luck! -
Blue squares over moving images and videos, Blue squares over moving images and videos
https://www.youtube.com/watch?v=t9NmqnaHuWo&feature=youtu.be
This issue is going on for a while and I have tried the usual means to fix it, like restarting, updating drivers, uninstalling gfxCardStatus completely...
As you can see on the video, anytime I have an image in motion - be it a video or even when scrolling down a website - a blue rectangle appears over the image or video. When I pause it returns to normal.
This is absolutelly unacceptable. I work with video editing and this has neutralized my ability to color grade anything, unless of course if I want to really hate myself on the process.
I'd be trully grateful if anyone could help me out.
My system is a Macbook Pro Retina 15" - Mid 2012
Graphics Card is a GTX 650M (discrete)
Thanks in advance.I have the same issue.i need help to rid off this..i have ipad2
-
[GeForceFX] WDM video capture image size and position
Hello to all.
When I do video capture with my MSI FX5900-VTD128, the picture is not centered correctly and not at the right size either.
Let's take for example that I want to record TLC. I always get a black vertical bar on the left side of the capture video and the TLC watermark is also missing on the screen. In other words, if I could move video capture screen to the left, I would regain the full video frame.
One of my friend has a different video capture card and he is able to correct the screen size and position. Is this possible with my video card ???
I have a lot of shaded options in my nVidia WDM setup. Things that I cannot change. Any clue on how I can resize my capture video and how to eneble shaded option ???
Thanks !Man... I have VHS tapes that I want to put on DVD... It reallly does not work... It looks like if the image was zoomed in and a little bit to much on the left...
Does someone know if it is possible to adjust zoom level and image centering on the nVidia WDM capture video screen ???
Need some help here !
Maybe you are looking for
-
P67A-C43 - Windows 7 64bit - Random BSOD
Quote Machine Specs: P67A-C43 (B3) 1.14, i5 2500k Windows 7 Ultimate 64bit 16GB (4x4GB) Corsair CMZ8GX3M2A1600C9 Coolermaster GX650 (+12v~52a, +5v~25A, 3.3v~25A) Gigabyte GeForce GTX 460 1GB Super Overclock Edition Sata 1: Western Digital 750GB WDC W
-
Incorrect posting with internal reconciliation
Hello I have the next scenario I have a supplier with multicurrency. I make a payment in a currency different than the local and then i register an invoice also in a different currency. There is a diferent exchange rate between the payment and the in
-
In my database design and implementation module I'm at the implementation stage. I've set up all of my tables with PK and FK constraints and I'm wondering if you can enforce min and max column constraints. One of the rules of my DB is for my staff ta
-
Event titles remain, but why did the individual photo titles change into numbers after an upgrade to iPhoto 11? Why does clicking the iPhoto Help button pop open a new window and promptly invoke the beach ball of death which remains even with iPhoto
-
Change EnableNewPageAfter dynamically in print progress?
Idea is use some input parameter that say, put each group on new page or not. i do it in initialization with : If bGroupOnNewPage Then RptDoc.GroupFooter.SectionFormat.EnableNewPageAfter = True but problem is that o