Is it possible to add custom sound effects to the music being played by BackgroundMediaPlayer? I need raw samples, like in PCM, to apply some simple math.
Related
I use NetConnection, NetStream and Video classes to show video in actionscript 3 (AIR SDK 31.0.0.96) and I can play/stop/pause video, but I don't know how can I add any audio effects (speed changing, distortion, waves or something else).
In my game user has to guess video by deformated sound and for some reasons deformated effect should to be applied in runtime.
I hope, that you will can advice me some library for process audio track in runtime or show me simple code example to access to audio from actionscript.
Thank you.
I want to display a video with alpha channel. I've found an old article that describes exactly what I want to do, and says that it is possible with VP6 On2 codec, which tends to be correct according to adobe site:
The On2
VP6 codec provides:
Higher quality video when compared to the Sorenson Spark codec encoded at the same data rate
Support for the use of an 8-bit alpha channel to composite video
The designer I am working with was able to create such a video in AfterEffects, but when I play it flash player does nothing: no errors, no log entries - it just silently works without drawing a thing. However when I asked the designer to encode the video without alpha channel flash played it perfectly.
The code I am using is pretty straightforward:
var flvPlayback:FLVPlayback = new FLVPlayback();
flvPlayback.addEventListener(MetadataEvent.METADATA_RECEIVED, onMetadataReceived);
flvPlayback.width = 300;
flvPlayback.height = 300;
flvPlayback.play("http://192.168.0.102:9998/assets/video/test.flv");
I am developing in IntelliJ IDEA, using Flex SDK 4.6 and FLVPlaybackAS3 component from Flash Professional 2015.
Do I understand correctly that Flash dropped support for FLV videos with alpha channel? If yes, then is there any other alternative that is production-ready?
P.S. I am aware of producing such an effect by combining two videos' output to bitmap (where one video contains RGB data and other contains mask as RGB), but it doesn't produce steady FPS on an average hardware.
Try this code:
flvPlayback.alpha = 0.2;
I have checked this with FLVPlayback 2.5 in Flash Player app
I have Some sample fla Content which I am not able to convert into HTML5 with interactions
What I tried is
Google Swiffy --> Gives interactions [not full] but no sound. Issue is it works for content less than 1 MB
Toolkit for CreateJs --> Initially I got jsx errors but I cleared them by removing Special Characters in element names. But non of the case I got interactivity [Means I was not able to use my Mouse events or clicks
HTML5 Canvas in Flash Pro CC --> even here I got same above result.
Did I am missing something ??
You didn't really miss anything. Flash's HTML conversions do not convert AS3 to JS (that would be nice if it did). In this case you have to write the interaction using JS.
Sounds like you're using Google's online SWF-to-Swiffy converter, which has a 1MB limit. There's a better way, if you have Flash Pro CS5 or CS6 and the original FLA files. Try this:
download Google's swiffy generator and instal it in your Flash Pro (read instructions carefully)
open your FLAs and find the sounds that don't play in the swiffy file - most likely they are set as streaming sound (streaming audio is not supported by Swiffy), so change them to event sound
BUT, looped event sounds exported to Swiffy only play once (they don't loop), so if you need them, export the sound from the FLA (as .wav), and copy and paste it as many times as necessary in a new .wav file and re-import
All done? Now export from Flash Pro using Command -> Export as HTML5 (swiffy)
NB: Google's Swiffy extension for Flash Pro won't work with Creative Cloud, and on mobiles there'll be NO AUDIO whatever you do - sound only seems to work on desktop PCs, owing to mobile restrictions on unsolicited big-file preloads.
What's the proper way to display video in WinRT?
I'm receiving video over RTP and I need to display video to some component or surface.
I can decode and/or convert video to YUV or any RGB format myself, I simply want to know what component I should use for video display.
You can use MediaElement to play the video. Check out MSDN sample for playing media.
For Windows 8.1
For Windows 8
If you want full fledged media player then check out Player Framework: an open source component of the Microsoft Media Platform
I stuck in a big problem I am playing audio in background using BackgroundAudioPlayer working fine while I am playing another audio file using MediaElement on foreground the background sound is stopped.I want to play both sound simultaneously background and foreground please let me how it will be done.
MediaElement and BackgroundAudioPlayer are exclusive - you can only use one of these at a time.
You are able to play additional sounds using the XNA SoundEffect APIs however. For example of these APIs see this blog entry.