From professional translators, enterprises, web pages and freely available translation repositories.
for this purpose, the ios api provides a separate view class called mpvolumeview.
Нет ничего проще. api ios предоставляет для этой цели отдельный view-класс — mpvolumeview.
Last Update: 2018-02-21
Usage Frequency: 1
Quality:
then you just need to add mpvolumeview to the player interface and you will see the standard white airplay button. by clicking on it, a list of available data devices is shown.
Далее требуется только добавить mpvolumeview в интерфейс плеера и вы увидите стандартную белую кнопку airplay, по нажатию на которую появляется список доступных для передачи данных устройств.
Last Update: 2018-02-21
Usage Frequency: 1
Quality:
unfortunately, neither the mpvolumeview class nor the player has any notifications related to the button. therefore, there is no direct way to get a notification on availability or unavailability of devices.
К сожалению, ни у класса mpvolumeview, ни у плеера нет никаких оповещений, связанных с кнопкой.
Last Update: 2018-02-21
Usage Frequency: 1
Quality:
however, if all you need is to change the image button, then starting with ios 6 developers provide an easy-to-use method of the mpvolumeview class. it is called
Однако если все, что вам нужно, это изменить картинку кнопки, то начиная с ios 6 разработчикам предоставлен удобный метод класса mpvolumeview. Это метод
Last Update: 2018-02-21
Usage Frequency: 1
Quality:
for this purpose, from the subviews array of mpvolumeview class you can get a reference to the airplay button. the airplay button is a normal uibutton class button, so if you have a reference, you can get access to all standard methods of changing its appearance.
В таком случае можно из массива subviews класса mpvolumeview получить ссылку на кнопку airplay. Кнопка включения airplay является обычной кнопкой класса uibutton, поэтому при наличии ссылки на неё вам становятся доступны все стандартные методы изменения её внешнего вида.
Last Update: 2018-02-21
Usage Frequency: 1
Quality:
if you need just a button without a slider (for instance, you have your custom player with its own slider), you have to remove the slider from mpvolumeview by setting the showsvolumeslider property to no. here is an example of adding a button to the player interface.
Если вам нужна только кнопка, без слайдера (например, у вас кастомный плеер и уже есть собственный слайдер), то из вида mpvolumeview необходимо убрать слайдер присвоением значения no свойству showsvolumeslider. Здесь приведён пример добавления кнопки в интерфейс плеера.
Last Update: 2018-02-21
Usage Frequency: 1
Quality: