Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.Samsung.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ cmake -DCMAKE_TOOLCHAIN_FILE=<YOUR EMSCRIPTEN INSTALLATION_DIR>/cmake/Modules/Pl
ninja

mkdir widget/
cd widget/
cmake --install . --prefix .
```

Expand Down
10 changes: 10 additions & 0 deletions notes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
git submodule update --init --recursive
mkdir build; cd build
cmake -DCMAKE_TOOLCHAIN_FILE=C:\Users\samsung\Programs\emscripten-1.39.4.3-windows64\emscripten-release-bundle\emsdk\fastcomp\emscripten\cmake\Modules\Platform\Emscripten.cmake -G Ninja ..
C:\tizen-studio\tools\ide\bin\tizen.bat run -p MoonLightS.MoonlightWasm
C:\tizen-studio\tools\ide\bin\tizen.bat install -n MoonlightWasm.wgt
C:\tizen-studio\tools\ide\bin\tizen.bat package -t wgt -- .
cmake --install . --prefix .
cmake -DCMAKE_TOOLCHAIN_FILE=C:\Users\samsung\Programs\emscripten-1.39.4.4-windows64\emscripten-release-bundle\emsdk\fastcomp\emscripten\cmake\Modules\Platform\Emscripten.cmake -G Ninja ..
emsdk activate latest-fastcomp
ninja
2 changes: 1 addition & 1 deletion wasm/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ MessageResult MoonlightInstance::StartStream(
m_StreamConfig.streamingRemotely = STREAM_CFG_AUTO;
m_StreamConfig.packetSize = 1392;
m_StreamConfig.supportsHevc = true;
m_StreamConfig.enableHdr = true;
//m_StreamConfig.enableHdr = true;

// Load the rikey and rikeyid into the stream configuration
HexStringToBytes(rikey.c_str(), m_StreamConfig.remoteInputAesKey);
Expand Down
6 changes: 3 additions & 3 deletions wasm/wasmplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
#include "samsung/wasm/elementary_media_packet.h"
#include "samsung/wasm/elementary_video_track_config.h"
#include "samsung/html/html_media_element_listener.h"
#include "samsung/wasm/operation_result.h"

#define INITIAL_DECODE_BUFFER_LEN 128 * 1024

using std::chrono_literals::operator""s;
using std::chrono_literals::operator""ms;
using EmssReadyState = samsung::wasm::ElementaryMediaStreamSource::ReadyState;
using EmssAsyncResult
= samsung::wasm::ElementaryMediaStreamSource::AsyncResult;
using HTMLAsyncResult = samsung::html::HTMLMediaElement::AsyncResult;
using EmssAsyncResult = samsung::wasm::OperationResult;
using HTMLAsyncResult = samsung::wasm::OperationResult;
using TimeStamp = samsung::wasm::Seconds;

static constexpr TimeStamp kFrameTimeMargin = 0.5ms;
Expand Down