Actionscript 3 :: Handshake With Html5 Websockets?
Mar 14, 2012
I'm trying to build a AS3 socket server that can handshake with html5 websockets. I've base my code on this link http:[url]....This is what i have using the same values as the example in the link:
import com.dynamicflash.util.Base64;
import com.adobe.crypto.SHA1;
function getKey():void{[code]...
Now the example states that the output should be : Concretely, if as in the example above, |Sec-WebSocket-Key| header field had the value "dGhlIHNhbXBsZSBub25jZQ==", the server would concatenate the string "258EAFA5-E914-47DA-95CA-C5AB0DC85B11" to form the string "dGhlIHNhbXBsZSBub25jZQ==258EAFA5-E914-47DA-95CA-C5AB0DC85B11". The server would then take the SHA-1 hash of this, giving the value 0xb3 0x7a 0x4f 0x2c 0xc0 0x62 0x4f 0x16 0x90 0xf6 0x46 0x06 0xcf 0x38 0x59 0x45 0xb2 0xbe 0xc4 0xea. This value is then base64-encoded (see Section 4 of [RFC4648]), to give the value "s3pPLMBiTxaQ9kYGzzhZRbK+xOo="
I'm just trying to understand how once HTML5 enters the picture, the current concerns about browser incompatibility and other issues go away? Wouldn't HTML5 simply add another set of browsers to the large list of current browsers that the application must target?
That is, assuming the enterprise web app requires one of these new HTML5 features (e.g. playing audio and/or video, integrating SVG or vector graphics, etc.). If such a feature isn't critical then graceful degradation may be acceptable and then my question is moot.
But for those apps that require one of these new HTML5 features, are you planning to support older browsers, or expecting it's acceptable to restrict to HTML5 browsers because the enterprise in question has made one of them their new corporate standard (or other scenario, etc.)?
I found this awesome example: [URL], or an HTML5 WebSocket echo server in Jetty, and I love it's simplicity. However, the web app I am developing will require a bit more cross-browser compatibility, so I tried to use: [URL] as a Flash fallback. The problem: I need to serve some XML file on port 843 for Flash. Now I am new to both Flash and Jetty, and would like to figure out how to accomplish this. I have used HTML5 WebSockets before in PHP, Python, and Ruby, and I have the echo server working perfectly on my Mac, but now I need to configure Jetty to send the file.
To clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives?
I have an swf document and for a while now need to convert it to an html5. I talked to a dreamweaver specialist and he suggested wallaby. I tried this but i didnt have it in an FLA. I tried converting it using trial software dont know if it worked. When i put it in their was errors with multiple things, it didnt like the actionscript3. I tried googles swiffy and it didnt like the 9-slice scalling, either
I am planning to develop a facebook application which uses iframe concept, it involves some rich UI and image manipulation, I am new to html5 but aware of flex
We have an ASP.NET 4 website that displays flash files. It has come to our attention that these are not fully supported on HTML5, and that they will not play on HTML5 platforms such as the iPad.So, in order to support such platforms, my thinking is that we need to try and display the video using the HTML5 <video> tag if the browser supports HTML5, or fall back to flash if it does not.However, it would seem that this requires our site to provide two video formats (flash format and video such as MP4). That presents problems because A), we need to store multiple video formats on the site, and B) our existing flash data will no longer work.Can anyone recommend information about the best way to support as many platforms as possible. And is there any way to do so without having to support multiple video formats?
I'm thinking of spending a large amount of money on a school which teaches web development with flash being at the core of the courses ......I'm trying to wheigh how long flash will be mainstream because HTML5 is set to take over delivery of video.......should I be concearned with html5 ? Should i take the courses with flash or should I look elsewhere for web devlopment colleges?
I have a flash video(.swf) on my website and i want it to convert into such a format so that it remain available from iphone/ipad. Is there any possible way of doing so? Can i convert it into HTML5? If yes can anyone suggest the process and if no, can anyone suggest any other method?
I would like to add text dynamically to HTML5 video. Currently, this is achieved with Flash and passing in variables that Flash is expecting at certain time intervals. What would be the equivalent (if any) in HTML5?
On this page : there is a flash animation that loads external images, is there a HTML5 way I can take the .swf and perhaps get a head start on trying to make it a HTML5 version?
I currently have a working Brightcove Smart Player implementation, with Flash as the default and an HTML5 fallback where Flash is not supported (read: iOS). I would like to reverse this: prefer HTML5 video, and use Flash as the fallback.Is this possible, and if so, how? Brightcove seems to have entirely missed the point of providing an HTML5 option by using it as the fallback instead of the preferred format.Additionally, although Brightcove announced plans to support WebM as well as H.264 18 months ago, it seems that the HTML5 player still only supports H.264. Firefox can't (and likely will never) support H.264 for patent (and, IMO, ideological) reasons. Firefox is used far too widel
how to easily convert a .SWF file to HTML5? I tried SWIFFy and that doesn't work.
I just downloaded adobe Wallaby and it requires a FLA file. That makes sense, but I don't know how to make the SWF file a FLA one so that I can see if Wallaby will in fact convert it.
I was wondering, if I have a proprietary flash code (e.g: some cool animation which is really just client side stuff, its just example), and about to rewrite it using HTML5, is it possible to hide the code? or at least make it harder to see (unlike right click, view source, then you can just copy paste the code).
I am heavy into video interfaces based on dynamically loaded external XML files. Example: I may click a category, then topic and then dynamically create a list of available videos based on an array loaded from XML.Is this concept dead in a Flashless world? If so, then shoot me now.Has anyone started down the HTML5 path? Is there more than just stand alone single video players in HTML5? If I have 100 videos organized by category and sub-topic, do I have to create 100 different instances of a video player?
I'm able to connect, able to send a message from HTML 5 to the AIR socket server and have the server see that there is an inbound message and even see that there are more or less bytes available based on the size of the message, but am unable to see the content of the message sent through. I'm just trying to send one-way text communication via sockets from HTML 5 to an AIR app. Why I can't see the actual content of the message? I'll attach my AS3/AIR (Flash Pro CS5) code and my HTML/JS code.
I am creating a flash animation which has to be converted into Html 5. The reason for the conversion is the i-pad, so that my animation can run on i-pad or i-phone. I have tried using the WALLABY tool from adobe but haven't get the accurate animations. Though I have saw some adobe videos in which these people are perfectly running their flash animations through this WALLABY tool.
I am trying to set up Adobe Media Server to stream to HTML5 pages too... It's working with Flash, with NetStream, but I need it with HTML5, to work in iPad/iPhone phones...
I get AmazonCloud and ordered Adobe Media Server, and there I found location to f4m file...
I replaced title with my stream name and I get output like this:
The video performance I get from the built in FLV video is pretty poor. I'm considering using a StageWebView to display a HTML5 page with a standard <video> in it.
The video shows up and (if I enable controls) can be played and it looks great (much better than FLV). The only issue is I cannot find a way to have the video autoplay once the StageWebView is loaded.
I've set the <video .... autoplay> parameter. I've also tried using JavaScript to send a video.play() (after the window load event is complete and the DOM is ready).
I can't wait for AIR3.0 so we can just use StageVideo.. But for now I'm using AIR2.7 via Flash CS5.5 publishing for an iPad2 via AIR for iOS.
I'm looking for a good jQuery plugin that allows HTML5 video playback, with graceful fallback to Flash (and potentially further, to default system player, etc). I've googled, but nothing I've found has been quite what I'm looking for.
I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method.