selenium cannot play video player - google-chrome

I have selenium tests running against chrome driver v 2.25. I have chrome v 54 installed on a ubuntu 14 server. I cannot get selenium tests to play video player that is in flash. Is there a plugin I need to install to get chrome on ubuntu to support flash?
The test loads a page with a video player and checks that there is a play button. I need to make sure that the server can load flash.

Selenium cannot and will not automate embedded objects in any website.
This includes objects such as:
Flash
PDF
Java Applets
etc.
If you want to automate those, you will need to find a different tool. Selenium is designed to automate websites, not external components of a website like flash.

Got this working wit chrome 52+ and chromedriver 2.22+
At time of answer it works with chrome 55/2.27 - both 64 bit
all you need is add extra flag to chromedriver
--ppapi-flash-path=chromedriver/chromedriver_linux64/libpepflashplayer.so

Related

How to pass parameter in a link to open VLC?

It's an HTML page which I use only locally.
I have a link to a video in my HD like this:
Watch video
When clicking it, it launches the video with VLC directly as expected.
Now, I'd like to pass parameter inside like the starting time for this video.
In the shell for example you can do:
vlc /path/to/myvideo.mp4 --start-time=126
And it will launches the video at the 126 second point.
How can I do that with my HTML link?
I've tried for example:
Watch video
But it still launches it from the beginning of the video.
At this point I think you would need to use some kind of server-side wrapper/listener, as I had commented in a related question's old answer, the plugin is not available on modern web browsers anymore.
Depending on how badly you need to control the start time (and if its a thing you need to build into an application) then you could call the VLC HTTP Server via its web API and remote control to scrub the player forward on the user's desktop. If you had some kind of push mechanism in place you could even control that via a regular link on the web.
I would suggest to combine a framework like Pusher for the web controls:
https://github.com/pusher/pusher-js
Followed by your choice of backend language to listen over HTTP(S), and remote control VLC via its API (either HTTP or native):
LibVLC:
https://www.videolan.org/developers/vlc/doc/doxygen/html/group__libvlc.html
How to Use VLC Media Player API in a C Program:
https://progur.com/2017/06/how-to-use-vlc-api-in-c.html
VLCJ -- Java framework for the VLC media player: https://github.com/caprica/vlcj
Node.JS -- VLC API: https://github.com/jfhbrook/node-vlc-api .Net
Interface to VLC: https://wiki.videolan.org/.Net_Interface_to_VLC
PHP/Python/Perl options -- Linux control a running vlc process through command line:
Linux control a running vlc process through command line
No code option, just use the basic web interface that comes with VLC: https://www.howtogeek.com/117261/how-to-activate-vlcs-web-interface-control-vlc-from-a-browser-use-any-smartphone-as-a-remote/

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio

Adobe Animate cc 2017 - HTML5 freezes when I publish/test project with audio
I'm working on a small game, using Animate 2017 and exporting it to HTML5. I'm using createjs.Sound to add the sound fx I've added to the library. When I publish or "test" the project, it freezes the loading bar. On OSx it stays at 0%, on windows it goes up to 70% but freezes anyway. The only option being to force quit the app. I'm following a tutorial from Pluralsight, and I've tested the tutor's project and I get a slightly different issue, the project gets published, the browser starts everything automatically but nothing happens afterwards, instead of the game starting, it just stays a black canvas (no errors in the console).
A few more data to help troubleshoot, the tutor's project is using .mp3 files and I'm using .wav audio. I've been trying to look through the OSX auto generated error report, but I can't make heads or tails of what it says.
Animate mac/windows version - 2017.0.1 Release (16.0.1.119)
Turns out it was a corrupted symbol or something that was causing the program to crash. Converting the project to ActionScript 3 and then back to HTML5 solved the issue.
https://forums.adobe.com/thread/2425008
If anyone experience a AnimateCC crash issue in Mac, It might be an issue with long audio file name. I found that if the audio file name is greater than 29 characters, AnimateCC crashes when publishing. Here is a sample test file.
https://drive.google.com/file/d/1dEBdM4laszCXFa3Bz4tS3yHh-8PbLaGo/view?usp=sharing
As you can see, the file crashes when you try to export. It has only one sound file in the library. When you remove one character in the file name, it gets published successfully. I tested this in AnimateCC version 18.0.2 (Build 126).

Adobe AIR After Build Issue

I created a Desktop AIR in Adobe Animate CC 2017 with AIR 23, when Test everything works, after Build in my pc everything works, when test to VirtualBox (Application with runtime embedded) it run but some features like buttons events and url events doesn't works, what is problem?
After review codes and test for many times i found correct issue, when a hidden runtime error occurred some related part doesn't works properly, I used try() catch() for handle errors and external video playback instead embedded, now build works on other computers without problem.

Playing online radio using BackgroundAudioPlayer on Windows Phone 8

I want to play songs from a online radio and for that i am using the BackgroundAudioPlayer for windows phone 8. Now i downloaded the sample app provided by MS and modified that a bit primarily to test whether the streaming link is working or not. So, my new AudioTrack object is looked like this one,
new AudioTrack(new Uri("http://live.abcradiobd.fm:8282/;listen.mp3", UriKind.Absolute),
"ABC Radio",
string.Empty,
string.Empty,
null)
This is not working at all. After sometimes it generates TimeOutException but the link is perfectly working in VLC player and other audio player out there.Any solution?
Solved:
Tried Phonesm and it's working perfectly. You can use that for both audio and video streaming. But before building that project make sure that you have downloaded the correct version for MPPF which is v1.2 from here and install as an extension to visual studio.

How to record audio and save at local system using htlml5?

My basic requirement is let user to record his voice and wish to save that recorded audio at my local system. We do not wish to use flash player as we are planning to run at mobile also, our web application should run at desktop browsers, mobiles as well as at iPad?
I tried running sample suggested by at - http://webaudiodemos.appspot.com/AudioRecorder/index.html
Windows 7 Firefox 26.0 - Not working
Windows 7 Chrome Version 31.0.1650.63 m - Working
iPad Safari - Not working
I need some solution that works fine on any browser at Windows, mobiles and as well as at iPad?
How can record audio and save them at local file system without flash player?
Thanks
If you want to capture audio in browser you need to use navigator.getUserMedia function.
As you can see from your example it uses in initAudio function(main.js file):
if (!navigator.getUserMedia)
navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.mozGetUserMedia;
More info about getUserMedia you can get from article on html5rocks.com. And as you can see getUserMedia works only in FF and Chrome.
What about to save any to local file system. Any browser don't give you permission to write something to filesystem, it's unclassified, but they have it implementation in sandbox by using requestFileSystem. More info about requestFileSystem you can get from html5rocks.com
If you want to create modern HTML5 app - check often sites like html5rocks.com for new articles and read that already published.