Go Back   Northcode Support > SWF Studio V3
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
Old 2012-08-07, 08:42 AM   #1
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
WMVideo issues

Hello,

I'm trying to get video to play using your WMVideo API, but I'm having some problems.
I've tried every combination I can think of using the ssCore.WMVideo API to load video but in the 'onStart' notification callback it keeps specifying the width and height as -1, -1 and playing nothing.

This occurs in the sample WMVideo app I downloaded from the northcode examples page also.

I'm using SWF Studio 3.9 build 96. Any pointers?
dotjon is offline   Reply With Quote
Old 2012-08-07, 11:45 PM   #2
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
Can WMP play the video you're trying to play? If not you need to make sure the right codec is installed. If it can play, make sure you're calling ssCore.WMVideo.setVersion({version:9}); before you make any other WMVideo call. That ensures that you're using the newer WMP playback interface.

The WMVIDEO example has a button you can press to do that before you try to play the video.

In the latest version of 3.9 you won't have to do that anymore. The issue has been fixed, as described here: http://www.northcode.com/v3/problemitem.php?link=263
northcode is offline   Reply With Quote
Old 2012-08-13, 11:20 AM   #3
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
Hi,

I sent you an email about 4 days ago asking for a beta link but I haven't had a reply since. Could you possibly send it to me via the forum if you can't email me?

Also, just curious - is there any way to have the default media player controls present when it's fullscreen?

Thanks
dotjon is offline   Reply With Quote
Old 2012-08-13, 10:43 PM   #4
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
Sorry I missed your email, I just sent a reply.

When WMVideo is full screen it covers the Flash player so you can't have any controls visible and we disable the default WMP controls.
northcode is offline   Reply With Quote
Old 2012-08-14, 11:17 AM   #5
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
I've updated to the latest beta that you've sent me, but I still get given -1x-1 dimensions for the onStart notification. I can only play the video by calling resume() a short time after the notification fires.

Surely this is not intended?
dotjon is offline   Reply With Quote
Old 2012-08-14, 10:06 PM   #6
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
It is not intended but the codec decides what values it sends and when, not us. All we can do is pass on the events and data the WMP gives us. We could put in special code to try and work around this just to see if break when the codec is updated or a new codec becomes associated with the file you're trying to play.
northcode is offline   Reply With Quote
Old 2012-08-15, 07:07 AM   #7
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
Okay. I'm trying to play an .avi file, but I can't seem to get any audio to play.
I've tried calling setVolume with values from -10000 to 0, and 0 to 100. I've made sure it's using the WMP9 interface, and I've even tried repeatedly calling setMute:false, but to no avail.

Any idea what is causing this? The video and audio playback in windows media player with no issues normally.

Edit: It seems to work fine using mp3 stereo sound, but the AC3 surround sample video I downloaded from http://www.bigbuckbunny.org/index.php/download/ doesn't seem to work.
dotjon is offline   Reply With Quote
Old 2012-08-15, 09:22 PM   #8
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
I see the same behavior on Windows 7 Ultimate 64-bit. The AVI using AC3 plays fine in WMP but plays without sound in the WMVideo example. I *do* get the size of the video returned properly in the onStart notification though.

I don't have any idea why the audio won't play. It works fine with some mp4 and avi files I tried and fails with others. Your mileage may vary with the encoding.
northcode is offline   Reply With Quote
Old 2012-08-31, 04:04 PM   #9
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
Having some further issues. My app runs in fullscreen and attempts to display videos this way, with some simple video controls at the bottom. I'm having trouble sizing the video to fit the entire screen leaving the controls out.

Depending on how large a resolution I'm running the video will either play at 0,0 as it should on smaller resolutions, or it will be an arbitrary distance from the edge (which doesn't seem to correlate with the difference in resolution either). A bit confused here, maybe I'm just overlooking something?

Any help would be appreciated, thanks.
dotjon is offline   Reply With Quote
Old 2012-09-11, 05:32 AM   #10
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
The video player preserves the aspect ratio of your video. So, depending on the aspect ratio of the video and the aspect ratio of the area you've defined for playback, the video will have black bands at either the top/bottom or the sides so the player fits the area without distorting the video.
northcode is offline   Reply With Quote
Old 2012-10-24, 09:31 AM   #11
dotjon
Registered User
 
Join Date: Nov 2011
Posts: 12
Is there any way to prevent people double-clicking on the video and making it fullscreen? Or at least a method to catch when they exit fullscreen so I can resize the video appropriately again. If it exits fullscreen it seems to just revert to it's normal size, which messes up the video player.
dotjon is offline   Reply With Quote
Old 2012-10-25, 01:15 AM   #12
northcode
Tim
 
northcode's Avatar
 
Join Date: May 2001
Location: Ottawa
Posts: 11,873
There's nothing you can do unless you're using WMVideo with version=9, then the double click should be captured automatically. I don't recall exactly when the change went in, but I believe it was 3.9. Send email to support@northcode.com if you want the 3.9 download link.
northcode is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes