As3 Google DoubleClick Video - actionscript-3

I'm very frustrated with Google DoubleClick's AS3 documentation. I'm not an advanced ActionScript coder and I have limited experience with streaming video, but I feel like their API is omitting a lot of information about how these classes actually work.
I'm attempting to load an FLV to play in an expanded unit. Their video component API shows how to control playback of a video, but it doesn't say anything about how to actually load an flv file through code into the component.
http://www.google.com/doubleclick/studio/docs/sdk/flash/as3/en/com_google_ads_studio_video_VideoPlayer.html
I found a controller API, but I have no idea how a "controller" works, or what it is, and the API doesn't explain anything outside of vague general information. I assume the controller needs to be somehow associated with the video player component, but there's nothing anywhere on Google that explains this in any form.
http://www.google.com/doubleclick/studio/docs/sdk/flash/as3/en/com_google_ads_studio_video_VideoController.html
So, in conclusion, what I want is simple. I want to programically load an flv file into a video component on the stage, and have it play. I feel like this is a simple thing to do. I can do this with netstream objects and regular means, but Google has explained nothing in it's API on how to achieve this in studio rich media, and I have no idea how the inner workings of it's components function. Can anyone tell me how to achieve this?

For using video in Studio, you use either the basic or advanced video player component, and component inspector to specify your video, then upload all your assets.
You can literally browse through hundreds of templates, including filtering for features like video, and choose one that best fits your needs along with documentaion here.
http://www.richmediagallery.com/resources/template-database
Basic video overview
https://support.google.com/richmedia/answer/1719810?hl=en

I could only add 2 links to my answer above
Here is the AS3 API for video
http://www.google.com/doubleclick/studio/docs/sdk/flash/as3/en/com_google_ads_studio_video_VideoPlayer.html
And the one for video player advanced
http://www.google.com/doubleclick/studio/docs/sdk/flash/as3/en/com_google_ads_studio_video_VideoPlayerAdvanced.html

Related

How to custom embed Soundcloud track?

Is it possible to embed a Soundcloud track with only a custom play and pause button and the title of the song?
Look out for some advice.
Casper
Using the widget api, you can bind method to play pause .... https://developers.soundcloud.com/docs/api/html5-widget#methods
And with css you can still hide the widget.
Other option is using the api https://developers.soundcloud.com/docs/api/guide#playing
Streaming Sounds Note if you are going to stream from our API you need
to attribute properly. Make sure you've read our Terms and Attribution
Guidelines to make sure you treat our creators content correctly. When
using a custom player you must:
Credit the uploader as the creator of the sound
Credit SoundCloud as the source by including one of the logos
Link to the SoundCloud URL containing the work
If the sound is private link to the profile of the creator
If you don't want to use the SoundCloud widget,
our API gives you the ability to access a sound's stream URL and use
your own player to play sounds from SoundCloud.

AS3: Recording sound as they are output/played

I understand how to record microphone input in AS3 from this doc.
Is it possible to record sound exactly as they are being output/played?
The reason is I applied some sound transform (via the global SoundMixer) to sounds that are currently playing; and I also want to record this sound data while it is being played.
I just saw this question, to clarify, I am not trying to record just all sounds on the user's computer (which is not possible). My flash app has a Youtube player in it (via their AS3 API), and it's playing some sounds. I applied transforms using SoundMixer.soundTransform, and I want to record what's being played when the user is playing it.
Thanks in advance.
Just a passing suggestion.. on my desktop it seems ABLE to record sound into Flash from a different tab playing Youtube (HTML5).. I don't know how it's doing that!!
I allow microphone here.. (none actually plugged in, and speaker out has in-ear headphones)
http://code.tutsplus.com/tutorials/create-a-useful-audio-recorder-app-in-actionscript-3--active-5836
PS: Anyone trying this must reduce Windows volume since anything above 10-20% is distorted audio into the Flash app.
And this HTML5 youtube trailer was recorded fine into the Wav file produced by Flash app above
http://www.youtube.com/watch?v=MVt32qoyhi0
So after a quick search it seems my Realtek Audio is classed as a Full-Duplex soundcard and also within its own control panel I have an option called "Multi-streaming" which is enabled/ticked. I think Full-Duplex is enough to do this though. Try options within your soundcard's own settings software. Don't know about your end-users. Some hardware will do it, some wont, there is no all-round solution outside of AIR (which makes desktop apps out of your AS3 code).

AS3 Vimeo API: Any way to stop forward scrubbing of unviewed video?

Does anyone know of a way to prevent a user from scrubbing forward into unviewed video using the AS3 Vimeo API? Basically I want to make it so the viewer can review parts of a tutorial already seen, but can't jump ahead.
I was able to target the VideoScrubberView object and it's children, but I'm not sure how to override the behavior.

vimeo timecode inaccurate using AS3 API

I am using Vimeo's Flash API so that I can embed and read the timecode of a video using the playProgressHandler, pause it at certain times, pop a menu, and use buttons that trigger seekTo calls. Although everything works, the timecode is inaccurate to varying degrees. Anywhere from 1-2 seconds. I can tell this because:
1) If I play my video on Vimeo and pause it at 6:03 and do the same with it embedded in Flash the visuals do not match up. Flash is lagging behind a tad.
2) I did a test using the JavaScript API. My seekTo calls were consistently accurate. To seek to the same spot using the AS3 API I had to add 1.5 seconds. But even this isn't foolproof. Sometimes it works, but sometimes it's still off.
Any ideas what would account for this inaccuracy and how I might fix this problem? Yes, I can ditch the AS3 and use the JS version, but I'd prefer to just fix what I've already built.
(I also posted this on Vimeo's forum, but I'm following their "Limited support in API Forum" post which suggests to post here)
Unfortunately, there's not much we can do to fix this other than to recommend that you use our iframe embed.
It has to do with the way that we retrieve files from our CDN. Because Flash doesn't support byterange requests, we pass a parameter that returns part of the file starting at that position. The nature of how that works means it's always going to be imprecise.

Add annotations to a web video

I would like to implement a web application where you can upload a video (e.g. in mp4 format) and add custom messages to it or tag specific frames. I need to be able to determine the location, size and duration of the balloon containing the text. The interface should be easy enough to use and allow you to add a simple text or a link.
How could I implement this? Is there a platform I could use? Looking around I found this platform called WireWax which basically does everything I need, however there is no pricing section and I suspect that you have to contact them directly.
Another interesting product that I found is Popcorn.js which allows you to add annotations to videos, but I would have to create from scratch the interface to add messages.
Do you have any advice?
Popcorn.js does indeed have an interface. It's called Popcorn Maker, and it's here:
https://popcorn.webmaker.org/
It's open source, so you can modify it however you like. The source is here: https://github.com/mozilla/butter