mute

How to mute a html5 video on scrollposition

耗尽温柔 提交于 2019-12-12 03:32:56
问题 I want a html5 video being muted when the user scrolls to a div container (#scroll). Therefore I tried to use this code: $(document).ready(function(){ $(window).scroll(function(){ // Der Referenzwert der minimal Höhe var height = $('#scroll').offset(); // Die aktuelle Fensterposition (nach dem Scrollen) var current = $(window).scrollTop(); // Umgekehrte Logik if( current < height.top ){ $('video').setAttribute('muted'); } else { $('video').removeAttribute('muted'); } }); }); It's not working

Video mute/unmute button javaScript

余生长醉 提交于 2019-12-12 00:22:11
问题 JavaScript beginner here! I am trying to make a video player in javaScript for a school project but I am having trouble with my mute button. I want the button to mute the video when clicked and unmute if the button is pressed again. So far I have only been able to mute the video and keep it muted. Here is my current mute button. var button = document.getElementById('mute'); button.onclick = function (){ video.muted = true; }; I tried an if else statement but it was unsuccessful var button =

how do i program the youtube embed player to unmute when clicked

折月煮酒 提交于 2019-12-10 22:42:41
问题 How do I set the youtube embedded player to unmute upon clicking it. You can see the embedded player i'm referring to at http://www.harvestarmy.org home page. It's the one at the right where it says "Latest Videos from YouTube. I set it up to be muted by default, but I want it to automatically unmute when someone clicks it. Here is the code I used: <!-- 1. The <iframe> (and video player) will replace this <div> tag. --> <div id="player"></div> <script> // 2. This code loads the IFrame Player

Muting streams in Android

本秂侑毒 提交于 2019-12-07 04:20:43
问题 I've built a small app that mutes/unmute the music stream using the class AudioManager . In fact, it works until I close the application. i.e. I've muted the sream, I close the app, I restart the app and the button doesn't unmute the stream any more. I've searched in the net but no one seems to have met this problem. Here's my code: public class ControlloVolume extends Activity { ToggleButton tb_mute; Button btn_mute; AudioManager mAudioManager; boolean mute; @Override public void onCreate

Muting streams in Android

久未见 提交于 2019-12-05 10:32:32
I've built a small app that mutes/unmute the music stream using the class AudioManager . In fact, it works until I close the application. i.e. I've muted the sream, I close the app, I restart the app and the button doesn't unmute the stream any more. I've searched in the net but no one seems to have met this problem. Here's my code: public class ControlloVolume extends Activity { ToggleButton tb_mute; Button btn_mute; AudioManager mAudioManager; boolean mute; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity

C# Simulate VolumeMute press

不羁岁月 提交于 2019-12-05 08:26:26
I got the following code to simulate volumemute keypress: [DllImport("coredll.dll", SetLastError = true)] static extern void keybd_event(byte bVk, byte bScan, int dwFlags, int dwExtraInfo); byte VK_VOLUME_MUTE = 0xAD; const int KEYEVENTF_KEYUP = 0x2; const int KEYEVENTF_KEYDOWN = 0x0; private void button1_Click(object sender, EventArgs e) { keybd_event(VK_VOLUME_MUTE, 0, KEYEVENTF_KEYDOWN, 0); keybd_event(VK_VOLUME_MUTE, 0, KEYEVENTF_KEYUP, 0); } This code doesnt work. I know there's another way to mute/unmute sound by SendMessageW, but I dont want to use SendMessageW because I use KeyState to

Can't use volume button to mute on iOS7

只愿长相守 提交于 2019-12-04 22:29:23
问题 I've migrated my VoIP application to iOS7 recently, and there's an open bug still remaining which I can't understand. When in VoIP call, in iOS6 you can push the physical volume button to lower the volume, down to Zero. Now, in iOS7, I can lower the sound only down to the last step before zero, which means the volume cannot be muted. I suspect this is something that's on iOS7 side, since I don't have the problem with the same IPA on an iOS6 device. Anybody knows what's up? 回答1: Same problem

Mute IPhone prorammatically is legal?

落花浮王杯 提交于 2019-12-04 12:00:44
I gonna start working on an app that have basic functionality to mute phone(no sound from any app, ring tone). I searched over net and found some private api's to do what I want. Mute iPhone programatically https://github.com/forensix/BBSettings But found some articles saying that Apple will not approve such kind of apps. And when I searched over store I got an app link below https://itunes.apple.com/us/app/autosilent/id474777148?mt=8 This is auto silent app, that put iphone to mute state. So now I want all my seniors to let me know whether I can do this app or not? The application that you

Can't use volume button to mute on iOS7

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 13:49:48
I've migrated my VoIP application to iOS7 recently, and there's an open bug still remaining which I can't understand. When in VoIP call, in iOS6 you can push the physical volume button to lower the volume, down to Zero. Now, in iOS7, I can lower the sound only down to the last step before zero, which means the volume cannot be muted. I suspect this is something that's on iOS7 side, since I don't have the problem with the same IPA on an iOS6 device. Anybody knows what's up? user3907849 Same problem with my VoIP app... My Solution: After everything is set up, set the category to Playback, [

Android: How to get app to remember if mute button has been pressed or not

谁说我不能喝 提交于 2019-12-02 16:12:59
问题 I have successfully created a button that mute my button press sound if wanted. The problem I am having is that when I leave the page or close the app and return sound a returned to the default of being on. I am trying to achieve this through preferences but it is not working. I have used preferences before to successfully store high scores but I can get it to work this time as I intend. Here is my sound code: import java.io.IOException; import android.app.Activity; import android.content