# Illegal Licence key format android webview

**URL:** <https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234>\
**Category:** Wowza Player\
**Tags:** wowza-player-javascript-api\
**Created:** [October 29, 2018, 4:21pm UTC](https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234 "2018-10-29T16:21:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pankaj\_rajput](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@pankaj\_rajput](https://community.wowza.com/u/pankaj_rajput)\
**Post date:** [October 29, 2018, 4:21pm UTC](https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234/1 "2018-10-29T16:21:52Z")

</div>

Hello  
i am trying to open player in xamarin forms android webview

document.getElementById(""overlay"").style.display = ""block""; var myPlayer = WowzaPlayer.create('playerElement',{ ""license"":""[PLAY1-\*\*\*\*\*-\*\*\*\*\*-\*\*\*\*\*-\*\*\*\*\*-JMh4b]"", ""sourceURL"":""rtmp://18.216.122.26:1935/live/PE-0118-00028"", ""autoPlay"":true, ""volume"":""0"", ""mute"":false, ""uiShowQuickRewind"":false, ""uiShowFullscreen"":true} ); but always get exception of illegal Licence Key Format while same is working for iOS

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [October 29, 2018, 7:24pm UTC](https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234/2 "2018-10-29T19:24:26Z")

</div>

Any chance you can zip up a repro?

One thing I noticed is the a that the generated code for player has the source format url from a GoCoder Source as something like:

“sourceURL”:“http%3A%2F%2F192.168.0.2%3A1935%2Flive%2FmyStream%2Fplaylist.m3u8”,

versus what you have. What is your source? I can also look into if a custom renderer is needed to support invoking javascript from C# perhaps? [https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/hybridwebview](https://docs.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/hybridwebview)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)\
**Post date:** [October 31, 2018, 5:24pm UTC](https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234/4 "2018-10-31T17:24:50Z")

</div>

Nice work. You gave me an idea to create some content on using the player in a WebView for Xamarin Forms. Also, we are looking at building a GoCoder SDK wrapper for Xamarin Forms just to let you know. I have successfully built a prototype binding library and have broadcast from Xamarin.Android and Xamarin.iOS. It is a start, but we have a ways to go yet. If you still want to send me your sample code as a starting point for an upcoming lab exercise it would be appreciated, my email is [russ.fustino@wowza.com](mailto:russ.fustino@wowza.com) (you can delete all the obj and bin folders, so it will be tiny) Thx @pankaj rajput

---

<div class="post-metadata">

**Author:** ![pankaj\_rajput](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@pankaj\_rajput](https://community.wowza.com/u/pankaj_rajput)\
**Post date:** [October 31, 2018, 2:47pm UTC](https://community.wowza.com/t/illegal-licence-key-format-android-webview/52234/5 "2018-10-31T14:47:36Z")

</div>

I found the error  
“license”:"[PLAY1-_ **-** _-_ **-** _-JMh4b]"  
in iOS it accepting key as an array while in android it accepting it as a string

“license”:“PLAY1-_ **-** _-_ **-** _-JMh4b”  
“sourceURL”:“rtmp://18.216.122.26:1935/live/PE-0118-00028/playlist.m3u8”  
is working for me
