-
Notifications
You must be signed in to change notification settings - Fork 1
Ticket Number:RDKEMW-3332:JSRuntime demoapplication #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| # /** | ||
| # * If not stated otherwise in this file or this component's LICENSE | ||
| # * file the following copyright and licenses apply: | ||
| # * | ||
| # * Copyright 2024 RDK Management | ||
| # * | ||
| # * Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
Check failure on line 7 in sampleapps/testapp_RDKNativescript/exports.sh
|
||
| # * you may not use this file except in compliance with the License. | ||
| # * You may obtain a copy of the License at | ||
| # * | ||
| # * http://www.apache.org/licenses/LICENSE-2.0 | ||
| # * | ||
| # * Unless required by applicable law or agreed to in writing, software | ||
| # * distributed under the License is distributed on an "AS IS" BASIS, | ||
| # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # * See the License for the specific language governing permissions and | ||
| # * limitations under the License. | ||
| # **/ | ||
|
|
||
| #!/bin/bash | ||
| mount --bind /opt/WebKitBrowser.json /etc/WPEFramework/plugins/WebKitBrowser.json | ||
| systemctl daemon-reload | ||
| systemctl restart wpeframework | ||
| # Set environment variables | ||
| export XDG_RUNTIME_DIR=/tmp | ||
| export WAYLAND_DISPLAY=test | ||
| export LD_LIBRARY_PATH=/usr/lib:/media/apps/netflix/usr/lib:/tmp/netflix/usr/lib:/media/apps/libcobalt/usr/lib:/tmp/libcobalt/usr/lib | ||
| export GST_REGISTRY=/opt/.gstreamer/registry.bin | ||
| export GST_REGISTRY_UPDATE=no | ||
| export ENABLE_WEBKITBROWSER_PLUGIN_ACCESSIBILITY=1 | ||
| export TTS_USE_THUNDER_CLIENT=1 | ||
| export LD_PRELOAD=/usr/lib/realtek/libVOutWrapper.so:/usr/lib/realtek/libjpu.so:/usr/lib/realtek/libvpu.so:/usr/lib/libwesteros_gl.so.0 | ||
| export XDG_DATA_HOME=/opt/QT/home | ||
| export RDKSHELL_EASTER_EGG_FILE=/etc/rdkshell_eastereggs.conf | ||
| export FORCE_SVP=TRUE | ||
| export FORCE_SAP=TRUE | ||
|
|
||
| echo "Commands executed successfully." | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /** | ||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
| * Copyright 2024 RDK Management | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| **/ | ||
|
|
||
| var player = new AAMPMediaPlayer(); | ||
| var url = "https://cpetestutility.stb.r53.xcal.tv/VideoTestStream/main.mpd"; | ||
| player.setVideoRect(330,150,1600,920); | ||
| var t = player.load(url, false); | ||
| setTimeout(function() { | ||
| player.play(); | ||
| }, 0); | ||
|
|
||
| /* | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove all the commented lines |
||
| const player = new Video(); | ||
| player.url = "https://cpetestutility.stb.r53.xcal.tv/VideoTestStream/main.mpd"; | ||
| player.autoplay = true; | ||
| player.muted = true; // Set to false to unmute | ||
| player.loop = true; | ||
| player.x = 330; | ||
| player.y = 150; | ||
| player.width = 1600; | ||
| player.height = 920; | ||
|
|
||
| player.load(); | ||
| */ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /** | ||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
| * Copyright 2024 RDK Management | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| **/ | ||
|
|
||
| var player = new AAMPMediaPlayer(); | ||
| var url = "https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd"; | ||
| player.setVideoRect(330,150,1600,920); | ||
| var t = player.load(url, false); | ||
| setTimeout(function() { | ||
| player.play(); | ||
| }, 0); | ||
|
|
||
| /* | ||
| const player = new Video(); | ||
| player.url = "https://cdn.bitmovin.com/content/assets/art-of-motion-dash-hls-progressive/mpds/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.mpd"; | ||
| player.autoplay = true; | ||
| player.muted = true; // Set to false to unmute | ||
| player.loop = true; | ||
| player.x = 330; | ||
| player.y = 150; | ||
| player.width = 1600; | ||
| player.height = 920; | ||
|
|
||
| player.load(); | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /** | ||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
| * Copyright 2024 RDK Management | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| **/ | ||
|
|
||
| var player = new AAMPMediaPlayer(); | ||
| var url = "https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8"; | ||
| player.setVideoRect(330,150,1600,920); | ||
| var t = player.load(url, false); | ||
| setTimeout(function() { | ||
| player.play(); | ||
| }, 0); | ||
|
|
||
| /* | ||
| const player = new Video(); | ||
| player.url = "https://demo.unified-streaming.com/k8s/features/stable/video/tears-of-steel/tears-of-steel.ism/.m3u8"; | ||
| player.autoplay = true; | ||
| player.muted = true; // Set to false to unmute | ||
| player.loop = true; | ||
| player.x = 330; | ||
| player.y = 150; | ||
| player.width = 1600; | ||
| player.height = 920; | ||
|
|
||
| player.load(); | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /** | ||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
| * Copyright 2024 RDK Management | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| **/ | ||
|
|
||
| var player = new AAMPMediaPlayer(); | ||
| var url = "https://dash.akamaized.net/dash264/TestCases/1b/qualcomm/1/MultiRatePatched.mpd"; | ||
| player.setVideoRect(330,150,1600,920); | ||
| var t = player.load(url, false); | ||
| setTimeout(function() { | ||
| player.play(); | ||
| }, 0); | ||
|
|
||
| /* | ||
| const player = new Video(); | ||
| player.url = "https://dash.akamaized.net/dash264/TestCases/1b/qualcomm/1/MultiRatePatched.mpd"; | ||
| player.autoplay = true; | ||
| player.muted = true; // Set to false to unmute | ||
| player.loop = true; | ||
| player.x = 330; | ||
| player.y = 150; | ||
| player.width = 1600; | ||
| player.height = 920; | ||
|
|
||
| player.load(); | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| /** | ||
| * If not stated otherwise in this file or this component's LICENSE | ||
| * file the following copyright and licenses apply: | ||
| * | ||
| * Copyright 2024 RDK Management | ||
| * | ||
| * Licensed under the Apache License, Version 2.0 (the "License"); | ||
| * you may not use this file except in compliance with the License. | ||
| * You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| **/ | ||
|
|
||
| var player = new AAMPMediaPlayer(); | ||
| var url = "https://dash.akamaized.net/dash264/TestCases/2c/qualcomm/1/MultiResMPEG2.mpd"; | ||
| player.setVideoRect(330,150,1600,920); | ||
| var t = player.load(url, false); | ||
| setTimeout(function() { | ||
| player.play(); | ||
| }, 0); | ||
|
|
||
| /* | ||
| const player = new Video(); | ||
| player.url = "https://dash.akamaized.net/dash264/TestCases/2c/qualcomm/1/MultiResMPEG2.mpd"; | ||
| player.autoplay = true; | ||
| player.muted = true; // Set to false to unmute | ||
| player.loop = true; | ||
| player.x = 330; | ||
| player.y = 150; | ||
| player.width = 1600; | ||
| player.height = 920; | ||
|
|
||
| player.load(); | ||
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| Increase the NativeJS log level to DEBUG | ||
|
|
||
| Terminal 1: | ||
|
|
||
| Change clientIdentifier to "test" in /etc/WPEFramework/plugins/WebKitBrowser.json | ||
| source /opt/www/demo/testapp_RDKNativescript/exports.sh | ||
|
|
||
| systemctl stop sky-appsservice | ||
| westeros --renderer /usr/lib/libwesteros_render_gl.so.0.0.0 --display test | ||
|
|
||
| Terminal 2: | ||
| export XDG_RUNTIME_DIR=/tmp | ||
| export WAYLAND_DISPLAY=test | ||
| export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/javascriptcore | ||
| export LD_PRELOAD=/usr/lib/realtek/libVOutWrapper.so:/usr/lib/realtek/libjpu.so:/usr/lib/realtek/libvpu.so:/usr/lib/libwesteros_gl.so.0 | ||
|
|
||
| westeros_test | ||
|
|
||
| Open Controller UI on browser <ip_addr>:9998 | ||
|
|
||
| Activate NativeJS/jsruntime plugin using Controller UI and, | ||
|
|
||
| Activate WebKitBrowser plugin | ||
| curl -d '{"jsonrpc":"2.0","id":"3","method": "Controller.1.activate", "params":{"callsign":"WebKitBrowser"}}' http://127.0.0.1:9998/jsonrpc | ||
|
|
||
|
|
||
| Upon Refreshing the controller UI, on left side panel select WebKitBrowser | ||
|
|
||
| Set URL http://127.0.0.1:50050/demo/testapp_RDKNativescript/video.html and reload | ||
|
|
||
|
|
||
|
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep url as empty