Skip to content
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

Roku cast fixed #86

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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
7 changes: 6 additions & 1 deletion Services/Helpers/WebOSTVServiceMouse.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ typedef enum {
WebOSTVMouseButtonUp = 1002,
WebOSTVMouseButtonDown = 1003,
WebOSTVMouseButtonLeft = 1004,
WebOSTVMouseButtonRight = 1005
WebOSTVMouseButtonRight = 1005,
WebOSTVMouseButtonEnter = 1006,
WebOSTVMouseButtonMenu = 1007,
WebOSTVMouseButtonInfo = 1008,
WebOSTVMouseButtonExit = 1009,

} WebOSTVMouseButton;

@interface WebOSTVServiceMouse : NSObject
Expand Down
5 changes: 5 additions & 0 deletions Services/Helpers/WebOSTVServiceMouse.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,11 @@ -(void) button:(WebOSTVMouseButton)keyName
case WebOSTVMouseButtonDown: keyString = @"DOWN"; break;
case WebOSTVMouseButtonLeft: keyString = @"LEFT"; break;
case WebOSTVMouseButtonRight: keyString = @"RIGHT"; break;
case WebOSTVMouseButtonEnter : keyString = @"ENTER"; break;
case WebOSTVMouseButtonMenu : keyString = @"MENU"; break;
case WebOSTVMouseButtonInfo : keyString = @"INFO"; break;
case WebOSTVMouseButtonExit : keyString = @"EXIT"; break;

default:break;
}

Expand Down
6 changes: 3 additions & 3 deletions Services/RokuService.m
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ - (void) displayImageWithMediaInfo:(MediaInfo *)mediaInfo success:(MediaPlayerSu
return;
}

NSString *applicationPath = [NSString stringWithFormat:@"15985?t=p&u=%@&tr=crossfade",
NSString *applicationPath = [NSString stringWithFormat:@"15985?t=p&u=%@&h=%%20&k=%%20",
[ConnectUtil urlEncode:imageURL.absoluteString] // content path
];

Expand Down Expand Up @@ -588,14 +588,14 @@ - (void) playMediaWithMediaInfo:(MediaInfo *)mediaInfo shouldLoop:(BOOL)shouldLo

if (isVideo)
{
applicationPath = [NSString stringWithFormat:@"15985?t=v&u=%@&k=(null)&videoName=%@&videoFormat=%@",
applicationPath = [NSString stringWithFormat:@"15985?t=v&u=%@&h=%%20&k=%%20",
[ConnectUtil urlEncode:mediaURL.absoluteString], // content path
title ? [ConnectUtil urlEncode:title] : @"(null)", // video name
ensureString(mediaType) // video format
];
} else
{
applicationPath = [NSString stringWithFormat:@"15985?t=a&u=%@&k=(null)&songname=%@&artistname=%@&songformat=%@&albumarturl=%@",
applicationPath = [NSString stringWithFormat:@"15985?t=a&u=%@&k=(null)&songname=%@&artistname=%@&songformat=%@&albumarturl=%@",
[ConnectUtil urlEncode:mediaURL.absoluteString], // content path
title ? [ConnectUtil urlEncode:title] : @"(null)", // song name
description ? [ConnectUtil urlEncode:description] : @"(null)", // artist name
Expand Down