Control audio volume using physical controls on the phone in webapp - opentok

I am using opentok.js in my webapp.
When I open a page with tokbox video stream, I cannot control audio volume using physical audio buttons. Instead they change the ring volume.
When I add tag to the page and I play it, I am able to use physical audio buttons to change volume of that file but not the tokbox video stream.
Perhaps as a workaround it's possible to direct tokbox audio stream to tag? It doesn't seem to be attached to the element that gets created before videoElementCreated event is fired. Because when I don't add this event.element to the DOM, I still hear the sound. Where it is coming from if it's not in the DOM?

Related

OpenTok Buttons to control the video

I am trying to build something like below (dribble) using OpenTok JS on the web. The default video elements contain only the mute button. Are there any tutorials/samples or guidance on how to control a video call, add chat, sharing, etc. ?
https://dribbble.com/shots/12215430-Online-Education-Platform-Webinar-page
Another e.g
Looking for pretty much all features on here
https://peercalls.com/
This is the required example, There is video, audio, chat, screen share.
https://github.com/aullman/opentok-meet

TMediaPlayer background audio controls on iOS (FMX)

In Rad Studio we have the TMedialPlayer control that can play audio. This thread shows to keep the audio playing after the user locks the screen (Project->Options->Version Info-> UIBackgroundModes set to audio).
However, we have no ability to invoke the iOS audio controls (pause, play) on lock screen. Apple will reject any app that plays audio in the background without displaying the audio controls on lock screen and in control center (Apple documentation on controlling background audio).
Anyone have any good ideas on how this can be achieved (using C++ FMX)?
Can the functions mentioned on that Apple documentation page be called from FMX app?
Is there a third party medial control with this capability (to show the apple audio controls)?

How can I find a list of active plugins on a web page in a browser window

Say I open Youtube,and the video starts playing. How do I find out what in-browser and system plugins / resources are being used to play the music / video?
Asking because on my Firefox, about 50% of the time, when I open youtube, it starts playing the audio of the page in the background, even as the video loads. So when the video is playing, there's audio with it, but there's the same audio, with a small delay playing in the background.
I've tried disabling the extra flash plugin that most other guides about this recommend, and it hasn't helped. Now I want to find out what my browser is using to play the background music.
Simplest thing is probably to right-click on the video and check if the menu that appears is the typical Flash rc-menu or the browser native video right-click menu.

How to identify a window playing a video in a browser

I wish to understand how one can programmatically identify if a window is playing video content?
I used spy++ to identify particular attributes for windows playing video but I did not find any particular attributes associated with window playing video.
I have handles to all windows on screen and want to find which ones are playing video ? Could you please throw some light on how can one do this and are there any special properties associated with a window playing video?
I found similar article :
can we get window handle of the window which is playing video?
But I don't want to minimize application , I know user is using browser(ie,firefix,chrome) to watch video (from youtube,hulu)and window is visible on screen.
You can if you have execution privileges over the environment the Flash Player is executed in. You can listen for the playing event thrown by the Flash Player.
Listen for my Flash event in Javascript

WP7 MdeiaPlayer Event for video finished playing

I am using MediaPlayerLauncher for playing video. How do we get some notification when the MediaPlayerLauncher is opened() and the video is finished it's playback or the MediaPlayerLauncher is closed.
You can't explicit know if it's from a video or another navigation, but the OnNavigatedTo event will tell you when the user returns to your page.
By using the built in MediaPlayer you are giving up a lot of control to playback. If you really must* know when a video has finished playing you should use the MediaElement and detect the MediaEnded event.
* The end of a movie is typically a grey area. Does it include any ending credits? Is it when the user has watched "enough"? Is a certain percentage through the video sufficient ?

Resources