Is it possible to send custom animation as a video stream in flash? - apache-flex

I'm using NetStream class to create p2p video conferension. Is it possible to add overlay pictures or animation into video captured from webcam and send reencoded stream to other user?

I'm afraid it isn't. you could however send the data along parallely and compose it on the other end. don't know how well synched this will turn out to be in the end.

Check out the HTML AD Plugin
UPDATE The site wouldn't let me add the link to the plugin. Google HTML Ad Plugin and it comes up at playerDIY.

Related

Google Cast SDK Developer Console

I am currently working on a receiver app through Google Cast SDK Developer Console, and when trying to style the default receiver app created by google, through my own CSS file, in order to preview these changes it asks for a URL to my CSS, I can't figure out what exactly it's asking for in that part so I can't preview my own styles.
I know the question is old, but answering for people looking for a solution to this question.
Question posted has as lot wrong in terms of understanding the google cast receivers.
So basically the user is trying to create a style for the styled media receiver.
Google cast provides 2 ready made receivers : Default and styled. You cannot do anything to the default receiver to customize it. Its just plain default receiver.
In case you want the receiver to show your logo, splash screen as well as watermark while starting the cast then you use what is known as the styled media receiver.
Now going back to the question. It is asking for a URL is because google style media receiver when invokes, needs a css input so that it can show the logo, splash screen etc. basically the UI of the receiver which is playing the cast stream.
Why the URL? Because the URL is a direct downloadable link of the css which the style media receiver downloads and projects.
You can use your own google drive account to host the css file and provide the URL.
Refer to this link for details:
http://www.oodlestechnologies.com/blogs/Building-Styled-Media-Receiver-Application-for-Chromecast

Interact with embedded Dailymotion (DMCloud) iframe video?

When displaying a Dailymotion (DMCloud) video in an iframe on my page, how can I use JavaScript to interact with video - get current playing time, for example?
Dailymotion have a JS SDK for this (docs), but I can't find how to use the SDK to interact with an existing iframe rather than create a new one.
So, assuming I have something like:
<iframe src="https://api.dmcloud.net/embed/4e5bf73e94a6f629c900461b/4fcbcc1a06361d0dda000267?auth=1571064530-0-6tpgjq7u-30443abdac10acef6cf336eb89412713& id="foo"></iframe>
Using JS, how can I get the current playing time of the video?
it looks like your are mixing DM cloud and Dailymotion.com
The APIs are different and the documentation for the cloud player can be found at https://www.dmcloud.net/doc/api/player-video_player.html
There is a working example at the bottom of the page: http://api.dmcloud.net/static/dmplayer/dmplayer-sdk.html
Anyway, I think you're missing the code you're refering to but I confirm you cannot control or interact with an iframe that wasn't created using the API.
Well it seems possible #Dailymotion, the iframe needs to be loaded with &api=postMessage, then you get a DOM reference to the iframe and do:
iframe.contentWindow.postMessage('play', '*');
And it works.

Implementing back-forward in a Flex application

I'm responsible for a Flex application which shows cards/tiles. A click on each card sends a request to the server and then the Flex app renders new cards from the data returned from the server.
Now I need to add a back-forward functionality, so that after several clicks on cards, I will be able to return to the previous requests. As I understand it, I just need to save some kind of a stack of URLs which were sent to the server.
The need is for regular back-forward, so that if I'm viewing card X, then click back and then click on a different tile, I can drop card X from my data structure and forget it.
What data structure would you recommend using? Any examples?
Thanks.
Use SWFAddress and simply use the browser's back/forward functionality. Here's a video tutorial to get you started.

Flex and Video Annotation

I have been investigating how to annotate video using Flex or AIR. Similar to how it is being done on YouTube. I am not getting much joy. Wondered if anybody might have any insight?
Thanks
--Matt
This could actually be simpler than you thought.
Here's what I would do:
Play the video
When you see a spot you want to add an annotation for click the annotation button or the video to stop it and add an annotation
When you click that button you grab the timecode from the video
Save the timecode and your annotation details in a database
The next time you play the video, you load the annotations and their timecodes from the database
Before the video start playing you add cuepoints to it using the CuePointManager class in Flex
Add an event listener to the video player that will listen for these cuepoints
When the cuepoint hits you can show your annotation at the correct time code etc
Hope this helps.
Serge-
Matt you can refer the Youtube AS3 API's at
http://code.google.com/apis/youtube/flash_api_reference.html
You can check some demo examples from the link above to get an understanding how you can start off. You can also do this with Javascript API's if you are interested.
We have used Youtube AS3 API for enriching videos for content companies and it was fairly straightforward to built it - check demo at onion.tv

How do I login in with facebook connect in a flex application

I've been checking out facebook connect stuff from the new actionscript 3 library from Adobe. I have been trying to figure out how to use the facebook connect button inside of a flex app.
In an html page you would us the fbml and it would automatically put the facebook connect button on your page and when the user clicks on it it pops up the face div and lets the user login. Well you can't use that in flex. So I could put it on the page containing the swf but, that's why I'm using flex and not html. I've seen it done by the guys at Universal Mind so I know it's possible. I just need a little direction.
I know the function to use in the facebook connect api to cause that login dialog to come up I just can't figure the correct combination.
Chcek out the Create your first Facebook application with Flex tutorial and in particular the section on Add Facebook login.
This should be applicable to Flex. This would be done using the ExternalInterface calls from within Flash.
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/external/ExternalInterface.html
In Adobe facebook-actionscript-api there is a class LoginWindow which you can use.
When you need it this window will open like small flash popup window and it will display facebook login page and enable user to login. All needed events will be raised and you should be connected after that. I didn't tested it but from the code looks like what you need.
this developer created this js/flash bridge you are talking about using the ExternalInterface classes. you can download all source files as well. i found it very useful.
http://www.wellconsidered.be/blog/2009/01/04/facebook-connect-to-actionscript-3/
There is also a very clean and elegant solution/tutorial at:
http://www.stevenvh.be/blog/?p=57
Use this API:
http://code.google.com/p/facebook-actionscript-api/
Look at ConnectDemo.
The sample kind of sucks... it forces you to connect before showing the Flex app.
You need to tweek the example to get it to do what you want.
Also, FB depreciated some of the methods, so you have to look up new methods that aren't depreciated.
I'd love to update the sample, but I don't have the time to dedicated to another project.

Resources