mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-27 09:41:20 -08:00
add airplay
This commit is contained in:
1 parent
55c7560ce2
commit
fbd1d2170a
20 files changed
+210
-17
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import { append } from '../utils';
|
||||
|
||||
export default function pip(option) {
|
||||
return (art) => ({
|
||||
...option,
|
||||
tooltip: art.i18n.get('AirPlay'),
|
||||
mounted: ($control) => {
|
||||
const {
|
||||
events: { proxy },
|
||||
icons,
|
||||
} = art;
|
||||
|
||||
append($control, icons.airplay);
|
||||
proxy($control, 'click', () => art.airplay());
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in new issue
Block a user