mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-26 17:01: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
@@ -12,6 +12,7 @@ import thumbnails from './thumbnails';
|
||||
import screenshot from './screenshot';
|
||||
import quality from './quality';
|
||||
import loop from './loop';
|
||||
import airplay from './airplay';
|
||||
|
||||
export default class Control extends Component {
|
||||
constructor(art) {
|
||||
@@ -138,12 +139,21 @@ export default class Control extends Component {
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
airplay({
|
||||
name: 'airplay',
|
||||
disable: !option.airplay || !window.WebKitPlaybackTargetAvailabilityEvent,
|
||||
position: 'right',
|
||||
index: 50,
|
||||
}),
|
||||
);
|
||||
|
||||
this.add(
|
||||
fullscreenWeb({
|
||||
name: 'fullscreenWeb',
|
||||
disable: !option.fullscreenWeb,
|
||||
position: 'right',
|
||||
index: 50,
|
||||
index: 60,
|
||||
}),
|
||||
);
|
||||
|
||||
@@ -152,7 +162,7 @@ export default class Control extends Component {
|
||||
name: 'fullscreen',
|
||||
disable: !option.fullscreen,
|
||||
position: 'right',
|
||||
index: 60,
|
||||
index: 70,
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user