Keyword

Using AllVideos in script

  • GnomiX
  • GnomiX's Avatar Topic Author
  • Offline
  • New Member
More
13 years 3 months ago - 13 years 3 months ago #45772 by GnomiX
Using AllVideos in script was created by GnomiX
Hello, All!
I have problem with using AllVideos in html-page with using javascript, I try use such construction:

                <script type="text/javascript">
                    if (( navigator.userAgent.indexOf('iPhone') != -1 )||( navigator.userAgent.indexOf('iPad') != -1 ) )
                    {
                        document.write("<div>{mov}video{/mov}</div>");
                    }
                    else
                    {
                        document.write("<div>{flv}video{/flv}</div>");
                    }
                </script>

but it not work. Can I use plugin such way (or some other)?
I need check device and in case of iphone/ipad show video MOV in other cases FLV.
Hope you help me, from Russia with love!

Please Log in or Create an account to join the conversation.

  • GnomiX
  • GnomiX's Avatar Topic Author
  • Offline
  • New Member
More
13 years 3 months ago #45773 by GnomiX
Replied by GnomiX on topic Re: Using AllVideos in script
I do not want to seem intrusive, but it is not clear for me, developers generally come to this forum?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum