AnyEvent-MPV

 view release on metacpan or  search on metacpan

MPV.pm  view on Meta::CPAN

192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
This should conclude the basics of operation. There are a few more
examples later in the documentation.
 
=head2 ENCODING CONVENTIONS
 
As a rule of thumb, all data you pass to this module to be sent to F<mpv>
is expected to be in unicode. To pass something that isn't, you need to
escape it using C<escape_binary>.
 
Data received from F<mpv>, however, is I<not> decoded to unicode, as data
returned by F<mpv> is not generally encoded in unicode, and the encoding
is usually unspecified. So if you receive data and expect it to be in
unicode, you need to first decode it from UTF-8, but note that this might
fail. This is not a limitation of this module - F<mpv> simply does not
specify nor guarantee a specific encoding, or any encoding at all, in its
protocol.
 
=head2 METHODS
 
=over

README  view on Meta::CPAN

179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
  program to quit by invoking $quit.
 
  This should conclude the basics of operation. There are a few more
  examples later in the documentation.
 
ENCODING CONVENTIONS
  As a rule of thumb, all data you pass to this module to be sent to mpv
  is expected to be in unicode. To pass something that isn't, you need to
  escape it using "escape_binary".
 
  Data received from mpv, however, is *not* decoded to unicode, as data
  returned by mpv is not generally encoded in unicode, and the encoding is
  usually unspecified. So if you receive data and expect it to be in
  unicode, you need to first decode it from UTF-8, but note that this
  might fail. This is not a limitation of this module - mpv simply does
  not specify nor guarantee a specific encoding, or any encoding at all,
  in its protocol.
 
METHODS
  $mpv = AnyEvent::MPV->new (key => value...)
      Creates a new "mpv" object, but does not yet do anything. The



( run in 0.288 second using v1.01-cache-2.11-cpan-10c994e2082 )