1616use Webrtc \AVCodec \Exception \AvCodecException ;
1717use Webrtc \AVCodec \Frame \VideoFrame ;
1818use Webrtc \Codecs \DecoderInterface ;
19- use Webrtc \RTP \ Jitter \ JitterFrame ;
19+ use Webrtc \Codecs \ JitterFrameInterface ;
2020use Webrtc \VPX \Context ;
2121use Webrtc \VPX \Decoder ;
2222use Webrtc \VPX \Enum \BriefInterface ;
@@ -58,12 +58,12 @@ public function __construct()
5858 /**
5959 * Decodes a VP8-encoded video frame
6060 *
61- * @param JitterFrame $frame Input frame containing VP8 payload and timestamp
61+ * @param JitterFrameInterface $frame Input frame containing VP8 payload and timestamp
6262 * @return VideoFrame[] Array of decoded video frames
6363 * @throws VpxException
6464 * @throws AvCodecException
6565 */
66- public function decode (JitterFrame $ frame ): array
66+ public function decode (JitterFrameInterface $ frame ): array
6767 {
6868 $ frames = [];
6969 $ images = $ this ->decoder ->decode ($ frame ->getData ());
@@ -79,11 +79,11 @@ public function decode(JitterFrame $frame): array
7979 * Creates a VideoFrame from decoded image data
8080 *
8181 * @param CData $image Decoded image data from libvpx
82- * @param JitterFrame $frame Source frame with timestamp
82+ * @param JitterFrameInterface $frame Source frame with timestamp
8383 * @return VideoFrame Configured video frame object
8484 * @throws AvCodecException
8585 */
86- private function generateFrame (CData $ image , JitterFrame $ frame ): VideoFrame
86+ private function generateFrame (CData $ image , JitterFrameInterface $ frame ): VideoFrame
8787 {
8888 $ videoFrame = new VideoFrame ($ image ->d_w , $ image ->d_h );
8989 $ videoFrame ->setPts ($ frame ->getTimestamp ());
0 commit comments