Newbie Spellweaver
- Joined
- Mar 7, 2022
- Messages
- 62
- Reaction score
- 107
Firstly, I apologize for my lack of rigor.
The concert hall currently only has sound and no visuals during playback in version 5.8 (NotAion client).
But in the bin32 test of version 4.75 (EU client), everything was normal. Bin64 cannot be played.
This is a decoding issue with the client's internal browser, and we are still trying different solutions.
The following HTML code supports older versions of the client's internal IE5 browser.
The client browser version 5.8 can support up to IE9 encoding.
BTW:
At present, we only found that the old client browser can support video playback in SWF format.
The new client's HTML can support mainstream MP4 H.246 format videos.
Modify client_strings_etc.xml search
<id>610007</id>
<name>STR-ETC-EVENT-IU-WEB_URL</name>
Replace the HTTP address with yours, and then reread the client PAK.
We have found that YouTube videos can be inserted for playback through the YouTube API. I will share the code (only applicable to version 5.8 and above).
On the playback screen of the concert hall, we found that higher versions of the client have added a unidirectional transparent layer in front of the screen,
That's why we can only hear sound but not see the picture.
Perhaps in the later stage, everyone can unlock the PAK file and modify the local client, The NC official has done other processing on bin calls, just like we cannot modify the display of HP values through XML files now.
The concert hall currently only has sound and no visuals during playback in version 5.8 (NotAion client).
But in the bin32 test of version 4.75 (EU client), everything was normal. Bin64 cannot be played.
This is a decoding issue with the client's internal browser, and we are still trying different solutions.
The following HTML code supports older versions of the client's internal IE5 browser.
HTML:
<html lang="zh-CN"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title>AION</title>
<style type="text/css">
body,html {
margin:0 0 0 0;
width:100%;
height:100%;
background-color:#000000;
overflow:hidden hidden;
}
</style>
</head>
<body onload="myFunction()">
<embed allowscriptaccess="sameDomain" allowNetworking="all" invokeurls="true"
src="..your.swf(http or Local deployment)" quality="high" autostart="0" wmode="direct"
width="100%" height="100%" align="middle" allowFullScreen="true"
allowScriptAccess="always" scale="showall" FlashVars="">
</embed>
</body>
</html>
The client browser version 5.8 can support up to IE9 encoding.
HTML:
<html lang="zh-CN"><!--<![endif]-->
<body>
<div style="position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);">
<video id="video" controls="controls" width="80%" height="auto" autoplay loop>
<source src="..your.MP4(http or Local deployment)" type="video/mp4" />
</video>
</div>
</body>
</html>
You must be registered to see links
BTW:
At present, we only found that the old client browser can support video playback in SWF format.
The new client's HTML can support mainstream MP4 H.246 format videos.
Modify client_strings_etc.xml search
<id>610007</id>
<name>STR-ETC-EVENT-IU-WEB_URL</name>
Replace the HTTP address with yours, and then reread the client PAK.
We have found that YouTube videos can be inserted for playback through the YouTube API. I will share the code (only applicable to version 5.8 and above).
HTML:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>好康的</title>
<style>
html, body {
margin: 0;
padding: 0;
height: 100%;
overflow: hidden;
}
#player-container {
width: 100%;
height: 100%;
position: relative;
}
</style>
<script src="https://www.youtube.com/iframe_api"></script>
</head>
<body>
<!-- 嵌入YouTube视频的iframe,但初始时不包含src -->
<div id="player"></div>
<script>
// 创建一个新的YT.Player实例并准备播放器
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '100%',
width: '100%',
videoId: 'WwMD7IUQCSU', // Replace with the YouTube video ID you want to add
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}
});
}
// 播放器准备好后调用
function onPlayerReady(event) {
// 你可以在这里调用playVideo(),但由于自动播放的限制,它可能不会工作
event.target.playVideo(); // 尝试播放视频
}
// 当播放器的播放状态更改时调用
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING) {
// 视频已开始播放
}
}
// 如果你想要在某个时间点播放视频(例如,页面加载后),你可以这样做:
window.onload = function() {
// 加载API(如果尚未加载)
if (!window.YT) {
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
} else {
// 如果API已加载,直接调用onYouTubeIframeAPIReady
onYouTubeIframeAPIReady();
// 在这里,你可能想要设置一个延迟来调用playVideo(),
// 但这仍然可能受到自动播放策略的限制
setTimeout(function() {
if (player) {
player.playVideo();
}
}, 300); // 延迟0.3秒后尝试播放
}
};
</script>
</body>
</html>
On the playback screen of the concert hall, we found that higher versions of the client have added a unidirectional transparent layer in front of the screen,
That's why we can only hear sound but not see the picture.
Perhaps in the later stage, everyone can unlock the PAK file and modify the local client, The NC official has done other processing on bin calls, just like we cannot modify the display of HP values through XML files now.
Last edited: