How to add CuePoint to a rtmp stream with ActionScript 3.0 - actionscript-3

I am trying to build a teaching application using flash player. My idea is that when the teacher does something, such as changing the slides, the javascript calls the SWF interface which adds CuePoints to the rtmp stream, while the students listening on the CuePoint event, they are able to synchronize what the teacher is doing.
So I did my research and found out that I had to write some server-side script/module to support this. I tried Wowza Server and wrote a Java Module which defined a handler function so the AS was able to call
netconnection.call("handler_function", null, "myStream", arg1, arg2);
But sadly, I am using a third-party streaming cloud so I can't write server-side code. Is there any way to add the CuePoint only on the client side with ActionScript?

Dont have enough to mark a comment so posting it here. I did not use FMS/wowza recently, but using FMS I used to do this like the example at https://forums.adobe.com/thread/1152718?tstart=0
hope this will work same on wowza too. Thanks

Related

Cast function + DRM

I have a question regarding combination of Google Cast + DRM Streaming.
What we have:
Google Cast “Sender App” feature inside our mobile app that sends stream to TV
without implementing a “Receiver App” logic inside our TV app, because we want to use default Cast logic.
It works for open streams (without DRM).
And doesn’t work for DRM Streams.
Looks like we cannot implement simple “Sender App” for DRM Streams.
Documentation reference:
"However, if you would like to Cast DRM protected content, you should build and host your own Web Receiver" from https://developers.google.com/cast/docs/android_sender/exoplayer
Question:
Are there any successfull examples of Cast implementation among without a custom “Receiver App”?
Thanks!
Yes there are, I implemented the casting feature using the exoplayer cast extension. There isn't so much documentation on it but the exoplayer github repo helped me implement it. https://github.com/google/ExoPlayer/tree/release-v2/extensions/cast

Can an embedded cocos2d-js app call back out to c++?

I'm researching the possibility of using cocos2d-js by embedding it as a view inside an existing iOS app. In order to make this work, I'm going to need 2-way communication between cocos2d and the surrounding application.
After some initial investigation, I have determined that it is possible to call in to cocos using ScriptingCore:
ScriptingCore* sc = ScriptingCore::getInstance();
jsval outVal;
sc->evalString("function()", &outVal);
My question, then, is around doing the reverse. It is possible to (e.g. in response to user input) call back out of cocos2d-js to C++? Ideally, there would be a way to register a callback with ScriptingCore which could be invoked from JavaScript.
I believe it can be done, but I have not tried myself, nor can I find a good and concise example.
All I can do is point you at SuperSuraccoon's Bluetooth example and it's git page, which apparently does both ways communication between C++ and JS code.

Simple Red5 X Flash AS3 Comunication Example (Send Strings)

I searched the web but can't find a simple example for sending strings to a server red5 RTMP, using an as3 (flash ide-compiled).
where can I find a tutorial about this?
Your question is fairly broad, but I can direct you to an old blog post of mine that gives examples of how to send AS3 Vectors. This may help you with how to perform communication with the server. http://blog.infrared5.com/2011/08/red5-vector-support/
You can send Strings or any Custom Objects by following this tutorial : Custom Object
Communication from as3 client to red5 server can be done by using the call method of netconnection as described in Application handlers part.
On Server side
public void myFunc(String myString) {
//do work
}
On Client side
nc.call("myFunc", null, "Hello World");

Status listener on mediaplayer object in javafx 2

I'm trying to make a media player with playlist in Javafx2.
I'm struggling because I want the playlist to advance to the next song when the current song ends. I was expecting a listener interface that I could implement in my playlist class but all that is on offer is that of a runnable.
Does anyone have any experience using this API that may help me?
Implement a Runnable for the setOnEndOfMedia method.
See this sample code which plays a list of audio files.
I think the media events should have been handled by EventHandlers rather than Runnables and requested that they be updated to work with EventHandlers but that requires a possibly incompatible API change which hasn't been implemented yet. So for now just use the Runnables - they work fine even though their method signatures are inconsistent with the rest of the JavaFX system.

Websocket and Java Swing front end

Is it doable to make Websocket interfaced with Java Swing front end? If so how?
Try mine:
http://github.com/TooTallNate/Java-WebSocket
Contains a Client and Server implementation. In the example folder there's a simple JFrame subclass called ChatClient. Look at it's source for a Swing reference.
Essentially you just need to subclass net.tootallnate.websocket.WebSocketClient and implement the onOpen, onClose, and onMessage methods. The class has an interface very similarly to the WebSockets API for HTML5.
Kaazing WebSocket Gateway ships with support for JavaScript, Flex, Silverlight, but also native Java clients (stand alone as well as applets). For more information, check out
http://tech.kaazing.com/documentation/index.html