-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Support DLNA Renderer * Adjusting the player interface during live streaming and DLNA casting --------- Co-authored-by: zeromake <a390720046@gmail.com>
- Loading branch information
Showing
34 changed files
with
547 additions
and
102 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Submodule borealis
updated
5 files
+8 −3 | README.md | |
+4 −3 | library/CMakeLists.txt | |
+57 −0 | library/cmake/MinGWCross.cmake | |
+1 −1 | library/lib/platforms/desktop/desktop_platform.cpp | |
+1 −1 | library/lib/platforms/glfw/glfw_video.cpp |
This file contains 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
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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,9 @@ | ||
<brls:Box | ||
width="1280" | ||
height="720"> | ||
<VideoView | ||
id="fullscreen/video" | ||
hideHighlight="true" | ||
width="1280" | ||
height="720"/> | ||
</brls:Box> |
This file contains 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,35 @@ | ||
// | ||
// Created by fang on 2023/7/18. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <borealis/core/activity.hpp> | ||
#include <libpdr.h> | ||
|
||
#include "view/mpv_core.hpp" | ||
|
||
|
||
class VideoView; | ||
class DLNAActivity : public brls::Activity { | ||
public: | ||
CONTENT_FROM_XML_RES("activity/video_activity.xml"); | ||
|
||
DLNAActivity(); | ||
|
||
void onContentAvailable() override; | ||
|
||
~DLNAActivity() override; | ||
|
||
private: | ||
BRLS_BIND(VideoView, video, "fullscreen/video"); | ||
|
||
// 监控mpv事件 | ||
MPVEvent::Subscription mpvEventSubscribeID; | ||
// 监控DLNA事件 | ||
pdr::Subscription dlnaEventSubscribeID; | ||
std::shared_ptr<pdr::DLNA> dlna; | ||
|
||
std::string ip, uuid; | ||
size_t port; | ||
}; |
This file contains 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
This file contains 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
This file contains 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,27 @@ | ||
// | ||
// Created by fang on 2023/7/18. | ||
// | ||
|
||
#pragma once | ||
|
||
#include <string> | ||
#include <sstream> | ||
#include <iomanip> | ||
#include "bilibili/util/md5.hpp" | ||
|
||
namespace bilibili { | ||
|
||
std::string genUUID(const std::string& str){ | ||
auto hash = websocketpp::md5::md5_hash_hex(str); | ||
|
||
std::ostringstream uuid; | ||
uuid << std::setw(8) << std::setfill('0') << hash.substr(0, 8) << "-"; | ||
uuid << std::setw(4) << std::setfill('0') << hash.substr(8, 4) << "-"; | ||
uuid << std::setw(4) << std::setfill('0') << hash.substr(12, 4) << "-"; | ||
uuid << std::setw(4) << std::setfill('0') << hash.substr(16, 4) << "-"; | ||
uuid << std::setw(12) << std::setfill('0') << hash.substr(20, 12); | ||
|
||
return uuid.str(); | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.