Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
shiyiya committed May 24, 2024
1 parent be13ff2 commit e92cb1d
Showing 1 changed file with 4 additions and 41 deletions.
45 changes: 4 additions & 41 deletions packages/ui/src/index.core.ts
Original file line number Diff line number Diff line change
@@ -1,46 +1,9 @@
import {
Player,
$,
isMobile,
isiPad,
isiPhone,
isIOS,
isQQBrowser,
EVENTS,
OH_EVENTS,
PLAYER_EVENTS,
VIDEO_EVENTS,
loadSDK
} from '@oplayer/core'

import { Player } from '@oplayer/core'
import ui from './index'

export default Object.assign(
Player,
{
$,

EVENTS,
OH_EVENTS,
VIDEO_EVENTS,
PLAYER_EVENTS
},

//platform:
{
isMobile,
isiPad,
isiPhone,
isIOS,
isQQBrowser,
loadSDK
},
{
ui: ui
}
)
export default Player
export * from '@oplayer/core'

if (globalThis.window) {
// @ts-ignore
globalThis.window.OUI = ui
;(<any>globalThis.window).OUI = ui
}

0 comments on commit e92cb1d

Please sign in to comment.