久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

      • <bdo id='tPhQg'></bdo><ul id='tPhQg'></ul>

      <small id='tPhQg'></small><noframes id='tPhQg'>

      1. <legend id='tPhQg'><style id='tPhQg'><dir id='tPhQg'><q id='tPhQg'></q></dir></style></legend>
      2. <tfoot id='tPhQg'></tfoot>

        <i id='tPhQg'><tr id='tPhQg'><dt id='tPhQg'><q id='tPhQg'><span id='tPhQg'><b id='tPhQg'><form id='tPhQg'><ins id='tPhQg'></ins><ul id='tPhQg'></ul><sub id='tPhQg'></sub></form><legend id='tPhQg'></legend><bdo id='tPhQg'><pre id='tPhQg'><center id='tPhQg'></center></pre></bdo></b><th id='tPhQg'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='tPhQg'><tfoot id='tPhQg'></tfoot><dl id='tPhQg'><fieldset id='tPhQg'></fieldset></dl></div>

        iOS:訪問設備硬件音量控制

        iOS: Accessing device hardware audio volume control(iOS:訪問設備硬件音量控制)
            <tbody id='geJRv'></tbody>

          • <small id='geJRv'></small><noframes id='geJRv'>

            • <bdo id='geJRv'></bdo><ul id='geJRv'></ul>
              <i id='geJRv'><tr id='geJRv'><dt id='geJRv'><q id='geJRv'><span id='geJRv'><b id='geJRv'><form id='geJRv'><ins id='geJRv'></ins><ul id='geJRv'></ul><sub id='geJRv'></sub></form><legend id='geJRv'></legend><bdo id='geJRv'><pre id='geJRv'><center id='geJRv'></center></pre></bdo></b><th id='geJRv'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='geJRv'><tfoot id='geJRv'></tfoot><dl id='geJRv'><fieldset id='geJRv'></fieldset></dl></div>

              1. <tfoot id='geJRv'></tfoot>

                  <legend id='geJRv'><style id='geJRv'><dir id='geJRv'><q id='geJRv'></q></dir></style></legend>
                  本文介紹了iOS:訪問設備硬件音量控制的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我已經在里面實現了這個流媒體(https://github.com/DigitalDJ/AudioStreamer)我的應用程序運行起來很棒,但是它沒有實現音量控制,有人有提示如何開始使用音量滑動或其他東西嗎?

                  I have implemented this streamer(https://github.com/DigitalDJ/AudioStreamer) inside my app and it runs fantastic, however it doesn't have volume controls implemented, anyone have tips how to get started with volume slide or something?

                  我正在尋找一些類似的問題:

                  I was looking trough some similar questions :

                  • iOS:更改設備音量

                  訪問 iOS 設備上的硬件信息

                  iOS 系統音量控制

                  沒有找到任何有用的方法來回答我的問題,如何改變音量(上/下),當然也可以將它連接到某種控件,即滑塊,感謝任何幫助

                  Didn't find any of these useful to answer to my question, how to change volume(up/down) and of course hook it to some kind of control i.e. slider, any help is appreciated

                  推薦答案

                  確保將 MediaPlayer 框架添加到項目中

                  make sure you add the MediaPlayer framework to your project

                  您必須在 .h 文件中定義一個視圖才能將滑塊放入本例中的viewVolume"

                  you have to define a view in your .h file to put the slider in in this case "viewVolume"

                  信息:這只能在真實設備上的模擬器中運行.

                  INFO: THIS WONT WORK IN A SIMULATOR ONLY ON A REAL DEVICE.

                  #import <MediaPlayer/MediaPlayer.h>
                  
                  - (void)showTheVolumeSlider {
                  
                      MPVolumeView *volumeViewSlider = [[MPVolumeView alloc] initWithFrame:viewVolume.bounds] ;
                      [viewVolume addSubview:volumeViewSlider];
                      [volumeViewSlider sizeToFit];
                  
                  }
                  

                  此代碼正在使用 ARC.

                  this code is using ARC.

                  此代碼也可以使用:

                  musicPlayer = [MPMusicPlayerController iPodMusicPlayer];
                      musicPlayer.volume = slider.value;
                  

                  但是如果你想使用它,你必須創建一個系統來更新滑塊,因為設備的音量是從其他地方調整的

                  but if you want to use this you have to make an system that updates the slider as the volume of the device is adjusted from an other place

                  這將適用于更新音量,但我不知道這是否是最好的方法

                  this wil work for updating the volume but i don't know if it's the best way

                    timer = [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(updateSound) userInfo:nil repeats:YES];
                  

                  這個來更新 UISlider:

                  this to update the UISlider:

                  - (void)updateSound {
                  
                      musicPlayer = [MPMusicPlayerController iPodMusicPlayer];
                      slider.value = musicPlayer.volume;
                      // value from 0.0 to 1.0
                  
                  }
                  

                  這篇關于iOS:訪問設備硬件音量控制的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))
                    <i id='FfyMZ'><tr id='FfyMZ'><dt id='FfyMZ'><q id='FfyMZ'><span id='FfyMZ'><b id='FfyMZ'><form id='FfyMZ'><ins id='FfyMZ'></ins><ul id='FfyMZ'></ul><sub id='FfyMZ'></sub></form><legend id='FfyMZ'></legend><bdo id='FfyMZ'><pre id='FfyMZ'><center id='FfyMZ'></center></pre></bdo></b><th id='FfyMZ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='FfyMZ'><tfoot id='FfyMZ'></tfoot><dl id='FfyMZ'><fieldset id='FfyMZ'></fieldset></dl></div>
                      1. <small id='FfyMZ'></small><noframes id='FfyMZ'>

                        <legend id='FfyMZ'><style id='FfyMZ'><dir id='FfyMZ'><q id='FfyMZ'></q></dir></style></legend>
                      2. <tfoot id='FfyMZ'></tfoot>
                            <tbody id='FfyMZ'></tbody>
                          • <bdo id='FfyMZ'></bdo><ul id='FfyMZ'></ul>
                            主站蜘蛛池模板: 青青久草 | 亚洲国产精久久久久久久 | 一区二区免费高清视频 | 亚洲国产精品久久久久婷婷老年 | 91久久久久久久久久久久久 | 久久大陆 | 99热首页| 午夜欧美 | 久久精品国产免费 | 操操操日日日 | 美女高潮网站 | 久久激情视频 | 啪啪免费网 | 日韩在线不卡视频 | 精品久久久久一区二区国产 | 黄视频免费观看 | 一区二区三区四区不卡视频 | 日本免费在线 | 国产伦精品一区二区三区精品视频 | 伊人伊成久久人综合网站 | 在线视频亚洲 | 久久男人天堂 | 一级大片网站 | 成人av电影网 | 精品一区二区三区在线观看国产 | 91精品国产91久久综合桃花 | 女人av | 精品1区2区 | www.国产精 | 亚洲精品888| 国产精品二区三区 | 亚洲三区在线观看 | 欧美网址在线观看 | 成人亚洲性情网站www在线观看 | 99精品欧美一区二区蜜桃免费 | 精品久久久久一区二区国产 | 日韩精品一区二区三区 | 久久不卡| 草久视频 | 日韩毛片 | www.久久艹|