The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WWW::SVT::Play::Utils, helper functions for WWW::SVT::Play

DESRIPTION

This module contains some helper functions for use in other parts of the WWW::SVT::Play application.

SUBROUTINES

playertype_map

Given an SVT Play internal name for a protocol (or playerType), return the corresponding protocol name for it. E.g., flash gives you 'hds'.

Note: For the internal format "flash", it can be either HDS or RTMP. You can determine this by looking at the protocol scheme used by the URL. If it's RTMP, it's RTMP (duh), and if it's HTTP, it's HDS. This function will return 'hds' either way.

protocol_map

Given a protocol nicename (e.g. HLS), return the SVT Play internal name (for HLS, it's "ios"). That is, the opposite of what playertype_map is doing.

COPYRIGHT

Copyright (c) 2012 - Olof Johansson <olof@cpan.org> All rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.