We've bene hired to do some work on a site that uses mooTools 1.4.5 as its javascript framework.
For the sake of this project we need to be able to play HLS video streams on that site. We tried to use videojs 7.0.3 + videojs-contrib-hls 5.14 as we had good experience with this player, but it looks like it conflicts with mooTools, maybe around Function.prototype.bind as suggested by a thread on github (see https://github.com/videojs/video.js/issues/3097 )
I'm attaching a screencapture from the console:Screen capture from the console
Could anybody advice how to solve the problem without breaking either the player or mooTools?
Do you know of any HLS player that will definitely work with mooTools 1.4.5 and not require JQuery?
Thanks for any help
Related
I know later versions of android webview don't have this ability. However, I know the pidgeon browser has its own implementation that allows flash to run.
I have been searching for a while and have not found much, but, does anyone know of a good AS3 and AS2 interpreter in javascript or a custom webview implementation that I can include in my app?
I was using phonegap, but I can do it in android studio if I could just find a good webview implementation with flash..
BTW working with the clubpenguinrewritten team to get a mobile app working while we rewrite the client.
EDIT: i tried with interpreting with swf2js.js but sadly it's as3 support is a little sad...
I'm searching a good webbrowser for my project but I can't find one.
I need html5 video streaming (doesn't work in CefSharp) and
I need javascript injecting (doesn't really work in the normal webbrowser)
Thanks for help
CefSharp is able to play html5 video and audio. And here's the list with all the supported audio and video codecs.
Just because CefSharp doesn't include proprietary Audio and Video codecs, doesn't mean it can't. Due to licensing reasons mentioned here, CefSharp is not including them. You can however build cef and embed your own codecs in it.
You can always grab the code from their GitHub Repository and experiment your self considering this great answer on stackoverflow
Or you can use GeckoFx as suggested on another answer posted on similar question on stackoverflow. Which is isn't really a WPF Control, but you can use it with a WindowsFormsHost.
I'm working on a HTML5 game for mobile phone. The sound work sometimes and disappear others.
DO you have any idea about library like SoundManager 2 without flash for mobile phones ?
To use HTML5 with SoundManager simply add the settings:
useHTML5Audio: true,
preferFlash: true,
This will always use HTML5 over flash, and will work on iOS products.
http://www.ibm.com/developerworks/library/wa-ioshtml5/index.html
This should help with HTML5 in ios products. Android can have flash, so normal SoundManager should work there.
As long as your sounds are mp3, wav or acc safari should play them fine, so it would help if you use the debug version of soundmanager2 and post the error you get when the sound doesn't work, because it might well be a separate problem that can be solved without a different audio library.
You could look into HTML5 Audio API. I have to say though, at this point support is little so be sure to check out if Safari on iOS is supported.
There's http://zohararad.github.io/audio5js/ which is a simpler SoundManager alternative.
I'm looking to play AVI files in a web browser however I can't seem to find a decent tool to do so.
The basic WMP object embed is what I'm using right now but it doesn't really do what I'd like it to do, and I can't really implement JavaScript into it. (AFAIK I can't. I done a little digging and that's the conclusion I came to)
I've also tried DivX though I don't really like it. It has adverts, and I've no idea if JavaScript can be included either.
AFAIK Flash doesn't support AVI playback at all.
Does anyone know of any player at all that can play AVI files on the web, which I could possibly integrate some kind of JavaScript in (or has an API)?
Just a thought too, but would Java itself have anything like this?
The player also needs to be able to source the files like this:
file:\\Network-PC-Name\avi\avifile.avi
What you're looking for is WebChimera, there's no doubt about it. It has the most complex JS API ever made for web video, and it supports all file types.. it also supports "file:///" (for links like file:///C:/avi/avifile.avi).
It is open source and has no advertising. And the best part is that everything inside the player is editable, so you can skin it, add buttons and even add entirely new features to it with mostly just JavaScript. :)
Update
As you mentioned you need it to connect to file:///Network-PC-Name/avi/avifile.avi, this tells me you need this for some Local / Private / LAN use.
In this case, I think the best solution for you is to use WebChimera with Node-Webkit, as it will also give you a JS API based server environment.
WebChimera Player is already ported to NW for Windows and Mac:
https://github.com/jaruba/WebChimeraPlayerNW
On Windows, just download the package, and run nw.exe. To customize just edit the html pages. For Mac, just follow the instructions in the Readme.md.
The great part about using it like this, is that it already has the plugin embedded in the app, so you won't even need to install the plugin for the player to work.
The only thing I can't be fully sure of, is if Network-PC-Name can even be accessed through the file:/// protocol in it's normal usage. But this would still be possible anyway as you could map the network drive, and you can even map it programatically (with only JavaScript!) by using the child process exec to run the necessary command. (child_process is built in node-webkit natively)
flowplayer is recommended by this post:
Flash video player for AVI files (free for commercial use)
not sure about the file:\ source, as that's on your local machine and could be refused by the browser for security reasons
I wonder how can i run web flash application on IOS?
Because i heard some information about Flash application can run on IOs using Javascript
But i dont know how to write javascript code to make flash run on IOs
Do you have any tutorial or resources to help me to do this ?
Thank you very much
There have been a number of attempts to get Flash onto iOS devices (converting Flash apps to iOS apps, or recreating the runtime in JavaScript) but I doubt any of the solutions would be suitable.
You’d be better off building your application in HTML5, CSS3 and JavaScript.
Apple does not support Flash on its iOS devices. Apple and Adobe had quite a nasty bust-up over this issue. And, to make matters worse, it doesn't look like its going to improve any time soon (see here). So the only thing you can do is use HTML5, CSS3 and JavaScript to develop your web apps for iOS.