使用外部 URL 的 JWPlayer 中的无效许可证密钥
Invalid License Key in JWPlayer using external URL
我正在尝试使用 JWPlayer 播放视频,URL:
http://res.cloudinary.com/pawantrunkcloud/video/upload/v1489746294/g5ijnie2ri74loim4ezk.mp4
但是当我尝试播放 Url 时,我收到错误消息:
Invalid License Key
播放视频的代码如下:
public class 视频Activity 扩展 Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_videoplay);
// Get a handle to the JWPlayerFragment
JWPlayerFragment fragment = (JWPlayerFragment) getFragmentManager().findFragmentById(R.id.playerFragment);
// Get a handle to the JWPlayerView
JWPlayerView playerView = fragment.getPlayer();
// Create a PlaylistItem
PlaylistItem video = new PlaylistItem("https://res.cloudinary.com/pawantrunkcloud/video/upload/v1489746294/g5ijnie2ri74loim4ezk.mp4");
// Load a stream into the player
playerView.load(video);
}//onCreate closes here.....
}//VideoActivity closes here....
此外,许可证密钥如下:
public static final String JW_PLAYER_API_KEY = "tWdG7dmM";
public static final String JW_PLAYER_API_SECRET = "K5joAa8mzKQTHCGyndqgKbT7";
此外,许可证密钥已添加到清单中:
<meta-data
android:name="tWdG7dmM"
android:value="K5joAa8mzKQTHCGyndqgKbT7"/>
这不是许可证密钥。转到仪表板。在左侧的仪表板页面中,您可以看到工具。 Select 工具。在工具页面中,您可以看到 Ios、Android 等的许可证密钥...复制并粘贴到值的位置。名字是 JW_LICENSE_KEY
<meta-data
android:name="JW_LICENSE_KEY"
android:value="{Your License Key from dashboard--> Tools}"
/>
仅供每位用户参考。
不要用任何键 替换 JW_LICENSE_KEY,它是一个硬编码的字符串。
将许可证放在值部分。
我正在尝试使用 JWPlayer 播放视频,URL: http://res.cloudinary.com/pawantrunkcloud/video/upload/v1489746294/g5ijnie2ri74loim4ezk.mp4
但是当我尝试播放 Url 时,我收到错误消息:
Invalid License Key
播放视频的代码如下: public class 视频Activity 扩展 Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_videoplay);
// Get a handle to the JWPlayerFragment
JWPlayerFragment fragment = (JWPlayerFragment) getFragmentManager().findFragmentById(R.id.playerFragment);
// Get a handle to the JWPlayerView
JWPlayerView playerView = fragment.getPlayer();
// Create a PlaylistItem
PlaylistItem video = new PlaylistItem("https://res.cloudinary.com/pawantrunkcloud/video/upload/v1489746294/g5ijnie2ri74loim4ezk.mp4");
// Load a stream into the player
playerView.load(video);
}//onCreate closes here.....
}//VideoActivity closes here....
此外,许可证密钥如下:
public static final String JW_PLAYER_API_KEY = "tWdG7dmM";
public static final String JW_PLAYER_API_SECRET = "K5joAa8mzKQTHCGyndqgKbT7";
此外,许可证密钥已添加到清单中:
<meta-data
android:name="tWdG7dmM"
android:value="K5joAa8mzKQTHCGyndqgKbT7"/>
这不是许可证密钥。转到仪表板。在左侧的仪表板页面中,您可以看到工具。 Select 工具。在工具页面中,您可以看到 Ios、Android 等的许可证密钥...复制并粘贴到值的位置。名字是 JW_LICENSE_KEY
<meta-data
android:name="JW_LICENSE_KEY"
android:value="{Your License Key from dashboard--> Tools}"
/>
仅供每位用户参考。
不要用任何键 替换 JW_LICENSE_KEY,它是一个硬编码的字符串。 将许可证放在值部分。