Skip to content

Commit

Permalink
Merge pull request jellyfin#46 from jellyfin/dkanada-patch-1
Browse files Browse the repository at this point in the history
use sender id rather than current time
  • Loading branch information
dkanada authored Jul 28, 2020
2 parents 5c1e2e6 + d7f45e7 commit e02043f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import "./components/maincontroller";

let senders = cast.framework.CastReceiverContext.getSenders();
let id = senders.length !== 0 && senders[0].id ? senders[0].id : new Date().getTime();

window.deviceInfo = {
deviceId: "chromecast_" + new Date().getTime(),
deviceName: 'Chromecast',
deviceId: id,
deviceName: 'Google Cast',
versionNumber: '3.0.0'
};

Expand Down

0 comments on commit e02043f

Please sign in to comment.