=== ZW Player Video Embed ===
Contributors: zwplayer
Donate link: https://www.zwplayer.com/
Tags: video player, live streaming, hls, dash, html5
Requires at least: 5.8
Tested up to: 6.9
Requires PHP: 7.0
Stable tag: 3.3.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Professional HTML5 video player supporting HLS, DASH, FLV, MP4, local file with screenshot, recording, PIP and live streaming features.

== Description ==

ZW Player Video Embed is a professional-grade HTML5 video player supporting all major video formats and streaming protocols.

Perfect for: live streaming, online courses, video portfolios, surveillance feeds.

= Key Features =

**Format Support**
- Codecs: H.264, H.265, AV1, MP3, Opus
- VOD: HLS, DASH, HTTP-FLV, HTTP-MP4
- Live: HTTP-FLV, WebSocket-FLV, HLS, DASH, WebRTC, RTSP

**Player Features**
- Screenshot and video recording
- Segmented playback
- Picture-in-picture and mini player
- Multi-quality switching
- Speed control

**Integration**
- Gutenberg block with visual editor
- Shortcode: [zwplviem url="video.mp4"]
- Classic editor button
- Multiple instances support
- JSON configuration for advanced setups

= Usage =

Basic: [zwplviem url="https://example.com/video.mp4"]

Live: [zwplviem url="live.flv" isLive="true" autoplay="true"]

Full: [zwplviem url="video.mp4" poster="cover.jpg" autoplay="true" muted="true" ratio="16:9"]

Multi-quality: [zwplviem url="[{"name":"HD","url":"hd.mp4","default":true},{"name":"SD","url":"sd.mp4"}]"]

== Installation ==

1. Upload to /wp-content/plugins/zw-player-video-embed/
2. Activate in WordPress 'Plugins' screen
3. Use Gutenberg block or shortcode [zwplviem url="your-video-url"]

== Frequently Asked Questions ==

= What formats are supported? =

H.264/H.265/AV1 video, MP3/Opus audio. Protocols: HLS, DASH, FLV, MP4, WebRTC, RTSP.

= Can I use it for live streaming? =

Yes. Enable "Live Stream" mode or add isLive="true" to shortcode.

= How to add multiple qualities? =

Use JSON in URL field: [{"name":"1080p","url":"hd.mp4","default":true},{"name":"720p","url":"sd.mp4"}]

= Does it support picture-in-picture? =

Yes, including auto mini player when scrolling.

== Screenshots ==

1. Gutenberg block editor
2. Player with custom poster
3. Live streaming interface
4. Picture-in-picture mode
5. Multi-quality selector
6. Mobile responsive view

== External Services & Third-Party Libraries ==

This plugin includes minified JavaScript libraries for video playback. Below are the sources and licenses for each library:

= ZWPlayer Core (zwplayer.js) =
This is the main player library developed by ZW Player Team.
Documentation: https://www.zwplayer.com/
License: Proprietary - The minified zwplayer.js is provided for use within this plugin. Source code is not publicly available.

= DASH.js (dash.all.min.js) =
A JavaScript library for playing DASH (Dynamic Adaptive Streaming over HTTP) content.
Source: https://github.com/Dash-Industry-Forum/dash.js
License: BSD-3-Clause
Version included: 4.x

Note: This library may reference XML schemas (schemas.xmlsoap.org) for MPD manifest parsing. No user data is transmitted to external servers during normal playback.

= HLS.js (hls.min.js, hls.light.min.js) =
A JavaScript library for playing HLS (HTTP Live Streaming) content in browsers.
Source: https://github.com/video-dev/hls.js
License: Apache-2.0
Version included: 1.x

= FLV.js (flv.min.js, flv.live.js) =
A JavaScript library for playing FLV (Flash Video) content via HTTP-FLV or WebSocket-FLV streaming.
Source: https://github.com/bilibili/flv.js
License: Apache-2.0

= MPEGTS.js (mpeg.min.js) =
A JavaScript library for playing MPEG-TS streams.
Source: https://github.com/xqq/mpegts.js
License: Apache-2.0

= Build Tools =
No build tools are required for this plugin. All JavaScript files are pre-built and included as-is. The libraries above are used directly without additional compilation.

== Changelog ==

= 3.3.0 =
* Added: Dual subtitle support (URL, VTT, SRT, BCC formats)
* Added: Chapter navigation with JSON or URL configuration
* Added: Progress bar thumbnail preview
* Added: Logo / station badge with position and opacity control
* Added: Dynamic watermark with marquee and timed display
* Added: Interactive annotations (ZWMAP protocol)
* Added: Enhanced Gutenberg block with advanced settings panel
* Updated: ZWPlayer core library (performance improvements)
* Updated: Player UI styles and icon font

= 2.0 =
* Added: H.265/HEVC and AV1 support
* Added: WebRTC and RTSP streaming
* Added: Video recording and segmented playback
* Added: Auto mini player
* Improved: Gutenberg block UI
* Fixed: Text domain issues

= 1.0 =
* Initial release with HLS, DASH, FLV support

== Upgrade Notice ==

= 3.3.0 =
Major feature update: dual subtitles, chapters, thumbnail preview, logo badge, dynamic watermark, and interactive annotations. Gutenberg block UI significantly enhanced. Recommended for all users.

= 2.0 =
Major update with new codecs and recording features. Recommended for all users.