Skip to content

Instantly share code, notes, and snippets.

View rimagahwa's full-sized avatar
🎯
Focusing

Rima Alghanim rimagahwa

🎯
Focusing
  • RimaWorks
  • Riyadh, Saudi Arabia
View GitHub Profile
@rimagahwa
rimagahwa / GetStreamingAssetsPath.cs
Created March 31, 2017 17:54 — forked from amowu/GetStreamingAssetsPath.cs
Get Unity StreamingAssets file path with Android and iOS.
// Put your file to "YOUR_UNITY_PROJ/Assets/StreamingAssets"
// example: "YOUR_UNITY_PROJ/Assets/StreamingAssets/db.bytes"
string dbPath = "";
if (Application.platform == RuntimePlatform.Android)
{
// Android
string oriPath = System.IO.Path.Combine(Application.streamingAssetsPath, "db.bytes");
@rimagahwa
rimagahwa / index.html
Last active August 29, 2015 14:25
WRTC using SkyLink
<html>
<head>
<title>Rima's Website</title>
<script src="//cdn.temasys.com.sg/skylink/skylinkjs/0.6.x/skylink.complete.min.js"></script>
</head>
<body>
<video id="myvideo" style="transform: rotateY(-180deg);" width="160px" height="120px" autoplay muted></video>
<!-- rotate to so the video is mirrored -->