[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
presto-player
/
src
/
admin
/
blocks
/
blocks
/
bunny
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📁 popup
SET
[ DEL ]
📄 APIPlaceholder.js
2,475 B
SET
[ EDIT ]
|
[ DEL ]
📄 StorageMedia.js
3,138 B
SET
[ EDIT ]
|
[ DEL ]
📄 StreamMedia.js
968 B
SET
[ EDIT ]
|
[ DEL ]
📄 block.json
3,024 B
SET
[ EDIT ]
|
[ DEL ]
📄 edit.js
15,670 B
SET
[ EDIT ]
|
[ DEL ]
📄 index.js
1,012 B
SET
[ EDIT ]
|
[ DEL ]
📄 useMedia.js
1,017 B
SET
[ EDIT ]
|
[ DEL ]
📄 useStorageConnection.js
2,896 B
SET
[ EDIT ]
|
[ DEL ]
📄 useStreamConnection.js
2,995 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: StreamMedia.js
const { __ } = wp.i18n; const { useEffect } = wp.element; const { dispatch } = wp.data; import "./popup/stream/store/store"; import StreamPopup from "./popup/stream/Popup"; export default ({ closePopup, onSelect, isPrivate }) => { const onChoose = (video) => { video.url = video.playlistURL; video.thumbnail = video.thumbnailURL; video.preview = video.webPURL; onSelect(video); }; // set privacy option in store useEffect(() => { dispatch("presto-player/bunny-popup").setIsPrivate(isPrivate); }, [isPrivate]); // render template return ( <StreamPopup onClose={closePopup} onChoose={onChoose} header={ isPrivate ? __("Private Stream Library", "presto-player") : __("Public Stream Library", "presto-player") } title={ isPrivate ? __("Private Video Stream", "presto-player") : __("Public Video Stream", "presto-player") } /> ); };